Fix big memory leak in ix86_valid_target_attribute_p
[official-gcc.git] / gcc / ChangeLog
blob4770f0f5e232814d75223c9211f997e8a96f389a
1 2015-11-12  Martin Liska  <mliska@suse.cz>
3         * config/i386/i386.c (ix86_valid_target_attribute_p):
4         Finalize options at the of the function.
5         * gcc.c (driver_get_configure_time_options): Call newly
6         introduced init_opts_obstack.
7         * lto-wrapper.c (main): Likewise.
8         * opts.c (init_opts_obstack): New function.
9         (init_options_struct): Call newly
10         introduced init_opts_obstack.
11         * opts.h (init_options_struct): Declare.
13 2015-11-12  Martin Liska  <mliska@suse.cz>
15         PR ipa/68035
16         * ipa-icf.c (void sem_item::set_hash): New function.
17         (sem_function::get_hash): Use renamed m_hash member variable.
18         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
19         (sem_item::update_hash_by_local_refs): Likewise.
20         (sem_variable::get_hash): Use renamed m_hash member variable.
21         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
22         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
23         (sem_item_optimizer::build_graph): As the hash value of an item
24         is lazy initialized, force the calculation.
25         * ipa-icf.h (set_hash): Declare new function and rename hash member
26         variable to m_hash.
28 2015-11-12  Richard Biener  <rguenther@suse.de>
30         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
31         Rename to vect_slp_analyze_instance_dependence.
32         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33         Remove WAR special-case.
34         (vect_slp_analyze_node_dependences): Instead add more specific
35         code here, not relying on other instances being vectorized.
36         (vect_slp_analyze_instance_dependence): Adjust accordingly.
37         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
38         vertical space in dump files.
39         (vect_print_slp_tree): Likewise.
40         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
41         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
42         not vectorized stmts until after dependence analysis removed
43         instances.  Merge alignment and dependence checks.
44         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
45         flag on all stmts.
47 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
49         * config/aarch64/aarch64-protos.h (tune_params): Add new members
50         "max_case_values" and "cache_line_size".
51         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
52         function.
53         (aarch64_override_options_internal): Tune heuristics based on new
54         members in "tune_params".
55         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
57 2015-11-12  Richard Biener  <rguenther@suse.de>
59         PR tree-optimization/68306
60         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
61         relevant and vectorizable checks here.
62         (vect_verify_datarefs_alignment): Add relevant check here.
64 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
66         gcc/
67         * gimplify.c (oacc_default_clause): New.
68         (omp_notice_variable): Call it.
70         gcc/testsuite/
71         * c-c++-common/goacc/data-default-1.c: New.
73         libgomp/
74         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
76 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
78         PR tree-optimization/68305
79         * tree-vect-slp.c (vect_get_constant_vectors): Support
80         COND_EXPR with SSA_NAME as a condition.
82 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
84         * config/visium/visium-protos.h (notice_update_cc): Delete.
85         (print_operand): Likewise.
86         (print_operand_address): Likewise.
88 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
90         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
91         FUNCTION_VALUE_REGNO_P): Remove.
92         * config/alpha/alpha-protos.h (function_value): Remove.
93         * config/alpha/alpha.c (function_value): Rename to...
94         (alpha_function_value_1): ... this.  Make static.
95         (alpha_function_value, alpha_libcall_value,
96         alpha_function_value_regno_p): New functions.
97         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
98         TARGET_FUNCTION_VALUE_REGNO_P): Define.
100 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
102         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
103         * config/alpha/alpha.c (alpha_memory_latency): Make static.
104         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
105         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
107 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
109         PR target/67265
110         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
111         assertion on the CFA register.
113 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
115         * expr.c (do_store_flag): Expand vector comparison as
116         VEC_COND_EXPR if vector comparison is not supported
117         by target.
119 2015-11-12  Renlin Li  <renlin.li@arm.com>
121         * config/arm/arm.md (addsi3_compare_op2): Make the order of
122         assembly pattern consistent with constraint order.
124 2015-11-12  Tom de Vries  <tom@codesourcery.com>
126         * gen-pass-instances.awk (handle_line): Simplify match regexp.
128 2015-11-12  Tom de Vries  <tom@codesourcery.com>
130         * gen-pass-instances.awk (handle_line): Simplify init of
131         postfix_starts_at.
133 2015-11-12  Tom de Vries  <tom@codesourcery.com>
135         * gen-pass-instances.awk (handle_line): Rename var where to
136         call_starts_at.
138 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
140         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
141         do not expand to rtl.
143 2015-11-12  Richard Biener  <rguenther@suse.de>
145         PR tree-optimization/58497
146         * tree-vect-generic.c: Include gimplify.h.
147         (tree_vec_extract): Lookup constant/constructor DEFs.
148         (do_cond): Unshare cond.
150 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
152         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
153         combined insn if the alignment of vector mode memory operand
154         is less than ssememalign.
156 2015-11-12  Tom de Vries  <tom@codesourcery.com>
158         * gen-pass-instances.awk (handle_line): Print parentheses and
159         pass_name explicitly.
161 2015-11-12  Tom de Vries  <tom@codesourcery.com>
163         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
164         and postfix vars.
166 2015-11-12  Tom de Vries  <tom@codesourcery.com>
168         * gen-pass-instances.awk (handle_line): Add comments.
170 2015-11-12  Tom de Vries  <tom@codesourcery.com>
172         * gen-pass-instances.awk (handle_line): Rename len_of_end to
173         len_of_close.
175 2015-11-12  Tom de Vries  <tom@codesourcery.com>
177         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
179 2015-11-12  Tom de Vries  <tom@codesourcery.com>
181         * gen-pass-instances.awk (handle_line): Restructure using early-out.
183 2015-11-12  Tom de Vries  <tom@codesourcery.com>
185         * gen-pass-instances.awk (handle_line): Unify semicolon use.
187 2015-11-12  Tom de Vries  <tom@codesourcery.com>
189         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
191 2015-11-12  Tom de Vries  <tom@codesourcery.com>
193         * gen-pass-instances.awk: Add emacs indent setting.
195 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
197         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
198         to match.pd.
199         Move Convert A/(B/C) to (A/B)*C to match.pd.
200         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
201         Move Optimize (X & (-A)) / A where A is a power of 2, to
202         X >> log2(A) to match.pd.
204         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
205         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
206         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
207         New simplifier.
208         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
210 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
212         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
213         variable.
214         (neon_vst2_lane<mode>): Likewise.
215         (neon_vld3_lane<mode>): Likewise.
216         (neon_vst3_lane<mode>): Likewise.
217         (neon_vld4_lane<mode>): Likewise.
218         (neon_vst4_lane<mode>): Likewise.
220 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
221             Sebastian Pop  <s.pop@samsung.com>
223         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
224         New member codegen_error
225         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
226         early return.
227         (translate_isl_ast_node_user): Early return in case of error.
228         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
229         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
230         (add_parameters_to_ivs_params): Remove macro.
231         (graphite_regenerate_ast_isl): Add if_region pointer to region.
232         * graphite-poly.c (new_poly_dr): Remove macro.
233         (print_pdr): Same.
234         (new_gimple_poly_bb): Same.
235         (free_gimple_poly_bb): Same.
236         (print_scop_params): Same.
237         * graphite-poly.h (struct poly_dr): Same.
238         (struct poly_bb): Add new_bb.
239         (gbb_from_bb): Remove dead code.
240         (pbb_from_bb): Same.
241         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
242         (parameter_index_in_region): Same.
243         (find_scop_parameters): Same.
244         (build_cross_bb_scalars_def): New.
245         (build_cross_bb_scalars_use): New.
246         (graphite_find_cross_bb_scalar_vars): New
247         (try_generate_gimple_bb): Reads and Writes.
248         (build_alias_set): Move.
249         (gather_bbs::before_dom_children): Gather bbs visited.
250         (build_scops): call build_alias_set.
251         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
252         (remove_simple_copy_phi): Delete.
253         (remove_invariant_phi): Delete.
254         (simple_copy_phi_p): Delete.
255         (reduction_phi_p): Delete.
256         (isl_id_for_dr): Remove unused param.
257         (parameter_index_in_region_1): Remove macro usage.
258         (set_scop_parameter_dim): Same.
259         (add_param_constraints): Same.
260         (add_conditions_to_constraints): Same
261         (build_scop_iteration_domain): Same.
262         (pdr_add_alias_set): Comment.
263         (add_scalar_version_numbers): New.
264         (build_poly_dr): ISL id.
265         (build_scop_drs): Move.
266         (build_poly_sr_1): Same.
267         (insert_stmts): Remove.
268         (build_poly_sr): New.
269         (new_pbb_from_pbb): Delete.
270         (insert_out_of_ssa_copy_on_edge): Delete.
271         (create_zero_dim_array): Delete.
272         (scalar_close_phi_node_p): Delete.
273         (propagate_expr_outside_region): Delete.
274         (rewrite_close_phi_out_of_ssa): Delete.
275         (rewrite_phi_out_of_ssa): Delete.
276         (rewrite_degenerate_phi): Delete.
277         (rewrite_reductions_out_of_ssa): Delete.
278         (rewrite_cross_bb_scalar_dependence): Delete.
279         (handle_scalar_deps_crossing_scop_limits):
280         (rewrite_cross_bb_scalar_deps): Delete.
281         (build_poly_scop): Remove calls to out-of-ssa functions.
282         * graphite.c (graphite_transform_loops): Early return in case of
283         codegen error.
284         * sese.c (debug_rename_map_1): Delete.
285         (debug_rename_map): Delete.
286         (sese_record_loop): Remove macro.
287         (build_sese_loop_nests): Same.
288         (new_sese_info): Same.
289         (free_sese_info): Same.
290         (sese_insert_phis_for_liveouts):
291         (is_loop_closed_ssa_use): New.
292         (number_of_phi_nodes): New.
293         (bb_contains_loop_close_phi_nodes): New.
294         (bb_contains_loop_phi_nodes): New.
295         (phi_uses_name): New.
296         (is_valid_rename):
297         (get_rename): Add old_bb and loop_phi for more precise matching of
298         exprs.
299         (set_rename): Pass region.
300         (later_of_the_two): New.
301         (gsi_insert_earliest): New.
302         (collect_all_ssa_names): New.
303         (substitute_ssa_name): New.
304         (rename_all_uses): New.
305         (get_rename_from_scev): New.
306         (rename_uses): Pass old_bb for more precise matching of exprs.
307         (get_def_bb_for_const): New.
308         (get_new_name): New.
309         (get_loc): New.
310         (get_edges): New.
311         (copy_loop_phi_args): New.
312         (copy_loop_phi_nodes): New.
313         (get_loop_init_value): New.
314         (find_init_value): New.
315         (find_init_value_close_phi): New.
316         (copy_loop_close_phi_args): New.
317         (copy_loop_close_phi_nodes): New.
318         (add_phi_arg_for_new_expr): New.
319         (copy_cond_phi_args): New.
320         (copy_cond_phi_nodes): New.
321         (copy_phi_nodes): New.
322         (should_copy_to_new_region): New.
323         (set_rename_for_each_def): New.
324         (graphite_copy_stmts_from_block): Early return in case of error.
325         (copy_bb_and_scalar_dependences): Same.
326         * sese.h (vec_find): New.
327         (SESE_PARAMS): Delete.
328         (SESE_LOOPS): Delete.
329         (SESE_LOOP_NEST): Delete.
330         (sese_contains_loop): Remove macro usage.
331         (sese_nb_params): Same.
332         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
334 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
336         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
337         isl_union_map_add_map on every pbb->schedule.
339 2015-11-11  Tom de Vries  <tom@codesourcery.com>
341         * tree-parloops.c (create_parallel_loop): Return void.
343 2015-11-11  Tom de Vries  <tom@codesourcery.com>
345         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
346         block only when needed.
348 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
350         * config/alpha/alpha-protos.h (print_operand): Remove.
351         (print_operand_address): Remove.
352         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
353         (PRINT_OPERAND_ADDRESS): Remove.
354         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
355         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
356         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
357         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
358         (print_operand_address): Rename to...
359         (alpha_print_operand_address): ...this and make static.
360         (print_operand): Rename to...
361         (alpha_print_operand): ...this and make static.
362         (alpha_print_operand_punct_valid_p): New static function.
364 2015-11-11  Richard Biener  <rguenther@suse.de>
366         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
367         Declare.
368         (vect_analyze_data_refs_alignment): Make loop vect specific.
369         (vect_verify_datarefs_alignment): Likewise.
370         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
371         Add missing continue.
372         (vect_compute_data_ref_alignment): Export.
373         (vect_compute_data_refs_alignment): Merge into...
374         (vect_analyze_data_refs_alignment): ... this.
375         (verify_data_ref_alignment): Split out from ...
376         (vect_verify_datarefs_alignment): ... here.
377         (vect_slp_analyze_and_verify_node_alignment): New function.
378         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
379         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
380         misplaced checks on alignment.
381         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
382         alignment analysis after SLP discovery and do it per instance.
383         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
384         bother to re-try using different vector sizes.
386 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
387             Cesar Philippidis  <cesar@codesourcery.com>
389         * gimplify.c (enum omp_region_type): Add ORT_ACC,
390         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
391         (gimple_add_tmp_var): Add ORT_ACC checks.
392         (gimplify_var_or_parm_decl): Likewise.
393         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
394         mask.
395         (omp_add_variable): Look in outer contexts for openacc and allow
396         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
397         checks.
398         (omp_notice_variable, omp_is_private, omp_check_private): Add
399         ORT_ACC checks.
400         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
401         Permit private openacc reductions.
402         (gimplify_oacc_cache): Specify ORT_ACC.
403         (gimplify_omp_workshare): Adjust OpenACC region types.
404         (gimplify_omp_target_update): Likewise.
405         * omp-low.c (scan_sharing_clauses): Remove Openacc
406         firstprivate sorry.
407         (lower-rec_input_clauses): Don't handle openacc firstprivate
408         references here.
409         (lower_omp_target): Emit initializers for openacc firstprivate vars.
411 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
413         PR target/67265
414         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
415         frame pointer for stack checking if non-call exceptions aren't used.
416         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
418 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
420         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
421         [LA]SHIFTRT.
423 2015-11-11  Martin Liska  <mliska@suse.cz>
424             Richard Biener  <rguenther@suse.de>
426         PR rtl-optimization/68287
427         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
428         number of elements.
430 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
432         * config/mips/mips.c (mips_breakable_sequence_p): New function.
433         (mips_break_sequence): New function.
434         (mips_reorg_process_insns): Use them. Use compact branches in selected
435         situations.
437 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
439         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
441 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
442             Jim Wilson  <wilson@gcc.gnu.org>
444         PR target/67305
445         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
446         be true and eliminable registers mentioned.
448 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
450         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
451         options.
452         * config/arc/arc-opts.h: Add ARCv2 CPUs.
453         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
454         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
455         situation, and store instructions with large offsets.
456         (arc_secondary_reload_conv): New function.
457         (arc_init): Add ARCv2 options.
458         (arc_conditional_register_usage): Select the proper register usage
459         for ARCv2 processors.
460         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
461         architecture.
462         (arc_compute_function_type): Likewise.
463         (arc_print_operand): Handle new ARCv2 punctuation characters.
464         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
465         bytes.
466         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
467         function.
468         (arc_reorg, arc_hazard): Use it.
469         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
470         __EM__.
471         (ASM_SPEC): Add ARCv2 options.
472         (TARGET_NORM): ARC HS has norm instructions by default.
473         (TARGET_OPTFPE): Use optimized floating point emulation for ARC
474         HS.
475         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
476         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
477         Define.
478         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
479         Likewise.
480         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
481         (TARGET_LP_WR_INTERLOCK): Likewise.
482         * config/arc/arc.md
483         (commutative_binary_mult_comparison_result_used, movsicc_insn)
484         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
485         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
486         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
487         Use it for ARCv2.
488         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
489         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
490         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
491         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
492         (extzvsi): New pattern.
493         * config/arc/arc.opt: New ARCv2 options.
494         * config/arc/arcEM.md: New file.
495         * config/arc/arcHS.md: Likewise.
496         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
497         values.
498         (Cm2): A signed 9-bit integer constant constraint.
499         (C62): An unsigned 6-bit integer constant constraint.
500         (C16): A signed 16-bit integer constant constraint.
501         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
502         (short_const_int_operand): New predicate.
503         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
504         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
505         -mcode-density and -mdiv-rem.
507 2015-11-11  Julia Koval  <julia.koval@intel.com>
509         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
511 2015-11-11  Julia Koval  <julia.koval@intel.com>
513         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
515 2015-11-11  Martin Liska  <mliska@suse.cz>
517         * gimple-ssa-strength-reduction.c (create_phi_basis):
518         Use auto_vec.
519         * passes.c (release_dump_file_name): New function.
520         (pass_init_dump_file): Used from this function.
521         (pass_fini_dump_file): Likewise.
522         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
523         * var-tracking.c (vt_initialize): Use pool_allocator.
525 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
526             Jiong Wang      <jiong.wang@arm.com>
528         PR tree-optimization/68234
529         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
530         node which estimiated to be VR_VARYING initially.
532 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
534         * regname.c (scan_rtx_reg): Check the matching number of consecutive
535         registers when tying chains.
536         (build_def_use): Move terminated_this_insn earlier in the function.
538 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
540         * configure.ac: Use = with test and not ==.
541         * configure: Regenerated.
543 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
545         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
546         machine asserts.  Update defines for 64 bit.
548 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
550         PR target/63870
551         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
552         lane number.
553         (neon_vst1_lane<mode>): Likewise.
554         (neon_vld2_lane<mode>): Likewise.
555         (neon_vst2_lane<mode>): Likewise.
556         (neon_vld3_lane<mode>): Likewise.
557         (neon_vst3_lane<mode>): Likewise.
558         (neon_vld4_lane<mode>): Likewise.
559         (neon_vst4_lane<mode>): Likewise.
561 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
563         PR target/63870
564         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
565         qualifier_struct_load_store_lane_index.
566         (arm_storestruct_lane_qualifiers) Likewise.
567         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
568         big-endian.
569         (neon_vst1_lane<mode>) Likewise.
570         (neon_vld2_lane<mode>) Likewise.
571         (neon_vst2_lane<mode>) Likewise.
572         (neon_vld3_lane<mode>) Likewise.
573         (neon_vst3_lane<mode>) Likewise.
574         (neon_vld4_lane<mode>) Likewise.
575         (neon_vst4_lane<mode>) Likewise.
577 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
579         PR target/63870
580         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
581         qualifier_struct_load_store_lane_index.
582         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
583         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
584         argument qualifiers.
585         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
586         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
588 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
590         * config/nvptx/nvptx.opt (moptimize): New flag.
591         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
592         default.
593         (nvptx_optimize_inner): New.
594         (nvptx_process_pars): Call it when optimizing.
595         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
597 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
599         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
600         Remove redundant code.
602 2015-11-10  Jeff Law  <law@redhat.com>
604         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
605         call to output_address.
606         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
607         Add unnamed machine_mode argument.
609 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
611         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
612         default to 64-bit.
614 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
616         * config/i386/i386.md (*movabs<mode>_1): Add explicit
617         size directives for -masm=intel.
618         (*movabs<mode>_2): Ditto.
620 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
622         * config/i386/i386.c (ix86_print_operand): Remove dead code that
623         tried to avoid (%rip) for call operands.
625 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
627         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
628         argument.  Do not use RIP relative addressing when no_rip is set.
629         (ix86_print_operand): Update call to ix86_print_operand_address_as.
630         (ix86_print_operand_address): Ditto.
631         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
632         absolute movabs operand 0.  Add square braces for -masm=intel.
633         (*movabs<mode>_2): Ditto for operand 1.
635 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
637         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
638         combine_vcvtf2i pattern.
640 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
642         * config/arm/arm.c (neon_valid_immediate): Remove integer
643         CONST_DOUBLE handling.  It should never occur.
645 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
647         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
648         (ATOMIC_LDOP): Likewise.
649         (atomic_ldop): Likewise.
650         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
651         (ATOMIC_LDOP): Likewise.
652         (atomic_ldop): Likewise.
654 2015-11-10  Martin Liska  <mliska@suse.cz>
656         * alloc-pool.h (allocate_raw): New function.
657         (operator new (size_t, object_allocator<T> &a)): Use the
658         function instead of object_allocator::allocate).
660 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
662         * config/i386/sse.md (HALFMASKMODE): New attribute.
663         (DOUBLEMASKMODE): New attribute.
664         (vec_pack_trunc_qi): New.
665         (vec_pack_trunc_<mode>): New.
666         (vec_unpacks_lo_hi): New.
667         (vec_unpacks_lo_si): New.
668         (vec_unpacks_lo_di): New.
669         (vec_unpacks_hi_hi): New.
670         (vec_unpacks_hi_<mode>): New.
672 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
674         * optabs.c (expand_binop_directly): Allow scalar mode for
675         vec_pack_trunc_optab.
676         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
677         boolean vector producers from pattern sequence when computing VF.
678         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
679         vect_recog_mask_conversion_pattern.
680         (search_type_for_mask): Choose the smallest
681         type if different size types are mixed.
682         (build_mask_conversion): New.
683         (vect_recog_mask_conversion_pattern): New.
684         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
685         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
686         load with pattern.
687         (vectorizable_conversion): Support boolean vectors.
688         (free_stmt_vec_info): Allow patterns for statements with no lhs.
689         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
691 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
693         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
694         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
695         Cast mask to FP mode if required.
696         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
697         (vcond_mask_<mode><avx512fmaskmodelower>): New.
698         (vcond_mask_<mode><sseintvecmodelower>): New.
699         (vcond_mask_<mode><sseintvecmodelower>): New.
700         (vcond_mask_v2div2di): New.
701         (vcond_mask_<mode><sseintvecmodelower>): New.
702         (vcond_mask_<mode><sseintvecmodelower>): New.
704 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
706         * optabs-query.h (get_vcond_mask_icode): New.
707         * optabs-tree.c (expand_vec_cond_expr_p): Use
708         get_vcond_mask_icode for VEC_COND_EXPR with mask.
709         * optabs.c (expand_vec_cond_mask_expr): New.
710         (expand_vec_cond_expr): Use get_vcond_mask_icode
711         when possible.
712         * optabs.def (vcond_mask_optab): New.
713         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
714         generate redundant comparison for COND_EXPR.
715         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
716         as a condition.
717         (vectorizable_condition): Likewise.
718         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
719         cond_exp with no embedded comparison.
720         (vect_build_slp_tree_1): Likewise.
722 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
724         * config/i386/sse.md (maskload<mode>): Rename to ...
725         (maskload<mode><sseintvecmodelower>): ... this.
726         (maskstore<mode>): Rename to ...
727         (maskstore<mode><sseintvecmodelower>): ... this.
728         (maskload<mode><avx512fmaskmodelower>): New.
729         (maskstore<mode><avx512fmaskmodelower>): New.
731 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
733         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
734         (expand_MASK_STORE): Adjust to maskstore optab changes.
735         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
736          Adjust to maskload, maskstore optab changes.
737         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
738         * optabs.def (maskload_optab): Transform into convert optab.
739         (maskstore_optab): Likewise.
740         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
741         can_vec_mask_load_store_p signature change.
742         (predicate_mem_writes): Use boolean mask.
743         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
744         can_vec_mask_load_store_p signature change.  Allow invariant masks.
745         (vectorizable_operation): Ignore type precision for boolean vectors.
747 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
749         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
750         (const_vector_mask_from_tree): New.
751         (const_vector_from_tree): Use const_vector_mask_from_tree
752         for boolean vectors.
753         * optabs-query.h (get_vec_cmp_icode): New.
754         * optabs-tree.c (expand_vec_cmp_expr_p): New.
755         * optabs-tree.h (expand_vec_cmp_expr_p): New.
756         * optabs.c (vector_compare_rtx): Add OPNO arg.
757         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
758         (expand_vec_cmp_expr): New.
759         * optabs.def (vec_cmp_optab): New.
760         (vec_cmpu_optab): New.
761         * optabs.h (expand_vec_cmp_expr): New.
762         * tree-vect-generic.c (expand_vector_comparison): Add vector
763         comparison optabs check.
764         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
765         operations for VF.  Add mask type computation.
766         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
767         (vectorizable_comparison): New.
768         (vect_analyze_stmt): Add vectorizable_comparison.
769         (vect_transform_stmt): Likewise.
770         (vect_init_vector): Support boolean vector invariants.
771         (vect_get_vec_def_for_operand): Add VECTYPE arg.
772         (vectorizable_condition): Directly provide vectype for invariants
773         used in comparison.
774         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
775         (enum vect_var_kind): Add vect_mask_var.
776         (enum stmt_vec_info_type): Add comparison_vec_info_type.
777         (vectorizable_comparison): New.
778         (vect_get_vec_def_for_operand): Add VECTYPE arg.
779         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
780         (vect_create_destination_var): Likewise.
781         * tree-vect-patterns.c (check_bool_pattern): Check fails
782         if we can vectorize comparison directly.
783         (search_type_for_mask): New.
784         (vect_recog_bool_pattern): Support cases when bool pattern
785         check fails.
786         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
787         comparison statements.
788         (vect_get_constant_vectors): Support boolean vector
789         constants.
790         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
791         (ix86_expand_int_vec_cmp): New.
792         (ix86_expand_fp_vec_cmp): New.
793         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
794         op_true and op_false.
795         (ix86_int_cmp_code_to_pcmp_immediate): New.
796         (ix86_fp_cmp_code_to_pcmp_immediate): New.
797         (ix86_cmp_code_to_pcmp_immediate): New.
798         (ix86_expand_mask_vec_cmp): New.
799         (ix86_expand_fp_vec_cmp): New.
800         (ix86_expand_int_sse_cmp): New.
801         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
802         (ix86_expand_int_vec_cmp): New.
803         (ix86_get_mask_mode): New.
804         (TARGET_VECTORIZE_GET_MASK_MODE): New.
805         * config/i386/sse.md (avx512fmaskmodelower): New.
806         (vec_cmp<mode><avx512fmaskmodelower>): New.
807         (vec_cmp<mode><sseintvecmodelower>): New.
808         (vec_cmpv2div2di): New.
809         (vec_cmpu<mode><avx512fmaskmodelower>): New.
810         (vec_cmpu<mode><sseintvecmodelower>): New.
811         (vec_cmpuv2div2di): New.
813 2015-11-10  Richard Biener  <rguenther@suse.de>
815         PR tree-optimization/68240
816         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
817         properly.
818         (visit_phi): For PHIs with just a single executable edge
819         take its value directly.
820         (expressions_equal_p): Handle VN_TOP properly.
822 2015-11-10  Richard Biener  <rguenther@suse.de>
824         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
825         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
826         conservatively.
828 2015-11-10  Richard Biener  <rguenther@suse.de>
830         PR tree-optimization/56118
831         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
832         cost favor vectorized version.
834 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
836         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
837         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
838         (neg_not_op): New code attribute.
840 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
842         * ifcvt.c (noce_try_inverse_constants): New function.
843         (noce_process_if_block): Call it.
844         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
845         * optabs.def (negcc_optab, notcc_optab): Declare.
846         * optabs.c (emit_conditional_neg_or_complement): New function.
847         * doc/tm.texi (Standard Names): Document negcc, notcc names.
849 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
851         PR rtl-optimization/68236
852         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
853         if insn_queue doesn't exist.
854         (haifa_sched_finish): Reset insn_queue to NULL.
856 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
858         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
859         (build_def_use): Initialize terminated_this_insn.
860         (find_best_rename_reg): Pick and check register from the tied chain.
861         (regrename_do_replace): Mark head as renamed.
862         (struct du_head *terminated_this_insn). New static variable.
863         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
864         * regrename.h (struct du_head): Add tied_chain, renamed members.
866 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
868         PR bootstrap/68256
869         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
870         Return false.
872 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
874         PR target/57845
875         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
876         not promote the mode for aggregate types.
878 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
880         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
881         * omp-low.c (build_oacc_routine_dims): New.
883 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
885         * config/rs6000/constraints.md (wF constraint): New constraints
886         for power9/toc fusion.
887         (wG constraint): Likewise.
889         * config/rs6000/predicates.md (u6bit_cint_operand): New
890         predicate, recognize 0..63.
891         (upper16_cint_operand): New predicate for power9 and toc fusion.
892         (fpr_reg_operand): Likewise.
893         (toc_fusion_or_p9_reg_operand): Likewise.
894         (toc_fusion_mem_raw): Likewise.
895         (toc_fusion_mem_wrapped): Likewise.
896         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
897         address range.
898         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
899         instead.
900         (fusion_addis_mem_combo_load): Add support for power9 fusion of
901         floating point loads, floating point stores, and gpr stores.
902         (fusion_addis_mem_combo_store): Likewise.
903         (fusion_offsettable_mem_operand): Likewise.
905         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
906         declarations.
907         (emit_fusion_load_store): Likewise.
908         (fusion_p9_p): Likewise.
909         (expand_fusion_p9_load): Likewise.
910         (expand_fusion_p9_store): Likewise.
911         (emit_fusion_p9_load): Likewise.
912         (emit_fusion_p9_store): Likewise.
913         (fusion_wrap_memory_address): Likewise.
915         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
916         elements for power9 fusion.
917         (rs6000_debug_print_mode): Rework debug information to print more
918         information about fusion.
919         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
920         support.
921         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
922         offsettable memory address.
923         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
924         (emit_fusion_gpr_load): Move most of the code from
925         emit_fusion_gpr_load into emit_fusion-addis that handles both
926         power8 and power9 fusion.
927         (emit_fusion_addis): Likewise.
928         (emit_fusion_load_store): Likewise.
929         (fusion_wrap_memory_address): Add support for TOC fusion.
930         (fusion_split_address): Likewise.
931         (fusion_p9_p): Add support for power9 fusion.
932         (expand_fusion_p9_load): Likewise.
933         (expand_fusion_p9_store): Likewise.
934         (emit_fusion_p9_load): Likewise.
935         (emit_fusion_p9_store): Likewise.
937         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
938         new instructions in ISA 3.0.
939         (TARGET_CTZ): Likewise.
940         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
941         (TARGET_TOC_FUSION_FP): Likewise.
943         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
944         fusion unspecs.
945         (UNSPEC_FUSION_ADDIS): Likewise.
946         (QHSI mode iterator): New iterator for power9 fusion.
947         (GPR_FUSION): Likewise.
948         (FPR_FUSION): Likewise.
949         (mod<mode>3): Add support for ISA 3.0
950         modulus instructions.
951         (umod<mode>3): Likewise.
952         (divmod peephole): Likewise.
953         (udivmod peephole): Likewise.
954         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
955         instructions.
956         (ctz<mode>2_h): Likewise.
957         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
958         (ashdi3_extswsli_dot): Likewise.
959         (ashdi3_extswsli_dot2): Likewise.
960         (power9 fusion splitter): New power9/toc fusion support.
961         (toc_fusionload_<mode>): Likewise.
962         (toc_fusionload_di): Likewise.
963         (fusion_gpr_load_<mode>): Update predicate function.
964         (power9 fusion peephole2s): New power9/toc fusion support.
965         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
966         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
967         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
968         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
969         (fusion_p9_<mode>_constant): Likewise.
971 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
973         * optabs.c (prepare_libcall_arg): New function.
974         (expand_fixed_convert): Add call to prepare_libcall_arg.
976 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
978         * sched-int.h (dump_rgn_dependencies_dot): Declare
979         * sched-rgn.c (dump_rgn_dependencies_dot): New function
980         * print-rtl.h (print_insn): Add prototype
982         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
983         * common.opt (-fsched-verbose): Set default value to 1.
984         * invoke.texi (-fsched-verbose): Update the option's description.
986 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
988         * config/visium/visium.h (PRINT_OPERAND): Delete.
989         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
990         (PRINT_OPERAND_ADDRESS): Likewise.
991         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
992         to...
993         (visium_print_operand_punct_valid_p): ...this.  New function.
994         (TARGET_PRINT_OPERAND): Define to...
995         (print_operand): Rename to...
996         (visium_print_operand): ...this.
997         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
998         (visium_output_address): Rename to...
999         (visium_print_operand_address): ...this.
1000         (print_operand_address): Delete.
1002 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1004         PR middle-end/68259
1005         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1006         Check that the type of the first operand is an aggregate type.
1008 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
1010         * omp-low.c: Fix some OpenACC comment typos.
1011         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1012         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1013         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1015 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
1017         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1019 2015-11-09  Jeff Law  <law@redhat.com>
1021         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1022         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
1023         Fix comment typo.
1025 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1026             Peter Bergner  <bergner@vnet.ibm.com>
1028         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1029         ISA 3.0 (power9).
1030         (-mpower9-vector): Likewise.
1031         (-mpower9-dform): Likewise.
1032         (-mpower9-minmax): Likewise.
1033         (-mtoc-fusion): Likewise.
1034         (-mmodulo): Likewise.
1035         (-mfloat128-hardware): Likewise.
1037         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1038         mask for ISA 3.0 (power9).
1039         (POWERPC_MASKS): Add new ISA 3.0 switches.
1040         (power9 cpu): Add power9 cpu.
1042         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
1043         power9.
1044         (ASM_CPU_SPEC): Likewise.
1045         (EXTRA_SPECS): Likewise.
1047         * config/rs6000/rs6000-opts.h (enum processor_type): Add
1048         PROCESSOR_POWER9.
1050         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
1051         power9.
1052         (rs6000_debug_reg_global): Add support for power9 fusion.
1053         (rs6000_setup_reg_addr_masks): Cache mode size.
1054         (rs6000_option_override_internal): Until real power9 tuning is
1055         added, use -mtune=power8 for -mcpu=power9.
1056         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1057         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1058         of Altivec registers.
1059         (rs6000_option_override_internal): Add support for ISA 3.0
1060         switches.
1061         (rs6000_loop_align): Add support for power9 cpu.
1062         (rs6000_file_start): Likewise.
1063         (rs6000_adjust_cost): Likewise.
1064         (rs6000_issue_rate): Likewise.
1065         (insn_must_be_first_in_group): Likewise.
1066         (insn_must_be_last_in_group): Likewise.
1067         (force_new_group): Likewise.
1068         (rs6000_register_move_cost): Likewise.
1069         (rs6000_opt_masks): Likewise.
1071         * config/rs6000/rs6000.md (cpu attribute): Add power9.
1072         * config/rs6000/rs6000-tables.opt: Regenerate.
1074         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1075         _ARCH_PWR9 if power9 support is available.
1077         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1078         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1080         * configure.ac: Determine if the assembler supports the ISA 3.0
1081         instructions.
1082         * config.in (HAVE_AS_POWER9): Likewise.
1083         * configure: Regenerate.
1085         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1086         switches.
1088 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1090         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1091         Remove integer CONST_DOUBLE handling.  It should never occur.
1093 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1095         PR target/68129
1096         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1097         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1098         Delete VOIDmode case.  Assert that mode is not VOIDmode.
1099         * config/aarch64/predicates.md (const0_operand): Remove const_double
1100         match.
1102 2015-11-09  Martin Liska  <mliska@suse.cz>
1104         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1105         body_info release function.
1106         * ipa-prop.c (ipa_release_body_info): New function.
1107         (ipa_analyze_node): Call the function.
1108         (ipa_node_params::~ipa_node_params): Release known_csts.
1109         * ipa-prop.h (ipa_release_body_info): Declare.
1111 2015-11-09  Martin Liska  <mliska@suse.cz>
1113         * gcc.c (record_temp_file): Release name string.
1114         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1115         of vec.
1116         * lra-lives.c (free_live_range_list): Utilize
1117         lra_live_range_pool for allocation and deallocation.
1118         (create_live_range): Likewise.
1119         (copy_live_range): Likewise.
1120         (lra_merge_live_ranges): Likewise.
1121         (remove_some_program_points_and_update_live_ranges): Likewise.
1122         (lra_create_live_ranges_1): Release point_freq_vec that can
1123         be not freed from previous iteration of the function.
1124         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1125         vec.
1126         * tree-sra.c (sra_deinitialize): Release all vectors in
1127         base_access_vec.
1128         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1129         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1130         Release edge_info for a removed edge.
1131         (thread_through_all_blocks): Free region vector.
1132         * tree-ssa.h (free_dom_edge_info): Declare function extern.
1134 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
1136         * optabs.c (expand_vec_cond_expr): Always get sign from type.
1137         * tree.c (wide_int_to_tree): Support negative values for boolean.
1138         (build_nonstandard_boolean_type): Use signed type for booleans.
1140 2015-11-09  Richard Biener  <rguenther@suse.de>
1142         PR tree-optimization/68248
1143         * tree-vect-generic.c (expand_vector_operations_1): Handle
1144         scalar rhs2.
1146 2015-11-09  Richard Biener  <rguenther@suse.de>
1148         PR tree-optimization/56118
1149         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1150         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1151         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1152         function.
1153         (vect_slp_analyze_data_ref_dependences): Instead of computing
1154         all dependences of the region DRs just analyze the code motions
1155         SLP vectorization will perform.  Remove SLP instances that
1156         cannot have their store/load motions applied.
1157         (vect_analyze_data_refs): Allow DRs without a vectype
1158         in BB vectorization.
1160 2015-11-09  Julian Brown  <julian@codesourcery.com>
1162         * final.c (output_asm_insn): Pass VOIDmode to output_address.
1163         (output_address): Add MODE argument. Pass to print_operand_address
1164         hook.
1165         * targhooks.c (default_print_operand_address): Add MODE argument.
1166         * targhooks.h (default_print_operand_address): Update prototype.
1167         * output.h (output_address): Update prototype.
1168         * target.def (print_operand_address): Add MODE argument.
1169         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1170         output_address.
1171         (print_operand): Pass access mode to output_address.
1172         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1173         argument.
1174         (mcore_print_operand): Update calls to mcore_print_operand_address.
1175         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1176         output_address.
1177         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1178         output_address.
1179         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1180         global.
1181         (tilegx_print_operand): Don't set above global. Update calls to
1182         output_address.
1183         (tilegx_print_operand_address): Add MODE argument. Use instead of
1184         output_memory_reference_mode global.
1185         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1186         (frv_print_operand): Pass mode to frv_print_operand_address calls.
1187         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1188         output_address.
1189         * config/cris/cris.c (cris_print_operand_address): Add MODE
1190         argument.
1191         (cris_print_operand): Pass mode to output_address calls.
1192         * config/spu/spu.c (print_operand): Pass mode to output_address
1193         calls.
1194         * config/aarch64/aarch64.h (aarch64_print_operand)
1195         (aarch64_print_operand_address): Remove prototypes.
1196         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1197         global.
1198         (aarch64_print_operand): Make static. Update calls to
1199         output_address.
1200         (aarch64_print_operand_address): Add MODE argument. Use instead of
1201         aarch64_memory_reference_mode global.
1202         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1203         hooks.
1204         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1205         Delete macro definitions.
1206         * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1207         calls.
1208         * config/xtensa/xtensa.c (print_operand): Pass mode in
1209         output_address calls.
1210         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1211         argument.
1212         (h83000_print_operand): Update calls to h8300_print_operand_address
1213         and output_address.
1214         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1215         argument.
1216         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1217         global.
1218         (tilepro_print_operand): Pass mode to output_address.
1219         (tilepro_print_operand_address): Add MODE argument. Use instead of
1220         output_memory_reference_mode.
1221         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1222         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1223         to output_address calls.
1224         (nvptx_print_operand_address): Add MODE argument.
1225         * config/alpha/alpha.c (print_operand): Pass mode argument in
1226         output_address calls.
1227         * config/m68k/m68k.c (print_operand): Pass mode argument in
1228         output_address call.
1229         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1230         (avr_print_operand): Update calls to avr_print_operand_address.
1231         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1232         argument. Update calls to output_address.
1233         (sparc_print_operand): Pass mode to output_address.
1234         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1235         argument.
1236         (iq2000_print_operand): Pass mode in output_address calls.
1237         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1238         MODE argument.
1239         (xstormy16_print_operand): Pass mode to
1240         xstormy16_print_operand_address calls.
1241         * config/mips/mips.c (mips_print_operand): Update calls to
1242         output_address.
1243         (mips_print_operand_address): Add MODE argument.
1244         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1245         to output_address.
1246         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1247         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1248         output_address.
1249         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1250         (rx_print_operand): Update calls to output_address,
1251         rx_print_operand_address.
1252         * config/nds32/nds32.c (nds32_print_operand): Update calls to
1253         output_address.
1254         (nds32_print_operand_address): Add MODE argument.
1255         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1256         output_address calls.
1257         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1258         output_address call.
1259         (c6x_print_address_operand): Update calls to output_address.
1260         (c6x_print_operand_address): Pass mode to above.
1261         * config/v850/v850.c (v850_print_operand_address): Add MODE
1262         argument.
1263         (v850_print_operand): Pass mode to v850_print_operand_address,
1264         output_address.
1265         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1266         argument.
1267         (mmix_print_operand): Pass mode in output_address calls.
1268         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1269         (sh_print_operand): Pass mem mode to output_address,
1270         sh_print_operand_address.
1271         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1272         argument.
1273         (cr16_print_operand): Pass mode to output_address,
1274         cr16_print_operand_address.
1275         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1276         output_address.
1277         * config/microblaze/microblaze.c (print_operand): Pass mode to
1278         output_address.
1279         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1280         output_address.
1281         (nios2_print_operand_address): Add MODE argument. Update call to
1282         nios2_print_operand_address.
1283         * config/s390/s390.c (print_operand): Pass mode to output_address.
1284         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1285         argument.
1286         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1287         output_address.
1288         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1289         Use instead of output_memory_reference_mode.
1290         (output_memory_reference_mode): Delete global.
1291         (arm_print_operand): Pass mem mode to output_address.
1292         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1293         argument.
1294         (m32r_print_operand): Pass mode to output_address.
1295         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1296         argument.
1297         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1298         * config/i386/i386.c (ix86_print_operand): Pass mode to
1299         output_address calls.
1300         (ix86_print_operand_address): Add MODE argument.
1302 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1304         PR middle-end/68251
1305         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1306         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1307         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1308         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1310 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1312         PR rtl-optimization/67749
1313         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1314         case before emitting the two blocks.  Instead modify the register
1315         in the corresponding final insn of the basic block.
1317 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1319         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1320         assembler syntax.
1321         Support Solaris ld.
1322         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1324         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1325         HAVE_INITFINI_ARRAY_SUPPORT.
1326         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1327         value.
1329         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1330         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1331         Don't check HAVE_AS_SPARC_NOBITS.
1332         Heed SECTION_NOTYPE.
1334         * configure: Regenerate.
1335         * config.in: Regenerate.
1337 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1339         PR middle-end/68253
1340         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1342 2015-11-09  Richard Henderson  <rth@redhat.com>
1344         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1345         __SEG_GS, __SEG_TLS.
1346         (ix86_register_pragmas): Register address spaces __seg_fs,
1347         __seg_gs, __seg_tls.
1348         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1349         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1350         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1351         * config/i386/i386.c (ix86_decompose_address): Likewise.
1352         (ix86_legitimate_address_p): Likewise.
1353         (memory_address_length): Likewise.  Check mem address space too.
1354         (ix86_print_operand): Use ix86_print_operand_address_as.
1355         (ix86_print_operand_address_as): Rename from
1356         ix86_print_operand_address, add new addr_space_t parameter.
1357         Validate that either the parameter or the ix86_address segment
1358         is default address space.  Handle ADDR_SPACE_SEG_TLS.
1359         (ix86_print_operand_address): New.
1360         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1361         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1362         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1363         (ix86_addr_space_zero_address_valid): New.
1364         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1365         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1366         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1367         * config/i386/predicates.md (address_no_seg_operand): Likewise.
1368         (vsib_address_operand): Likewise.
1369         (address_mpx_no_base_operand): Likewise.
1370         (address_mpx_no_index_operand): Likewise.
1371         * doc/extend.texi (x86 Named Address Spaces): New section.
1373         * config/i386/i386.c (ix86_check_no_addr_space): New.
1374         (decide_alg): Add have_as parameter.
1375         (alg_usable_p): Likewise; disable rep algorithms if set.
1376         (ix86_expand_set_or_movmem): Notice if either MEM has a
1377         non-default address space.
1378         (ix86_expand_strlen): Likewise.
1379         * config/i386/i386.md (strmov, strset): Likewise.
1380         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1381         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1382         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1383         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1384         *cmpstrnqi_1, *strlenqi_1): Likewise.
1386         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1387         (*movabs<mode>_2): Likewise.
1389         * dwarf2out.c (modified_type_die): Pass the address space number
1390         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1391         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1392         * targhooks.c (default_addr_space_debug): New.
1393         * targhooks.h (default_addr_space_debug): Declare.
1394         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1395         * doc/tm.texi: Rebuild.
1397         * gimple.c (check_loadstore): Return false when 0 is a valid address.
1398         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1399         null when 0 is valid in the source address space.
1400         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1401         * targhooks.c (default_addr_space_zero_address_valid): New.
1402         * targhooks.h (default_addr_space_zero_address_valid): Declare.
1403         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1404         * doc/tm.texi: Rebuild.
1406         * cselib.c (add_mem_for_addr): Compare address spaces when
1407         matching memories.
1408         (cselib_lookup_mem): Likewise.
1409         * fold-const.c (operand_equal_p): Check address spaces of
1410         pointer types before checking integer constants.
1412         PR tree-opt/66768
1413         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1414         the correct type for the base.
1416 2015-11-09  Jeff Law  <law@redhat.com>
1418         * tree-into-ssa.c (names_to_release): No longer static.
1419         * tree-into-ssa.h (names_to_release): Declare.
1420         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1421         (release_free_names_and_compact_live_names): New function extracted
1422         from pass_release_ssa_names::execute.
1423         (pass_release_ssa_names::execute): Use it.
1425 2015-11-09  Alan Modra  <amodra@gmail.com>
1427         * gensupport.c (add_mnemonic_string): Make len param a size_t.
1428         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
1429         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
1430         return value.
1432 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
1434         PR rtl-optimization/68182
1435         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1436         branch with only one successor just like unconditional branches.
1438 2015-11-08  Jeff Law  <law@redhat.com>
1440         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1441         non-FSM path has no edges marked with EDGE_DFS_BACK.
1442         (ssa_redirect_edges): No longer call mark_loop_for_removal.
1443         (thread_single_edge, def_split_header_continue_p): Remove.
1444         (bb_ends_with_multiway_branch): Likewise.
1445         (thread_through_loop_header): Remove cases of threading from
1446         latch through the header.  Simplify knowing we won't thread
1447         the latch.
1448         (thread_through_all_blocks): Simplify knowing that only the FSM
1449         threader needs to handle backedges.
1451 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1453         * doc/extend.texi (type attributes): Document scalar_storage_order.
1454         (Structure-Packing Pragmas): Rename into...
1455         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
1456         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1457         (Warnings): Document -Wno-scalar-storage-order.
1458         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1459         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1460         extract_bit_field and store_bit_field.
1461         (initialize_argument_information): Adjust call to store_expr.
1462         (load_register_parameters): Adjust call to extract_bit_field.
1463         * expmed.c (check_reverse_storage_order_support): New function.
1464         (check_reverse_float_storage_order_support): Likewise.
1465         (flip_storage_order): Likewise.
1466         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
1467         of the value if it is true.  Pass REVERSE to recursive call after
1468         adjusting the target offset.
1469         Do not use extraction or movstrict instruction if REVERSE is true.
1470         Pass REVERSE to store_fixed_bit_field.
1471         (store_bit_field): Add REVERSE parameter and pass to it to above.
1472         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1473         store_split_bit_field and store_fixed_bit_field_1.
1474         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
1475         order of the value if it is true and adjust the target offset.
1476         (store_split_bit_field): Add REVERSE parameter and pass it to
1477         store_fixed_bit_field.  Adjust the target offset if it is true.
1478         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
1479         of the value if it is true.  Pass REVERSE to recursive call after
1480         adjusting the target offset.
1481         Do not use extraction or subreg instruction if REVERSE is true.
1482         Pass REVERSE to extract_fixed_bit_field.
1483         (extract_bit_field): Add REVERSE parameter and pass to it to above.
1484         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1485         extract_split_bit_field and extract_fixed_bit_field_1.
1486         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
1487         order of the value if it is true and adjust the target offset.
1488         (extract_split_bit_field): Add REVERSE parameter and pass it to
1489         extract_fixed_bit_field.  Adjust the target offset if it is true.
1490         * expmed.h (flip_storage_order): Declare.
1491         (store_bit_field): Adjust prototype.
1492         (extract_bit_field): Likewise.
1493         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1494         (emit_group_store): Adjust call to store_bit_field.
1495         (copy_blkmode_from_reg): Likewise.
1496         (copy_blkmode_to_reg): Likewise.
1497         (write_complex_part): Likewise.
1498         (read_complex_part): Likewise.
1499         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
1500         that it isn't true if the target is a register.
1501         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1502         and flip the storage order of the value.
1503         <BIT_IOR_EXPR>: Flip the storage order of the value.
1504         (get_bit_range): Adjust call to get_inner_reference.
1505         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1506         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
1507         with reverse storage order.
1508         (store_expr_with_bounds): Add REVERSE parameter and pass it to
1509         recursive calls and call to store_bit_field.  Force the value into a
1510         register if it is true and then flip the storage order of the value.
1511         (store_expr): Add REVERSE parameter and pass it to above.
1512         (categorize_ctor_elements_1): Adjust call to
1513         initializer_constant_valid_p.
1514         (store_constructor_field): Add REVERSE parameter and pass it to
1515         recursive calls and call to store_field.
1516         (store_constructor): Add REVERSE parameter and pass it to calls to
1517         store_constructor_field and store_expr.  Set it to true for an
1518         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1519         (store_field): Add REVERSE parameter and pass it to recursive calls
1520         and calls to store_expr and store_bit_field.  Temporarily flip the
1521         storage order of the value with record type and integral mode and
1522         adjust the shift if it is true.
1523         (get_inner_reference): Add PREVERSEP parameter and set it to true
1524         upon encoutering a reference with reverse storage order.
1525         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1526         (expand_constructor): Adjust call to store_constructor.
1527         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1528         of the union type to store_expr in the MEM case and assert that it
1529         isn't set in the REG case.  Adjust call to store_field.
1530         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1531         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1532         get_inner_reference and extract_bit_field. Temporarily flip the
1533         storage order of the value with record type and integral mode and
1534         adjust the shift if it is true.  Flip the storage order of the value
1535         at the end if it is true.
1536         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1537         get_inner_reference.  Do not fetch an inner reference if it is true.
1538         * expr.h (store_expr_with_bounds): Ajust prototype.
1539         (store_expr): Likewise.
1540         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1541         REF_REVERSE_STORAGE_ORDER on the reference according to it.
1542         (optimize_bit_field_compare): Deal with reverse storage order.
1543         Adjust calls to get_inner_reference and make_bit_field_ref.
1544         (decode_field_reference): Add PREVERSEP parameter and adjust call to
1545         get_inner_reference.
1546         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
1547         to decode_field_reference and make_bit_field_ref.
1548         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1549         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1550         (fold_comparison): Adjust call to get_inner_reference.
1551         (split_address_to_core_and_offset): Adjust call to
1552         get_inner_reference.
1553         * gimple-expr.c (useless_type_conversion_p): Return false for array
1554         types with different TYPE_REVERSE_STORAGE_ORDER flag.
1555         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1556         REF_REVERSE_STORAGE_ORDER flag.
1557         * lto-streamer-out.c (hash_tree): Deal with
1558         TYPE_REVERSE_STORAGE_ORDER.
1559         * output.h (assemble_real): Adjust prototype.
1560         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1561         * stor-layout.c (finish_record_layout): Propagate the
1562         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1563         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1564         (TYPE_SATURATING): Adjust.
1565         (REF_REVERSE_STORAGE_ORDER): Document.
1566         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1567         set it to true upon encoutering a reference with reverse storage
1568         order.
1569         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1570         * tree-inline.c (remap_gimple_op_r): Propagate the
1571         REF_REVERSE_STORAGE_ORDER flag.
1572         (copy_tree_body_r): Likewise.
1573         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1574         store_expr.
1575         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1576         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1577         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1578         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1579         REF_REVERSE_STORAGE_ORDER flag.
1580         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1581         (gimple_canonical_types_compatible_p): Likewise.
1582         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1583         (TYPE_SATURATING): Adjust.
1584         (REF_REVERSE_STORAGE_ORDER): New flag.
1585         (reverse_storage_order_for_component_p): New inline predicate.
1586         (storage_order_barrier_p): Likewise.
1587         (get_inner_reference): Adjust prototype.
1588         * varasm.c: Include expmed.h.
1589         (assemble_variable_contents): Adjust call to output_constant.
1590         (assemble_real): Add REVERSE parameter.  Flip the storage
1591         order of the value if REVERSE is true.
1592         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1593         (assemble_constant_contents): Adjust call to output_constant.
1594         (output_constant_pool_2): Adjust call to assemble_real.
1595         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1596         TYPE_REVERSE_STORAGE_ORDER.
1597         (initializer_constant_valid_p): Add REVERSE parameter.
1598         (output_constant): Add REVERSE parameter.
1599         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1600         <REAL_TYPE>: Adjust call to assemble_real.
1601         <COMPLEX_TYPE>: Pass it to recursive calls.
1602         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
1603         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
1604         (struct oc_local_state): Add REVERSE field.
1605         (output_constructor_array_range): Adjust calls to output_constant.
1606         (output_constructor_regular_field): Likewise.
1607         (output_constructor_bitfield): Adjust call to output_constructor.
1608         Flip the storage order of the value if REVERSE is true.
1609         (output_constructor): Add REVERSE parameter.  Set it to true for an
1610         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
1611         output_constructor_bitfield.
1612         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1613         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1614         * builtins.c (get_object_alignment_2): Likewise.
1615         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1616         and get_ref_base_and_extent.
1617         * dbxout.c (dbxout_expand_expr): Likewise.
1618         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1619         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1620         (loc_list_from_tree): Likewise.
1621         (fortran_common): Likewise.
1622         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1623         get_ref_base_and_extent.
1624         (get_base_constructor): Likewise.
1625         (fold_const_aggregate_ref_1): Likewise.
1626         * gimple-laddress.c (pass_laddress::execute): Adjust call to
1627         get_inner_reference.
1628         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1629         get_inner_reference and bail out on reverse storage order.
1630         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1631         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1632         build_ref_for_offset.
1633         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1634         get_ref_base_and_extent.
1635         (ipa_polymorphic_call_context): Likewise.
1636         (extr_type_from_vtbl_ptr_store): Likewise.
1637         (check_stmt_for_type_change): Likewise.
1638         (get_dynamic_type): Likewise.
1639         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1640         get_ref_base_and_extent.
1641         (compute_complex_assign_jump_func): Likewise.
1642         (get_ancestor_addr_info): Likewise.
1643         (compute_known_type_jump_func): Likewise.
1644         (determine_known_aggregate_parts): Likewise.
1645         (ipa_get_adjustment_candidate): Likewise.
1646         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1647         MEM_REF.
1648         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1649         (build_ref_for_offset): Adjust prototype.
1650         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1651         get_inner_reference.
1652         * tree-affine.c (tree_to_aff_combination): Adjust call to
1653         get_inner_reference.
1654         (get_inner_reference_aff): Likewise.
1655         * tree-data-ref.c (split_constant_offset_1): Likewise.
1656         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
1657         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1658         get_inner_reference.
1659         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1660         (dump_access): Print new fields.
1661         (create_access): Adjust call to get_ref_base_and_extent and set the
1662         REVERSE flag according to the result.
1663         (completely_scalarize_record): Set the REVERSE flag.
1664         (scalarize_elem): Add REVERSE parameter.
1665         (build_access_from_expr_1): Preserve storage order barriers.
1666         (build_accesses_from_assign): Likewise.
1667         (build_ref_for_offset): Add REVERSE parameter and set the
1668         REF_REVERSE_STORAGE_ORDER flag accordingly.
1669         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1670         the REF_REVERSE_STORAGE_ORDER flag if there are components.
1671         (analyze_access_subtree): Likewise.
1672         (create_artificial_child_access): Set the REVERSE flag.
1673         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1674         (turn_representatives_into_adjustments): Propagate REVERSE flag.
1675         (ipa_sra_check_caller): Adjust call to get_inner_reference.
1676         * tree-ssa-alias.c (ao_ref_base): Adjust call to
1677         get_ref_base_and_extent.
1678         (aliasing_component_refs_p): Likewise.
1679         (stmt_kills_ref_p_1): Likewise.
1680         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1681         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1682         Return true if reverse storage order.
1683         <BIT_FIELD_REF>: Likewise.
1684         <COMPONENT_REF>: Likewise.
1685         <ARRAY_REF>: Likewise.
1686         <ARRAY_RANGE_REF>: Likewise.
1687         (split_address_cost): Likewise.  Bail out if reverse storage order.
1688         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1689         get_inner_reference.  Bail out if reverse storage order.
1690         (bswap_replace): Adjust call to get_inner_reference.
1691         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1692         the REF_REVERSE_STORAGE_ORDER flag.
1693         <BIT_FIELD_REF>: Likewise.
1694         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1695         barriers.
1696         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1697         to the REF_REVERSE_STORAGE_ORDER flag.
1698         <BIT_FIELD_REF>: Likewise.
1699         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1700         (contains_storage_order_barrier_p): New predicate.
1701         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1702         Punt on storage order barriers if necessary.
1703         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1704         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1705         call to get_ref_base_and_extent.
1706         (do_structure_copy): Likewise.
1707         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1708         get_inner_reference.
1709         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage
1710         order.
1711         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1712         * ubsan.c (instrument_bool_enum_load): Likewise.
1713         (instrument_object_size): Likewise.
1714         * var-tracking.c (track_expr_p): Adjust call to
1715         get_ref_base_and_extent
1716         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1717         get_inner_reference.
1718         * config/s390/s390.c (s390_expand_atomic): Adjust call to
1719         store_bit_field.
1720         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1721         extract_bit_field.
1722         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1724 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
1726         * config/sparc/sparc.opt (mfix-at697f): Add final period.
1728 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
1730         PR rtl-optimization/67864
1731         * common/config/i386/i386-common.c (ix86_option_optimization_table)
1732         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1733         at -Os and up.
1735 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1737         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1738         internal functions.
1740 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1742         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1743         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1745 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1747         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1748         * internal-fn.c: Don't undef it here.
1749         * tree-core.h: Likewise.
1751 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1753         * builtins.c (fold_builtin_nan): Delete.
1754         (fold_builtin_memcmp): Remove case where both arguments are constant.
1755         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1756         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1757         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1758         * fold-const-call.c: Include fold-const.h.
1759         (host_size_t_cst_p): New function.
1760         (build_cmp_result, fold_const_builtin_nan): Likewise.
1761         (fold_const_call_1): New function, split out from...
1762         (fold_const_call): ...here (for all three interfaces).  Handle
1763         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1765 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1767         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1768         (fold_builtin_1): Don't call them.
1769         * fold-const-call.c: Include tm.h.
1770         (fold_const_call_ss): New variant for integer-to-integer folds.
1771         (fold_const_call): Call it.
1773 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1775         * builtins.c (fold_builtin_classify): Move constant cases to...
1776         * fold-const-call.c (fold_const_call_ss): ...here.
1778 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1780         * builtins.h (c_getstr): Move to...
1781         * fold-const.h (c_getstr): ...here.
1782         * builtins.c (c_getstr): Move to...
1783         * fold-const.c (c_getstr): ...here.
1785 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1787         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1788         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1790 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
1792         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1793         the dominance info; free it if we can't.
1794         (pass_call_cdce::execute): Don't free the dominance info here.
1796 2015-11-06  Jeff Law <law@redhat.com>
1798         * tree-ssa-threadedge.c (dummy_simplify): Remove.
1799         (thread_around_empty_blocks): Remove backedge_seen_p argument.
1800         If we thread to a backedge, then return false.  Update recursive
1801         call to eliminate backedge_seen_p argument.
1802         (thread_through_normal_block): Remove backedge_seen_p argument.
1803         Remove backedge_seen_p argument from calls to
1804         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
1805         If we thread to a backedge, then return 0.
1806         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
1807         pass it to thread_through_normal_block or thread_through_empty_blocks.
1808         For joiner handling, if we see a backedge, do not try normal
1809         threading.
1811 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1813         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1814         * graphite-poly.c (new_scop): Initialize original_schedule.
1815         (free_scop): Free original_schedule.
1816         * graphite-poly.h (struct scop): Add field original_schedule.
1817         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1818         (build_poly_scop): Call build_scop_original_schedule.
1820 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1822         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1823         (build_pbb_minimal_scattering_polyhedrons): New.
1824         (build_scop_scattering): Remove.
1825         (build_scop_minimal_scattering): New.
1826         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1827         (build_poly_scop): Call build_scop_minimal_scattering.
1829 2015-11-06  Jeff Law <law@redhat.com>
1831         * cfg-flags.def (IGNORE): New edge flag.
1832         * tree-vrp.c (identify_jump_threads): Mark and clear edges
1833         scheduled for removal with EDGE_IGNORE around call into
1834         jump threader.  Do no thread across edges with EDGE_IGNORE,
1835         but do allow threading across those with EDGE_DFS_BACK.
1837 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
1839         * doc/md.texi (multi-alternative constraints): Don't document
1840         alternatives inherently tied to reload for the user documentation.
1842 2015-11-06  Michael Collison  <michael.collison@linaro.org
1843             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1845         Revert:
1846         2015-08-01  Michael Collison  <michael.collison@linaro.org
1847                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1849         * config/arm/arm.md (*arm_smin_cmp): New pattern.
1850         (*arm_umin_cmp): Likewise.
1852 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
1854         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1855         wording.
1856         * omp-low.c (check_omp_nesting_restrictions): Update for the
1857         various new OpenMP 4.5 nesting restrictions, clarified
1858         nesting glossary, closely nested region relationship clarified
1859         to mean explicit or implicit parallel regions (target/teams),
1860         use %</%> or %qs where appropriate.
1862 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1863             Sebastian Pop  <s.pop@samsung.com>
1865         * graphite-scop-detection.c (loop_is_valid_scop): Call
1866         optimize_loop_nest_for_speed_p.
1868 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1869             Sebastian Pop  <s.pop@samsung.com>
1871         * graphite-optimize-isl.c (optimize_isl): Call
1872         isl_options_set_schedule_maximize_band_depth.
1874 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
1875             Sebastian Pop  <s.pop@samsung.com>
1877         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1878         and exit edges should not be a part of irreducible loop.
1879         (scop_detection::can_represent_loop_1): Loops should not be
1880         irreducible.
1881         (scop_detection::harmful_stmt_in_region): All the basic block
1882         should belong to reducible loops.
1884 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
1886         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1887         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1888         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1889         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1890         (aarch64_tbx4v8qi): Rename to...
1891         aarch64_tbx4<mode>): ... this.
1892         (aarch64_qtbl3<mode>): New pattern.
1893         (aarch64_qtbx3<mode>): New pattern.
1894         (aarch64_qtbl4<mode>): New pattern.
1895         (aarch64_qtbx4<mode>): New pattern.
1896         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1897         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1898         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1899         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1900         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1901         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1902         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1903         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1904         functions.
1906 2015-11-06  Mike Stump  <mikestump@comcast.net>
1908         PR debug/66728
1909         * dwarf2out.c (get_full_len): Return a value based upon the actual
1910         precision needed for the value.
1911         (add_const_value_attribute): Use a maximal wide-int for
1912         CONST_WIDE_INTs, not VOIDmode.
1913         (output_die): Don't ever output NULL with printf.
1915         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1916         BLKmode nor VOIDmode values.
1918 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
1920         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1921         and "range2".
1922         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1923         * diagnostic-core.h (warning_at_rich_loc): New declaration.
1924         (error_at_rich_loc): New declaration.
1925         (permerror_at_rich_loc): New declaration.
1926         (inform_at_rich_loc): New declaration.
1927         * diagnostic-show-locus.c (adjust_line): Delete.
1928         (struct point_state): New struct.
1929         (class colorizer): New class.
1930         (class layout_point): New class.
1931         (class layout_range): New class.
1932         (struct line_bounds): New.
1933         (class layout): New class.
1934         (colorizer::colorizer): New ctor.
1935         (colorizer::~colorizer): New dtor.
1936         (layout::layout): New ctor.
1937         (layout::print_source_line): New method.
1938         (layout::print_annotation_line): New method.
1939         (layout::get_state_at_point): New method.
1940         (layout::get_x_bound_for_row): New method.
1941         (diagnostic_show_locus): Reimplement in terms of class layout.
1942         (diagnostic_print_caret_line): Delete.
1943         * diagnostic.c (diagnostic_initialize): Replace
1944         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1945         (diagnostic_set_info_translated): Convert param from location_t
1946         to rich_location *.  Eliminate calls to set_location on the
1947         message in favor of storing the rich_location ptr there.
1948         (diagnostic_set_info): Convert param from location_t to
1949         rich_location *.
1950         (diagnostic_build_prefix): Break out array into...
1951         (diagnostic_kind_color): New variable.
1952         (diagnostic_get_color_for_kind): New function.
1953         (diagnostic_report_diagnostic): Colorize the option_text
1954         using the color for the severity.
1955         (diagnostic_append_note): Update for change in signature of
1956         diagnostic_set_info.
1957         (diagnostic_append_note_at_rich_loc): New function.
1958         (emit_diagnostic): Update for change in signature of
1959         diagnostic_set_info.
1960         (inform): Likewise.
1961         (inform_at_rich_loc): New function.
1962         (inform_n): Update for change in signature of diagnostic_set_info.
1963         (warning): Likewise.
1964         (warning_at): Likewise.
1965         (warning_at_rich_loc): New function.
1966         (warning_n): Update for change in signature of diagnostic_set_info.
1967         (pedwarn): Likewise.
1968         (permerror): Likewise.
1969         (permerror_at_rich_loc): New function.
1970         (error): Update for change in signature of diagnostic_set_info.
1971         (error_n): Likewise.
1972         (error_at): Likewise.
1973         (error_at_rich_loc): New function.
1974         (sorry): Update for change in signature of diagnostic_set_info.
1975         (fatal_error): Likewise.
1976         (internal_error): Likewise.
1977         (internal_error_no_backtrace): Likewise.
1978         (source_range::debug): New function.
1979         * diagnostic.h (struct diagnostic_info): Eliminate field
1980         "override_column".  Add field "richloc".
1981         (struct diagnostic_context): Add field "colorize_source_p".
1982         (diagnostic_override_column): Delete.
1983         (diagnostic_set_info): Convert param from location_t to
1984         rich_location *.
1985         (diagnostic_set_info_translated): Likewise.
1986         (diagnostic_append_note_at_rich_loc): New function.
1987         (diagnostic_num_locations): New function.
1988         (diagnostic_expand_location): Get the location from the
1989         rich_location.
1990         (diagnostic_print_caret_line): Delete.
1991         (diagnostic_get_color_for_kind): New declaration.
1992         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1993         (error_cb): Update for change in signature of "error" callback.
1994         (fatal_at): Likewise.
1995         (warning_at): Likewise.
1996         * input.c (linemap_client_expand_location_to_spelling_point): New.
1997         * pretty-print.c (text_info::set_range): New method.
1998         (text_info::get_location): New method.
1999         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2000         (struct text_info): Eliminate "locations" array in favor of
2001         "m_richloc", a rich_location *.
2002         (textinfo::set_location): Add a "caret_p" param, and reimplement
2003         in terms of a call to set_range.
2004         (textinfo::get_location): Eliminate inline implementation in favor of
2005         an out-of-line reimplementation.
2006         (textinfo::set_range): New method.
2007         * rtl-error.c (diagnostic_for_asm): Update for change in signature
2008         of diagnostic_set_info.
2009         * tree-diagnostic.c (default_tree_printer): Update for new
2010         "caret_p" param for textinfo::set_location.
2011         * tree-pretty-print.c (percent_K_format): Likewise.
2013 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2015         Properly apply.
2016         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2017         * config/aarch64/aarch64.c
2018         (aarch64_can_use_per_function_literal_pools_p): New.
2019         (aarch64_use_blocks_for_constant_p): Adjust declaration
2020         and use aarch64_can_use_function_literal_pools_p.
2021         (aarch64_select_rtx_section): Update.
2023 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2025         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2026         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2027         (arm_output_multireg_pop): Likewise.
2028         (output_move_double):  Likewise.
2029         (output_move_quad):  Likewise.
2030         (output_return_instruction): Likewise.
2031         (arm_print_operand): Remove support for %( and %. print modifiers.
2032         (arm_output_shift): Make unified asm.
2033         (arm_declare_function_name): Likewise.
2034         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2035         (ASM_APP_OFF): Adjust.
2036         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2037         (ASM_OUTPUT_REG_POP): Likewise.
2038         * config/arm/arm.md: Adjust uses of %., %(, %)
2039         * config/arm/sync.md: Likewise.
2040         * config/arm/thumb2.md: Likewise.
2041         * config/arm/ldmstm.md: Regenerate.
2042         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2043         * doc/invoke.texi (masm-unified-syntax): Update documentation.
2045 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
2047         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2049 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2051         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2052         add OEP_MATCH_SIDE_EFFECTS.
2053         * fold-const.c (operand_equal_p): Update documentation; handle
2054         OEP_MATCH_SIDE_EFFECTS.
2055         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2056         OEP_MATCH_SIDE_EFFECTS.
2058 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
2059             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2061         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2062         * config/aarch64/aarch64-protos.h: Declare.
2063         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2064         frsqrts.
2065         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2066         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2067         code when applicable.
2068         * config/aarch64/aarch64.md: Added enum entries.
2069         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2070         * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
2071         macros for assembly checks.
2072         * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
2073         frsqrts and frsqrte are not emitted.
2074         * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
2075         frsqrts and frsqrte are emitted.
2076         * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
2078 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2080         PR ipa/68057
2081         PR ipa/68220
2082         * ipa-polymorphic-call.c
2083         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2084         issue when offset is out of range.
2085         (contains_type_p): Fix out of range check, clear dynamic flag.
2087 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
2089         * config.gcc (e6500): Fix cpu_is_64bit typo.
2091 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
2093         * tree-sra.c (completely_scalarize): Properly handle negative array
2094         indices using offset_int.
2096 2015-11-06  Richard Biener  <rguenther@suse.de>
2098         * alloc-pool.h (object_allocator::allocate): Default-initialize
2099         object.
2101 2015-11-06  Richard Biener  <rguenther@suse.de>
2103         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2104         * lra.c (init_reg_info): Truncate copy_vec instead of
2105         re-allocating a new one and leaking the old.
2106         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2107         bb_infos vec.
2108         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2109         * postreload-gcse.c (free_mem): Free modify_mem_list and
2110         canon_modify_mem_list.
2112 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
2114         PR tree-optimization/68145
2115         * tree-vect-stmts.c (vectorizable_operation): Fix
2116         determination for booleans.
2118 2015-11-06  Tom de Vries  <tom@codesourcery.com>
2120         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2121         cond_jump, instead of split after last nondebug insn before cond_jump.
2122         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2123         returning.
2125 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2127         PR target/68088
2128         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2129         subregs from accumulator and make sure it's a register.
2131 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
2133         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2134         low part to scalar.
2135         (reduc_uplus_<mode>): Remove.
2136         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2137         loongson_extract_lo_<mode>.
2138         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2139         reduc_smax_<mode>, reduc_smax_<mode>, use vec
2140         loongson_extract_lo_<mode>.
2141         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2143 2015-11-06  Richard Biener  <rguenther@suse.de>
2145         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2146         members.
2147         (vect_stmt_in_region_p): Declare.
2148         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2149         (destroy_bb_vec_info): Likewise.
2150         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2151         (vect_get_and_check_slp_defs): Likewise.
2152         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2153         (vect_slp_bb): Likewise.
2154         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2155         in terms of vect_stmt_in_region_p.
2156         (vect_pattern_recog): Iterate over the BB region.
2157         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2158         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2159         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2160         * config/i386/i386.c: Include gimple-iterator.h.
2161         * config/aarch64/aarch64.c: Likewise.
2163 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
2165         PR rtl-optimization/67753
2166         PR rtl-optimization/64164
2167         * function.c (assign_parm_setup_block): Avoid allocating a
2168         stack slot if we don't have an ABI-reserved one.  Emit the
2169         copy to target_reg in the conversion seq if the copy from
2170         entry_parm is in it too.  Don't use the conversion seq to copy
2171         a PARALLEL to a REG or a CONCAT.
2173 2015-11-06  Richard Biener  <rguenther@suse.de>
2175         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2176         equal_keys.
2178 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
2179             Thomas Schwinge  <thomas@codesourcery.com>
2180             James Norris  <jnorris@codesourcery.com>
2183         * gimplify.c (gimplify_scan_omp_clauses): Add support for
2184         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
2185         (gimplify_adjust_omp_clauses): Likewise.
2186         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2187         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2188         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2189         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2190         (omp_clause_code_name): Likewise.
2191         (walk_tree_1): Handle OMP_CLAUSE_TILE.
2192         * tree.h (OMP_TILE_LIST): New macro.
2194 2015-11-05  Martin Sebor  <msebor@redhat.com>
2196         PR c++/67942
2197         * doc/invoke.texi (-Wplacement-new): Document new option.
2199 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
2201         PR tree-optimization/65963
2202         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2203         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2205 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
2207         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2208         (noce_convert_multiple_sets): Likewise.
2209         (noce_process_if_block): Call them.
2211 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2213         * gimple-fold.c: Include omp-low.h.
2214         (fold_internal_goacc_dim): New.
2215         (gimple_fold_call): Call it.
2217 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
2218             Ilya Verbin  <ilya.verbin@intel.com>
2220         * builtin-types.def
2221         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2222         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2223         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2224         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2225         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2226         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2227         (struct cgraph_simd_clone_arg): Adjust comment.
2228         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2229         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
2230         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2231         to GOMP_target_data_ext.
2232         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2233         to GOMP_target_update_ext.
2234         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2235         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2236         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2237         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2238         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2239         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2240         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2241         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2242         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2243         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2244         * tree-core.h (enum omp_clause_schedule_kind): Add
2245         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2246         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2247         OMP_CLAUSE_SCHEDULE_LAST value.
2248         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2249         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2250         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2251         OMP_FOR_CHECK.  Remove comment.
2252         * tree-pretty-print.c (dump_omp_clause): Handle
2253         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2254         Simplify.  Print schedule clause modifiers.
2255         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2256         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2257         cases.
2258         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2259         (omp_default_clause): Tweak for
2260         private/firstprivate/is_device_ptr variables on target
2261         construct and use_device_ptr on target data.
2262         (omp_check_private): Likewise.
2263         (omp_notice_variable): For references check whether what it refers
2264         to has mappable type, rather than the reference itself.
2265         (omp_is_private): Diagnose linear iteration variables on non-simd
2266         constructs.
2267         (omp_no_lastprivate): Return true only for Fortran.
2268         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2269         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2270         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2271         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2272         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
2273         lastprivate and linear when combined with distribute.  Gimplify
2274         variable low-bound for array reduction.  Look through
2275         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2276         reductions.
2277         (gimplify_adjust_omp_clauses_1): For implicit references to
2278         variables with reference type and when not ref to scalar or
2279         ref to pointer, map what they refer to using tofrom and
2280         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2281         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2282         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2283         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
2284         Diagnose the same var on both firstprivate and lastprivate on
2285         distribute construct.
2286         (gimplify_omp_for): Fix up handling of predetermined
2287         lastprivate or linear iter vars when combined with distribute.
2288         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2289         functions.
2290         (gimplify_omp_workshare): Call optimize_target_teams.
2291         * omp-low.c (struct omp_region): Add sched_modifiers field.
2292         (struct omp_for_data): Likewise.
2293         (omp_any_child_fn_dumped): New variable.
2294         (extract_omp_for_data): Fill in sched_modifiers, and mask out
2295         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2296         from sched_kind.
2297         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2298         bits of OMP_CLAUSE_SCHED_KIND.
2299         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2300         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
2301         for array section reductions.
2302         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2303         for distribute parallel for, if there are lastprivate clauses on the
2304         for.
2305         (lower_rec_input_clauses): Handle non-zero low-bound on array
2306         section reductions.
2307         (lower_reduction_clauses): Likewise.
2308         (lower_send_clauses): Look through POINTER_PLUS_EXPR
2309         for array section reductions.
2310         (expand_parallel_call): Use nonmonotonic entrypoints for
2311         nonmonotonic: dynamic/guided.
2312         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2313         child_fn if current_function_decl has assembler name set, but child_fn
2314         does not.  Dump the header and IL of the child function when not in SSA
2315         form.
2316         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
2317         arguments to BUILT_IN_GOMP_TARGET.
2318         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2319         Initialize the extra _looptemp_ clause to fd->loop.n2.
2320         (expand_omp_for): Use nonmonotonic entrypoints for
2321         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
2322         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
2323         again if we have dumped any child functions.
2324         (lower_omp_for_lastprivate): Determine the right count variable
2325         for distribute simd, or distribute parallel for{, simd}.
2326         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2327         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
2328         support.
2329         (simd_clone_clauses_extract): Handle variable step
2330         for references and arguments passed by reference.
2331         (simd_clone_mangle): Mangle ref/uval/val variable steps.
2332         (simd_clone_adjust_argument_types): Handle
2333         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2334         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2335         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2336         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2337         (simd_clone_linear_addend): New function.
2338         (simd_clone_adjust): Handle variable step like similarly
2339         to constant step, use simd_clone_linear_addend to determine
2340         the actual step at runtime.
2342 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2344         * target.def (goacc.dim_limit): New hook.
2345         * targhooks.h (default_goacc_dim_limit): Declare.
2346         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2347         * doc/tm.texi: Rebuilt.
2348         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2349         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2350         (default_goacc_dim_limit): New.
2351         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2352         (nvptx_goacc_dim_limit) New.
2353         (TARGET_GOACC_DIM_LIMIT): Override.
2354         * tree-vrp.c: Include omp-low.h, target.h.
2355         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2356         IFN_GOACC_DIM_POS.
2358 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2360         * tree-vect-generic.c (do_compare): Use -1 for true
2361         result instead of 1.
2363 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2365         * config/aarch64/aarch64.c
2366         (aarch64_can_use_per_function_literal_pools_p): New.
2367         (aarch64_use_blocks_for_constant_p): Adjust declaration
2368         and use aarch64_can_use_function_literal_pools_p.
2369         (aarch64_select_rtx_section): Update.
2371 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2373         * targhooks.c (default_get_mask_mode): Use BLKmode in
2374         case target doesn't support required vector mode.
2375         * stor-layout.c (layout_type); Check for BLKmode.
2377 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2378             Sebastian Pop  <s.pop@samsung.com>
2380         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2381         Remove use of parameter_rename_map.
2382         (copy_def): Remove.
2383         (copy_internal_parameters): Remove.
2384         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2385         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2386         (free_sese_info): Do not free parameter_rename_map.
2387         (set_rename): Do not use parameter_rename_map.
2388         (rename_uses): Update call to set_rename.
2389         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2390         * sese.h (parameter_rename_map_t): Remove.
2391         (struct sese_info_t): Remove field parameter_rename_map.
2393 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
2394             Sebastian Pop  <s.pop@samsung.com>
2396         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2397         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2398         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2399         anonymous namespace.
2400         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2401         (isl_id_for_pbb): Use a buffer of size 10.
2402         (isl_id_for_ssa_name): Same.
2403         * sese.c (set_rename): Add more dumps.
2405 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2407         * omp-low.c (struct omp_context): Remove reduction_map field.
2408         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2409         (new_omp_context, delete_omp_context, scan_omp_target): Remove
2410         reduction_map handling.
2411         (lower_omp_target): Remove obsolete openacc reduction handling.
2413 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2415         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2417 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2418             Cesar Philippidis  <cesar@codesourcery.com>
2420         * config/nvptx/nvptx.c: Include gimple headers.
2421         (worker_red_size, worker_red_align, worker_red_name,
2422         worker_red_sym): New.
2423         (nvptx_option_override): Initialize worker reduction buffer.
2424         (nvptx_file_end): Write out worker reduction buffer var.
2425         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2426         nvptx_expand_cmp_swap): New builtin expanders.
2427         (enum nvptx_builtins): New.
2428         (nvptx_builtin_decls): New.
2429         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2430         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2431         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2432         nvptx_lockless_update): New helpers.
2433         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2434         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2435         (nvptx_goacc_reduction): New.
2436         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2437         TARGET_BUILTIN_DECL): Override.
2438         (TARGET_GOACC_REDUCTION): Override.
2440 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2441             Cesar Philippidis  <cesar@codesourcery.com>
2443         * internal-fn.def (GOACC_REDUCTION): New.
2444         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2445         * internal-fn.c (expand_GOACC_REDUCTION): New.
2446         * target.def (goacc.reduction): New OpenACC hook.
2447         * targhooks.h (default_goacc_reduction): Declare.
2448         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2449         * doc/tm.texi: Rebuilt.
2450         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2451         scan_sharing_clauses): Remove oacc reduction handling here.
2452         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2453         (oacc_lower_reduction_var_helper): Delete.
2454         (lower_oacc_reductions): New.
2455         (lower_reduction_clauses): Don't handle OpenACC reductions here.
2456         (lower_oacc_head_tail): Call lower_oacc_reductions.
2457         (oacc_gimple_assign, oacc_init_reduction_array,
2458         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2459         oacc_process_reduction_data): Delete.
2460         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
2461         dummy OpenACC gang reduction for reductions at outer level.
2462         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2463         (default_goacc_reduction): New.
2464         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2466 2015-11-04  Martin Liska  <mliska@suse.cz>
2468         * cgraphunit.c (cgraph_node::expand_thunk): Call
2469         allocate_struct_function before init_function_start.
2470         (cgraph_node::expand): Use push_cfun and pop_cfun.
2471         * config/i386/i386.c (ix86_code_end): Call
2472         allocate_struct_function before init_function_start.
2473         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2474         * function.c (init_function_start): Move preamble to all
2475         callers.
2476         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2477         (execute_one_pass): Handle newly added TODO_discard_function.
2478         (execute_pass_list_1): Terminate if cfun equals to NULL.
2479         (execute_pass_list): Do not push and pop cfun, expect that
2480         cfun is set.
2481         * tree-pass.h (TODO_discard_function): Define.
2483 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
2485         * cfganal.c (inverted_post_order_compute): Remove conditional
2486         compilation, use flag_checking.
2487         * config.in: Regenerate.
2488         * configure: Regenerate.
2489         * configure.ac: Remove ENABLE_CHECKING.
2490         * genconditions.c: Do not #undef ENABLE_CHECKING.
2491         * sese.h (bb_in_region): Comment out broken check.
2492         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2493         conditional compilation, use flag_checking.
2495 2015-11-04  Tom de Vries  <tom@codesourcery.com>
2497         PR tree-optimization/67742
2498         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2499         field.
2500         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2501         (create_variable_info_for_1): Add and handle handle_param parameter.
2502         Add restrict handling.
2503         (create_variable_info_for): Call create_variable_info_for_1 with extra
2504         arg.
2505         (make_param_constraints): Drop restrict_name parameter.  Ignore
2506         vi->only_restrict_pointers.
2507         (intra_create_variable_infos): Call create_variable_info_for_1 with
2508         extra arg.  Remove restrict handling.  Call make_param_constraints with
2509         one fewer arg.
2511 2015-11-04  Tom de Vries  <tom@codesourcery.com>
2513         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2514         variable.
2516 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2518         * config/arm/coff.h: Remove.
2520 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2522         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2523         check for aggregate types and beef up comment for mode check.
2525 2015-11-03  Richard Biener  <rguenther@suse.de>
2527         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2528         data references here.
2529         * tree-vect-loop.c: Include cgraph.h.
2530         (vect_analyze_loop_2): Collect data references here.
2531         * tree-vect-slp.c (find_bb_location): Inline ...
2532         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
2533         Factor in vect_slp_transform_bb.
2534         (vect_slp_transform_bb): Removed.
2535         (vect_slp_analyze_bb_1): Collect data references here.
2536         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2537         vect_slp_bb.
2538         * tree-vectorizer.h (vect_slp_bb): Declare.
2539         (vect_slp_analyze_bb): Remove.
2540         (vect_slp_transform_bb): Remove.
2541         (find_bb_location): Remove.
2542         (vect_analyze_data_refs): Remove stmt count reference parameter.
2544 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
2546         * multiple_target.c (create_dispatcher_calls): Add target check
2547         on ifunc.
2548         (create_target_clone): Change assembler name for versioned declarations.
2550 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
2551             Chung-Lin Tang  <cltang@codesourcery.com>
2553         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2554         * omp-low.c (check_omp_nesting_restrictions): Allow
2555         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2556         contexts.
2558 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
2560         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2561         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2562         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2563         builtin.
2564         (vmulxq_f32): Likewise.
2565         (vmulx_f64): New.
2566         (vmulxq_f64): Rewrite to call fmulx builtin.
2567         (vmulxs_f32): Likewise.
2568         (vmulxd_f64): Likewise.
2569         (vmulx_lane_f32): Remove.
2570         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2572 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
2574         * config/aarch64/aarch64.md (*movhf_aarch64): Use
2575         aarch64_reg_or_fp_zero for second operand.
2577 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
2579         * gimple-expr.c: Include hash-set.h and rtl.h.
2580         (mark_addressable_queue): New var.
2581         (mark_addressable): Factor actual marking into...
2582         (mark_addressable_1): ... this.  Queue it up during expand.
2583         (mark_addressable_2): New.
2584         (flush_mark_addressable_queue): New.
2585         * gimple-expr.h (flush_mark_addressable_queue): Declare.
2586         * cfgexpand.c: Include gimple-expr.h.
2587         (pass_expand::execute): Flush mark_addressable queue.
2589 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
2591         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2592         bb_no_side_effects_p tests...
2593         (tree_ssa_ifcombine_bb): ... here.
2595         PR tree-optimization/68083
2596         * tree-ssa-ifcombine.c: Include tree-ssa.h.
2597         (bb_no_side_effects_p): Test for undefined uses too.
2598         * tree-ssa.c (gimple_uses_undefined_value_p): New.
2599         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2601 2015-11-02  Jeff Law <law@redhat.com>
2603         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2604         cases where the loop latch edge is in the middle of an FSM path.
2606 2015-11-03  Tom de Vries  <tom@codesourcery.com>
2608         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2609         (make_param_constraints): ... this.  Add and handle restrict_name
2610         parameter.  Handle is_full_var case.
2611         (intra_create_variable_infos): Use make_param_constraints.
2613 2015-11-03  Tom de Vries  <tom@codesourcery.com>
2615         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2616         make_copy_constraint call with make_constraint_from call.
2618 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
2620         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2621         PIE executables.
2623 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
2625         * builtins.h (fold_fma): Move to fold-const-call.h.
2626         * builtins.c: Include fold-const-call.h.
2627         (mathfn_built_in_2): New function, split out from...
2628         (mathfn_built_in_1): ...here.
2629         (do_real_to_int_conversion, fold_const_builtin_pow)
2630         (fold_const_builtin_logb, fold_const_builtin_significand)
2631         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2632         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2633         (fold_builtin_sincos): Use fold_const_call to handle constants.
2634         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2635         checks for ERROR_MARK.  Use fold_const_call to handle constant
2636         folds for math functions.
2637         (fold_fma): Move to fold-const-call.c.
2638         * fold-const.c: Include fold-const-call.h.
2639         * Makefile.in (OBJS): Add fold-const-call.o.
2640         (PLUGIN_HEADERS): Add fold-const-call.h.
2641         * realmpfr.h (real_from_mpfr): Allow the format to be specified
2642         directly.
2643         * realmpfr.c (real_from_mpfr): Likewise.
2644         * fold-const-call.h, fold-const-call.c: New files.
2646 2015-11-02  Julian Brown  <julian@codesourcery.com>
2648         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2649         brackets and semicolon.
2651 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
2653         Revert:
2654         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2656         PR tree-optimization/65963
2657         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2658         LSHIFT_EXPRs as equivalent MULT_EXPRs.
2660 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2662         PR middle-end/68166
2663         * fold-const.c: Include "md5.h".
2665 2015-11-01  Jeff Law <law@redhat.com>
2667         * vmsdbgout.c: Revert unused header file reduction patch.
2669         * config/mcore/mcore.c: Include regs.h.
2671 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2673         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2675 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
2677         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2678         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2679         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2681 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2683         * ggc-common.c: Restore needed header for checking=release.
2685 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2687         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2689 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2691         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2692         existing varinfo for arguments.
2694 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2696         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2697         create_function_info_for.  Dump constraints generated during
2698         create_function_info_for. Move intra_create_variable_infos call and
2699         function-return-values-escape bit to ...
2700         (create_function_info_for): ... here, and merge
2701         intra_create_variable_infos call with argument loop.  Add and handle
2702         nonlocal_p parameter.
2704 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2706         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2707         updating is alap, and seperated from preceding code.  Make sure
2708         insert_vi_for_tree is seperated from surrounding code.
2710 2015-10-31  Tom de Vries  <tom@codesourcery.com>
2712         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2714 2015-10-30  Jeff Law <law@redhat.com>
2715             Nathan Sidwell  <nathan@acm.org>
2717         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2718         args.
2719         (MOVE_MAX): Set to 8.
2721 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
2723         * cgraph.c: Include context.h for offloading.
2724         * varpool.c: Include context.h and omp-low.h.
2726 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
2728         * rtl.h (contains_symbol_ref_p): Declare.
2729         (SYMBOL_REF_P): Define.
2730         * rtlanal.c (contains_symbol_ref_p: New function.
2731         * lra-constraints.c (contains_symbol_ref_p): Remove.
2732         * var-tracking.c (contains_symbol_ref): Remove.
2733         (track_expr_p): Use contains_symbol_ref_p instead of
2734         contains_symbol_ref.
2736 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
2738         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2739         * fold-const.c (get_array_ctor_element_at_index): New.
2740         (fold): Remove binary-search through CONSTRUCTOR, call previous.
2742         * fold-const.h (get_array_ctor_element_at_index): New.
2744 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
2746         * Makefile.in (OBJS): Add multiple_target.o.
2747         * attrib.c (make_attribute): Moved from config/i386/i386.c
2748         * config/i386/i386.c (make_attribute): Deleted.
2749         * multiple_target.c (create_dispatcher_calls): New.
2750         (get_attr_len): Ditto.
2751         (get_attr_str): Ditto.
2752         (separate_attrs): Ditto.
2753         (is_valid_asm_symbol): Ditto.
2754         (create_new_asm_name): Ditto.
2755         (create_target_clone): Ditto.
2756         (expand_target_clones): Ditto.
2757         (ipa_target_clone): Ditto.
2758         (ipa_dispatcher_calls): Ditto.
2759         * passes.def (pass_target_clone): Two new ipa passes.
2760         * tree-pass.h (make_pass_target_clone): Ditto.
2761         * doc/extend.texi (target_clones): New attribute description.
2763 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
2765         PR rtl-optimization/68106
2766         * lra-remat.c (input_regno_present_p): Process hard regs
2767         explicitly present in machine description insns.
2768         (call_used_input_regno_present_p): Ditto.
2769         (calculate_gen_cands): Ditto.
2770         (do_remat): Ditto.
2772 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
2774         * config/arm/neon-testgen.ml: Fix comment typo.
2776 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2778         * rtlanal.c (reg_set_p): Expand function comment.
2780 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
2782         * alias.c: Remove unused headers.
2783         * asan.c: Likewise.
2784         * attribs.c: Likewise.
2785         * auto-inc-dec.c: Likewise.
2786         * auto-profile.c: Likewise.
2787         * bb-reorder.c: Likewise.
2788         * bitmap.c: Likewise.
2789         * bt-load.c: Likewise.
2790         * builtins.c: Likewise.
2791         * caller-save.c: Likewise.
2792         * calls.c: Likewise.
2793         * ccmp.c: Likewise.
2794         * cfg.c: Likewise.
2795         * cfganal.c: Likewise.
2796         * cfgbuild.c: Likewise.
2797         * cfgcleanup.c: Likewise.
2798         * cfgexpand.c: Likewise.
2799         * cfghooks.c: Likewise.
2800         * cfgloop.c: Likewise.
2801         * cfgloopanal.c: Likewise.
2802         * cfgloopmanip.c: Likewise.
2803         * cfgrtl.c: Likewise.
2804         * cgraph.c: Likewise.
2805         * cgraphbuild.c: Likewise.
2806         * cgraphclones.c: Likewise.
2807         * cgraphunit.c: Likewise.
2808         * cilk-common.c: Likewise.
2809         * combine-stack-adj.c: Likewise.
2810         * combine.c: Likewise.
2811         * compare-elim.c: Likewise.
2812         * convert.c: Likewise.
2813         * coverage.c: Likewise.
2814         * cppbuiltin.c: Likewise.
2815         * cprop.c: Likewise.
2816         * cse.c: Likewise.
2817         * cselib.c: Likewise.
2818         * data-streamer-in.c: Likewise.
2819         * data-streamer-out.c: Likewise.
2820         * data-streamer.c: Likewise.
2821         * dbxout.c: Likewise.
2822         * dce.c: Likewise.
2823         * ddg.c: Likewise.
2824         * debug.c: Likewise.
2825         * df-core.c: Likewise.
2826         * df-problems.c: Likewise.
2827         * df-scan.c: Likewise.
2828         * dfp.c: Likewise.
2829         * dojump.c: Likewise.
2830         * dominance.c: Likewise.
2831         * domwalk.c: Likewise.
2832         * double-int.c: Likewise.
2833         * dse.c: Likewise.
2834         * dumpfile.c: Likewise.
2835         * dwarf2asm.c: Likewise.
2836         * dwarf2cfi.c: Likewise.
2837         * dwarf2out.c: Likewise.
2838         * emit-rtl.c: Likewise.
2839         * except.c: Likewise.
2840         * explow.c: Likewise.
2841         * expmed.c: Likewise.
2842         * expr.c: Likewise.
2843         * final.c: Likewise.
2844         * fixed-value.c: Likewise.
2845         * fold-const.c: Likewise.
2846         * function.c: Likewise.
2847         * fwprop.c: Likewise.
2848         * gcse.c: Likewise.
2849         * generic-match-head.c: Likewise.
2850         * ggc-common.c: Likewise.
2851         * gimple-builder.c: Likewise.
2852         * gimple-expr.c: Likewise.
2853         * gimple-fold.c: Likewise.
2854         * gimple-iterator.c: Likewise.
2855         * gimple-low.c: Likewise.
2856         * gimple-match-head.c: Likewise.
2857         * gimple-pretty-print.c: Likewise.
2858         * gimple-ssa-isolate-paths.c: Likewise.
2859         * gimple-ssa-strength-reduction.c: Likewise.
2860         * gimple-streamer-in.c: Likewise.
2861         * gimple-streamer-out.c: Likewise.
2862         * gimple-walk.c: Likewise.
2863         * gimple.c: Likewise.
2864         * gimplify-me.c: Likewise.
2865         * gimplify.c: Likewise.
2866         * godump.c: Likewise.
2867         * graph.c: Likewise.
2868         * graphds.c: Likewise.
2869         * haifa-sched.c: Likewise.
2870         * hw-doloop.c: Likewise.
2871         * ifcvt.c: Likewise.
2872         * init-regs.c: Likewise.
2873         * internal-fn.c: Likewise.
2874         * ipa-chkp.c: Likewise.
2875         * ipa-comdats.c: Likewise.
2876         * ipa-cp.c: Likewise.
2877         * ipa-devirt.c: Likewise.
2878         * ipa-icf-gimple.c: Likewise.
2879         * ipa-icf.c: Likewise.
2880         * ipa-inline-analysis.c: Likewise.
2881         * ipa-inline-transform.c: Likewise.
2882         * ipa-inline.c: Likewise.
2883         * ipa-polymorphic-call.c: Likewise.
2884         * ipa-profile.c: Likewise.
2885         * ipa-prop.c: Likewise.
2886         * ipa-pure-const.c: Likewise.
2887         * ipa-ref.c: Likewise.
2888         * ipa-reference.c: Likewise.
2889         * ipa-split.c: Likewise.
2890         * ipa-utils.c: Likewise.
2891         * ipa-visibility.c: Likewise.
2892         * ipa.c: Likewise.
2893         * ira-build.c: Likewise.
2894         * ira-color.c: Likewise.
2895         * ira-conflicts.c: Likewise.
2896         * ira-costs.c: Likewise.
2897         * ira-emit.c: Likewise.
2898         * ira-lives.c: Likewise.
2899         * ira.c: Likewise.
2900         * jump.c: Likewise.
2901         * langhooks.c: Likewise.
2902         * lcm.c: Likewise.
2903         * lists.c: Likewise.
2904         * loop-doloop.c: Likewise.
2905         * loop-init.c: Likewise.
2906         * loop-invariant.c: Likewise.
2907         * loop-iv.c: Likewise.
2908         * loop-unroll.c: Likewise.
2909         * lower-subreg.c: Likewise.
2910         * lra-assigns.c: Likewise.
2911         * lra-coalesce.c: Likewise.
2912         * lra-constraints.c: Likewise.
2913         * lra-eliminations.c: Likewise.
2914         * lra-lives.c: Likewise.
2915         * lra-remat.c: Likewise.
2916         * lra-spills.c: Likewise.
2917         * lra.c: Likewise.
2918         * lto-cgraph.c: Likewise.
2919         * lto-compress.c: Likewise.
2920         * lto-opts.c: Likewise.
2921         * lto-section-in.c: Likewise.
2922         * lto-section-out.c: Likewise.
2923         * lto-streamer-in.c: Likewise.
2924         * lto-streamer-out.c: Likewise.
2925         * lto-streamer.c: Likewise.
2926         * mcf.c: Likewise.
2927         * mode-switching.c: Likewise.
2928         * modulo-sched.c: Likewise.
2929         * optabs.c: Likewise.
2930         * opts-global.c: Likewise.
2931         * passes.c: Likewise.
2932         * plugin.c: Likewise.
2933         * postreload-gcse.c: Likewise.
2934         * postreload.c: Likewise.
2935         * predict.c: Likewise.
2936         * print-tree.c: Likewise.
2937         * profile.c: Likewise.
2938         * real.c: Likewise.
2939         * realmpfr.c: Likewise.
2940         * recog.c: Likewise.
2941         * ree.c: Likewise.
2942         * reg-stack.c: Likewise.
2943         * regcprop.c: Likewise.
2944         * reginfo.c: Likewise.
2945         * regrename.c: Likewise.
2946         * regstat.c: Likewise.
2947         * reload.c: Likewise.
2948         * reload1.c: Likewise.
2949         * reorg.c: Likewise.
2950         * resource.c: Likewise.
2951         * rtl-chkp.c: Likewise.
2952         * rtl-error.c: Likewise.
2953         * rtlanal.c: Likewise.
2954         * rtlhooks.c: Likewise.
2955         * sanopt.c: Likewise.
2956         * sched-deps.c: Likewise.
2957         * sched-ebb.c: Likewise.
2958         * sched-rgn.c: Likewise.
2959         * sdbout.c: Likewise.
2960         * sel-sched-dump.c: Likewise.
2961         * sel-sched-ir.c: Likewise.
2962         * sel-sched.c: Likewise.
2963         * sese.c: Likewise.
2964         * shrink-wrap.c: Likewise.
2965         * simplify-rtx.c: Likewise.
2966         * stack-ptr-mod.c: Likewise.
2967         * statistics.c: Likewise.
2968         * stmt.c: Likewise.
2969         * stor-layout.c: Likewise.
2970         * store-motion.c: Likewise.
2971         * stringpool.c: Likewise.
2972         * symtab.c: Likewise.
2973         * target-globals.c: Likewise.
2974         * targhooks.c: Likewise.
2975         * toplev.c: Likewise.
2976         * tracer.c: Likewise.
2977         * trans-mem.c: Likewise.
2978         * tree-affine.c: Likewise.
2979         * tree-call-cdce.c: Likewise.
2980         * tree-cfg.c: Likewise.
2981         * tree-cfgcleanup.c: Likewise.
2982         * tree-chkp-opt.c: Likewise.
2983         * tree-chkp.c: Likewise.
2984         * tree-chrec.c: Likewise.
2985         * tree-complex.c: Likewise.
2986         * tree-data-ref.c: Likewise.
2987         * tree-dfa.c: Likewise.
2988         * tree-diagnostic.c: Likewise.
2989         * tree-dump.c: Likewise.
2990         * tree-eh.c: Likewise.
2991         * tree-emutls.c: Likewise.
2992         * tree-if-conv.c: Likewise.
2993         * tree-inline.c: Likewise.
2994         * tree-into-ssa.c: Likewise.
2995         * tree-iterator.c: Likewise.
2996         * tree-loop-distribution.c: Likewise.
2997         * tree-nested.c: Likewise.
2998         * tree-nrv.c: Likewise.
2999         * tree-object-size.c: Likewise.
3000         * tree-outof-ssa.c: Likewise.
3001         * tree-parloops.c: Likewise.
3002         * tree-phinodes.c: Likewise.
3003         * tree-predcom.c: Likewise.
3004         * tree-pretty-print.c: Likewise.
3005         * tree-profile.c: Likewise.
3006         * tree-scalar-evolution.c: Likewise.
3007         * tree-sra.c: Likewise.
3008         * tree-ssa-address.c: Likewise.
3009         * tree-ssa-alias.c: Likewise.
3010         * tree-ssa-ccp.c: Likewise.
3011         * tree-ssa-coalesce.c: Likewise.
3012         * tree-ssa-copy.c: Likewise.
3013         * tree-ssa-dce.c: Likewise.
3014         * tree-ssa-dse.c: Likewise.
3015         * tree-ssa-forwprop.c: Likewise.
3016         * tree-ssa-ifcombine.c: Likewise.
3017         * tree-ssa-live.c: Likewise.
3018         * tree-ssa-loop-ch.c: Likewise.
3019         * tree-ssa-loop-im.c: Likewise.
3020         * tree-ssa-loop-ivcanon.c: Likewise.
3021         * tree-ssa-loop-ivopts.c: Likewise.
3022         * tree-ssa-loop-manip.c: Likewise.
3023         * tree-ssa-loop-niter.c: Likewise.
3024         * tree-ssa-loop-prefetch.c: Likewise.
3025         * tree-ssa-loop-unswitch.c: Likewise.
3026         * tree-ssa-loop.c: Likewise.
3027         * tree-ssa-math-opts.c: Likewise.
3028         * tree-ssa-operands.c: Likewise.
3029         * tree-ssa-phiopt.c: Likewise.
3030         * tree-ssa-phiprop.c: Likewise.
3031         * tree-ssa-pre.c: Likewise.
3032         * tree-ssa-propagate.c: Likewise.
3033         * tree-ssa-reassoc.c: Likewise.
3034         * tree-ssa-scopedtables.c: Likewise.
3035         * tree-ssa-sink.c: Likewise.
3036         * tree-ssa-strlen.c: Likewise.
3037         * tree-ssa-structalias.c: Likewise.
3038         * tree-ssa-tail-merge.c: Likewise.
3039         * tree-ssa-ter.c: Likewise.
3040         * tree-ssa-threadupdate.c: Likewise.
3041         * tree-ssa-uncprop.c: Likewise.
3042         * tree-ssa-uninit.c: Likewise.
3043         * tree-ssa.c: Likewise.
3044         * tree-ssanames.c: Likewise.
3045         * tree-stdarg.c: Likewise.
3046         * tree-streamer-in.c: Likewise.
3047         * tree-streamer-out.c: Likewise.
3048         * tree-streamer.c: Likewise.
3049         * tree-switch-conversion.c: Likewise.
3050         * tree-tailcall.c: Likewise.
3051         * tree-vect-data-refs.c: Likewise.
3052         * tree-vect-generic.c: Likewise.
3053         * tree-vect-loop-manip.c: Likewise.
3054         * tree-vect-loop.c: Likewise.
3055         * tree-vect-patterns.c: Likewise.
3056         * tree-vect-slp.c: Likewise.
3057         * tree-vect-stmts.c: Likewise.
3058         * tree-vectorizer.c: Likewise.
3059         * tree-vrp.c: Likewise.
3060         * tree.c: Likewise.
3061         * tsan.c: Likewise.
3062         * ubsan.c: Likewise.
3063         * value-prof.c: Likewise.
3064         * var-tracking.c: Likewise.
3065         * varasm.c: Likewise.
3066         * varpool.c: Likewise.
3067         * vmsdbgout.c: Likewise.
3068         * vtable-verify.c: Likewise.
3069         * web.c: Likewise.
3070         * wide-int-print.cc: Likewise.
3071         * wide-int.cc: Likewise.
3072         * xcoffout.c: Likewise.
3074 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
3076         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3077         between pass numbering and execution order.
3079 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3081         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3082         check for dependencies.
3084 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3086         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3087         CDI_DOMINATORS.
3089 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3091         * real.h (format_helper): New.
3092         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3093         (real_from_target, real_nan, real_2expN, real_value_truncate)
3094         (significand_size, real_from_string2, exact_real_inverse)
3095         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3096         (real_round, real_isinteger, real_from_integer): Replace
3097         machine_mode arguments with format_helper arguments.
3098         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3099         (real_from_integer, real_nan, real_2expN, real_convert)
3100         (real_value_truncate, exact_real_truncate, real_to_target)
3101         (real_from_target, significand_size, real_powi, real_trunc)
3102         (real_floor, real_ceil, real_round, real_isinteger): Replace
3103         machine_mode arguments with format_helper arguments.
3104         (real_to_target_fmt, real_from_target_fmt): Delete.
3105         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3106         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3107         argument with real_format.
3108         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3110 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3112         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3113         (fixed_to_decimal, fixed_convert_from_real)
3114         (real_convert_from_fixed): Fix mode arguments to real_2expN.
3116 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
3118         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3119         SCALAR_FLOAT_MODE_P.
3121 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
3123         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3124         (completely_scalarize): Comment zero-length arrays.
3125         (get_access_replacement): Correct comment re. precondition.
3127 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3129         * config/i386/i386.c (get_builtin_code_for_version): Set priority
3130         for PROCESSOR_ZNVER1.
3131         (enum processor_model): Add M_AMDFAM17H_znver1.
3132         (struct arch_names_table): Likewise.
3133         * doc/extend.texi: ADD znver1.
3135 2015-10-30  Richard Biener  <rguenther@suse.de>
3137         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3138         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
3139         zeros to be folded to VECTOR_CSTs.
3140         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3141         * fold-const.c (fold): Use build_vector_from_ctor.
3143 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
3145         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3146         "mov %0.h[0], %1.h[0] to "neon_move".
3147         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3148         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3149         "mov_imm".
3150         (*cmovsi_insn_uxtw): Likewise.
3152 2015-10-30  Tom de Vries  <tom@codesourcery.com>
3154         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3155         unsigned, and initialize, and use initial value instead of hardcoded
3156         constant.  Add generic constraints dumping section.  Don't dump global
3157         initializers constraints dumping section if empty.  Don't update
3158         variable from if unused.
3160 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3162         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3163         flag_checking and/or CHECKING_P to eliminate conditional compilation
3164         on ENABLE_CHECKING.
3165         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3166         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3167         * config/i386/i386.c (ix86_print_operand_address): Likewise.
3168         (output_387_binary_op): Likewise.
3169         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3170         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3171         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3172         Likewise.
3173         * config/rs6000/rs6000.h: Likewise.
3174         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3176 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3178         * config/sh/sh.opt (mfdpic): Add missing period.
3180 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
3182         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3183         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3184         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3185         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3186         mcore_base_register_rtx_p, mcore_legitimate_index_p,
3187         mcore_legitimate_address_p): New functions.
3188         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3190 2015-10-29  Jeff Law  <law@redhat.com>
3192         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3193         method.
3194         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3195         * tree-ssa-threadedge.c
3196         (record_temporary_equivalences_from_stmts_at_dest): Remove
3197         backedge_seen argument and associated code which invalidated
3198         equivalences based on the value of that argument.
3199         (thread_through_normal_block): Corresponding changes.
3201 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
3203         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3204         function earlier in the file.
3205         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3206         df_regs_ever_live_p.
3208 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
3210         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3211         by ignoring it.
3213 2015-10-29  Richard Henderson  <rth@redhat.com>
3215         PR target/68124
3216         PR rtl-opt/67609
3217         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3218         sse check to the exact conditions of PR 67609.
3220 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3222         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3223         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3224         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3225         of the traditional names that TFmode uses for handling IEEE
3226         extended double. If -mfloat128, add KFmode functions for all of
3227         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3228         make TFmode use the same emulation functions as KFmode.
3229         (init_float128_ibm): Likewise.
3230         (init_float128_ieee): Likewise.
3231         (rs6000_generate_compare): For IEEE 128-bit floating point
3232         comparisons, call the unordered comparison function instead of the
3233         ordered comparison function.
3234         (rs6000_expand_float128_convert): Deal with operands that are
3235         memory operands. Restructure the code to use a switch statement on
3236         the mode. Add support for TFmode defaulting to either IBM extended
3237         double or IEEE 128-bit floating point. If the underlying types are
3238         the same, use a move instead of a conversion function.
3239         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3240         use for IEEE 128-bit floating point constants with -mfloat128.
3241         (rs6000_c_mode_for_suffix): Likewise.
3242         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3243         128-bit floating point with IBM extended double floating point.
3244         (rs6000_invalid_binary_op): Likewise.
3245         (rs6000_gen_le_vsx_permute): On little endian systems generate a
3246         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3247         types that can go in vector registers.
3248         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3249         point types that can go in vector registers on little endian
3250         PowerPC systems.
3251         (mark_swaps_for_removal): Likewise.
3252         (rs6000_analyze_swaps): Likewise.
3253         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3255         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3256         rework IEEE 128-bit floating point insns to deal with TFmode being
3257         either IBM extended double or IEEE 128-bit floating point.
3258         (IFKF): Likewise.
3259         (IBM128): Update iterator to add condition that the mode is IBM
3260         extended double.
3261         (IEEE128): New iterator for IEEE 128-bit floating point.
3262         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3263         (FLOAT128): Likewise.
3264         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3265         iterator.
3266         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3267         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3268         instead of hard coding TFmode or KFmode.
3269         (negtf2_internal): Likewise.
3270         (neg<mode>2_internal): Likewise.
3271         (abs<mode>2): Likewise.
3272         (abstf2_internal): Likewise.
3273         (abs<mode>2_internal): Likewise.
3274         (ieee_128bit_neg<mode>2): Likewise.
3275         (ieee_128bit_neg<mode>2_internal): Likewise.
3276         (ieee_128bit_abs<mode>2): Likewise.
3277         (ieee_128bit_abs<mode>2_internal): Likewise.
3278         (ieee_128bit_nabs<mode>2): Likewise.
3279         (ieee_128bit_nabs<mode>2_internal): Likewise.
3280         (extendiftf2): Add explicit conversions between 128-bit floating
3281         point types. Drop the old conversions that had become unwieldy.
3282         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3283         (extendifkf2): Likewise.
3284         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3285         (extendtfkf2): Likewise.
3286         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3287         (trunciftf2): Likewise.
3288         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3289         (truncifkf2): Likewise.
3290         (float<SDI:mode><IFKF:mode>2): Likewise.
3291         (trunckftf2): Likewise.
3292         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3293         (trunctfif2): Likewise.
3294         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3295         (extenddftf2): Rework 128-bit floating point conversions to
3296         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3297         KFmode expanders into one function.
3298         (extenddf<mode>2): Likewise.
3299         (extenddftf2_fprs): Likewise.
3300         (extenddf<mode>2_fprs): Likewise.
3301         (extenddftf2_vsx): Likewise.
3302         (extenddf<mode>2_vsx): Likewise.
3303         (extendsftf2): Likewise.
3304         (extendsf<mode>2): Likewise.
3305         (trunctfdf2): Likewise.
3306         (trunc<mode>df2): Likewise.
3307         (trunctfdf2_internal1): Likewise.
3308         (trunc<mode>df2_internal1): Likewise.
3309         (trunctfdf2_internal2): Likewise.
3310         (trunc<mode>df2_internal2): Likewise.
3311         (trunctfsf2): Likewise.
3312         (trunc<mode>sf2): Likewise.
3313         (trunctfsf2_fprs): Likewise.
3314         (trunc<mode>sf2_fprs): Likewise.
3315         (floatsit2f): Likewise.
3316         (floatsi<mode>2): Likewise.
3317         (fix_trunc_helper): Likewise.
3318         (fix_trunc_helper<mode>): Likewise.
3319         (fix_trunctfsi2): Likewise.
3320         (fix_trunc<mode>si2): Likewise.
3321         (fix_trunctfsi2_fprs): Likewise.
3322         (fix_trunc<mode>si2_fprs): Likewise.
3323         (fix_trunctfsi2_internal): Likewise.
3324         (fix_trunc<mode>si2_internal): Likewise.
3325         (fix_trunctfdi2): Likewise.
3326         (fix_trunc<mode>di2): Likewise.
3327         (fixuns_trunctf<mode>2): Likewise.
3328         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3329         (floatditf2): Likewise.
3330         (floatdi<mode>2): Likewise.
3331         (floatuns<mode>tf2): Likewise.
3332         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3333         (cmptf_internal1): Use a mode iterator to add support for both
3334         types (IFmode, TFmode) that support IBM extended double.
3335         (cmp<mode>_internal1): Likewise.
3336         (cmptf_internal2): Likewise.
3337         (cmp<mode>_internal2): Likewise.
3339         * doc/extend.texi (Floating Types): Document __ibm128 and
3340         __float128 on PowerPC.
3342         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3343         -mfloat128 and -mno-float128.
3345 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3347         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3348         floating point modes that can go in vector registers.
3349         (MODES_TIEABLE_P): Move tests for vector modes before tests for
3350         scalar floating point, so that IEEE 128-bit floating point that
3351         can go in vector registers bind with vectors and not FP.
3352         (struct rs6000_args): Add libcall field.
3354         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3355         and -mfloat128-software switches.  Replace them with a binary
3356         -mfloat128 switch.
3357         (-mfloat128): Likewise.
3359         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3360         128-bit floating point types in GPRs, even if the appropriate
3361         option enabling the type was not used.
3362         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3363         debugging.
3364         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3365         pre-decrement on IEEE 128-bit floating point values.
3366         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3367         is IEEE 128-bit floating point.
3368         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3369         128-bit floating point types that can go in vector registers.
3370         (rs6000_option_override_internal): Change -mfloat128-none and
3371         -mfloat128-software to -mfloat128, and move code to be near other
3372         VSX option handling.
3373         (rs6000_option_override_internal): Disable -mfloat128 if we don't
3374         have the Altivec ABI.
3375         (rs6000_init_builtins): Don't make TFmode use either IFmode or
3376         KFmode floating point nodes. Instead, have three separate nodes.
3377         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3378         eventually moving the long double default to IEEE 128-bit floating
3379         point.
3380         (rs6000_opt_masks): Add -mfloat128.
3381         (struct rs6000_opt_var): Fix typo in comment.
3382         (init_cumulative_args): Initialize libcall field in
3383         CUMULATIVE_ARGS.
3384         (rs6000_function_arg): Treat library functions as if they had
3385         prototypes to prevent IEEE 128-bit support functions from passing
3386         arguments in both GPRs and vector registers.
3387         (rs6000_arg_partial_bytes): Likewise.
3389         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3390         an option that can be turned on via -mcpu=<xxx>.
3392         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3393         longer used.
3395         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3396         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3397         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3398         double is IBM extended double.
3400         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3401         SUBREGs.
3403 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
3405         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3406         * genconditions.c: Define CHECKING_P in the generated code.
3407         * genextract.c: Use flag_checking in insn_extract.
3408         * gengtype.c (main): Remove conditional compilation.
3409         * gengtype.h: Likewise.
3411 2015-10-29  Jeff Law  <law@redhat.com>
3413         PR tree-optimization/67892
3414         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3415         in comment.
3416         (thread_through_normal_block): If we have seen a backedge, then
3417         do nothing.  No longer call find_jump_threads_backwards here.
3418         (thread_across_edge): Use find_jump_threads_backwards to find
3419         jump threads if the old style threader was not successful.
3420         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3421         gsi_last_nondebug_bb.  Return NULL if the block does not end
3422         with a control statement.
3423         (find_jump_threads_backwards): Setup code moved here from
3424         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
3425         single edge argument instead of name & block.
3426         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3427         prototype.
3429 2015-10-29  Tom de Vries  <tom@codesourcery.com>
3431         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3432         types.
3434 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
3436         * omp-low.c (lower_omp_target): Remove unreachable code & merge
3437         ifs.
3439 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
3441         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3443 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3445         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3446         guard_bb0 and use guard_bb throughout.
3448 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3450         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3451         unnecessary label.
3453 2015-10-29  Richard Biener  <rguenther@suse.de>
3455         PR middle-end/68142
3456         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3457         overflow.
3459 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
3461         * alias.c: Reorder #include statements and remove duplicates.
3462         * asan.c: Likewise.
3463         * attribs.c: Likewise.
3464         * auto-inc-dec.c: Likewise.
3465         * auto-profile.c: Likewise.
3466         * bb-reorder.c: Likewise.
3467         * bt-load.c: Likewise.
3468         * builtins.c: Likewise.
3469         * caller-save.c: Likewise.
3470         * calls.c: Likewise.
3471         * ccmp.c: Likewise.
3472         * cfg.c: Likewise.
3473         * cfganal.c: Likewise.
3474         * cfgbuild.c: Likewise.
3475         * cfgcleanup.c: Likewise.
3476         * cfgexpand.c: Likewise.
3477         * cfghooks.c: Likewise.
3478         * cfgloop.c: Likewise.
3479         * cfgloopanal.c: Likewise.
3480         * cfgloopmanip.c: Likewise.
3481         * cfgrtl.c: Likewise.
3482         * cgraph.c: Likewise.
3483         * cgraphbuild.c: Likewise.
3484         * cgraphclones.c: Likewise.
3485         * cgraphunit.c: Likewise.
3486         * cilk-common.c: Likewise.
3487         * combine-stack-adj.c: Likewise.
3488         * combine.c: Likewise.
3489         * compare-elim.c: Likewise.
3490         * convert.c: Likewise.
3491         * coverage.c: Likewise.
3492         * cppbuiltin.c: Likewise.
3493         * cprop.c: Likewise.
3494         * cse.c: Likewise.
3495         * cselib.c: Likewise.
3496         * data-streamer-in.c: Likewise.
3497         * data-streamer-out.c: Likewise.
3498         * data-streamer.c: Likewise.
3499         * dbxout.c: Likewise.
3500         * dce.c: Likewise.
3501         * ddg.c: Likewise.
3502         * debug.c: Likewise.
3503         * df-core.c: Likewise.
3504         * df-problems.c: Likewise.
3505         * df-scan.c: Likewise.
3506         * dfp.c: Likewise.
3507         * dojump.c: Likewise.
3508         * dominance.c: Likewise.
3509         * double-int.c: Likewise.
3510         * dse.c: Likewise.
3511         * dumpfile.c: Likewise.
3512         * dwarf2asm.c: Likewise.
3513         * dwarf2cfi.c: Likewise.
3514         * dwarf2out.c: Likewise.
3515         * emit-rtl.c: Likewise.
3516         * except.c: Likewise.
3517         * explow.c: Likewise.
3518         * expmed.c: Likewise.
3519         * expr.c: Likewise.
3520         * final.c: Likewise.
3521         * fixed-value.c: Likewise.
3522         * fold-const.c: Likewise.
3523         * function.c: Likewise.
3524         * fwprop.c: Likewise.
3525         * gcse.c: Likewise.
3526         * generic-match-head.c: Likewise.
3527         * ggc-common.c: Likewise.
3528         * gimple-builder.c: Likewise.
3529         * gimple-expr.c: Likewise.
3530         * gimple-fold.c: Likewise.
3531         * gimple-iterator.c: Likewise.
3532         * gimple-low.c: Likewise.
3533         * gimple-match-head.c: Likewise.
3534         * gimple-pretty-print.c: Likewise.
3535         * gimple-ssa-isolate-paths.c: Likewise.
3536         * gimple-ssa-strength-reduction.c: Likewise.
3537         * gimple-streamer-in.c: Likewise.
3538         * gimple-streamer-out.c: Likewise.
3539         * gimple-walk.c: Likewise.
3540         * gimple.c: Likewise.
3541         * gimplify-me.c: Likewise.
3542         * gimplify.c: Likewise.
3543         * godump.c: Likewise.
3544         * graph.c: Likewise.
3545         * graphite-poly.c: Likewise.
3546         * haifa-sched.c: Likewise.
3547         * hw-doloop.c: Likewise.
3548         * ifcvt.c: Likewise.
3549         * incpath.c: Likewise.
3550         * init-regs.c: Likewise.
3551         * internal-fn.c: Likewise.
3552         * ipa-chkp.c: Likewise.
3553         * ipa-comdats.c: Likewise.
3554         * ipa-cp.c: Likewise.
3555         * ipa-devirt.c: Likewise.
3556         * ipa-icf-gimple.c: Likewise.
3557         * ipa-icf.c: Likewise.
3558         * ipa-inline-analysis.c: Likewise.
3559         * ipa-inline-transform.c: Likewise.
3560         * ipa-inline.c: Likewise.
3561         * ipa-polymorphic-call.c: Likewise.
3562         * ipa-profile.c: Likewise.
3563         * ipa-prop.c: Likewise.
3564         * ipa-pure-const.c: Likewise.
3565         * ipa-ref.c: Likewise.
3566         * ipa-reference.c: Likewise.
3567         * ipa-split.c: Likewise.
3568         * ipa-utils.c: Likewise.
3569         * ipa-visibility.c: Likewise.
3570         * ipa.c: Likewise.
3571         * ira-build.c: Likewise.
3572         * ira-color.c: Likewise.
3573         * ira-conflicts.c: Likewise.
3574         * ira-costs.c: Likewise.
3575         * ira-emit.c: Likewise.
3576         * ira-lives.c: Likewise.
3577         * ira.c: Likewise.
3578         * jump.c: Likewise.
3579         * langhooks.c: Likewise.
3580         * lcm.c: Likewise.
3581         * lists.c: Likewise.
3582         * loop-doloop.c: Likewise.
3583         * loop-init.c: Likewise.
3584         * loop-invariant.c: Likewise.
3585         * loop-iv.c: Likewise.
3586         * loop-unroll.c: Likewise.
3587         * lower-subreg.c: Likewise.
3588         * lra-assigns.c: Likewise.
3589         * lra-coalesce.c: Likewise.
3590         * lra-constraints.c: Likewise.
3591         * lra-eliminations.c: Likewise.
3592         * lra-lives.c: Likewise.
3593         * lra-remat.c: Likewise.
3594         * lra-spills.c: Likewise.
3595         * lra.c: Likewise.
3596         * lto-cgraph.c: Likewise.
3597         * lto-compress.c: Likewise.
3598         * lto-opts.c: Likewise.
3599         * lto-section-in.c: Likewise.
3600         * lto-section-out.c: Likewise.
3601         * lto-streamer-in.c: Likewise.
3602         * lto-streamer-out.c: Likewise.
3603         * lto-streamer.c: Likewise.
3604         * mode-switching.c: Likewise.
3605         * modulo-sched.c: Likewise.
3606         * omp-low.c: Likewise.
3607         * optabs.c: Likewise.
3608         * opts-global.c: Likewise.
3609         * passes.c: Likewise.
3610         * plugin.c: Likewise.
3611         * postreload-gcse.c: Likewise.
3612         * postreload.c: Likewise.
3613         * predict.c: Likewise.
3614         * print-tree.c: Likewise.
3615         * profile.c: Likewise.
3616         * real.c: Likewise.
3617         * realmpfr.c: Likewise.
3618         * recog.c: Likewise.
3619         * ree.c: Likewise.
3620         * reg-stack.c: Likewise.
3621         * regcprop.c: Likewise.
3622         * reginfo.c: Likewise.
3623         * regrename.c: Likewise.
3624         * regstat.c: Likewise.
3625         * reload.c: Likewise.
3626         * reload1.c: Likewise.
3627         * reorg.c: Likewise.
3628         * resource.c: Likewise.
3629         * rtl-chkp.c: Likewise.
3630         * rtl-error.c: Likewise.
3631         * rtlanal.c: Likewise.
3632         * rtlhooks.c: Likewise.
3633         * sanopt.c: Likewise.
3634         * sched-deps.c: Likewise.
3635         * sched-ebb.c: Likewise.
3636         * sched-rgn.c: Likewise.
3637         * sese.c: Likewise.
3638         * shrink-wrap.c: Likewise.
3639         * simplify-rtx.c: Likewise.
3640         * stack-ptr-mod.c: Likewise.
3641         * statistics.c: Likewise.
3642         * stmt.c: Likewise.
3643         * stor-layout.c: Likewise.
3644         * store-motion.c: Likewise.
3645         * stringpool.c: Likewise.
3646         * symtab.c: Likewise.
3647         * target-globals.c: Likewise.
3648         * targhooks.c: Likewise.
3649         * toplev.c: Likewise.
3650         * tracer.c: Likewise.
3651         * trans-mem.c: Likewise.
3652         * tree-affine.c: Likewise.
3653         * tree-call-cdce.c: Likewise.
3654         * tree-cfg.c: Likewise.
3655         * tree-cfgcleanup.c: Likewise.
3656         * tree-chkp-opt.c: Likewise.
3657         * tree-chkp.c: Likewise.
3658         * tree-chrec.c: Likewise.
3659         * tree-complex.c: Likewise.
3660         * tree-data-ref.c: Likewise.
3661         * tree-dfa.c: Likewise.
3662         * tree-diagnostic.c: Likewise.
3663         * tree-dump.c: Likewise.
3664         * tree-eh.c: Likewise.
3665         * tree-emutls.c: Likewise.
3666         * tree-if-conv.c: Likewise.
3667         * tree-inline.c: Likewise.
3668         * tree-into-ssa.c: Likewise.
3669         * tree-iterator.c: Likewise.
3670         * tree-loop-distribution.c: Likewise.
3671         * tree-nested.c: Likewise.
3672         * tree-nrv.c: Likewise.
3673         * tree-object-size.c: Likewise.
3674         * tree-outof-ssa.c: Likewise.
3675         * tree-parloops.c: Likewise.
3676         * tree-phinodes.c: Likewise.
3677         * tree-predcom.c: Likewise.
3678         * tree-pretty-print.c: Likewise.
3679         * tree-profile.c: Likewise.
3680         * tree-scalar-evolution.c: Likewise.
3681         * tree-sra.c: Likewise.
3682         * tree-ssa-address.c: Likewise.
3683         * tree-ssa-alias.c: Likewise.
3684         * tree-ssa-ccp.c: Likewise.
3685         * tree-ssa-coalesce.c: Likewise.
3686         * tree-ssa-copy.c: Likewise.
3687         * tree-ssa-dce.c: Likewise.
3688         * tree-ssa-dom.c: Likewise.
3689         * tree-ssa-dse.c: Likewise.
3690         * tree-ssa-forwprop.c: Likewise.
3691         * tree-ssa-ifcombine.c: Likewise.
3692         * tree-ssa-live.c: Likewise.
3693         * tree-ssa-loop-ch.c: Likewise.
3694         * tree-ssa-loop-im.c: Likewise.
3695         * tree-ssa-loop-ivcanon.c: Likewise.
3696         * tree-ssa-loop-ivopts.c: Likewise.
3697         * tree-ssa-loop-manip.c: Likewise.
3698         * tree-ssa-loop-niter.c: Likewise.
3699         * tree-ssa-loop-prefetch.c: Likewise.
3700         * tree-ssa-loop-unswitch.c: Likewise.
3701         * tree-ssa-loop.c: Likewise.
3702         * tree-ssa-math-opts.c: Likewise.
3703         * tree-ssa-operands.c: Likewise.
3704         * tree-ssa-phiopt.c: Likewise.
3705         * tree-ssa-phiprop.c: Likewise.
3706         * tree-ssa-pre.c: Likewise.
3707         * tree-ssa-propagate.c: Likewise.
3708         * tree-ssa-reassoc.c: Likewise.
3709         * tree-ssa-sccvn.c: Likewise.
3710         * tree-ssa-scopedtables.c: Likewise.
3711         * tree-ssa-sink.c: Likewise.
3712         * tree-ssa-strlen.c: Likewise.
3713         * tree-ssa-structalias.c: Likewise.
3714         * tree-ssa-tail-merge.c: Likewise.
3715         * tree-ssa-ter.c: Likewise.
3716         * tree-ssa-threadedge.c: Likewise.
3717         * tree-ssa-threadupdate.c: Likewise.
3718         * tree-ssa-uncprop.c: Likewise.
3719         * tree-ssa-uninit.c: Likewise.
3720         * tree-ssa.c: Likewise.
3721         * tree-ssanames.c: Likewise.
3722         * tree-stdarg.c: Likewise.
3723         * tree-streamer-in.c: Likewise.
3724         * tree-streamer-out.c: Likewise.
3725         * tree-streamer.c: Likewise.
3726         * tree-switch-conversion.c: Likewise.
3727         * tree-tailcall.c: Likewise.
3728         * tree-vect-data-refs.c: Likewise.
3729         * tree-vect-generic.c: Likewise.
3730         * tree-vect-loop-manip.c: Likewise.
3731         * tree-vect-loop.c: Likewise.
3732         * tree-vect-patterns.c: Likewise.
3733         * tree-vect-slp.c: Likewise.
3734         * tree-vect-stmts.c: Likewise.
3735         * tree-vectorizer.c: Likewise.
3736         * tree-vrp.c: Likewise.
3737         * tree.c: Likewise.
3738         * tsan.c: Likewise.
3739         * ubsan.c: Likewise.
3740         * value-prof.c: Likewise.
3741         * var-tracking.c: Likewise.
3742         * varasm.c: Likewise.
3743         * varpool.c: Likewise.
3744         * vtable-verify.c: Likewise.
3745         * web.c: Likewise.
3746         * wide-int-print.cc: Likewise.
3747         * wide-int.cc: Likewise.
3748         * xcoffout.c: Likewise.
3750 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
3752         * Makefile.in (NO_PIE_CFLAGS): New.
3753         (NO_PIE_FLAG): Likewise.
3754         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3755         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3756         (BUILD_NO_PIE_CFLAGS): Likewise.
3757         (BUILD_NO_PIE_FLAG): Likewise.
3758         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3759         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3760         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3761         $(BUILD_NO_PIE_CFLAGS).
3762         (BUILD_CXXFLAGS): Likewise.
3763         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3764         $(BUILD_NO_PIE_FLAG).
3765         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
3766         (BUILD_NO_PIE_FLAG): Likewise.
3767         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3768         (NO_PIE_FLAG_FOR_BUILD): Likewise.
3769         * configure: Regenerated.
3771 2015-10-29  Richard Biener  <rguenther@suse.de>
3773         PR middle-end/56956
3774         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3775         unsigned conditonal negation to ABS_EXPR.
3777 2015-10-29  Richard Biener  <rguenther@suse.de>
3779         * gimple-match-head.c (gimple_simplify): Remove premature checking
3780         of builtin_decl_implicit of function calls we simplify.
3782 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
3784         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3785         (get_computation_cost_at): Ditto.
3786         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3787         and inv_expr_id.
3789 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3791         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3792         superfluous code.
3794 2015-10-28  Jason Merrill  <jason@redhat.com>
3796         * Makefile.in (TAGS): Include libcpp and libiberty.
3798 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3800         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3801         (extract_omp_for_data): Remove OpenACC special handling of
3802         chunking.
3804         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3805         (struct parallel): Update comment.
3806         (nvptx_reorg): Likewise.
3807         (nvptx_neuter): Cleanup whitespace.
3809 2015-10-28  Richard Henderson  <rth@redhat.com>
3811         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3813 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3815         PR target/67839
3816         * config/avr/predicates.md (low_io_address_operand): Don't
3817         consider MODE when computing upper bound.
3818         (io_address_operand): Likewise.
3820 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
3822         * fold-const.c (operand_equal_p): Do not verify that types are
3823         compatible for MEM_REFs.
3825 2015-10-28  Richard Biener  <rguenther@suse.de>
3827         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3828         in simplifying VEC_COND_EXPR conditions.
3830 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3832         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3833         into vi_next of a full_var.
3835 2015-10-28  Tom de Vries  <tom@codesourcery.com>
3837         * tree-ssa-structalias.c (new_var_info, make_heapvar)
3838         (make_constraint_from_restrict, make_constraint_from_global_restrict)
3839         (create_function_info_for, create_variable_info_for_1)
3840         (create_variable_info_for): Add and handle add_id parameter.
3841         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3842         (init_base_vars): Add extra argument to calls to new_var_info.
3843         (get_vi_for_tree): Add extra argument to call to
3844         create_variable_info_for.
3845         (process_constraint, do_deref, process_all_all_constraints): Add extra
3846         argument to calls to new_scalar_tmp_constraint_exp.
3847         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3848         argument to calls to make_heapvar.
3849         (make_restrict_var_constraints): Add extra argument to call to
3850         make_constraint_from_global_restrict.
3851         (intra_create_variable_infos): Add extra argument to call to
3852         create_variable_info_for_1.
3853         (ipa_pta_execute): Add extra argument to call to
3854         create_function_info_for.
3856 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3858         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3859         (sibcall_value): Likewise.
3861 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3863         * config/nvptx/nvptx.h (struct machine_function): Add
3864         axis_predicate.
3865         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3866         nvptx_expand_oacc_join): Declare.
3867         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3868         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3869         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3870         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3871         UNSPECV_JOINING, UNSPECV_JOIN): New.
3872         (BITS, BITD): New mode iterators.
3873         (br_true_uni, br_false_uni): New.
3874         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3875         (oacc_dim_size, oacc_dim_pos): New.
3876         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3877         (oacc_fork, oacc_join): New.
3878         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3879         (worker_load<mode>, worker_store<mode>): New.
3880         (nvptx_barsync): New.
3881         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3882         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3883         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3884         worker_bcast_sym): New.
3885         (nvptx_option_override): Initialize worker broadcast buffer.
3886         (nvptx_emit_forking, nvptx_emit_joining): New.
3887         (nvptx_init_axis_predicate): New.
3888         (nvptx_declare_function_name): Init axis predicates.
3889         (nvptx_expand_call): Add fork/join markers around routine call.
3890         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3891         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3892         (nvptx_gen_vcast): New.
3893         (struct wcast_data_t): New.
3894         (enum propagate_mask): New.
3895         (nvptx_gen_wcast): New.
3896         (nvptx_print_operand): Add 'S' case.
3897         (struct parallel): New.
3898         (parallel::parallel, parallel::~parallel): New.
3899         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3900         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3901         nvptx_find_par, nvptx_discover_pars): New.
3902         (nvptx_propagate): New.
3903         (vprop_gen, nvptx_vpropagate): New.
3904         (wprop_gen, nvptx_wpropagate): New.
3905         (nvptx_wsync): New.
3906         (nvptx_single, nvptx_skip_par): New.
3907         (nvptx_process_pars, nvptx_neuter_pars): New.
3908         (ntptx_reorg): Split blocks, generate parallel structure, apply
3909         neutering.
3910         (nvptx_cannot_copy_insn_p): New.
3911         (nvptx_file_end): Emit worker broadcast decl.
3912         (nvptx_goacc_fork_join): New.
3913         (TARGET_CANNOT_COPY_INSN_P): Override.
3914         (TARGET_GOACC_FORK_JOIN): Override.
3916 2015-10-28  Richard Biener  <rguenther@suse.de>
3918         * fold-const.c (negate_expr_p): Adjust the division case to
3919         properly avoid introducing undefined overflow.
3920         (fold_negate_expr): Likewise.
3922 2015-10-28  Richard Biener  <rguenther@suse.de>
3924         PR tree-optimization/65962
3925         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3926         Avoid creating loop carried dependences also for outer loops
3927         of the loop a use to replace is in.
3929 2015-10-28  Richard Biener  <rguenther@suse.de>
3931         * common.opt (fchecking): New flag controlling flag_checking.
3932         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3933         * timevar.c (timer::print): Adjust output.
3934         * doc/invoke.texi (fchecking): Document.
3936 2015-10-28  Richard Biener  <rguenther@suse.de>
3938         PR middle-end/68067
3939         * fold-const.c (negate_expr_p): We cannot negate plus or minus
3940         if overflow is not wrapping.  Likewise multiplication unless
3941         one operand is constant and not power of two.
3942         (fold_negate_expr): Adjust accordingly.
3944 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
3946         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3947         fields.
3948         (is_oacc_parallel, is_oacc_kernels): New.
3949         (enclosing_target_ctx): May return NULL.
3950         (ctx_in_oacc_kernels_region): New.
3951         (check_oacc_kernel_gwv): New.
3952         (oacc_loop_or_target_p): Delete.
3953         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
3954         operands.  Strip reductions fro kernels.
3955         (scan_omp_target): Don't calculate gwv mask.
3956         (lower_oacc_head_mark, lower_oacc_loop_marker,
3957         lower_oacc_head_tail): New.
3958         (struct oacc_collapse): New.
3959         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3960         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3961         Remove OpenACC handling.
3962         (expand_oacc_for): New.
3963         (expand_omp_for): Call expand_oacc_for.
3964         (lower_omp_for): Call lower_oacc_head_tail.
3966 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
3968         * attribs.c (check_attribute_tables): New function, broken out from...
3969         (init_attributes): Use it.
3970         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3971         gcc_checking_assert and checking_* functions to eliminate
3972         ENABLE_CHECKING conditionals.
3973         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3974         (pass_expand::execute): Likewise.
3975         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3976         * cgraphunit.c (mark_functions_to_output): Likewise.
3977         (cgraph_node::expand_thunk): Likewise.
3978         (symbol_table::compile): Likewise.
3979         * ddg.c (add_cross_iteration_register_deps): Likewise.
3980         (create_ddg_all_sccs): Likewise.
3981         * df-core.c (df_finish_pass, df_analyze): Likewise.
3982         * diagnostic-core.h: Likewise.
3983         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3984         * dominance.c (calculate_dominance_info): Likewise.
3985         * dwarf2out.c (add_AT_die_ref): Likewise.
3986         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3987         (loc_list_from_tree, gen_lexical_block_die): Likewise.
3988         gen_type_die_with_usage, gen_type_die): Likewise.
3989         (dwarf2out_decl): Likewise.
3990         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3991         * except.c (duplicate_eh_regions): Likewise.
3992         * fwprop.c (register_active_defs, update_df_init): Likewise.
3993         (fwprop_init, fwprop_done): Likewise.
3994         (update_uses): Likewise.
3995         * ggc-page.c (ggc_grow): Likewise.
3996         * gimplify.c (gimplify_body): Likewise.
3997         (gimplify_hasher::equal): Likewise.
3998         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3999         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4000         Likewise.
4001         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4002         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4003         * hash-table.h (::find_empty_slot_for_expand): Likewise.
4004         * ifcvt.c (if_convert): Likewise.
4005         * ipa-cp.c (ipcp_propagate_stage): Likewise.
4006         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4007         (odr_type_p, odr_types_equivalent_p): Likewise.
4008         (add_type_duplicate, get_odr_type): Likewise.
4009         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4010         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4011         (sem_item_optimizer::verify_classes): Likewise.
4012         (sem_item_optimizer::traverse_congruence_split): Likewise.
4013         (sem_item_optimizer::checking_verify_classes): New.
4014         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4015         method.
4016         * cfgrtl.c (commit_edge_insertions): Likewise.
4017         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4018         (rtl_flow_call_edges_add): Likewise.
4019         * cgraph.c (symbol_table::create_edge): Likewise.
4020         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4021         * cgraph.h (symtab_node): Likewise.
4022         (symtab_node::checking_verify_symtab_nodes): Define.
4023         (cgraph_node::checking_verify_cgraph_nodes): Define.
4024         * cfghooks.h (checking_verify_flow_info): Define.
4025         * cfgloop.h (checking_verify_loop_structure): Define.
4026         * dominance.h (checking_verify_dominators): Define.
4027         * et-forest.c: Fix comment.
4028         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4029         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4030         ENABLE_CHECKING conditionals.
4031         * ipa-inline-transform.c (save_inline_function_body): Likewise.
4032         * ipa-inline.c (inline_small_functions): Likewise.
4033         (early_inliner): Likewise.
4034         * ipa-inline.h (estimate_edge_growth): Likewise.
4035         * ipa-visibility.c (function_and_variable_visibility): Likewise.
4036         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4037         (ipa_single_use): Likewise.
4038         * ira-int.h: Likewise.
4039         * ira.c (ira): Likewise.
4040         * loop-doloop.c (doloop_optimize_loops): Likewise.
4041         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4042         * loop-invariant.c (move_loop_invariants): Likewise.
4043         * lra-assigns.c (lra_assign): Likewise.
4044         * lra-constraints.c (lra_constraints): Likewise.
4045         * lra-eliminations.c (lra_eliminate): Likewise.
4046         * lra-int.h (struct lra_reg): Likewise.
4047         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4048         (lra_create_live_ranges_1): Likewise.
4049         * lra-remat.c (create_remat_bb_data): Likewise.
4050         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4051         (lra): Likewise.
4052         (check_rtl): Always define. Remove incorrect guard around
4053         extract_constrain_insn call.
4054         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4055         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4056         ENABLE_CHECKING conditionals.
4057         * lto-streamer-out.c (DFS::DFS): Likewise.
4058         (lto_output): Likewise.
4059         * lto-streamer.c (lto_streamer_init): Likewise.
4060         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4061         expand_omp_target, execute_expand_omp): Likewise.
4062         (lower_omp_target): Likewise.
4063         * passes.c (execute_function_todo): Likewise.
4064         (execute_todo, execute_one_pass): Likewise.
4065         (verify_curr_properties): Always define.
4066         * predict.c (tree_estimate_probability: Use flag_checking,
4067         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4068         ENABLE_CHECKING conditionals.
4069         (propagate_freq): Likewise.
4070         * pretty-print.c (pp_format): Likewise.
4071         * real.c (real_to_decimal_for_mode): Likewise.
4072         * recog.c (split_all_insns): Likewise.
4073         * regcprop.c (kill_value_one_regno): Likewise.
4074         (copy_value): Likewise.
4075         (validate_value_data): Define unconditionally.
4076         * reload.c: Fix comment.
4077         * timevar.c: Include options.h
4078         * tree-ssa.h (checking_verify_ssa): Define.
4079         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4080         * sched-deps.c (CHECK): Remove unused macro.
4081         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4082         gcc_checking_assert and checking_* functions to eliminate
4083         ENABLE_CHECKING conditionals.
4084         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4085         * sel-sched.c (struct moveop_static_params): Likewise.
4086         (find_best_reg_for_expr, move_cond_jump): Likewise.
4087         (move_op_orig_expr_not_found): Likewise.
4088         (code_motion_process_successors, move_op): Likewise.
4089         * ssa-iterators.h (first_readonly_imm_use): Likewise.
4090         (next_readonly_imm_use): Likewise.
4091         * store-motion.c (compute_store_table): Likewise.
4092         * symbol-summary.h (function_summary::function_summary): Likewise.
4093         * target.h (cumulative_args_t): Likewise.
4094         (get_cumulative_args, pack_cumulative_args): Likewise.
4095         * timevar.c: (timer::print): Likewise.
4096         * trans-mem.c (ipa_tm_execute): Likewise.
4097         * tree-cfg.c (move_stmt_op): Likewise.
4098         (move_sese_region_to_fn): Likewise.
4099         (gimple_flow_call_edges_add): Likewise.
4100         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4101         Likewise.
4102         * tree-eh.c (remove_unreachable_handlers): Likewise.
4103         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4104         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4105         * tree-into-ssa.c (update_ssa): Likewise.
4106         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4107         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4108         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4109         * tree-predcom.c (suitable_component_p): Likewise.
4110         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4111         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4112         * tree-ssa-live.c (verify_live_on_entry): Likewise.
4113         * tree-ssa-live.h (register_ssa_partition): Likewise.
4114         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4115         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4116         (tree_transform_and_unroll_loop): Likewise.
4117         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4118         * tree-ssa-operands.c (get_expr_operands): Likewise.
4119         * tree-ssa-propagate.c (replace_exp_1): Likewise.
4120         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4121         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4122         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4123         * tree-ssanames.c (release_ssa_name_fn): Likewise.
4124         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4125         * tree-vect-loop-manip.c
4126         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4127         (slpeel_checking_verify_cfg_after_peeling): Likewise.
4128         (vect_do_peeling_for_loop_bound): Likewise.
4129         (vect_do_peeling_for_alignment): Likewise.
4130         * tree-vrp.c (supports_overflow_infinity): Likewise.
4131         (set_value_range): Likewise.
4132         * tree.c (free_lang_data_in_cgraph): Likewise.
4133         * value-prof.c (gimple_remove_histogram_value): Likewise.
4134         (free_hist): Likewise.
4135         * var-tracking.c (canonicalize_values_star): Likewise.
4136         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4138 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4140         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4141         IFN_GOACC_LOOP): New.
4142         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4143         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4144         IFN_UNIQUE_OACC_TAIL_MARK.
4145         (enum ifn_goacc_loop_kind): New.
4146         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4147         IFN_UNIQUE_OACC_JOIN cases.
4148         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4149         (expand_GOACC_LOOP): New.
4150         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4151         * omp-low.c: Include gimple-pretty-print.h.
4152         (struct oacc_loop): New.
4153         (enum oacc_loop_flags): New.
4154         (oacc_thread_numbers): New.
4155         (oacc_xform_loop): New.
4156         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4157         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4158         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4159         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4160         oacc_loop_discovery): New.
4161         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4162         oacc_loop_process): New.
4163         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4164         (execute_oacc_device_lower): Discover & process loops.  Process
4165         internal fns.
4166         * target.def (goacc.fork_join): Change sense of hook, clarify
4167         documentation.
4168         * doc/tm.texi: Regenerated.
4170 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4172         * target-insns.def (oacc_fork, oacc_join): Define.
4173         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4174         (goacc.fork_join): New GOACC hook.
4175         * targhooks.h (default_goacc_fork_join): Declare.
4176         * omp-low.c (default_goacc_forkjoin): New.
4177         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4178         * doc/tm.texi: Regenerate.
4180 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4182         * omp-low.c (oacc_init_rediction_array): New.
4183         (oacc_initialize_reduction_data): Initialize array.
4185 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4187         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4189 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4191         * internal-fn.c (expand_UNIQUE): New.
4192         * internal-fn.h (enum ifn_unique_kind): New.
4193         * internal-fn.def (IFN_UNIQUE): New.
4194         * target-insns.def (unique): Define.
4195         * gimple.h (gimple_call_internal_unique_p): New.
4196         * gimple.c (gimple_call_same_target_p): Check internal fn
4197         uniqueness.
4198         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4199         * tree-ssa-threadedge.c
4200         (record_temporary_equivalences_from_stmts): Likewise.
4201         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4203 2015-10-27  Richard Henderson  <rth@redhat.com>
4205         PR rtl-opt/67609
4206         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4207         narrowing subregs on SSE and MMX registers.
4208         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4209         appear to be sub-words of multi-register pseudos must be rejected.
4210         * doc/tm.texi: Regenerate.
4212 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4214         PR target/68102
4215         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4216         operands[0] is a reg before taking its REGNO in split condition.
4217         (*movdi_aarch64): Likewise.
4219 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4221         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4222         Handle floating point inner modes properly.
4224 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
4226         * tree-vect-looop.c
4227         (vectorizable_live_operation): Change iterator.
4229 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4230             Aditya Kumar  <aditya.k7@samsung.com>
4232         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4233           function to schedule based on isl_schedule_node.
4234         (get_schedule_map_st): New schedule optimizer based on
4235         isl_schedule_node.
4236         (scop_get_domains): New. Return the isl_union_set containing the
4237         domains of all the pbbs.
4238         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4240 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
4242         PR target/67215
4243         * calls.c (prepare_call_address): Don't handle -fno-plt here.
4244         * config/i386/i386.c (ix86_expand_call): Generate indirect call
4245         via GOT for -fno-plt.  Support indirect call via GOT for x32.
4246         * config/i386/predicates.md (sibcall_memory_operand): Allow
4247         GOT memory operand.
4249 2015-10-27  Richard Biener  <rguenther@suse.de>
4251         PR tree-optimization/68104
4252         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4253         strided access check ...
4254         (vect_compute_data_refs_alignment): ... here.
4256 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
4257             Joseph Myers  <joseph@codesourcery.com>
4258             Mark Shinwell  <shinwell@codesourcery.com>
4259             Andrew Stubbs  <ams@codesourcery.com>
4260             Rich Felker <dalias@libc.org>
4262         * config.gcc: Handle --enable-fdpic.
4263         * config/sh/constraints.md (Ccl): New constraint.
4264         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4265         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4266         __SH_FDPIC__.
4267         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4268         library functions.
4269         * config/sh/sh-protos.h (function_symbol_result): New struct.
4270         (function_symbol): Return function_symbol_result.
4271         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4272         declarations.
4273         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4274         target hook.
4275         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4276         (sh_option_override): Force -fPIC if FDPIC is in effect.
4277         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4278         UNSPEC_GOTOFFFUNCDESC cases.
4279         (prepare_move_operands): Use FDPIC initial GOT register for
4280         TLS-related GOT access; inhibit cross-section address offset constants
4281         for FDPIC.
4282         (sh_assemble_integer): New function.
4283         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4284         PC-relative call sites.
4285         (expand_ashiftrt): Adapt invocation of function_symbol.
4286         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4287         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4288         UNSPEC_GOTOFFFUNCDESC.
4289         (legitimize_pic_address): Resolve function symbols to function
4290         descriptors for FDPIC.  Do not use GOT-relative addressing for local
4291         data that may be read-only on FDPIC.
4292         (sh_emit_storesi, sh_emit_storehi): New functions.
4293         (sh_trampoline_init): Generate FDPIC trampolines.
4294         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4295         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4296         (sh_output_mi_thunk): Generate FDPIC call.
4297         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
4298         FDPIC, generate call site labels to use PC-relative addressing rather
4299         than GOT-relative addressing.
4300         (sh_conditional_register_usage): Make PIC register fixed and call used
4301         when FDPIC is in effect.
4302         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4303         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4304         sh_get_fdpic_reg_initial_val): New functions.
4305         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4306         Handle -mfdpic.
4307         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4308         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4309         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4310         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4311         FDPIC_SELF_SPECS.
4312         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4313         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4314         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4315         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4316         constants.
4317         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4318         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4319         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4320         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4321         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4322         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4323         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4324         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4325         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4326         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4327         block_move_real, block_lump_real, block_move_real_i4,
4328         block_lump_real_i4): Add support for FDPIC calls.
4329         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4330         call_value_pop): Adjust for new function_symbol signature.
4331         * config/sh/sh.opt (-mfdpic): New option.
4332         * doc/install.texi (Options specification): Document --enable-fdpic.
4333         * doc/invoke.texi (SH Options): Document -mfdpic.
4336 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
4338         PR tree-optimization/65963
4339         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4340         LSHIFT_EXPRs as equivalent MULT_EXPRs.
4342 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4344         PR target/67929
4345         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4346         * config/arm/constraints.md (Dp): Update callsite.
4347         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4349 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4351         * builtins.c (fold_builtin_load_exponent): Rename to...
4352         (fold_const_builtin_load_exponent): ...this and only handle
4353         constant arguments.
4354         (fold_builtin_2): Update accordingly.
4355         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4357 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4359         * builtins.c (fold_builtin_logb): Rename to...
4360         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4361         (fold_builtin_significand): Rename to...
4362         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4363         (fold_builtin_1): Update accordingly.
4365 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4367         * builtins.c (fold_builtin_fmin_fmax): Delete.
4368         (fold_builtin_2): Handle constant fmin and fmax arguments here.
4369         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4371 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
4373         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4374         for register extension into sign and zero register extension.
4375         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4376         for sign and zero register extension.
4377         (cortexa57_addrcost_table): Likewise.
4378         (xgene1_addrcost_table): Likewise.
4380 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4382         * fold-const.c (fold_minmax): Delete.
4383         (fold_binary_loc): Don't call it.
4384         * match.pd: Add rules previously handled by fold_minmax.
4386 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4388         * builtins.c (fold_builtin_fma): Remove constant handling.
4389         (fold_builtin_3): Handle constant fma arguments here.
4391 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4393         * builtins.c (fold_builtin_fabs): Remove constant handling.
4394         (fold_builtin_abs): Likewise.
4396 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4398         * builtins.c (fold_builtin_copysign): Delete.
4399         (fold_builtin_2): Handle constant copysign arguments here.
4400         * match.pd: Add rules previously handled by fold_builtin_copysign.
4402 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4404         * builtins.c (fold_builtin_signbit): Delete.
4405         (fold_builtin_2): Handle constant signbit arguments here.
4406         * match.pd: Add rules previously handled by fold_builtin_signbit.
4408 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4410         * match.pd: Handle sqrt(x) cmp 0 specially.
4412 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
4414         * tree-vect-generic.c (expand_vector_operations_1): Check
4415         optab type before using it.
4417 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4419         * config/aarch64/aarch64-protos.h
4420         (struct tune_params): Add autoprefetcher_model field.
4421         * config/aarch64/aarch64.c: Include params.h
4422         (generic_tunings): Specify autoprefetcher_model value.
4423         (cortexa53_tunings): Likewise.
4424         (cortexa57_tunings): Likewise.
4425         (cortexa72_tunings): Likewise.
4426         (thunderx_tunings): Likewise.
4427         (xgene1_tunings): Likewise.
4428         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4429         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4430         (aarch64_override_options_internal): Set
4431         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4433 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4435         * builtins.c (fold_builtin_exponent): Delete.
4436         (fold_builtin_2): Handle constant expN arguments here.
4437         * match.pd: Fold expN(logN(x)) -> x.
4439 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4441         * builtins.c (fold_builtin_powi): Delete.
4442         (fold_builtin_2): Handle constant powi arguments here.
4443         * match.pd: Add rules previously handled by fold_builtin_powi.
4445 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4447         * builtins.c (fold_builtin_pow): Delete in favor of...
4448         (fold_const_builtin_pow): ...this new function.  Only handle constant
4449         arguments.
4450         (fold_builtin_2): Update accordingly.
4451         * match.pd: Add rules previously handled by fold_builtin_pow.
4453 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4455         * builtins.c (fold_builtin_hypot): Delete.
4456         (fold_builtin_2): Handle constant hypot arguments here.
4457         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
4458         hypot(x, x) to fabs(x)*sqrt(2).
4460 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
4462         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4463         instead of make_ssa_name if not yet in SSA form.
4465 2015-10-27  Richard Biener  <rguenther@suse.de>
4467         * cfg.c (free_edge): Add function argument and use it instead of cfun.
4468         (clear_edges): Likewise.
4469         * cfg.h (clear_edges): Adjust prototype.
4470         * cfgexpand.c (pass_expand::execute): Adjust.
4471         * cfgloop.c (release_recorded_exits): Add function argument and use
4472         it instead of cfun.
4473         * cfgloop.h (release_recorded_exits): Adjust prototype.
4474         (loops_state_satisfies_p): Add overload with function argument.
4475         (loops_state_set): Likewise.
4476         (loops_state_clear): Likewise.
4477         (struct loop_iterator): Add function argument to constructor
4478         and iterator and use it instead of cfun.
4479         (FOR_EACH_LOOP_FN): New macro.
4480         (loop_optimizer_finalize): Add overload with function argument.
4481         * loop-init.c (loop_optimizer_init): Adjust.
4482         (fix_loop_structure): Likewise.
4483         (loop_optimizer_finaliz): Add function argument and use it
4484         instead of cfun.
4485         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4486         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4487         * cgraph.c (release_function_body): Do not push/pop cfun.
4488         * final.c (rest_of_clean_state): Adjust.
4489         * graphite.c (graphite_finalize): Likewise.
4490         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4491         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4492         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4493         (tree_unroll_loops_completely): Likewise.
4494         (pass_complete_unrolli::execute): Likewise.
4495         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4496         Add function argument and use it instead of cfun.
4497         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4498         Adjust prototype.
4499         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4500         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4501         instead of cfun.
4502         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4503         * tree-ssanames.c (fini_ssanames): Add function argument and use it
4504         instead of cfun.
4505         * tree-ssanames.c (fini_ssanames): Adjust prototype.
4506         * tree-vrp.c (execute_vrp): Adjust.
4507         * value-prof.c (free_histograms): Add function argument and use it
4508         instead of cfun.
4509         * value-prof.h (free_histograms): Adjust prototype.
4511 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
4513         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4514         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4515         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
4517 2015-10-27  Tom de Vries  <tom@codesourcery.com>
4519         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4520         field_type.
4522 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
4524         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4525         (inv_can_prop_to_addr_use): New function.
4526         (record_use): Call can_prop_to_addr_uses, set the new field.
4527         (get_inv_cost): Count cost if inv can't be propagated into its
4528         address uses.
4530 2015-10-26  Doug Evans  <dje@google.com>
4532         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4534 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
4536         * match.pd (fold_widened_comparison): Apply simplifications to all
4537         integral types.
4539 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
4541         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4542         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4543         * doc/tm.texi: Regenerated.
4544         * reorg.c (dbr_schedule): Use new hook.
4545         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4547 2015-10-26  Jeff Law  <law@redhat.com>
4549         PR tree-optimization/68013
4550         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4551         Make sure the first block in the path is in VISITED_BBs.
4553 2015-10-26  Richard Biener  <rguenther@suse.de>
4554         Dominik Vogt  <vogt@linux.vnet.ibm.com>
4556         PR middle-end/67443
4557         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4558         Properly prune ref->ref for accesses outside of ref.
4560 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4562         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4563         new statements to be inserted if inplace.  Allow calls to have
4564         nonempty sequences.
4566 2015-10-26  Richard Biener  <rguenther@suse.de>
4568         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4569         (do_valueize): New function.
4570         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4571         replace_uses_by.
4572         * tree-ssa-threadedge.c: Remove builtins.h include, include
4573         gimple-fold.h
4574         (fold_assignment_stmt): Remove.
4575         (threadedge_valueize): New function.
4576         (record_temporary_equivalences_from_stmts): Use
4577         gimple_fold_stmt_to_constant_1, note additional cleanup
4578         opportunities.
4580 2015-10-26  Richard Biener  <rguenther@suse.de>
4582         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4583         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4585 2015-10-26  Alan Hayward <alan.hayward@arm.com>
4587         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4588         VEC_COND_EXPR types.
4590 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4592         * auto-inc-dec.c (insert_move_insn_before): Delete.
4593         (attempt_change): Remember to cost the simple move in the
4594         FORM_PRE_ADD and FORM_POST_ADD cases.
4596 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
4598         PR target/68091
4599         * config/sh/sh.c (sh_vector_mode_supported_p): Use
4600         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4602 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4604         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4605         factored out of ...
4606         (intra_create_variable_infos): ... here.
4608 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4610         * tree-ssa-structalias.c (intra_create_variable_infos): Add
4611         restrict_pointer_p and recursive_restrict_p variables.
4613 2015-10-26  Tom de Vries  <tom@codesourcery.com>
4615         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4616         get_vi_for_tree call.
4618 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4620         PR middle-end/67989
4621         * optabs.c (expand_atomic_compare_and_swap): Handle case when
4622         ptarget_oval or ptarget_bool are const0_rtx.
4624 2015-10-26  Christian Bruel  <christian.bruel@st.com>
4626         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4627         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4628         * cp/method.c (implicitly_declare_fn): Likewise.
4629         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4630         * java/class.c (add_method_1): Likewise.
4632 2015-10-26  Richard Biener  <rguenther@suse.de>
4634         * alloc-pool.h (base_pool_allocator): Use placement new.
4635         (base_pool_allocator::remove): Likewise.  Compute size outside of
4636         flag_checking.
4638 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4640         * builtins.c (do_real_to_int_conversion): New function.
4641         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4642         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4643         arguments here.
4644         * match.pd: Add rules previously handled by fold_fixed_mathfn
4645         and fold_builtin_int_roundingfn.
4647 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
4649         * match.pd: Use macros to define built-in operator lists.
4651 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
4652             Richard Biener  <rguenther@suse.de>
4654         * genmatch.c (dt_simplify::gen): Skip captures that are
4655         part of the result.
4656         (parser::parse_expr): Allow captures in results too.
4657         * builtins.c (fold_builtin_cexp): Delete.
4658         (fold_builtin_1): Handle constant cexp arguments here.
4659         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4661 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
4663         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4664         conditional compilation.
4665         (base_pool_allocator::remove): Use flag_checking.
4667 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
4669         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4671         PR middle-end/68079
4672         * dojump.c (do_compare_and_jump): Canonicalize both function and
4673         method types.
4675 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
4677         PR target/68084
4678         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4679         for =@ccae.
4681 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4683         PR ipa/pr67600
4684         * ipa-polymorphic-call.c
4685         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4686         instance offset with offset of outer type.
4688 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4690         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4692 2015-10-23  Caroline Tice  <cmtice@google.com>
4694         (from Richard Biener
4695         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
4696         call to iterative_hash_host_wide_int.
4698 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4700         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4701         Define as yes.
4703 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4705         * tree-vect-generic.c (expand_vector_operations_1): Check
4706         optab exists before use it.
4708 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4710         * tree-vect-generic.c (expand_vector_condition): Avoid
4711         uninitialized variable warning.
4713 2015-10-23  Jeff Law  <law@redhat.com>
4715         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4716         here.  Instead...
4717         (execute_todo): Call it here.
4718         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4719         statistics
4720         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4722 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4723             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4725         * config.gcc (enable_secureplt): Add *-linux*-musl*.
4727 2015-10-23  Jeff Law  <law@redhat.com>
4729         PR tree-optimization/67830
4730         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4731         Explicitly verify the mask has no bits outside the type of
4732         the innermost operands.
4734 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
4735             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4737         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4738         (MUSL_DYNAMIC_LINKER64): Define.
4739         (GNU_USER_DYNAMIC_LINKER32): Update.
4740         (GNU_USER_DYNAMIC_LINKER64): Update.
4741         (CHOOSE_DYNAMIC_LINKER): Update.
4743         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4744         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4745         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4746         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4747         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4748         (CHOOSE_DYNAMIC_LINKER): Update.
4749         (INCLUDE_DEFAULTS): Redefine.
4751         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4753 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4755         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4756         comparing addresses.
4758 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
4760         * fold-const.c (operand_equal_p): Handle matching of vector
4761         constructors.
4763 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
4765         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4767 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
4768             Andrew Pinski  <apinski@cavium.com>
4770         PR rtl-optimization/67736
4771         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4772         of gen_lowpart.
4774 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
4776         PR middle-end/68066
4777         * tree.c (build_truth_vector_type): Support BLK mode
4778         returned for boolean vector.
4780 2015-10-23  Alan Hayward <alan.hayward@arm.com>
4782         PR tree-optimization/65947
4783         * tree-vect-loop.c
4784         (vect_is_simple_reduction_1): Find condition reductions.
4785         (vect_model_reduction_cost): Add condition reduction costs.
4786         (get_initial_def_for_reduction): Add condition reduction initial var.
4787         (vect_create_epilog_for_reduction): Add condition reduction epilog.
4788         (vectorizable_reduction): Condition reduction support.
4789         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4790         * doc/sourcebuild.texi (Vector-specific attributes): Document
4791         vect_max_reduc
4793 2015-10-23  Richard Biener  <rguenther@suse.de>
4795         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4796         and builtins.def.
4798 2015-10-23  Richard Biener  <rguenther@suse.de>
4799             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4801         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4802         into (A ^ B) - B to match.pd
4803         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4805         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4806         New simplifier.
4807         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4808         New simplifier.
4809         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4810         New simplifier.
4811         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4812         New simplifier.
4813         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4814         INTEGER_CST@1)): New simplifier.
4816 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
4818         * builtins.c (integer_valued_real_p): Move to fold-const.c.
4819         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4820         (fold_builtin_ceil, fold_builtin_round): Delete.
4821         (fold_builtin_1): Handle constant trunc, floor, ceil and round
4822         arguments here.
4823         * convert.c (convert_to_real): Remove narrowing of rounding
4824         functions.
4825         * fold-const.h (integer_valued_real_unary_p)
4826         (integer_valued_real_binary_p, integer_valued_real_call_p)
4827         (integer_valued_real_single_p, integer_valued_real_p): Declare.
4828         * fold-const.c (tree_single_nonnegative_warnv_p): Move
4829         name_registered_for_update_p check to SSA_NAME case statement.
4830         Don't call tree_simple_nonnegative_warnv_p for SSA names.
4831         (integer_valued_real_unary_p, integer_valued_real_binary_p)
4832         (integer_valued_real_call_p, integer_valued_real_single_p)
4833         (integer_valued_real_invalid_p): New functions.
4834         (integer_valued_real_p): Move from fold-const.c and rework
4835         to call the functions above.  Handle SSA names.
4836         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4837         * gimple-fold.c (gimple_assign_integer_valued_real_p)
4838         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4839         (gimple_stmt_integer_valued_real_p): New functions.
4840         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4841         Fold f(x)->x for the same f if x is known to be integer-valued.
4842         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4843         the result.  Canonicalize floor(x) as trunc(x) if x is
4844         nonnegative.
4846 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4848         * tree-ssa-structalias.c (intra_create_variable_infos): Use
4849         make_constraint_from.
4851 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4853         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4854         setting of is_full_var in case of a single field.
4856 2015-10-22  Martin Sebor  <msebor@redhat.com>
4858         PR driver/68043
4859         * config/i386/i386.opt: Add missing periods to the ends of sentences.
4860         * config/msp430/msp430.opt: Same.
4862 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
4864         * doc/extend.exp (Global Register Variables): Rewrite.
4866 2015-10-22  Jeff Law  <law@redhat.com>
4868         * genattrtab.c (main): If we do not have any annul-true or annul-false
4869         slots, then write out a dummy eligible_for_annul_true or
4870         eligible_for_annul_false as needed.
4872 2015-10-22  Nick Clifton  <nickc@redhat.com>
4874         * config/msp430/msp430.opt: Add -msilicon-errata and
4875         -msilicon-errata-warn.
4876         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4877         assembler.
4878         * doc/invoke.texi: Document new options.
4880 2015-10-22  Richard Biener  <rguenther@suse.de>
4882         PR tree-optimization/58497
4883         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4884         (expand_vector_operations_1): Use it.  Lower operations on
4885         all uniform vectors to scalar operations if the HW supports it.
4887 2015-10-22  Richard Biener  <rguenther@suse.de>
4889         PR tree-optimization/19049
4890         PR tree-optimization/65962
4891         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4892         to strided accesses if single-element interleaving doesn't work.
4894 2015-10-22  Richard Biener  <rguenther@suse.de>
4896         PR middle-end/68046
4897         PR middle-end/61893
4898         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4899         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4900         (expand_unop): Likewise.
4902 2015-10-22  Richard Biener  <rguenther@suse.de>
4904         * fold-const.c (fold_addr_of_array_ref_difference): Properly
4905         convert operands before folding a MINUS_EXPR.
4906         (fold_binary_loc): Move simplification of MINUS_EXPR on
4907         converted POINTER_PLUS_EXPRs ...
4908         * match.pd: ... here.
4910 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
4912         * builtins.c (fold_builtin_tan): Delete.
4913         (fold_builtin_1): Handle constant tan arguments here.
4914         * match.pd: Simplify (tan (atan x)) to x.
4916 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
4918         * builtins.c (fold_builtin_cproj): Delete.
4919         (fold_builtin_1): Handle constant arguments here.
4920         (build_complex_cproj): Move and rename to...
4921         * tree.c: (build_complex_inf): ...this.
4922         * tree.h (build_complex_inf): Declare.
4923         * match.pd: Fold cproj(x)->x if x has no infinity.
4924         Use build_complex_inf for existing cproj rules.
4926 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4928         PR target/68015
4929         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4930         already have a comparison result.
4932 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4934         PR target/63304
4935         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4936         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4937         (aarch64_classify_address): Likewise.
4938         (aarch64_secondary_reload): Likewise.
4939         (aarch64_override_options_after_change_1): Adjust.
4940         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4941         Use aarch64_nopcrelative_literal_loads.
4942         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4943         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4944         Declare.
4946 2015-10-21  Martin Sebor  <msebor@redhat.com>
4948         PR driver/68043
4949         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4950         (print_filtered_help): Reference aliased option's name and encourage
4951         readers to use it in preference to the alias if the former is not
4952         documented.  Mention when using an option is diagnosed.
4953         * gcc.c (display_help): End each sentence with a period.
4955         * common.opt: End each sentence that describes an option with
4956         a period.
4957         * config/aarch64/aarch64.opt: Same.
4958         * config/alpha/alpha.opt: Same.
4959         * config/arc/arc.opt: Same.
4960         * config/arm/arm.opt: Same.
4961         * config/avr/avr.opt: Same.
4962         * config/bfin/bfin.opt: Same.
4963         * config/c6x/c6x.opt: Same.
4964         * config/cr16/cr16.opt: Same.
4965         * config/cris/cris.opt: Same.
4966         * config/cris/linux.opt: Same.
4967         * config/darwin.opt: Same.
4968         * config/epiphany/epiphany.opt: Same.
4969         * config/fr30/fr30.opt: Same.
4970         * config/frv/frv.opt: Same.
4971         * config/ft32/ft32.opt: Same.
4972         * config/g.opt: Same.
4973         * config/h8300/h8300.opt: Same.
4974         * config/i386/cygming.opt: Same.
4975         * config/i386/djgpp.opt: Same.
4976         * config/i386/i386.opt: Same.
4977         * config/i386/interix.opt: Same.
4978         * config/i386/mingw-w64.opt: Same.
4979         * config/i386/mingw.opt: Same.
4980         * config/ia64/ia64.opt: Same.
4981         * config/ia64/ilp32.opt: Same.
4982         * config/iq2000/iq2000.opt: Same.
4983         * config/linux.opt: Same.
4984         * config/lm32/lm32.opt: Same.
4985         * config/lynx.opt: Same.
4986         * config/m32c/m32c.opt: Same.
4987         * config/m32r/m32r.opt: Same.
4988         * config/m68k/ieee.opt: Same.
4989         * config/m68k/m68k.opt: Same.
4990         * config/mcore/mcore.opt: Same.
4991         * config/mep/mep.opt: Same.
4992         * config/microblaze/microblaze.opt: Same.
4993         * config/mips/mips.opt: Same.
4994         * config/mmix/mmix.opt: Same.
4995         * config/mn10300/mn10300.opt: Same.
4996         * config/moxie/moxie.opt: Same.
4997         * config/msp430/msp430.opt: Same.
4998         * config/nios2/elf.opt: Same.
4999         * config/nios2/nios2.opt: Same.
5000         * config/nvptx/nvptx.opt: Same.
5001         * config/pa/pa-hpux.opt: Same.
5002         * config/pa/pa-hpux1010.opt: Same.
5003         * config/pa/pa-hpux1111.opt: Same.
5004         * config/pa/pa-hpux1131.opt: Same.
5005         * config/pa/pa.opt: Same.
5006         * config/pa/pa64-hpux.opt: Same.
5007         * config/pdp11/pdp11.opt: Same.
5008         * config/rl78/rl78.opt: Same.
5009         * config/rs6000/476.opt: Same.
5010         * config/rs6000/aix64.opt: Same.
5011         * config/rs6000/darwin.opt: Same.
5012         * config/rs6000/linux64.opt: Same.
5013         * config/rs6000/rs6000.opt: Same.
5014         * config/rs6000/sysv4.opt: Same.
5015         * config/s390/s390.opt: Same.
5016         * config/s390/tpf.opt: Same.
5017         * config/sh/sh.opt: Same.
5018         * config/sol2.opt: Same.
5019         * config/sparc/long-double-switch.opt: Same.
5020         * config/sparc/sparc.opt: Same.
5021         * config/spu/spu.opt: Same.
5022         * config/stormy16/stormy16.opt: Same.
5023         * config/tilegx/tilegx.opt: Same.
5024         * config/tilepro/tilepro.opt: Same.
5025         * config/v850/v850.opt: Same.
5026         * config/vax/vax.opt: Same.
5027         * config/visium/visium.opt: Same.
5028         * config/vms/vms.opt: Same.
5029         * config/vxworks.opt: Same.
5030         * config/xtensa/xtensa.opt: Same.
5032 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5033             Sebastian Pop  <s.pop@samsung.com>
5035         * graphite-scop-detection.c (parameter_index_in_region): Update call to
5036         invariant_in_sese_p_rec.
5037         * graphite-sese-to-poly.c (extract_affine): Same.
5038         * sese.c (invariant_in_sese_p_rec): Pass in an extra
5039         parameter has_vdefs.
5040         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5041         variable depends on virtual definitions in the current region.
5042         * sese.h (invariant_in_sese_p_rec): Update declaration.
5044 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5045             Sebastian Pop  <s.pop@samsung.com>
5047         * graphite-scop-detection.c (build_scops): Do not handle scops
5048         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5049         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5051 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
5053         * config.in: Regenerate.
5054         * configure: Regenerate.
5055         * configure.ac (CHECKING_P): Define.
5056         * system.h: Use CHECKING_P.
5058 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5060         PR ipa/67056
5061         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5062         is negative we don't know the type.
5063         (check_stmt_for_type_change): Skip constructors of non-polymorphic
5064         types as those won't help devirutalization.
5066 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5068         * fold-const.c (operand_equal_p): Add code matching empty constructors.
5070 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
5072         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5073         comments.
5074         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5075         Add comments on sign of the result.
5076         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5077         Recurse on operand #1 instead of operand #0.
5078         <CEIL_MOD_EXPR>: Do not recurse.
5079         <ROUND_MOD_EXPR>: Likewise.
5081 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5083         * cfgrtl.c (pass_free_cfg::execute): Adjust.
5084         * final.c (dbr_sequence_length): Always define.
5085         (shorten_branches): Adjust.
5086         * genattr-common.c (main): Always define DELAY_SLOTS.
5087         * genattr.c (main): Unconditionally declare functions and define
5088         macros related to delay slots.
5089         * genattrtab.c (write_eligible_delay): Adjust.
5090         (main): Always write out delay slot functions.
5091         * opts.c (default_options_table): Adjust.
5092         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5093         (redirect_with_delay_list_safe_p): Likewise.
5094         (fill_simple_delay_slots): Likewise.
5095         (fill_slots_from_thread): Likewise.
5096         (make_return_insns): Likewise.
5097         (dbr_schedule): Likewise.
5098         (rest_of_handle_delay_slots): Likewise.
5099         (pass_delay_slots::gate): Likewise.
5100         * toplev.c (process_options): Likewise.
5102 2015-10-21  Richard Henderson  <rth@redhat.com>
5104         * targhooks.c (default_addr_space_pointer_mode): Remove check
5105         for generic address space.
5106         (default_addr_space_address_mode): Likewise.
5107         (default_addr_space_valid_pointer_mode): Likewise.
5108         (default_addr_space_legitimate_address_p): Likewise.
5109         (default_addr_space_legitimize_address): Likewise.
5110         * target.def (addr_space.pointer_mode): Update documentation
5111         of default behavior.
5112         (addr_space.address_mode): Likewise.
5113         * tm.texi: Update.
5115         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5116         address spaces.
5118 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5120         * builtins.c (fold_builtin_cabs): Delete.
5121         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
5122         * match.pd: Add rules previously handled by fold_builtin_cabs.
5124 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5126         * fold-const.h (fold_strip_sign_ops): Delete.
5127         * fold-const.c (fold_strip_sign_ops): Likewise.
5128         (fold_unary_loc, fold_binary_loc): Remove calls to it.
5129         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5130         (fold_builtin_ccos): Delete.
5131         (fold_builtin_pow): Don't call fold_strip_sign_ops.
5132         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5133         Remove fndecl argument.
5134         (fold_builtin_1): Update calls accordingly.  Handle constant
5135         cos, cosh, ccos and ccosh here.
5137 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5139         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5140         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5141         * common.opt (fssa-backprop): New option.
5142         * fold-const.h (negate_mathfn_p): Declare.
5143         * fold-const.c (negate_mathfn_p): Make public.
5144         * timevar.def (TV_TREE_BACKPROP): New.
5145         * tree-pass.h (make_pass_backprop): Declare.
5146         * passes.def (pass_backprop): Add.
5147         * gimple-ssa-backprop.c: New file.
5149 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5150             Sebastian Pop  <s.pop@samsung.com>
5152         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5153         Do not call create_empty_if_region_on_edge when cond_expr is true.
5154         (translate_isl_ast_node_for): Check whether a guard has been generated.
5156 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5158         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5159         (operator=): Removed.
5160         (dr_info): Make alias_set number the last argument with default
5161         value of invalid_alias_set.
5162         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5163         of dr_info.
5164         (rewrite_reductions_out_of_ssa): Iterate only through the
5165         basic blocks which are inside region.
5166         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5167         * sese.h (struct sese_l): Removed assignment operator.
5168         (split_region_for_bb): Removed dead code.
5170 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
5172         * graphite-poly.h (struct dr_info): Removed conversion constructor.
5173         (struct scop): Renamed scop::region to scop::scop_info
5174         (scop_set_region): Same.
5175         (SCOP_REGION): Removed
5176         (SCOP_CONTEXT): Removed.
5177         (POLY_SCOP_P): Removed.
5178         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5179         Rename scop->region to scop->scop_info.
5180         (add_parameters_to_ivs_params): Same.
5181         (graphite_regenerate_ast_isl): Same.
5182         * graphite-poly.c (new_scop): Same.
5183         (free_scop): Same.
5184         (print_scop_params): Same.
5185         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5186         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5187         (dot_all_scops_1): Rename scop->region to scop->scop_info.
5188         (scop_detection::nb_pbbs_in_loops): Same.
5189         (find_scop_parameters): Same.
5190         (try_generate_gimple_bb): Same.
5191         (gather_bbs::before_dom_children): Same.
5192         (gather_bbs::after_dom_children): Same.
5193         (build_scops): Same.
5194         * graphite-sese-to-poly.c (build_scop_scattering): Same.
5195         (extract_affine_chrec): Same.
5196         (extract_affine): Same.
5197         (set_scop_parameter_dim): Same.
5198         (build_loop_iteration_domains): Same.
5199         (create_pw_aff_from_tree): Same.
5200         (add_param_constraints): Same.
5201         (build_scop_iteration_domain): Same.
5202         (build_scop_drs): Same.
5203         (analyze_drs_in_stmts): Same.
5204         (insert_out_of_ssa_copy_on_edge): Same.
5205         (rewrite_close_phi_out_of_ssa):Same.
5206         (rewrite_reductions_out_of_ssa):Same.
5207         (handle_scalar_deps_crossing_scop_limits):Same.
5208         (rewrite_cross_bb_scalar_deps):Same.
5209         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5210         (build_poly_scop):Same.
5211         (build_alias_set): Use pointer to dr_info.
5212         * graphite.c (print_graphite_scop_statistics):
5213         (graphite_transform_loops):
5214         * sese.h (struct sese_l): Remove conversion constructor.
5216 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5218         PR middle-end/67966
5219         * tree.c (verify_type): Verify that TYPE_MODE match
5220         between TYPE_CANONICAL and type.
5221         * expr.c (store_expr_with_bounds): Revert my previous change.
5222         * expmed.c (store_bit_field_1): Revert prevoius change.
5223         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5224         to match for all types.
5226 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
5228         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5229         nesting.
5231 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5233         * doc/tm.texi: Regenerated.
5234         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5235         * stor-layout.c (layout_type): Use mode to get vector mask size.
5236         * target.def (get_mask_mode): New.
5237         * targhooks.c (default_get_mask_mode): New.
5238         * targhooks.h (default_get_mask_mode): New.
5239         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5240         for boolean vector.
5241         * tree.c (MAX_BOOL_CACHED_PREC): New.
5242         (nonstandard_boolean_type_cache): New.
5243         (build_nonstandard_boolean_type): New.
5244         (make_vector_type): Vector mask has no canonical type.
5245         (build_truth_vector_type): New.
5246         (build_same_sized_truth_vector_type): New.
5247         (truth_type_for): Support vector masks.
5248         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5249         (build_truth_vector_type): New.
5250         (build_same_sized_truth_vector_type): New.
5251         (build_nonstandard_boolean_type): New.
5252         * tree-cfg.c (verify_gimple_comparison) Require boolean
5253         vector type for vector comparison.
5254         (verify_gimple_assign_ternary): Likewise.
5255         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5256         condition operand.
5257         * tree-vect-stmts.c (vectorizable_condition): Use boolean
5258         vector type for vector comparison.
5259         * tree-vect-generic.c (elem_op_func): Add new operand to hold
5260         vector type.
5261         (do_unop): Adjust to modified function type.
5262         (do_binop): Likewise.
5263         (do_plus_minus): Likewise.
5264         (do_negate); Likewise.
5265         (expand_vector_piecewise): Likewise.
5266         (do_cond): Likewise.
5267         (do_compare): Use comparison instead of condition.
5268         (expand_vector_divmod): Use boolean vector type for comparison.
5269         (expand_vector_operations_1): Skip scalar mask operations.
5271 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
5273         * omp-low.c (simd_clone_create): Set in_other_partition
5274         for created clones.
5276 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
5278         * doc/extend.exp (Local Register Variables): Rewrite.
5280 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
5282         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5283         and x*x in cases where the operands are sign ops.  Extend these
5284         rules to handle copysign as a sign op (including for cos, cosh
5285         and pow, which already treated negate and abs as sign ops).
5287 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
5289         PR target/68018
5290         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5291         for 64-bit MS_ABI targets also when default incoming stack boundary
5292         is overriden.
5294 2015-10-21  Richard Biener  <rguenther@suse.de>
5296         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5297         cond stmts, enhanced and split out from ...
5298         (vn_phi_eq): ... here.
5300 2015-10-21  Richard Biener  <rguenther@suse.de>
5302         PR middle-end/68031
5303         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5304         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5305         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
5306         make sure they are not registered for update.
5308 2015-10-21  Richard Biener  <rguenther@suse.de>
5310         PR tree-optimization/68026
5311         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5312         unsigned VARYING values.
5314 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
5316         * asan.c (asan_emit_stack_protection): Don't pass local stack to
5317         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5318         NULL and use local stack than.
5319         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5320         in addition to __asan_init.
5321         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5322         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5323         * asan.h (asan_intercepted_p): Handle new string builtins.
5324         * ubsan.c (ubsan_use_new_style_p): New function.
5325         (ubsan_instrument_float_cast): If location is unknown, assign
5326         input_location to loc. Propagate loc to ubsan_create_data if
5327         ubsan_use_new_style_p returned true.
5329 2015-10-21  Jeff Law  <law@redhat.com>
5331         * Makefile.in (OBJS): Remove sched-vis.c
5332         * sched-vis.c: Removed.  Code moved into...
5333         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
5334         * rtl.h: Remove prototypes for functions now living in print-rtl.c
5335         * print-rtl.h Add prototypes for new functions in print-rtl.c.
5336         * auto-inc-dec.c: Include print-rtl.h
5337         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5338         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5340         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5341         ATTRIBUTE_UNUSED.
5343 2015-10-21  Richard Biener  <rguenther@suse.de>
5344             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5346         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5347         to match.pd.
5348         Move (a * (1 << b)) is (a << b) to match.pd.
5349         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5350         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5351         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5353         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5354         New simplifier.
5355         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5356         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5357         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5358         : New simplifier.
5359         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5360         New simplifier.
5361         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5363 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
5364             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5365             Alan Modra  <amodra@gmail.com>
5367         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5368         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5369         (LINK_SPEC): Add %(link_secure_plt).
5370         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5371         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5373 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
5374             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5376         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5377         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5379 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5381         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5382         New function.
5383         (fusion_load_store): Use it.
5384         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5385         ldp and stp in VD modes.
5386         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5387         (store_pair<mode>, VD): Likewise.
5389 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
5391         PR rtl-optimization/67609
5392         * lra-splill.c (lra_final_code_change): Don't remove all
5393         sub-registers.
5395 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5397         * simplify-rtx.c (simplify_binary_operation): If either operand was
5398         a constant pool reference use them if all other simplifications failed.
5400 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5402         * config/aarch64/aarch64.md
5403         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5404         * config/aarch64/aarch64-simd.md
5405         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5406         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5407         (aarch64_fpconst_pow_of_2): New function.
5408         (aarch64_vec_fpconst_pow_of_2): Likewise.
5409         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5410         prototype.
5411         (aarch64_vec_fpconst_pow_of_2): Likewise.
5412         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5413         (aarch64_fp_vec_pow2): Likewise.
5415 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
5417         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5418         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
5419         * config/alpha/alpha.c (alpha_function_arg_advance): Update
5420         ALPHA_ARG_SIZE usage.
5421         (alpha_arg_partial_bytes): Ditto.
5423 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5425         PR target/66810
5426         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5427         error_mark_node decls.
5429 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5431         PR target/67963
5432         PR target/67985
5433         * common/config/i386/i386-common.c (ix86_handle_option): Remove
5434         OPT_miamcu handling.
5435         * config/i386/i386.c (PTA_NO_80387): New macro.
5436         (processor_alias_table): Add PTA_NO_80387 to lakemont.
5437         (ix86_option_override_internal): Update MASK_80387 from
5438         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
5439         SSE math only if 80387 is supported.  Don't change
5440         MASK_FLOAT_RETURNS.
5441         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5442         80387 is supported.
5443         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5444         if TARGET_80387 is true and TARGET_IAMCU is false.
5445         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5446         is true and TARGET_IAMCU_P is false.
5448 2015-10-20  Richard Biener  <rguenther@suse.de>
5450         PR tree-optimization/68017
5451         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5453 2015-10-20  Martin Liska  <mliska@suse.cz>
5455         * cgraphclones.c (cgraph_node::create_virtual_clone):
5456         Verify cgraph_node.local.versionable instead of calling
5457         tree_versionable_function_p.
5458         * ipa-cp.c (determine_versionability): Save the information
5459         to ipa_node_params summary.
5460         (ipcp_versionable_function_p): Use it.
5461         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5462         (ipcp_generate_summary): Do not compute cgraph_node
5463         versionability.
5464         * ipa-inline-analysis.c (inline_generate_summary): Compute
5465         versionability for all cgraph nodes.
5466         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5467         ipa_node_params::versionability.
5468         * ipa-prop.h (struct ipa_node_params): Declare it.
5470 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5472         PR other/67868
5473         * varasm.c (assemble_variable): Move special vtv handling to..
5474         (handle_vtv_comdat_sections): .. here. New function.
5475         (output_object_block): Handle vtv sections.
5477 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5479         PR target/66912
5480         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5482 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
5484         * doc/extend.texi: Update documentation WRT inline functions.
5486 2015-10-20  Alan Modra  <amodra@gmail.com>
5488         PR go/66870
5489         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5490         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5491         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5493 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
5495         PR rtl-optimization/66790
5496         * df.h (DF_MIR): New macro.
5497         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5498         (DF_MIR_INFO_BB): New macro.
5499         (DF_MIR_IN, DF_MIR_OUT): New macros.
5500         (struct df_mir_bb_info): New.
5501         (df_mir): New macro.
5502         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5503         declarations.
5504         (df_mir_get_bb_info): New.
5505         * df-problems.c (struct df_mir_problem_data): New.
5506         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5507         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5508         df_mir_confluence_0, df_mir_confluence_n,
5509         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5510         df_mir_bottom_dump, df_mir_verify_solution_start,
5511         df_mir_verify_solution_end): New.
5512         (problem_MIR): New.
5513         (df_mir_add_problem, df_mir_simulate_one_insn): New.
5514         * timevar.def (TV_DF_MIR): New.
5515         * ree.c: Include bitmap.h
5516         (add_removable_extension): Add an INIT_REGS parameter.  Use it
5517         to skip zero-extensions that may get an uninitialized register.
5518         (find_removable_extensions): Compute must-initialized registers
5519         using the MIR dataflow problem. Update the call to
5520         add_removable_extension.
5521         (find_and_remove_re): Call df_mir_add_problem.
5523 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
5525         * common/config/mn10300/mn10300-common.c
5526         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5527         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5529 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
5531         * doc/extend.texi (Explicit Register Variables): Simplify and
5532         avoid unnecessary and confusion abbreviations.  Update cross
5533         references.
5534         doc/implement-c.tex: Update cross reference.
5536 2015-10-19  Jeff Law  <law@redhat.com>
5538         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5539         that create irreducible loops unless the path elimiantes a multiway
5540         branch.
5542 2015-10-19  Richard Biener  <rguenther@suse.de>
5544         PR tree-optimization/67975
5545         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5546         * tree-cfg.c (extract_true_false_controlled_edges): Split out
5547         core worker from ...
5548         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5549         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5550         instead of block number for PHIs with two or one args.
5551         (vn_phi_eq): Compare edge predicates of PHIs that are in different
5552         blocks.
5554 2015-10-19  Richard Biener  <rguenther@suse.de>
5556         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5557         (gimple_stmt_nonnegative_warnv_p): Use it.
5558         * match.pd (CPROJ): New operator list.
5559         (cproj (complex ...)): Move simplifications from ...
5560         * builtins.c (fold_builtin_cproj): ... here.
5562 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5564         * config/i386/i386.c (ix86_expand_vector_move): Use
5565         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5566         alignment.
5568 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5570         * doc/invoke.texi: Replace @optindex with @opindex.
5572 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
5574         PR target/67995
5575         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5576         arch= is set,  clear all bits in x_ix86_isa_flags, except for
5577         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5579 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
5581         PR middle-end/68002
5582         * common.opt (fkeep-static-functions): New option.
5583         * doc/invoke.texi: Document it.
5584         * cgraphunit.c (cgraph_node::finalize_function): Use it.
5586 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5588         * sched-int.h (struct autopref_multipass_data_): Remove offset
5589         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
5590         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5591         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
5592         (autopref_rank_data): New function.
5593         (autopref_rank_for_schedule): Use it.
5594         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5596 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
5598         PR other/65800
5599         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5601 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5603         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5604         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
5605         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5606         (STANDARD_STARTFILE_PREFIX_1): New.
5607         (STANDARD_STARTFILE_PREFIX_2): New.
5609 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5611         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5612         (darwin_driver_init): Note a version-min when provided on the c/l.
5613         * config/darwin.h (%darwin_minversion): Remove.
5614         * config/i386/darwin.h: Likewise.
5615         * config/rs6000/darwin.h: Likewise.
5616         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5617         rather than an arbitrary constant.
5619 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5621         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5622         PPC, detect conflicts between -arch and multilib settings.  Detect
5623         and warn about conflicts between multiple -arch definitions.
5625 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
5627         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5629 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5631         * lra-constraints.c (add_next_usage_insn): Change argument type
5632         from rtx to rtx_insn *.
5634 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
5636         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5637         for Lakemont.
5639 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
5641         * config/tilepro/gen-mul-tables.cc: Adjust include files.
5642         * config/tilegx/mul-tables.c: Regenerate.
5643         * config/tilepro/mul-tables.c: Regenerate.
5645         * config/tilegx/tilegx-c.c: Adjust include files.
5646         * config/tilegx/tilegx.c: Likewise.
5647         * config/tilepro/tilepro-c.c: Likewise.
5648         * config/tilepro/tilepro.c: Likewise.
5649         * config/aarch64/aarch64-builtins.c: Likewise.
5650         * config/aarch64/aarch64.c: Likewise.
5651         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5652         * config/alpha/alpha.c: Likewise.
5653         * config/arc/arc.c: Likewise.
5654         * config/arm/aarch-common.c: Likewise.
5655         * config/arm/arm-builtins.c: Likewise.
5656         * config/arm/arm-c.c: Likewise.
5657         * config/arm/arm.c: Likewise.
5658         * config/avr/avr-c.c: Likewise.
5659         * config/avr/avr-devices.c: Likewise.
5660         * config/avr/avr-log.c: Likewise.
5661         * config/avr/avr.c: Likewise.
5662         * config/bfin/bfin.c: Likewise.
5663         * config/c6x/c6x.c: Likewise.
5664         * config/cr16/cr16.c: Likewise.
5665         * config/cris/cris.c: Likewise.
5666         * config/darwin-c.c: Likewise.
5667         * config/darwin-driver.c: Likewise.
5668         * config/darwin.c: Likewise.
5669         * config/default-c.c: Likewise.
5670         * config/epiphany/epiphany.c: Likewise.
5671         * config/epiphany/mode-switch-use.c: Likewise.
5672         * config/epiphany/resolve-sw-modes.c: Likewise.
5673         * config/fr30/fr30.c: Likewise.
5674         * config/frv/frv.c: Likewise.
5675         * config/ft32/ft32.c: Likewise.
5676         * config/glibc-c.c: Likewise.
5677         * config/h8300/h8300.c: Likewise.
5678         * config/i386/host-cygwin.c: Likewise.
5679         * config/i386/host-mingw32.c: Likewise.
5680         * config/i386/i386-c.c: Likewise.
5681         * config/i386/i386.c: Likewise.
5682         * config/i386/msformat-c.c: Likewise.
5683         * config/i386/winnt-cxx.c: Likewise.
5684         * config/i386/winnt-stubs.c: Likewise.
5685         * config/i386/winnt.c: Likewise.
5686         * config/ia64/ia64-c.c: Likewise.
5687         * config/ia64/ia64.c: Likewise.
5688         * config/iq2000/iq2000.c: Likewise.
5689         * config/lm32/lm32.c: Likewise.
5690         * config/m32c/m32c-pragma.c: Likewise.
5691         * config/m32c/m32c.c: Likewise.
5692         * config/m32r/m32r.c: Likewise.
5693         * config/mcore/mcore.c: Likewise.
5694         * config/mep/mep-pragma.c: Likewise.
5695         * config/mep/mep.c: Likewise.
5696         * config/microblaze/microblaze-c.c: Likewise.
5697         * config/microblaze/microblaze.c: Likewise.
5698         * config/mips/mips-tables.opt
5699         * config/mips/mips.c: Likewise.
5700         * config/mmix/mmix.c: Likewise.
5701         * config/mn10300/mn10300.c: Likewise.
5702         * config/moxie/moxie.c: Likewise.
5703         * config/msp430/msp430-c.c: Likewise.
5704         * config/msp430/msp430.c: Likewise.
5705         * config/nds32/nds32-cost.c: Likewise.
5706         * config/nds32/nds32-fp-as-gp.c: Likewise.
5707         * config/nds32/nds32-intrinsic.c: Likewise.
5708         * config/nds32/nds32-isr.c: Likewise.
5709         * config/nds32/nds32-md-auxiliary.c: Likewise.
5710         * config/nds32/nds32-memory-manipulation.c: Likewise.
5711         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5712         * config/nds32/nds32-predicates.c: Likewise.
5713         * config/nds32/nds32.c: Likewise.
5714         * config/nios2/nios2.c: Likewise.
5715         * config/nvptx/mkoffload.c: Likewise.
5716         * config/nvptx/nvptx.c: Likewise.
5717         * config/pa/pa.c: Likewise.
5718         * config/pdp11/pdp11.c: Likewise.
5719         * config/rl78/rl78-c.c: Likewise.
5720         * config/rl78/rl78.c: Likewise.
5721         * config/rs6000/host-darwin.c: Likewise.
5722         * config/rs6000/rs6000-c.c: Likewise.
5723         * config/rs6000/rs6000-linux.c: Likewise.
5724         * config/rs6000/rs6000.c: Likewise.
5725         * config/rx/rx.c: Likewise.
5726         * config/s390/s390-c.c: Likewise.
5727         * config/s390/s390.c: Likewise.
5728         * config/sh/sh-c.c: Likewise.
5729         * config/sh/sh-mem.cc: Likewise.
5730         * config/sh/sh.c: Likewise.
5731         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5732         * config/sh/sh_treg_combine.cc: Likewise.
5733         * config/sol2-c.c: Likewise.
5734         * config/sol2-cxx.c: Likewise.
5735         * config/sol2-stubs.c: Likewise.
5736         * config/sol2.c: Likewise.
5737         * config/sparc/sparc-c.c: Likewise.
5738         * config/sparc/sparc.c: Likewise.
5739         * config/spu/spu-c.c: Likewise.
5740         * config/spu/spu.c: Likewise.
5741         * config/stormy16/stormy16.c: Likewise.
5742         * config/v850/v850-c.c: Likewise.
5743         * config/v850/v850.c: Likewise.
5744         * config/vax/vax.c: Likewise.
5745         * config/visium/visium.c: Likewise.
5746         * config/vms/vms-c.c: Likewise.
5747         * config/vms/vms.c: Likewise.
5748         * config/vxworks.c: Likewise.
5749         * config/winnt-c.c: Likewise.
5750         * config/xtensa/xtensa.c: Likewise.
5752 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5754         PR target/67745
5755         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5756         (FUNCTION_BOUNDARY_P): New macro:
5757         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5758         New hook.
5759         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5760         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5761         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5762         * function.c (allocate_struct_function): Call
5763         relayout_function hook.
5764         * passes.c (rest_of_decl_compilation): Likewise.
5766 2015-10-16  Christian Bruel  <christian.bruel@st.com>
5768         PR target/67745
5769         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5770         * config/arm/arm.c (arm_option_override_internal): Call
5771         arm_override_options_after_change_1.
5772         (arm_override_options_after_change): New function.
5773         (arm_override_options_after_change_1): Likewise.
5774         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5776 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5778         Revert:
5779         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5780         empty constructors.
5782 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
5784         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5785         argument is an ADDR_EXPR.
5787 2015-10-16  Richard Biener  <rguenther@suse.de>
5789         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5790         and get rid of force_gimple_operand_gsi.
5791         (gimple_fold_builtin_memory_chk): Likewise.
5792         (gimple_fold_builtin_stxcpy_chk): Likewise.
5793         (rewrite_to_defined_overflow): Likewise.
5794         (gimple_convert_to_ptrofftype): New function.
5795         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5797 2015-10-16  Richard Biener  <rguenther@suse.de>
5799         * tree-nested.h (build_addr): Adjust prototype.
5800         * tree-nested.c (build_addr): Remove context argument and use
5801         mark_addressable.
5802         (get_static_chain): Adjust calls to build_addr.
5803         (convert_nl_goto_reference): Likewise.
5804         (convert_tramp_reference_op): Likewise.
5805         (finalize_nesting_tree_1): Likewise.
5806         * value-prof.c (gimple_ic): Likewise.
5807         * gimple-low.c (lower_builtin_setjmp): Likewise.
5808         * tree-parloops.c (take_address_of): Likewise.
5809         (create_call_for_reduction_1): Likewise.
5810         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5811         (gimple_gen_ic_func_profiler): Likewise.
5813 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
5815         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5816         empty constructors.
5818 2015-10-16  Michael Collison  <michael.collison@linaro.org>
5819             Andrew Pinski <andrew.pinski@caviumnetworks.com>
5821         * match.pd ((x < y) && (x < z) -> x < min (y,z),
5822         (x > y) and (x > z) -> x > max (y,z))
5824 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
5825             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5827         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5828         (DYNAMIC_LINKER): Renamed to ...
5829         (GLIBC_DYNAMIC_LINKER): This.
5830         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5832 2015-10-15  Marek Polacek  <polacek@redhat.com>
5834         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5835         gimple_call_builtin instead of is_gimple_call.
5837 2015-10-15  Richard Biener  <rguenther@suse.de>
5839         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5841 2015-10-15  Richard Biener  <rguenther@suse.de>
5843         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5844         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5845         * tree-vect-loop.c (get_initial_def_for_induction): Drop
5846         use of force_gimple_operand in favor of gimple_build.
5847         Use vect_get_new_ssa_name.
5848         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5849         (vectorizable_mask_load_store): Likewise.
5850         (vectorizable_call): Likewise.
5851         (vectorizable_store): Likewise.
5852         (vectorizable_load): Likewise.
5853         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5855 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
5857         PR tree-optimization/67945
5858         * tree-pass.h (PROP_gimple_opt_math): New property flag.
5859         * generic-match-head.c (canonicalize_math_p): New function.
5860         * gimple-match-head.c: Include tree-pass.h.
5861         (canonicalize_math_p): New function.
5862         * match.pd: Group math built-in rules into simplifications
5863         and canonicalizations.  Guard the latter with canonicalize_math_p.
5864         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
5865         PROP_gimple_opt_math property.
5867 2015-10-15  Marek Polacek  <polacek@redhat.com>
5869         PR tree-optimization/67953
5870         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5872 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
5874         * config.gcc: Recognize "." in architecture base name for AArch64.
5876 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
5878         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5879         ROUND_UP macro.
5880         * config/mips/mips.c (mips_setup_incoming_varargs): Use
5881         ROUND_DOWN to calculate off.
5882         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5883         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5884         rounded_size.
5886 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
5888         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5890 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
5891             Torvald Riegel  <triegel@redhat.com>
5893         PR target/67281
5894         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5895         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5896         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5897         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5898         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
5899         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5900         trechkpt, treclaim, tsr, ttest): New define_expands.
5901         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5902         __TM_FENCE__ for htm.
5903         * doc/extend.texi: Update documentation for htm builtins.
5905 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
5907         PR target/67967
5908         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5909         REG_CFA_EXPRESSION to aligned SSE stores.
5911 2015-10-14  Jeff Law  <law@redhat.com>
5913         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5914         num_threaded_edges for successful FSM threads too.
5916 2015-10-14  Richard Biener  <rguenther@suse.de>
5918         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5919         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
5920         (vect_get_vec_def_for_operand): Remove unused parameter.
5921         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5922         (vect_create_epilog_for_reduction): Likewise.
5923         (vectorizable_reduction): Likewise.
5924         (vectorizable_live_operation): Likewise.
5925         * tree-vect-patterns.c (type_conversion_p): Likewise.
5926         (vect_recog_vector_vector_shift_pattern): Likewise.
5927         (check_bool_pattern): Likewise.
5928         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5929         (vect_analyze_slp_cost_1): Likewise.
5930         * tree-vect-stmts.c (process_use): Likewise.
5931         (vect_get_vec_def_for_operand): Do not handle reductions.
5932         (vect_get_vec_defs): Adjust.
5933         (vectorizable_mask_load_store): Likewise.
5934         (vectorizable_call): Likewise.
5935         (vectorizable_simd_clone_call): Likewise.
5936         (vect_get_loop_based_defs): Likewise.
5937         (vectorizable_conversion): Likewise.
5938         (vectorizable_assignment): Likewise.
5939         (vectorizable_shift): Likewise.
5940         (vectorizable_operation): Likewise.
5941         (vectorizable_store): Likewise.
5942         (vectorizable_load): Likewise.
5943         (vect_is_simple_cond): Likewise.
5944         (vectorizable_condition): Likewise.
5945         (vect_is_simple_use): Remove unused parameters.
5946         (vect_is_simple_use_1): Adjust and rename.
5948 2015-10-14  Richard Biener  <rguenther@suse.de>
5950         PR tree-optimization/67915
5951         * match.pd: Handle comparisons of addresses of STRING_CSTs.
5952         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5953         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5954         stmt folding in favor of GIMPLE one.
5956 2015-10-14  Marek Polacek  <polacek@redhat.com>
5958         PR tree-optimization/67815
5959         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5960         (reassociate_bb): Call it.
5962 2015-10-14  Richard Biener  <rguenther@suse.de>
5964         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5965         Reset info at start.
5966         (vect_analyze_group_access_1): Add debug print.
5967         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5968         (vect_compute_single_scalar_iteration_cost): ... to this.
5969         (vect_analyze_loop_2): Adjust.
5970         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5971         * tree-vectorizer.h: ... here.
5972         (add_stmt_info_to_vec): Remove.
5973         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5975 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5977         * targhooks.c (default_target_option_pragma_parse): Do not warn if
5978         called on behalf of "#pragma GCC pop_options".
5980 2015-10-14  Tom de Vries  <tom@codesourcery.com>
5982         * cfganal.c (verify_no_unreachable_blocks): New function.
5983         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5984         verify_no_unreachable_blocks.
5985         cfganal.h (verify_no_unreachable_blocks): Declare.
5987 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
5989         * common.opt: Add flag_checking.
5990         * system.h (CHECKING_P): Define.
5992 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
5993             Aldy Hernandez  <aldyh@redhat.com>
5994             Ilya Verbin  <ilya.verbin@intel.com>
5996         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5997         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5998         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5999         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6000         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6001         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6002         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6003         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6004         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6005         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6006         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6007         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6008         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6009         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6010         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6011         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6012         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6013         (struct cgraph_simd_clone_arg): Adjust comment.
6014         * coretypes.h (struct gomp_ordered): New forward decl.
6015         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6016         set critical clauses to it.
6017         (gimple_build_omp_ordered): Return gomp_ordered * instead of
6018         gimple *.  Add CLAUSES argument, set ordered clauses to it.
6019         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6020         GIMPLE_OMP_ORDERED.
6021         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6022         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6023         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
6024         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6025         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
6026         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6027         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
6028         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6029         renumber
6030         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6031         (gomp_critical): Add clauses field.
6032         (gomp_ordered): New struct.
6033         (is_a_helper <gomp_ordered *>::test): New inline.
6034         (gimple_build_omp_critical): Add CLAUSES argument.
6035         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
6036         instead of gimple *.
6037         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6038         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6039         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6040         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6041         inline functions.
6042         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6043         (dump_gimple_omp_target): Handle enter data and exit data.
6044         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6045         (dump_gimple_omp_critical): Print clauses.
6046         (dump_gimple_omp_ordered): New function.
6047         (dump_gimple_omp_task): Handle taskloop.
6048         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6049         GIMPLE_OMP_ORDERED.
6050         * gimple-walk.c (walk_gimple_op): Walk clauses on
6051         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6052         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6053         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6054         (struct gimplify_omp_ctx): Add loop_iter_var,
6055         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6056         and target_firstprivatize_array_bases fields.
6057         (delete_omp_context): Release loop_iter_var.
6058         (gimplify_bind_expr): Handle ORT_NONE.
6059         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6060         ORT_COMBINED_TARGET.
6061         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6062         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6063         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
6064         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
6065         ctx->target_map_scalars_firstprivate.
6066         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
6067         data sharing clauses.  For data sharing clause with VLA decl
6068         on omp target/target data don't add firstprivate for the pointer.
6069         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6070         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6071         the addition of ORT_COMBINED_TARGET.
6072         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
6073         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
6074         pointers as zero length array sections and
6075         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6076         data sharing.
6077         (omp_check_private): Handle omp_member_access_dummy_var vars.
6078         (find_decl_expr): New function.
6079         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
6080         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6081         Handle OMP_CLAUSE_GANG separately.  Handle
6082         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6083         clauses.  Diagnose linear clause on combined
6084         distribute {, parallel for} simd construct, unless it is the loop
6085         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6086         Handle map clauses with COMPONENT_REF.  Initialize
6087         ctx->target_map_scalars_firstprivate,
6088         ctx->target_firstprivatize_array_bases and
6089         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
6090         linear clause even to target region if combined.  Remove
6091         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6092         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
6093         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6094         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
6095         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6096         For linear clause on worksharing loop combined with parallel add
6097         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
6098         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
6099         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
6100         taskloop if needed.
6101         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6102         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6103         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6104         GOMP_MAP_POINTER.
6105         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
6106         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6107         in target body.  Handle removal of struct mapping if struct is not
6108         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
6109         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
6110         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
6111         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6112         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6113         clause appear together.  Handle
6114         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
6115         clause if it has map-type-modifier always.  Handle
6116         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6117         clauses.
6118         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6119         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6120         callers.
6121         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
6122         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
6123         iterators in doacross loops.
6124         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6125         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
6126         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
6127         for the addition of ORT_COMBINED_TARGET.
6128         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6129         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
6130         and OMP_TARGET_EXIT_DATA.
6131         (gimplify_omp_ordered): New function.
6132         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6133         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
6134         Gimplify clauses on OMP_CRITICAL.
6135         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6136         expand_GOMP_SIMD_ORDERED_END): New functions.
6137         * internal-fn.def (GOMP_SIMD_ORDERED_START,
6138         GOMP_SIMD_ORDERED_END): New internal functions.
6139         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6140         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6141         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6142         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6143         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6144         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6145         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6146         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6147         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6148         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6149         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6150         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6151         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6152         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6153         adjust type.
6154         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6155         GOMP_target_data_41, adjust type.
6156         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6157         GOMP_target_update_41, adjust type.
6158         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6159         field.
6160         (struct omp_for_data): Add ordered and simd_schedule fields.
6161         (omp_member_access_dummy_var, unshare_and_remap_1,
6162         unshare_and_remap, is_taskloop_ctx): New functions.
6163         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6164         (extract_omp_for_data): Handle taskloops and doacross loops
6165         and simd schedule modifier.
6166         (omp_adjust_chunk_size): New function.
6167         (get_ws_args_for): Use it.
6168         (lookup_sfield): Change first argument to splay_tree_key,
6169         add overload with first argument tree.
6170         (maybe_lookup_field): Likewise.
6171         (use_pointer_for_field): Handle omp_member_access_dummy_var.
6172         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6173         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6174         (build_outer_var_ref): Add LASTPRIVATE argument, handle
6175         taskloops and omp_member_access_dummy_var vars.
6176         (build_sender_ref): Change first argument to splay_tree_key,
6177         add overload with first argument tree.
6178         (install_var_field): For mask & 8 use &DECL_UID as key instead
6179         of the tree itself.
6180         (fixup_child_record_type): Const qualify *.omp_data_i.
6181         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6182         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6183         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6184         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6185         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6186         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6187         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6188         kinds.
6189         (add_taskreg_looptemp_clauses): New function.
6190         (scan_omp_parallel): Use it.
6191         (scan_omp_task): Likewise.
6192         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6193         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6194         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6195         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
6196         sandwiched taskloop constructs.  Type check
6197         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
6198         region.  Diagnose depend(source) or depend(sink:...) on
6199         target constructs or task/taskloop.
6200         (handle_simd_reference): Use get_name.
6201         (lower_rec_input_clauses): Likewise.  Ignore all
6202         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6203         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
6204         before passing it to omp_clause_{default,copy}_ctor.  Handle
6205         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
6206         lastprivate_firstprivate flag for linear that needs copyin and
6207         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6208         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6209         on taskloop lookup decl in outer context.  Pass true to
6210         build_outer_var_ref lastprivate argument.  Handle
6211         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6212         outside of outer taskloop for.
6213         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6214         OMP_CLAUSE_DECL.
6215         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6216         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
6217         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
6218         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
6219         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6220         abstract origin.  Handle omp_member_access_dummy_var vars.
6221         (expand_parallel_call): Use expand_omp_build_assign.
6222         (expand_task_call): Handle taskloop construct expansion.  Add
6223         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
6224         integers.  Add priority argument to GOMP_task* calls.  Or in
6225         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6226         GOMP_task call.
6227         (expand_omp_build_assign): Add prototype.  Add AFTER
6228         argument, if true emit statements after *GSI_P and continue linking.
6229         (expand_omp_taskreg): Adjust expand_task_call caller.
6230         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6231         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6232         zero_iter2_bb and first_zero_iter2 arguments, handle computation
6233         of counts even for ordered loops.
6234         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6235         (expand_omp_ordered_source, expand_omp_ordered_sink,
6236         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6237         functions.
6238         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
6239         clauses on worksharing loop.  Handle DOACROSS loop expansion.
6240         (expand_omp_for_static_nochunk): Handle linear clauses on
6241         worksharing loop.  Adjust expand_omp_for_init_counts
6242         callers.
6243         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
6244         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
6245         expand_omp_for_init_counts callers.
6246         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6247         functions.
6248         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6249         Handle doacross loops.
6250         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6251         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
6252         GOMP_target_{41,update_41,enter_exit_data} libcalls.
6253         (expand_omp): Don't expand ordered depend constructs here, record
6254         ord_stmt instead for later expand_omp_for_generic.
6255         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6256         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
6257         clause as stand-alone directive.
6258         (lower_omp_ordered_clauses): New function.
6259         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6260         don't lower anything.
6261         (lower_omp_for_lastprivate): Use last _looptemp_ clause
6262         on taskloop for comparison.
6263         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
6264         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6265         expansion for linear adjustments.
6266         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6267         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6268         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
6269         to tree * pointing to the stmt's clauses.
6270         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6271         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6272         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6273         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6274         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6275         clauses.  Always use short kind and 8-bit align shift.
6276         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6277         (struct lower_omp_regimplify_operands_data): New type.
6278         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6279         New functions.
6280         (lower_omp_1): Use lower_omp_regimplify_operands instead of
6281         gimple_regimplify_operands.
6282         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6283         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
6284         clause as stand-alone directive.
6285         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6286         (simd_clone_mangle): Mangle the various linear kinds
6287         per the new ABI.
6288         (simd_clone_adjust_argument_types): Handle
6289         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6290         (simd_clone_init_simd_arrays): Don't do anything for uval.
6291         (simd_clone_adjust): Handle
6292         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6293         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6294         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6295         * omp-low.h (omp_member_access_dummy_var): New prototype.
6296         * passes.def (pass_simduid_cleanup): Schedule another copy of the
6297         pass after all optimizations.
6298         * tree.c (omp_clause_code_name): Add entries for
6299         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6300         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6301         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
6302         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6303         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6304         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
6305         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6306         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6307         clauses.
6308         * tree-core.h (enum omp_clause_linear_kind): New.
6309         (struct tree_omp_clause): Change type of map_kind
6310         from unsigned char to unsigned int.  Add subcode.if_modifier
6311         and subcode.linear_kind fields.
6312         (enum omp_clause_code): Add
6313         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6314         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6315         (OMP_CLAUSE_REDUCTION): Document
6316         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6317         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6318         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6319         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
6320         operand.
6321         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
6322         operand.
6323         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6324         codes.
6325         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6326         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6327         char.
6328         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6329         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6330         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6331         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6332         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6333         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6334         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6335         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6336         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6337         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6338         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6339         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6340         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6341         * tree-inline.c (remap_gimple_stmt): Handle clauses on
6342         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
6343         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6344         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6345         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6346         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6347         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6348         (convert_local_omp_clauses): Likewise.
6349         * tree-pretty-print.c (dump_omp_clause): Handle
6350         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6351         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6352         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6353         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6354         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
6355         GOMP_MAP_FORCE_DEALLOC.  Handle
6356         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6357         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6358         and clauses on OMP_ORDERED and OMP_CRITICAL.
6359         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6360         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6361         (vectorize_loops): Adjust comments.
6362         (pass_simduid_cleanup::execute): Likewise.
6363         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6364         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6365         * wide-int.h (wi::gcd): New.
6367 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6369         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6370         (ix86_function_arg_advance): Ditto.
6371         (ix86_function_arg): Ditto.
6372         (ix86_gimplify_va_arg): Ditto.
6373         (ix86_class_max_nregs): Ditto.
6374         (inline_memory_move_cost): Ditto.
6375         (ix86_set_reg_reg_cost): Ditto.
6376         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6378 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
6380         PR middle-end/67912
6381         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6383 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
6385         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6386         ROUND_UP macro and UNITS_PER_WORD * 2.
6387         * config/sparc/sparc.c (sparc_compute_frame_size):
6388         Use ROUND_UP and ROUND_DOWN macros where applicable.
6389         (function_arg_record_value, function_arg_record_value_1)
6390         (function_arg_record_value_1): Ditto.
6391         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6392         alignment to double-word.
6393         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6394         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6395         rounded_size.
6397 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
6399         * rtl.h (print_insn): Fix prototype.
6401 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6403         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6404         -1.  Add assert that returned entry matches phi argument.
6405         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6406         free_stmt_vec_info_vec ...
6407         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
6408         with -1.
6410 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
6412         PR tree-optimization/67909, 67947
6413         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6414         really skip the inner loop.
6416 2015-10-13  Jeff Law  <law@redhat.com>
6418         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6419         Allow single block jump threading paths.
6421 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6423         PR tree-optimization/67476
6424         * doc/invoke.texi (@item parloops-schedule): New item.
6425         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6426         * tree-parloops.c: Include params-enum.h.
6427         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6429 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6431         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6432         * params-enum.h: New file.
6433         * opts.c (handle_param): Handle case that param arg is a string.
6434         * params-list.h: Handle DEFPARAMENUM5 in params.def.
6435         * params.c (find_param): New function, factored out of ...
6436         (set_param_value): ... here.
6437         (param_string_value_p): New function.
6438         * params.h (struct param_info): Add value_names field.
6439         (find_param, param_string_value_p): Declare.
6441 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6443         PR tree-optimization/67476
6444         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6446 2015-10-13  Richard Biener  <rguenther@suse.de>
6448         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6449         the data dependence vector.
6450         (vect_peeling_hash_insert): Get the peeling hash table as argument.
6451         (vect_peeling_hash_get_lowest_cost): Likewise.
6452         (vect_enhance_data_refs_alignment): Adjust.
6453         (struct _vect_peel_info, struct _vect_peel_extended_info,
6454         struct peel_info_hasher): Move from ...
6455         * tree-vectorizer.h: ... here.
6456         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6457         (LOOP_VINFO_PEELING_HTAB): Likewise.
6458         (struct _loop_vec_info): Remove min_profitable_iters and
6459         peeling_htab members.
6460         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6461         here.
6462         (destroy_loop_vec_info): Adjust.
6463         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6464         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6465         to estimate alias versioning cost.
6466         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6468 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
6470         * real.h (real_isinteger): Declare.
6471         * real.c (real_isinteger): New function.
6472         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6473         if y is an even integer.
6475 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6477         revert:
6478         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6479         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6480         counts when these are more informative.
6482 2015-10-12  Jeff Law  <law@redhat.com>
6484         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6485         (fsm_find_control_stmt_paths): Change name of first argument to
6486         more accurately relfect what it really is.  Handle simplification
6487         of GIMPLE_COND after finding a thread path for NAME.
6488         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6489         nontrivial conditions to be handled by FSM threader.
6490         (thread_through_normal_block): Extract the name to looup via
6491         FSM threader from COND_EXPR.
6493         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6494         restriction that traced SSA_NAME is a user variable.
6496 2015-10-12  Tom de Vries  <tom@codesourcery.com>
6498         PR tree-optimization/67476
6499         * omp-low.c (expand_omp_for_generic): Add missing phis.
6501 2015-10-12  Tom de Vries  <tom@codesourcery.com>
6503         PR tree-optimization/67476
6504         * omp-low.c (expand_omp_for_generic): Handle simple latch.
6506 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
6508         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6509         tables: add tbl3 and tbx4.
6510         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6511         (aarch64_tbx4v8qi): New.
6512         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6513         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6514         Rewrite using builtin functions.
6515         * config/aarch64/iterators.md (UNSPEC_TBX): New.
6517 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
6519         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6520         ROUND_UP macro.
6521         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6522         Use ROUND_UP and ROUND_DOWN macros where applicable.
6523         (rs6000_darwin64_record_arg_flush): Ditto.
6524         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6525         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6526         rounded_size.
6528 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
6530         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6531         (AARCH64_ROUND_DOWN): Ditto.
6532         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6534 2015-10-12  Richard Biener  <rguenther@suse.de>
6536         PR ipa/67783
6537         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6538         code that analyzes IVs on each stmt but in a cheaper way avoiding
6539         quadratic behavior.
6541 2015-10-12  Nick Clifton  <nickc@redhat.com>
6543         * config/msp430/msp430.c (msp430_mcu_names): Rename to
6544         msp430_mcu_data, add fields for ISA and hardware multiply
6545         support.  Import latest data from the devices.csv file.
6546         (msp430_override_option): Use the data from the new array.
6547         (msp430_use_f5_series_hwmult): Likewise.
6548         (use_32bit_hwmult): Likewise.
6549         (msp430_no_hwmult): Likewise.
6550         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6551         MCU names.
6552         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6553         not recognised then no hardware multiply support is assumed and
6554         that only the MSP430 ISA is allowed.
6556 2015-10-12  Richard Biener  <rguenther@suse.de>
6558         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6559         related code ...
6560         (vect_analyze_loop_2): ... here.
6562 2015-10-11  Jason Merrill  <jason@redhat.com>
6564         PR c++/67557
6565         * expr.c (store_field): Call store_constructor directly when
6566         storing a CONSTRUCTOR into a target smaller than its type.
6567         Guard against unsafe bitwise copy.
6569 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6571         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6572         counts when these are more informative.
6574 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6576         * tree-profile.c (tree_profiling): Do not clear
6577         pure/const when not instrumenting.
6578         (pass tree_profile): Add dump of symtab.
6580 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
6582         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6583         addresses.
6584         (fold_addr_of_array_ref_difference): Likewise.
6586 2015-10-11  Jeff Law  <law@redhat.com>
6588         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6589         tree-ssa-threadbackward.c.
6590         (fsm_find_control_statement_thread_paths): Likewise.
6591         (thread_through_normal_block): Break out FSM bits and move them
6592         into a new function in tree-ssa-threadbackward.c.  Call new function
6593         instead.
6594         Minimize header file usage.
6595         * tree-ssa-threadbackward.h: New file.
6596         * tree-ssa-threadbackward.c: Likewise.
6597         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6599 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
6601         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6603 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
6605         PR rtl-optimization/67864
6606         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6607         fallthrough edges for conditional jumps.  Don't sort candidate
6608         edges if not optimizing for speed.
6610 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6612         * defaults.h (REVERSE_CONDITION): New default definition.
6613         * jump.c (reversed_comparison_code_parts): Adjust.
6615 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6617         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6618         check HARD_FRAME_POINTER_IS_ARG_POINTER.
6620 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6622         * defaults.h (FRAME_ADDR_RTX): New default definition.
6623         * builtins.c (expand_builtin_return_addr): Adjust.
6625 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6627         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6628         * builtins.c (expand_builtin_return_addr): Adjust.
6630 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6632         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6633         * builtins.c (expand_builtin_return_addr): Adjust.
6634         * doc/tm.texi: Likewise.
6635         * doc/tm.texi.in: Likewise.
6636         * except.c (expand_builtin_unwind_init): Likewise.
6638 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6640         * builtins.c (expand_builtin_return_addr): Adjust.
6641         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6643 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6645         * tree.c (type_with_interoperable_signedness): New.
6646         (gimple_canonical_types_compatible_p): Use it.
6647         * tree.h (type_with_interoperable_signedness): Declare
6649 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
6651         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6652         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6653         when OEP_ADDRESS_OF is se.
6655 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6656             Sebastian Pop  <s.pop@samsung.com>
6658         * graphite-dependences.c (scop_get_dependences): Add dump of the
6659         data dependence graph.
6660         * graphite-poly.c (print_isl_union_map): New.
6661         (debug_isl_union_map): New.
6662         * graphite-poly.h (print_isl_union_map): Declare.
6663         (debug_isl_union_map): Declare.
6665 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
6666             Sebastian Pop  <s.pop@samsung.com>
6668         * graphite-poly.c (print_iteration_domain): Remove verbosity.
6669         Remove OpenScop formatting.
6670         (print_iteration_domains): Same.
6671         (debug_iteration_domain): Same.
6672         (debug_iteration_domains): Same.
6673         (print_pdr): Same.
6674         (debug_pdr): Same.
6675         (dump_gbb_cases): Same.
6676         (dump_gbb_conditions): Same.
6677         (print_pdrs): Same.
6678         (debug_pdrs): Same.
6679         (print_pbb_body): Same.
6680         (print_pbb): Same.
6681         (print_scop_params): Same.
6682         (print_scop_context): Same.
6683         (print_scop): Same.
6684         (debug_pbb_domain): Same.
6685         (debug_pbb): Same.
6686         (debug_scop_context): Same.
6687         (debug_scop): Same.
6688         (debug_scop_params): Same.
6689         * graphite-poly.h: Same.
6690         * graphite.c (graphite_transform_loops): Same.
6692 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6694         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6695         call that isn't needed.
6697 2015-10-09  Jeff Law  <law@redhat.com>
6699         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6700         rather than moving each name to the freelist individually.
6702 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
6704         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6705         * frame-header-opt.c: New file.
6706         * config/mips/mips-proto.h (mips_register_frame_header_opt):
6707         Add prototype.
6708         * config/mips/mips.c (mips_compute_frame_info): Check
6709         optimize_call_stack flag.
6710         (mips_option_override): Register new frame_header_opt pass.
6711         (mips_frame_info, mips_int_mask, mips_shadow_set,
6712         machine_function): Move these types to...
6713         * config/mips/mips.h: here.
6714         (machine_function): Add does_not_use_frame_header and
6715         optimize_call_stack fields.
6716         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6717         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6718         Document new flags.
6719         * config/mips/mips.opt (mframe-header-opt): Add new option.
6721 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
6723         * config/i386/i386.c
6724         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6725         ROUND_DOWN where applicable.
6727 2015-10-09  Jeff Law  <law@redhat.com>
6729         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6730         correct statement.
6732 2015-10-09  Renlin Li  <renlin.li@arm.com>
6734         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6735         operands[0] and operands[2].
6736         (neon_vtrn<mode>_insn): Likewise.
6737         (neon_vzip<mode>_insn): Likewise.
6739 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6741         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6742         ((X & C2) << C1): Expand to...
6743         (X {&,^,|} C2 << C1): ...This.
6744         ((X & C2) >> C1): Expand to...
6745         (X {&,^,|} C2 >> C1): ...This.
6747 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
6749         PR target/67895
6750         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6751         Adjust embedded rounding/SAE specifier position.
6752         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6753         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6754         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6755         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6756         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6757         Likewise.
6758         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6760 2015-10-09  Martin Jambor  <mjambor@suse.cz>
6762         tree-optimization/67794
6763         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6764         between types of state,ents but accept original definitions as a
6765         parameter.
6766         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6767         iterate over definitions.
6769 2015-10-09  James Norris  <jnorris@codesourcery.com>
6771         * config/rs6000/rs6000.c (rs6000_offload_options): New.
6772         (TARGET_OFFLOAD_OPTIONS): New.
6774 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
6776         PR middle-end/67891
6777         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6779         PR middle-end/67766
6780         * function.c (expand_function_end): Move return value
6781         promotion past the handling of PARALLELs and CONCATs.
6783         PR rtl-optimization/67828
6784         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6785         (tree_may_unswitch_on): Don't unswitch on expressions
6786         involving undefined values.
6788 2015-10-09  Richard Biener  <rguenther@suse.de>
6790         * genmatch.c (print_operand): Fix formatting.
6791         (dt_node::append_simplify): Warn for multiple simplifiers
6792         that match the same pattern.
6793         * match.pd (log (exp @0)): Remove duplicates.
6795 2015-10-09  Richard Biener  <rguenth@suse.de>
6797         PR target/67366
6798         * gimple-fold.c (optabs-query.h): Include
6799         (gimple_fold_builtin_memory_op): Allow unaligned stores
6800         when movmisalign_optabs are available.
6802 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6804         PR target/67366
6805         * config/arm/arm.md (movmisalign<mode>): New.
6806         * config/arm/iterators.md (HSI): New.
6808 2015-10-09  Richard Biener  <rguenther@suse.de>
6810         PR tree-optimization/67891
6811         * gimple-match.h (gimple_simplified_result_is_gimple_val):
6812         New helper.
6813         (gimple_resimplify1): Declare.
6814         (gimple_resimplify2): Likewise.
6815         (gimple_resimplify3): Likewise.
6816         * gimple-match-head.c (gimple_resimplify1): Export.
6817         (gimple_resimplify2): Likewise.
6818         (gimple_resimplify3): Likewise.
6819         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6820         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6821         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6822         to avoid creating stmts without VN info.
6824 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
6826         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6827         of availability.
6829 2015-10-08  Jeff Law  <law@redhat.com>
6831         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6832         and release_ssa_name in two places.
6833         (gimple_stringop_fixed_value): Similarly.
6835         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6836         release_defs.
6838         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6839         unlink_stmt_vdef and release_ssa_name_fn.
6841         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6842         release_defs.
6844 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
6846         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6847         SSE register save area to 16 bytes only if the incoming stack
6848         boundary is no less than 16 bytes.
6850 2015-10-08  Jeff Law  <law@redhat.com>
6852         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6853         release_ssa_name.  Fix typo in comment.
6855 2015-10-08  Nathan Sidwell  <nathan@acm.org>
6857         * config/nvptx/nvptx.h (struct machine_function): Add comment.
6858         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6859         may return pointer as well as in memory.
6860         (nvptx_output_return): Likewise.
6862 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
6864         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
6865         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
6866         * match.pd: Add rules previously handled by fold_builtin_sqrt
6867         and fold_builtin_cbrt.
6869 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
6871         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6872         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6873         * fold-const.h (tree_unary_nonnegative_warnv_p)
6874         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6875         (tree_expr_nonnegative_warnv_p): Add depth parameters.
6876         * fold-const.c: Include gimple-fold.h and params.h.
6877         (tree_ssa_name_nonnegative_warnv_p): New function.
6878         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6879         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6880         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6881         Add a depth parameter and increment it for recursive calls to
6882         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
6883         to handle SSA names.
6884         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6885         (gimple_stmt_nonnegative_warnv_p): Declare.
6886         * tree-vrp.c (remove_range_assertions): Remove assert that condition
6887         cannot be proven false.
6888         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6889         (gimple_stmt_nonnegative_warnv_p): Move to...
6890         * gimple-fold.c: ...here.  Add depth parameters and pass them
6891         down to the tree routines.  Accept statements that aren't
6892         assignments or calls but just return false for them.
6893         (gimple_val_nonnegative_real_p): Delete.
6894         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6895         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6896         Check HONOR_NANs first.
6898 2015-10-08  Martin Jambor  <mjambor@suse.cz>
6900         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
6901         unnecessary MIN.
6903 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6905         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6906         in the tail of outer-loop.
6908 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
6910         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6911         return UI_NONE.
6913 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6915         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6916         "cfghooks.h", add prototypes for introduced new functions.
6917         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6918         checks on ability of loop unswitching to tree_unswitch_single_loop;
6919         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6920         on innermost loop check.
6921         (tree_unswitch_single_loop): Add all required checks on ability of
6922         loop unswitching under zero recursive level guard.
6923         (tree_unswitch_outer_loop): New function.
6924         (find_loop_guard): Likewise.
6925         (empty_bb_without_guard_p): Likewise.
6926         (used_outside_loop_p): Likewise.
6927         (get_vop_from_header): Likewise.
6928         (hoist_guard): Likewise.
6929         (check_exit_phi): Likewise.
6931 2015-10-08  Marek Polacek  <polacek@redhat.com>
6933         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6934         ops element.
6936 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6938         PR c/65345
6939         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6940         create_tmp_var_raw instead of create_tmp_var.
6942 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
6944         * expr.c (store_expr_with_bounds): Handle aggregate moves from
6945         BLKmode.
6946         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6947         to define gimple type system; compare aggregates only by size.
6949 2015-10-07  Jeff Law  <law@redhat.com>
6951         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6952         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6953         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
6954         unnecessarily.
6956 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
6957             Sebastian Pop  <s.pop@samsung.com>
6959         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6960         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6961         (generate_isl_schedule): Same.
6962         * graphite-optimize-isl.c (scop_get_domains): Same.
6963         (apply_schedule_map_to_scop): Same.
6964         * graphite-poly.c (print_iteration_domains): Same.
6965         (remove_gbbs_in_scop): Same.
6966         (new_scop): Same.
6967         (free_scop): Same.
6968         (print_scop): Same.
6969         * graphite-poly.h (struct scop): Rename bbs to pbbs.
6970         (SCOP_BBS): Remove.
6971         * graphite-scop-detection.c (compare_bb_depths): Remove.
6972         (graphite_sort_dominated_info): Remove.
6973         (try_generate_gimple_bb): Move out of scop_detection.
6974         (all_non_dominated_preds_marked_p): Remove.
6975         (build_scop_bbs_1): Remove.
6976         (build_scop_bbs): Remove.
6977         (nb_pbbs_in_loops): Do not use SCOP_BBS.
6978         (find_scop_parameters): Same.
6979         (sese_dom_walker): Rename gather_bbs.
6980         (before_dom_children): Call try_generate_gimple_bb and collect gbb
6981         and pbb.
6982         (build_scops): Call gather_bbs.
6983         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6984         (add_conditions_to_constraints): Same.
6985         (build_scop_iteration_domain): Same.
6986         (build_scop_drs): Same.
6987         (new_pbb_from_pbb): Same.
6988         * sese.c (new_sese_info): Create bbs.
6989         * sese.h (struct sese_info_t): Add bbs.
6991 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
6993         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6994         encoding in 64-bit mode.
6996 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
6998         PR target/66697
6999         * config/i386/i386.c (ix86_option_override_internal): Always use
7000         8-byte minimum stack boundary in 64-bit mode.
7001         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7002         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7003         Add a REG_CFA_EXPRESSION note if needed.
7004         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7005         (ix86_handle_force_align_arg_pointer_attribute): New.
7006         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7007         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7008         with ix86_handle_force_align_arg_pointer_attribute.
7009         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7011 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7012             Sebastian Pop  <s.pop@samsung.com>
7014         * graphite-scop-detection.c (parameter_index_in_region): Remove
7015         use of SESE_ADD_PARAMS.
7016         (find_scop_parameters): Same.
7017         * sese.c (new_sese_info): Same.
7018         * sese.h (struct sese_info_t): Remove add_params.
7019         (SESE_ADD_PARAMS): Remove.
7021 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
7022             Sebastian Pop  <s.pop@samsung.com>
7024         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7025         an sese_info_p.
7026         (copy_def): Same.
7027         (copy_internal_parameters): Same.
7028         (translate_isl_ast_to_gimple): Use an sese_l.
7029         (build_iv_mapping): Same.
7030         * graphite-poly.c (new_sese): Rename new_sese_info.
7031         (free_sese): Rename free_sese_info.
7032         * graphite-poly.h (struct scop): Use an sese_info_p.
7033         (scop_set_region): Same.
7034         * graphite-scop-detection.c (struct sese_l): Moved...
7035         (get_entry_bb): Moved...
7036         (get_exit_bb): Moved...
7037         (parameter_index_in_region_1): Use an sese_info_p.
7038         (parameter_index_in_region): Same.
7039         (scan_tree_for_params): Same.
7040         (find_params_in_bb): Same.
7041         (sese_dom_walker): Use an sese_l.
7042         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7043         (reduction_phi_p): Same.
7044         (parameter_index_in_region_1): Use an sese_info_p.
7045         (propagate_expr_outside_region): Use an sese_l.
7046         * graphite.c: Replace uses of SCOP_REGION.
7047         * sese.c (sese_record_loop): Use an sese_info_p.
7048         (build_sese_loop_nests): Same.
7049         (sese_build_liveouts_use): Same.
7050         (sese_build_liveouts_bb): Same.
7051         (sese_build_liveouts_bb): Same.
7052         (sese_bad_liveouts_use): Same.
7053         (sese_reset_debug_liveouts_bb): Same.
7054         (sese_build_liveouts): Same.
7055         (new_sese): Renamed new_sese_info.
7056         (free_sese): Renamed free_sese_info.
7057         (set_rename): Use an sese_info_p.
7058         (graphite_copy_stmts_from_block): Same.
7059         (copy_bb_and_scalar_dependences): Same.
7060         (outermost_loop_in_sese_1): Use an sese_l.
7061         (outermost_loop_in_sese): Same.
7062         (if_region_set_false_region): Use an sese_info_p.
7063         (move_sese_in_condition): Same.
7064         (scalar_evolution_in_region): Use an sese_l.
7065         * sese.h (struct sese_l): ... here.
7066         (SESE_ENTRY): Remove.
7067         (SESE_ENTRY_BB): Remove.
7068         (SESE_EXIT): Remove.
7069         (SESE_EXIT_BB): Remove.
7070         (sese_contains_loop): Use an sese_info_p.
7071         (sese_nb_params): Same.
7072         (bb_in_sese_p): Use an sese_l.
7073         (stmt_in_sese_p): Same.
7074         (defined_in_sese_p): Same.
7075         (loop_in_sese_p): Same.
7076         (sese_loop_depth): Same.
7077         (struct ifsese_s): Use an sese_info_p.
7078         (gbb_loop_at_index): Use an sese_l.
7079         (nb_common_loops): Same.
7080         (scev_analyzable_p): Same.
7082 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7084         * config/i386/i386.c (ix86_conditional_register_usage): Use
7085         CALL_USED_REGISTERS_MASK.
7086         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7088 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7090         PR bootstrap/67385
7091         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7092         * configure: Regenerated.
7094 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
7096         PR target/67850
7097         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7098         (ix86_set_current_function): This.
7099         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7101 2015-10-07  Richard Biener  <rguenther@suse.de>
7103         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7104         (vinfo_for_stmt): Adjust.
7105         (set_vinfo_for_stmt): Likewise.
7106         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7107         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7108         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7109         of inner loop.
7110         (vect_analyze_loop_1): Remove.
7111         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7112         inner loop when vectorizing an outer loop by splitting out from ...
7113         (vect_analyze_loop_form): ... here.
7115 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7117         PR c/65345
7118         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7119         Use create_tmp_var_raw instead of create_tmp_var.
7121 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
7123         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7124         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7125         * real.c (CACHED_FRACTION): New helper macro.
7126         (dconst_third_ptr): Use it.
7127         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7128         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7129         dconst_sixth.
7130         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7132 2015-10-06  Jeff Law  <law@redhat.com>
7134         PR tree-optimization/67816
7135         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7136         from remove_jump_threads_starting_at.  Accept an edge rather than
7137         a basic block.
7138         * tree-ssa-threadupdate.c (removed_edges): New hash table.
7139         (remove_jump_threads_including): Note edges that get removed from
7140         the CFG for later pruning of jump threading paths including them.
7141         (thread_through_all_blocks): Remove paths which include edges that
7142         have been removed.
7143         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7144         on each outgoing edges when optimizing away a control statement.
7146 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7148         * reorg.c (emit_delay_sequence): Store list of delay slot insns
7149         in a vector instead of rtx_insn_list.
7150         (add_to_delay_list): Likewise.
7151         (delete_from_delay_slot): Likewise.
7152         (optimize_skip): Likewise.
7153         (redirect_with_delay_list_safe_p): Likewise.
7154         (check_annul_list_true_false): Likewise.
7155         (steal_delay_list_from_target): Likewise.
7156         (steal_delay_list_from_fallthrough): Likewise.
7157         (redundant_insn): Likewise.
7158         (fill_simple_delay_slots): Likewise.
7159         (fill_slots_from_thread): Likewise.
7160         (fill_eager_delay_slots): Likewise.
7161         (relax_delay_slots): Likewise.
7163 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
7165         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7166         For -mgpopt=local, also exclude unintialized common symbols.
7167         * doc/invoke.texi (Nios II Options): Document the change.
7169 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7171         * config/aarch64/iterators.md (vwcore): Add missing cases for
7172          V4HF/V8HF modes.
7174 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7175             Sebastian Pop  <s.pop@samsung.com>
7177         * graphite-poly.c (new_scop): Initialize drs.
7178         * graphite-poly.h (struct dr_info): New.
7179         (struct scop): Add drs.
7180         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7181         (pdr_add_memory_accesses): Same.
7182         (build_poly_dr): Same.
7183         (build_alias_set): Same.
7184         (build_scop_drs): Same.
7185         (build_pbb_drs): Remove.
7186         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7187         * tree-data-ref.h (data_reference): Remove alias_set.
7189 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7190             Sebastian Pop  <s.pop@samsung.com>
7192         * graphite-poly.c (free_data_refs_aux): Remove.
7193         (free_gimple_poly_bb): Do not call free_data_refs_aux.
7194         * graphite-poly.h (struct base_alias_pair): Remove.
7195         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7196         base_alias_pair and dr->aux.
7197         (build_alias_set): Same.
7198         * tree-data-ref.c (create_data_ref): Initialize alias_set.
7199         * tree-data-ref.h (data_reference): Add alias_set.
7201 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
7202             Sebastian Pop  <s.pop@samsung.com>
7204         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7205         Do not set PDR_BASE_OBJECT_SET.
7206         * graphite-poly.h (poly_dr): Same.
7207         (PDR_BASE_OBJECT_SET): Remove.
7208         (new_poly_dr): Update decl.
7209         * graphite-sese-to-poly.c (build_poly_dr): Update call to
7210         new_poly_dr.
7211         (write_alias_graph_to_ascii_dimacs): Remove.
7212         (write_alias_graph_to_ascii_dot): Remove.
7213         (write_alias_graph_to_ascii_ecc): Remove.
7214         (dr_same_base_object_p): Remove.
7215         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
7216         code.
7217         (build_base_obj_set_for_drs): Remove.
7218         (dump_alias_graphs): Remove.
7219         (build_scop_drs): Remove dead code.
7221 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7222             Peter Bergner  <bergner@vnet.ibm.com>
7224         PR target/67808
7225         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7226         allow registers, but provide insns for the combiner to create for
7227         loads from memory. Separate VSX code from non-VSX code. For
7228         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7229         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7230         so that registers come before memory operations. Drop support from
7231         converting DFmode to TFmode, if the DFmode value is in a GPR
7232         register.
7233         (extenddftf2_fprs): Likewise.
7234         (extenddftf2_internal): Likewise.
7235         (extenddftf2_vsx): Likewise.
7236         (extendsftf2): In the expander, only allow registers, but provide
7237         insns for the combiner to create for stores and loads.
7239 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7241         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7242         from the decl parameter.
7244 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
7246         PR 67861
7247         * gimple-fold.c (gimple_fold_builtin): Add break after
7248         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7250 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
7252         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7253         to scop->isl_context.
7255 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7257         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7258         (output_probe_stack_range): Rotate the loop and simplify.
7259         (thumb1_expand_prologue): Tweak sorry message.
7260         * config/arm/arm.md (probe_stack): Use bare string.
7262 2015-10-06  Nick Clifton  <nickc@redhat.com>
7264         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7266 2015-10-06  Nick Clifton  <nickc@redhat.com>
7268         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7269         (ATTR_PERSIST): New constant.
7270         (msp430_data_attr): New function - verifies an attribute that only
7271         applies to variables.
7272         (msp430_attributes): Add noinit and persistent attributes.
7273         (noinit_section): New variable.
7274         (presis_section): New variable.
7275         (TARGET_ASM_INIT_SECTIONS): Define.
7276         (msp430_init_sections): New function - initialises the noinit and
7277         persist section variables.
7278         (msp430_select_section): Add support for noinit and persist
7279         attributes.
7280         (msp430_section_type_flags): Likewise.
7281         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
7282         and persistent attributes.
7284 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7285             Sebastian Pop  <s.pop@samsung.com>
7287         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7288         (no_violations): Remove.
7289         (subtract_commutative_associative_deps): Remove.
7290         (compute_deps): Do not call subtract_commutative_associative_deps.
7291         (transform_is_safe): Remove.
7292         (graphite_legal_transform): Remove.
7293         * graphite-poly.h (graphite_legal_transform): Remove.
7295 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
7297         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7298         which are in this region are passed so gcc_assert and remove redundant
7299         computation.
7300         * sese.c (sese_build_liveouts): Pass only those bbs which are not
7301         in region.
7302         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7303         gcc_assert on that and remove unnecessary computation.
7304         (sese_build_liveouts_use): Same.
7306 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7308         * graphite-dependences.c (scop_get_reads): Renamed scop->context
7309         to scop->param_context.
7310         (scop_get_must_writes): Same.
7311         (scop_get_may_writes): Same.
7312         (scop_get_original_schedule): Same.
7313         (scop_get_transformed_schedule): Same.
7314         (subtract_commutative_associative_deps): Same.
7315         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7316         (generate_isl_context): Same.
7317         (generate_isl_schedule): Same.
7318         (scop_to_isl_ast): Same.
7319         (graphite_regenerate_ast_isl): Same.
7320         * graphite-optimize-isl.c (scop_get_domains): Same.
7321         (optimize_isl): Renamed scop->context to scop->param_context.
7322         * graphite-poly.c (new_poly_bb): Change the type of argument to
7323         gimple_poly_bb_p.
7324         (new_scop): Renamed scop->context to scop->param_context.
7325         (free_scop): Same.
7326         (print_scop_context): Same.
7327         * graphite-poly.h (new_poly_dr): Change the type of argument from
7328         void* to data_reference_p.
7329         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7330         (new_poly_bb): Change the type of argument from void* to
7331         gimple_poly_bb_p.
7332         (pbb_set_black_box): Same.
7333         (struct scop): Rename context to param_context, ctx to isl_context.
7334         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7335         Move declarations closer to assignment.
7336         (find_params_in_bb): Same.
7337         (find_scop_parameters): Same.
7338         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7339         Global to be used for statement IDs.
7340         (isl_id_for_pbb): Use ssa_name_version_typesize.
7341         (simple_copy_phi_p): Move declarations closer to assignment.
7342         (build_pbb_scattering_polyhedrons): Same.
7343         (build_scop_scattering): Same.
7344         (isl_id_for_ssa_name): Same.
7345         (extract_affine_name): Same.
7346         (extract_affine_int): Same.
7347         (extract_affine): Same.
7348         (set_scop_parameter_dim): Use renamed member.
7349         (build_loop_iteration_domains): Same.
7350         (add_param_constraints): Same.
7351         (build_scop_iteration_domain): Same.
7352         (pdr_add_data_dimensions): Same.
7353         (build_poly_dr): Same.
7354         (build_scop_drs): Move declarations closer to assignment.
7355         (analyze_drs_in_stmts): Same.
7356         (insert_out_of_ssa_copy): Same.
7357         (insert_out_of_ssa_copy_on_edge): Same.
7358         (propagate_expr_outside_region): Same.
7359         (rewrite_phi_out_of_ssa): Same.
7360         (rewrite_degenerate_phi): Same.
7361         (rewrite_reductions_out_of_ssa): Same.
7362         (rewrite_cross_bb_scalar_dependence): Same.
7363         (handle_scalar_deps_crossing_scop_limits): Same.
7364         (rewrite_cross_bb_scalar_deps): Same.
7365         * graphite.c (graphite_transform_loops): Use renamed member.
7367 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
7369         PR c/65345
7370         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7371         create_tmp_var_raw instead of create_tmp_var.
7373 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7375         PR c/65345
7376         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7377         Use create_tmp_var_raw instead of create_tmp_var.
7379 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
7381         PR target/67849
7382         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7383         split for upper-bank registers when target does not support
7384         AVX512VL.
7385         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7386         split when target does not support AVX512VL.
7388 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
7390         PR c/65345
7391         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7392         Adjust to use create_tmp_var_raw instead of create_tmp_var.
7394 2015-10-06  Nick Clifton  <nickc@redhat.com>
7396         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7397         multiplication.
7399 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7401         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7402         (case ${target}): Add znver1.
7403         * config/i386/cpuid.h(bit_CLZERO):  Define.
7404         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7405         -march=native recognize znver1 processors.
7406         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7407         znver1, clzero def_and_undef.
7408         * config/i386/i386.c (struct processor_costs znver1_cost): New.
7409         (m_znver1): New definition.
7410         (m_AMD_MULTIPLE): Includes m_znver1.
7411         (processor_target_table): Add znver1 entry.
7412         (ix86_target_string) : Add clzero entry.
7413         (static const char *const cpu_names): Add znver1 entry.
7414         (ix86_option_override_internal): Add znver1 instruction sets.
7415         (PTA_CLZERO) :  New definition.
7416         (ix86_option_override_internal): Handle new clzerooption.
7417         (ix86_issue_rate): Add znver1.
7418         (ix86_adjust_cost): Add znver1.
7419         (ia32_multipass_dfa_lookahead): Add znver1.
7420         (has_dispatch): Add znver1.
7421         * config/i386/i386.h (TARGET_znver1): New definition.
7422         (TARGET_CLZERO): Define.
7423         (TARGET_CLZERO_P): Define.
7424         (struct ix86_size_cost): Add TARGET_ZNVER1.
7425         (enum processor_type): Add PROCESSOR_znver1.
7426         * config/i386/i386.md (define_attr "cpu"): Add znver1.
7427         (set_attr znver1_decode): New definitions for znver1.
7428         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7429         (mclzero): New.
7430         * config/i386/mmx.md (set_attr znver1_decode): New definitions
7431         for znver1.
7432         * config/i386/sse.md (set_attr znver1_decode): Likewise.
7433         * config/i386/x86-tune.def:  Add znver1 tunings.
7434         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7435         * doc/invoke.texi: Add details about znver1
7437 2015-10-06  Richard Biener  <rguenther@suse.de>
7439         PR tree-optimization/67859
7440         * tree-ssa-pre.c (create_expression_by_pieces): Properly
7441         discard not inserted stmts.
7443 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
7445         * doc/extend.texi (Template Instantiation): Reorder options and
7446         de-emphasize -frepo.
7447         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7448         example instead of -frepo.
7450 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
7452         PR c/65345
7453         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7454         use create_tmp_var_raw rather than create_tmp_var.
7456 2015-10-06  Richard Biener  <rguenther@suse.de>
7458         * tree-vectorizer.h (vec_info): New base class for...
7459         (_loop_vec_info): ... this and ...
7460         (_bb_vec_info): ... this.
7461         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7462         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7463         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7464         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7465         vect_destroy_datarefs): Adjust interface to take a vec_info *
7466         rather than both a loop_vec_info and a bb_vec_info argument.
7467         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7468         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7469         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7470         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7471         accordingly.
7472         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7473         (destroy_loop_vec_info, vect_analyze_loop_2,
7474         vect_is_simple_reduction_1, get_initial_def_for_induction,
7475         vect_create_epilog_for_reduction, vectorizable_reduction,
7476         vectorizable_live_operation, vect_transform_loop): Adjust.
7477         * tree-vect-patterns.c (type_conversion_p,
7478         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7479         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7480         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7481         check_bool_pattern, vect_recog_bool_pattern,
7482         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7483         * tree-vect-slp.c (vect_get_and_check_slp_defs,
7484         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7485         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7486         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7487         (new_bb_vec_info): Initialize base classs.
7488         * tree-vect-stmts.c (record_stmt_cost, process_use,
7489         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7490         vectorizable_mask_load_store, vectorizable_call,
7491         vectorizable_simd_clone_call, vectorizable_conversion,
7492         vectorizable_assignment, vectorizable_shift,
7493         vectorizable_operation, vectorizable_store,
7494         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7495         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7496         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7498 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7500         PR c/65345
7501         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7502         create_tmp_var_raw rather than create_tmp_var.
7504 2015-10-05  Marek Polacek  <polacek@redhat.com>
7506         * tree-ssa-loop-im.c
7507         (move_computations_dom_walker::before_dom_children): Don't set
7508         SSA_NAME_ANTI_RANGE_P.
7509         * tree-ssa-phiopt.c (value_replacement): Likewise.
7511 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7512             Sebastian Pop  <s.pop@samsung.com>
7514         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7516 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7517             Sebastian Pop  <s.pop@samsung.com>
7519         * graphite-poly.c (new_gimple_poly_bb): ... here.
7520         (free_data_refs_aux): ... here.
7521         (free_gimple_poly_bb): ... here.
7522         (remove_gbbs_in_scop): ... here.
7523         (new_scop): Call new_sese.
7524         (free_scop): Call remove_gbbs_in_scop and free_sese.
7525         * graphite-poly.h (base_alias_pair): ... here.
7526         (new_gimple_poly_bb): Declare.
7527         (free_gimple_poly_bb): Declare.
7528         * graphite-scop-detection.c (parameter_index_in_region_1):
7529         (parameter_index_in_region): ... here.
7530         (scan_tree_for_params): ... here.
7531         (find_params_in_bb): ... here.
7532         (find_scop_parameters): ... here.
7533         (build_scops): Call find_scop_parameters.
7534         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7535         (free_scops): Move...
7536         (single_pred_cond_non_loop_exit): Move...
7537         (sese_dom_walker::before_dom_children): Move...
7538         (sese_dom_walker::after_dom_children): Move...
7539         (build_poly_scop): Move...
7540         * graphite-sese-to-poly.h (base_alias_pair): Move...
7541         * graphite.c (free_scops): ... here.
7543 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
7544             Sebastian Pop  <s.pop@samsung.com>
7546         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7547         (trivially_empty_bb_p): Move...
7548         (same_close_phi_node): Move...
7549         (new_gimple_poly_bb): Move...
7550         (compare_bb_depths): Move...
7551         (graphite_sort_dominated_info): Move...
7552         (remove_duplicate_close_phi): Move...
7553         (make_close_phi_nodes_unique): Move...
7554         (canonicalize_loop_closed_ssa): Move...
7555         (canonicalize_loop_closed_ssa_form): Move...
7556         (loop_ivs_can_be_represented): Move...
7557         (single_pred_cond_non_loop_exit): Move...
7558         (graphite_can_represent_init): Move...
7559         (graphite_can_represent_scev): Move...
7560         (stmt_has_simple_data_refs_p): Move...
7561         (stmt_has_side_effects):  Move...
7562         (graphite_can_represent_stmt): Move...
7563         (scop_detection): ... here.
7564         (sese_dom_walker): ... and here.
7565         (build_scops): Call all moved functions.
7566         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7567         (all_non_dominated_preds_marked_p): Move...
7568         (build_scop_bbs_1): Move...
7569         (build_scop_bbs): Move...
7570         (set_scop_parameter_dim): Move...
7571         (nb_pbbs_in_loops): Move...
7572         (build_poly_scop): Do not call all the moved functions.
7574 2015-10-05  Martin Jambor  <mjambor@suse.cz>
7575             Jan Hubicka  <hubicka@ucw.cz>
7577         * ipa-cp.c (ipcp_alignment_lattice): New type.
7578         (ipcp_param_lattices): Use the above to represent alignment.
7579         (ipcp_alignment_lattice::print): New function.
7580         (print_all_lattices): Use it to print alignment information.
7581         (ipcp_alignment_lattice::top_p): New function.
7582         (ipcp_alignment_lattice::bottom_p): Likewise.
7583         (ipcp_alignment_lattice::set_to_bottom): Likewise.
7584         (ipcp_alignment_lattice::meet_with_1): Likewise.
7585         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7586         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7587         (initialize_node_lattices): Likewise.
7588         (propagate_alignment_accross_jump_function): Work with the new class
7589         for alignment lattices.
7590         (propagate_constants_accross_call): Pass only the alignment lattice to
7591         propagate_alignment_accross_jump_function.
7592         (ipcp_store_alignment_results): Work with the new class for alignment
7593         lattices.
7595 2015-10-05  Marek Polacek  <polacek@redhat.com>
7597         PR tree-optimization/67821
7598         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7600 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
7602         PR other/65021
7603         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7604         function to...
7605         (mkoffload_cleanup): ... this.  Adjust all users.
7606         (maybe_unlink): Look at save_temps and verbose flags instead of
7607         debug flag.
7608         (main): Parse "-save-temps" flag.
7609         (generate_target_descr_file, generate_target_offloadend_file)
7610         (generate_host_descr_file, prepare_target_image): Pass it on.
7611         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7612         (mkoffload_cleanup): New function.
7613         (maybe_unlink): Look at save_temps and verbose flags instead of
7614         debug flag.
7615         (main): Instead of calling utils_cleanup, register atexit handler
7616         for mkoffload_cleanup.
7617         (main): Parse "-save-temps" flag.
7618         (compile_native, main): Pass it on.
7619         * lto-wrapper.c (compile_offload_image): Likewise.
7621 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7623         * gimple.h (gimple_op_ptr): Require a non const gimple *.
7624         (gimple_assign_lhs_ptr): Likewise.
7625         (gimple_assign_rhs1_ptr): Likewise.
7626         (gimple_assign_rhs2_ptr): Likewise.
7627         (gimple_assign_rhs3_ptr): Likewise.
7628         (gimple_call_lhs_ptr): Likewise.
7629         (gimple_call_fn_ptr): Likewise.
7630         (gimple_call_chain_ptr): Likewise.
7631                 (gimple_call_arg_ptr): Likewise.
7632                 (gimple_cond_lhs_ptr): Likewise.
7633         (gimple_cond_rhs_ptr): Likewise.
7634         (gimple_switch_index_ptr): Likewise.
7635         (gimple_return_retval_ptr): Likewise.
7637 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7639         * gimple.h (gimple_asm_input_op_ptr): Remove.
7640         (gimple_asm_output_op_ptr): Likewise.
7642 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7644         * gimple.h (gimple_location_ptr): Remove.
7645         * tree-vrp.c (check_all_array_refs): Adjust.
7647 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7649         * tree-ssa-operands.c (build_uses): store tree * instead of
7650         tree.
7651         (finalize_ssa_uses): Adjust.
7652         (append_use): Likewise.
7653         (verify_ssa_operands): Likewise.
7655 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7657         * real.h (build_real_truncate): Declare.
7658         * tree.c (build_real_truncate): New function.
7659         (strip_float_extensions): Use it.
7660         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7661         (fold_builtin_hypot, fold_builtin_pow): Likewise.
7662         * match.pd: Likewise.
7664 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7665            Jiong Wang  <jiong.wang@arm.com>
7667         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7669 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7671         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7672         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7673         (aarch64_print_operand, aarch64_float_const_representable_p)
7674         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7675         instead of REAL_VALUE_FROM_CONST_DOUBLE.
7676         * config/arc/arc.c (arc_print_operand): Likewise.
7677         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7678         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7679         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7680         Likewise.
7681         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7682         (consttable_16): Likewise.
7683         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7684         * config/avr/avr.c (avr_print_operand): Likewise.
7685         * config/bfin/bfin.md: Likewise (in a define_split).
7686         * config/c6x/c6x.md: Likewise (in a define_split).
7687         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7688         (cr16_print_operand): Likewise.
7689         * config/cris/cris.c (cris_print_operand): Likewise.
7690         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7691         * config/fr30/fr30.c (fr30_print_operand): Likewise.
7692         (fr30_const_double_is_zero): Likewise.
7693         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7694         * config/frv/frv.md: Likewise (in a define_split).
7695         * config/frv/predicates.md (int_2word_operand): Likewise.
7696         * config/h8300/h8300.c (h8300_print_operand): Likewise.
7697         * config/i386/i386.c (standard_80387_constant_p): Likewise.
7698         (ix86_print_operand, ix86_split_to_parts): Likewise.
7699         * config/i386/i386.md: Likewise (in a define_split).
7700         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7701         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7702         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7703         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7704         (print_operand): Likewise.
7705         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7706         * config/mep/mep.md: Likewise (in define_split).
7707         * config/microblaze/microblaze.c (microblaze_const_double_ok)
7708         (print_operand): Likewise.
7709         * config/mips/mips.md (consttable_float): Likewise.
7710         * config/mmix/mmix.c (mmix_intval): Likewise.
7711         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7712         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7713         * config/pa/pa.c (pa_singlemove_string): Likewise.
7714         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7715         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7716         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7717         (output_toc): Likewise.
7718         * config/rs6000/rs6000.md: Likewise (in define_splits).
7719         * config/rx/rx.c (rx_print_operand): Likewise.
7720         * config/s390/s390.c (s390_output_pool_entry): Likewise.
7721         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7722         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7723         (and also in define_splits).
7724         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7725         (fp_high_losum_p): Likewise.
7726         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7727         (*movsf_high): Likewise.
7728         * config/spu/spu.c (const_double_to_hwint): Likewise.
7729         * config/v850/v850.c (const_double_split): Likewise.
7730         * config/vax/vax.c (vax_float_literal): Likewise.
7731         * config/visium/visium.c (visium_expand_copysign): Likewise.
7732         * config/visium/visium.md: Likewise (in define_split).
7733         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7734         * config/xtensa/xtensa.c (print_operand): Likewise.
7735         (xtensa_output_literal): Likewise.
7736         * cprop.c (implicit_set_cond_p): Likewise.
7737         * dwarf2out.c (insert_float): Likewise.
7738         * expmed.c (expand_mult, make_tree): Likewise.
7739         * expr.c (compress_float_constant): Likewise.
7740         * rtlanal.c (split_double): Likewise.
7741         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7742         (simplify_const_unary_operation, simplify_binary_operation_1)
7743         (simplify_const_binary_operation): Likewise.
7744         (simplify_const_relational_operation): Likewise.
7745         * varasm.c (output_constant_pool_2): Likewise.
7747 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7749         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7750         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7751         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7752         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7753         instead of CONST_DOUBLE_FROM_REAL_VALUE.
7754         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7755         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7756         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7757         (ix86_emit_swsqrtsf): Likewise.
7758         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7759         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7760         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7761         * config/pa/pa.c (pa_expand_builtin): Likewise.
7762         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7763         (rs6000_scale_v2df): Likewise.
7764         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7765         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7766         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7767         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7768         (vec_ctul): Likewise.
7769         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7770         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7771         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7772         * cse.c (fold_rtx): Likewise.
7773         * emit-rtl.c (immed_double_const): Likewise (in comments).
7774         (init_emit_once): Likewise.
7775         * expr.c (compress_float_constant, expand_expr_real_1)
7776         (const_vector_from_tree): Likewise.
7777         * optabs.c (expand_float, expand_fix): Likewise.
7778         * reg-stack.c (reg_to_stack): Likewise.
7779         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7780         (simplify_const_unary_operation, simplify_binary_operation_1)
7781         (simplify_const_binary_operation, simplify_relational_operation)
7782         (simplify_immed_subreg): Likewise.
7784 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7786         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7787         * doc/tm.texi: Regenerate.
7788         * real.h (REAL_ARITHMETIC): Delete.
7789         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7790         (ix86_expand_round_sse4): Use real_arithmetic instead of
7791         REAL_ARITHMETIC.
7792         * config/i386/sse.md (round<mode>2): Likewise.
7793         * rtl.h (rtx_to_tree_code): Likewise (in comment).
7794         * explow.c (rtx_to_tree_code): Likewise (in comment).
7795         * match.pd: Likewise.
7796         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7797         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7798         (expand_pow_as_sqrts): Likewise.
7799         * tree-pretty-print.c (dump_generic_node): Remove code that
7800         was conditional on REAL_ARITHMETIC being undefined.
7802 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7804         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7805         * doc/tm.texi: Regenerate.
7806         * real.h (real_less): Declare.
7807         (REAL_VALUES_LESS): Delete.
7808         * real.c (real_less): New function.
7809         (real_compare): Use it.
7810         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7811         of REAL_VALUES_LESS.
7812         * config/microblaze/microblaze.c (microblaze_const_double_ok):
7813         Likewise.
7814         * fold-const.c (fold_convert_const_int_from_real): Likewise.
7815         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7816         (simplify_const_relational_operation): Likewise.
7817         * tree-call-cdce.c (check_pow): Likewise.
7818         (gen_conditions_for_pow_cst_base): Likewise.
7820 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7822         * real.h (REAL_VALUES_IDENTICAL): Delete.
7823         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7824         instead of REAL_VALUES_IDENTICAL.
7825         * fold-const.c (operand_equal_p): Likewise.
7826         * ipa-icf.c (sem_variable::equals): Likewise.
7827         * tree-complex.c (some_nonzerop): Likewise.
7828         (expand_complex_multiplication): Likewise.
7829         * tree.c (simple_cst_equal): Likewise.
7830         * varasm.c (compare_constant): Likewise.
7832 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
7834         * real.h (real_equal): Declare.
7835         (REAL_VALUES_EQUAL): Delete.
7836         * real.c (real_equal): New function.
7837         (real_compare): Use it.
7838         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7839         * doc/tm.texi: Regenerate.
7840         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7841         real_equal instead of REAL_VALUES_EQUAL.
7842         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7843         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7844         (fp_const_from_val): Likewise.
7845         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7846         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7847         (floating_exact_log2): Likewise.
7848         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7849         * config/vax/vax.c (vax_float_literal): Likewise.
7850         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7851         * cprop.c (implicit_set_cond_p): Likewise.
7852         * expmed.c (expand_mult): Likewise.
7853         * fold-const.c (const_binop): Likewise.
7854         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7855         (simplify_const_binary_operation): Likewise.
7856         (simplify_const_relational_operation): Likewise.
7857         * tree-call-cdce.c (check_pow): Likewise.
7858         (gen_conditions_for_pow_cst_base): Likewise.
7859         * tree-inline.c (estimate_num_insns): Likewise.
7860         * tree-ssa-dom.c (record_equality): Likewise.
7861         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7862         (gimple_expand_builtin_pow): Likewise.
7863         (pass_optimize_widening_mul::execute): Likewise.
7864         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
7865         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7866         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7868 2015-10-05  Richard Biener  <rguenther@suse.de>
7870         PR ipa/67783
7871         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7872         consider loop header PHI defs as IVs.
7874 2015-10-05  Richard Biener  <rguenther@suse.de>
7876         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7877         call handling ...
7878         (create_expression_by_pieces): ... here and build GIMPLE
7879         calls directly.  Use gimple_build API and avoid force_gimple_operand.
7880         (insert_into_preds_of_block): Simplify.
7881         (do_regular_insertion): Add comment.
7883 2015-10-04  Jason Merrill  <jason@redhat.com>
7885         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7887 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
7889         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7890         check for general register.
7891         (ix86_emit_save_regs): Ditto.
7892         (ix86_emit_save_regs_using_mov): Ditto.
7893         (ix86_emit_restore_regs_using_pop): Ditto.
7894         (ix86_emit_restore_regs_using_mov): Ditto.
7896 2015-10-03  Marek Polacek  <polacek@redhat.com>
7898         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7899         (insn-dfatab.o): Likewise.
7901 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
7903         * config.gcc (xtensa*-*-uclinux*): New configuration.
7904         * config/xtensa/uclinux.h: New file.
7905         * config/xtensa/uclinux.opt: New file.
7907 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
7909         * doc/cpp.texi (Standard Predefined Macros): Document value of
7910         __cplusplus for C++14.
7912 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
7914         * gcc.c (process_command): Use spec_machine rather than
7915         spec_host_machine to build tooldir_prefix2.
7917 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7918             Bernd Schmidt  <bernds@codesourcery.com>
7920         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7921         (Token, Stmt): Remove structs.
7922         (decls, vars, fns): Remove variables.
7923         (alloc_comment, append_stmt, is_keyword): Remove macros.
7924         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7925         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7926         (parse_init, parse_file): Remove functions.
7927         (read_file): Accept a pointer to a length and store into it.
7928         (process): Don't try to parse the input file, just write it out as
7929         a string, but looking for maps.  Also write out the length.
7930         (main): Don't use "-S" to compile PTX code.
7932 2015-10-02  Jeff Law  <law@redhat.com>
7934         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7935         fixups.
7937 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
7939         PR target/67822
7940         * config/nvptx/mkoffload.c (main): Scan the argument vector for
7941         -fopenmp, and skip generating an offloading image if specified.
7943 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
7945         * system.h (ROUND_UP): New macro definition.
7946         (ROUND_DOWN): Ditto.
7947         * ggc-page.c (ROUND_UP): Remove local macro definition.
7948         (PAGE_ALIGN): Implement using ROUND_UP macro.
7950         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7951         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7952         to align values.
7953         (ix86_compute_frame_layout): Ditto.
7954         (ix86_expand_prologue): Ditto.
7955         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7956         to round down values.
7957         (expand_set_or_movmem_via_rep): Ditto.
7959 2015-10-02  Marek Polacek  <polacek@redhat.com>
7961         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7963 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
7965         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7966         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7967         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7968         (free_gimple_bb): Renamed free_gimple_poly_bb.
7969         (try_generate_gimple_bb): Hoist loop invariant code.
7970         (analyze_drs_in_stmts): Same.
7971         (build_scop_drs): Call renamed functions.
7972         (new_pbb_from_pbb): Same.
7973         (scop_ivs_can_be_represented): Delete as functionality now moved to
7974         graphite-scop-detection.c
7975         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7977 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
7979         * graphite-scop-detection.c (stmt_has_side_effects): New function
7980           outlined from stmt_simple_for_scop_p.
7981         (graphite_can_represent_stmt): Same.
7982         (stmt_simple_for_scop_p): Moved code out of this function for better
7983         readability.
7985 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
7987         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7988         F_AVX512IFMA.
7989         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7991 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7993         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7995 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
7997         PR rtl-optimization/67756
7998         * lra-constraints.c (match_reload): Add a new parameter.  Use it
7999         for creating a pseudo with the same value.
8000         (curr_insn_transform): Pass a new argument to match_reload.
8002 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8004         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8005         (expand_vec_perm_even_odd_1): Handle V64QImode.
8006         (ix86_expand_vec_perm_const_1): Try expansion with
8007         expand_vec_perm_even_odd_trunc as well.
8008         * config/i386/sse.md (VI124_AVX512F): Rename to ...
8009         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8010         to V54QI.
8011         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8012         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8013         to V32HI and V16SI.
8014         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8015         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8016         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8017         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8018         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8019         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8021 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
8023         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8024         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8026 2015-10-02  Jason Merrill  <jason@redhat.com>
8028         PR c/59218
8029         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8030         (diagnose_tm_1_op): Also diagnose volatile accesses in
8031         transaction_safe function.
8033 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
8035         * system.h (malloc.h): Don't include obsolete header.
8037 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8039         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8040         (TLS_SECTION_ASM_FLAG): Delete.
8042 2015-10-02  Marek Polacek  <polacek@redhat.com>
8044         PR c/64249
8045         * doc/invoke.texi: Document -Wduplicated-cond.
8046         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8047         (insn-dfatab.o): Likewise.
8048         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8049         warning.
8051 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
8053         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8054         sequences.
8056 2015-10-02  Renlin Li  <renlin.li@arm.com>
8058         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8060 2015-10-02  Renlin Li  <renlin.li@arm.com>
8062         PR target/66776
8063         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8065 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8067         PR rtl-optimization/67786
8068         PR rtl-optimization/67787
8069         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8070         it modifies a reg used in the condition calculation.
8072 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
8074         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8075         alternatives for reads from memory and moves from general-purpose
8076         registers.
8077         (*aarch64_combinez_be<mode>): Likewise.
8079 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
8081         PR target/51726
8082         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8083         selectany within this function without need to keep attribute.
8084         (i386_pe_encode_section_info): Remove selectany-code.
8086 2015-10-02  Richard Biener  <rguenther@suse.de>
8088         * tree-ssa-sccvn.c (has_VN_INFO): New function.
8089         (free_scc_vn): Use it.
8090         (visit_use): Remove dead code and refactor to use gassign
8091         and use less indentation.
8093 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8095         PR target/67788
8096         PR target/67789
8097         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8098         (rs6000_cannot_copy_insn_p): New function.
8099         * config/rs6000/rs6000.md (cannot_copy): New attribute.
8100         (load_toc_v4_PIC_1_normal): Set cannot_copy.
8101         (load_toc_v4_PIC_1_476): Ditto.
8103 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
8105         * graphite-scop-detection.c (struct sese_l): New conversion constructor
8106         so that this type can be pushed into a vec.
8107         (class scop_builder): use sese_l to collect scops.
8108         (get_scops): New getter function.
8109         (remove_intersecting_scops): Use sese_l instead of scops_p.
8110         (intersects): Same.
8111         (add_scop): Same.
8112         (subsumes): Same.
8113         (remove_subscops): Same.
8114         (build_scops): Add scops to vec<scops_p> once all the scops have been
8115         detected.
8117 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
8119         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8120         Renamed type from gimple_bb_p to gimple_poly_bb_p.
8121         (translate_isl_ast_node_user): Same.
8122         * graphite-poly.c (new_poly_bb): Same.
8123         * graphite-poly.h (gbb_from_bb): Same.
8124         * sese.h: Same.
8125         * graphite-sese-to-poly.c (new_gimple_bb):
8126         gimple_bb_p -> gimple_poly_bb_p
8127         (build_scop_scattering): Same.
8128         (find_params_in_bb): Same.
8129         (add_conditions_to_domain): Same.
8130         (sese_dom_walker::before_dom_children): Same.
8131         (analyze_drs_in_stmts): Same.
8132         (new_pbb_from_pbb): Same.
8133         (free_data_refs_aux): New pointer to type base_alias_pair.
8134         * graphite-sese-to-poly.h: Same.
8135         * sese.c (if_region_set_false_region): Fixed Indentation.
8136         (move_sese_in_condition): Same.
8138 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8139             Aditya Kumar  <aditya.k7@samsung.com>
8141         PR tree-optimization/66980
8142         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8143         when data reference analysis has failed.
8145 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8146             Aditya Kumar  <aditya.k7@samsung.com>
8148         PR tree-optimization/67754
8149         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8150         scev analysis on the same loop nest as analyze_drs_in_stmts.
8151         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8152         renamed...
8153         (try_generate_gimple_bb): Call outermost_loop_in_sese.
8154         (analyze_drs_in_stmts): Same.
8155         * sese.c (outermost_loop_in_sese): ...here.
8157 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
8158             Aditya Kumar  <aditya.k7@samsung.com>
8160         PR tree-optimization/67754
8161         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8162         recursion on the inner loops.
8164 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8166         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8167         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8168         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8169         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8170         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8172 2015-10-01  Marek Polacek  <polacek@redhat.com>
8174         PR c/65345
8175         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8176         create_tmp_var_raw rather than create_tmp_var.
8178 2015-10-01  Marek Polacek  <polacek@redhat.com>
8180         PR tree-optimization/67769
8181         * tree-ssa-phiopt.c (conditional_replacement): Call
8182         reset_flow_sensitive_info_in_bb.
8183         (minmax_replacement): Likewise.
8184         (abs_replacement): Likewise.
8186 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
8188         * builtins.c: Don't include gomp-constants.h.
8189         (fold_builtin_1): Don't fold acc_on_device here.
8190         * gimple-fold.c: Include gomp-constants.h.
8191         (gimple_fold_builtin_acc_on_device): New.
8192         (gimple_fold_builtin): Call it.
8194 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8196         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8197         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8199 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
8201         * config/arm/aarch-common-protos.h
8202         (aarch_accumulator_forwarding): New.
8203         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8204         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8205         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8206         * config/arm/cortex-a53.md: Rewrite.
8208 2015-10-01  Richard Biener  <rguenther@suse.de>
8210         * gimple-match.h (mprts_hook): Declare.
8211         * gimple-match.head.c (mprts_hook): Define.
8212         (maybe_push_res_to_seq): Use new hook.
8213         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8214         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8215         (vn_ssa_aux::has_constants): Remove.
8216         * tree-ssa-sccvn.c: Include gimple-match.h.
8217         (VN_INFO_GET): Assert we don't re-use SSA names.
8218         (vn_get_expr_for): Remove.
8219         (expr_has_constants): Likewise.
8220         (stmt_has_constants): Likewise.
8221         (simplify_binary_expression): Likewise.
8222         (simplify_unary_expression): Likewise.
8223         (vn_lookup_simplify_result): New hook.
8224         (visit_copy): Adjust.
8225         (visit_reference_op_call): Likewise.
8226         (visit_phi): Likewise.
8227         (visit_use): Likewise.
8228         (process_scc): Likewise.
8229         (init_scc_vn): Likewise.
8230         (visit_reference_op_load): Likewise.  Use match-and-simplify and
8231         a gimple seq for inserted expressions.
8232         (try_to_simplify): Remove GENERIC stmt combining code.
8233         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8234         * tree-ssa-pre.c (eliminate_insert): Adjust.
8235         (eliminate_dom_walker::before_dom_children): Likewise.
8237 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8239         * doc/invoke.texi (Optimization Options): Add
8240         -freorder-blocks-algorithm=.
8241         (Optimize Options) <-O>: Add -freorder-blocks.
8242         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
8243         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8244         <-freorder-blocks>: Also enabled at levels -O and -Os.
8245         <-freorder-blocks-algorithm=>: Document new option.
8247 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8249         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8250         with flag_reorder_blocks_algorithm.
8251         * common.opt (freorder-blocks-algorithm=): New flag.
8252         (reorder_blocks_algorithm): New enum.
8253         * flag-types.h (reorder_blocks_algorithm): New enum.
8254         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8255         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8257 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8259         * bb-reorder.c: Add intro comment.
8260         (reorder_basic_blocks_software_trace_cache): Print a header to
8261         the dump file.
8262         (edge_order): New function.
8263         (reorder_basic_blocks_simple): New function.
8264         (reorder_basic_blocks): Choose between the STC and the simple
8265         algorithms (always choose the former).
8267 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
8269         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8270         function, factored out from ...
8271         (reorder_basic_blocks): ... here.
8273 2015-10-01  Tom de Vries  <tom@codesourcery.com>
8275         * tree-cfg.c (dump_function_to_file): Dump function attributes using
8276         __attribute__(()) string.  Move dumping of function attributes to before
8277         function name.
8279 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
8281         PR target/66870
8282         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8283         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8284         based on gold linker version.
8285         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8286         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8287         * configure, config.in: Regenerate.
8289 2015-10-01  Alan Modra  <amodra@gmail.com>
8291         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8292         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8293         (rs6000_output_mi_thunk): Likewise.
8295 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8297         * config/nvptx/mkoffload.c (process): Change offload data format.
8299 2015-09-30  Jeff Law  <law@redhat.com>
8301         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8302         with constant conditions.
8303         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8304         (remove_ctrl_stmt_and_useless_edges): No longer static.
8305         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8306         (remove_ctrl_stmt_and_useless_edges): Likewise.
8308 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8309             Cesar Philippidis  <cesar@codesourcery.com>
8311         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8312         (TARGET_GOACC_VALIDATE_DIMS): Override.
8313         * target.def (TARGET_GOACC): New target hook prefix.
8314         (validate_dims): New hook.
8315         * targhooks.h (default_goacc_validate_dims): New.
8316         * omp-low.c (oacc_validate_dims): New.
8317         (execute_oacc_device_lower): New.
8318         (default_goacc_validate_dims): New.
8319         (pass_data_oacc_device_lower): New.
8320         (pass_oacc_device_lower): New pass.
8321         (make_pass_oacc_device_lower): New.
8322         * tree-pass.h (make_pass_oacc_device_lower): Declare.
8323         * passes.def (pass_oacc_device_lower): Add it.
8324         * doc/tm.texi: Rebuilt.
8325         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8326         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8328 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8330         PR rtl-optimization/67037
8331         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8333 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
8335         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8336         * passes.c: Include tree-ssanames.h.
8337         (execute_function_todo): Flush the pending free SSA_NAMEs after
8338         eliminating unreachable basic blocks.
8339         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8340         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8341         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8342         (flush_ssanames_freelist): New function.
8343         (release_ssaname_fn): Put released names on the queue.
8344         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8345         * tree-ssanames.h (flush_ssanames_freelist): Declare.
8347 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8349         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8350         (generate_target_descr_file, generate_target_offloadend_file)
8351         (generate_host_descr_file, prepare_target_image): Pass it on.
8352         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8353         (compile_native, main): Pass it on.
8354         * lto-wrapper.c (compile_offload_image): Likewise.
8356 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8357             Ilya Verbin  <ilya.verbin@intel.com>
8358             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8360         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8361         (prepare_target_image, main): Refactor argv building to use
8362         obstacks.
8364 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8366         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8367         * config/spu/spu.c (spu_expand_atomic_op): New function.
8368         * config/spu/spu.md (AINT): New mode iterator.
8369         (ATOMIC): New code iterator.
8370         (atomic_name, atomic_pred): New code predicates.
8371         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8372         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8373         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8374         "atomic_<atomic_name>_fetch<mode>"): Likewise.
8376 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
8378         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8379         debug insns.
8380         (scalar_chain::convert_reg): Likewise.
8382 2015-09-30  Richard Biener  <rguenther@suse.de>
8384         * builtins.c: Add comment that no new simplifications should
8385         be added here.
8387 2015-09-30  Marek Polacek  <polacek@redhat.com>
8389         PR tree-optimization/67690
8390         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8391         reset_flow_sensitive_info_in_bb.
8392         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8393         * tree-ssanames.c: Include "gimple-iterator.h".
8394         (reset_flow_sensitive_info_in_bb): New function.
8395         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8397 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8399         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8400         variable, replacing it with...
8401         (offload_abi): ... this new variable.  Adjust all users.
8402         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8404 2015-09-30  Matthias Klose  <doko@ubuntu.com>
8406         * configure.ac: Remove extraneous ;;.
8407         * configure: Regenerate.
8409 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
8411         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8412         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8413         predicate, disallow register for operand 2.
8415 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
8417         * graphite-dependences.c (scop_get_dependences): Moved in down
8418         in order to be visible to its caller.
8419         * graphite-poly.h: Removed compute_deps, and extend_schedule.
8421 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8422             Aditya Kumar  <aditya.k7@samsung.com>
8424         PR tree-optimization/67754
8425         * graphite-optimize-isl.c (optimize_isl): Call
8426         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8428 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8430         * builtins.c (expand_builtin_acc_on_device): Delete.
8431         (expand_builtin): Don't call it.
8432         (fold_builtin_1): Fold acc_on_device.
8434 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8436         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8437         (ix86_nsaved_sseregs): Likewise.
8439 2015-09-29  Jeff Law  <law@redhat.com>
8441         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8442         computation of unused value.
8444         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8445         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8446         inline macro expansion.
8448         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8450         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8451         (gen_shl_sext): Likewise.
8452         * config/sh/sh.md (divsi3): Likewise.
8453         (imm->ext_dest_operand splitter): Likewise.
8455 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
8456             Aditya Kumar  <aditya.k7@samsung.com>
8458         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8459         (nb_data_writes_in_bb): Remove.
8460         (split_pbb): Remove.
8461         (split_reduction_stmt): Remove.
8462         (is_reduction_operation_p): Remove.
8463         (phi_contains_arg): Remove.
8464         (follow_ssa_with_commutative_ops): Remove.
8465         (detect_commutative_reduction_arg): Remove.
8466         (detect_commutative_reduction_assign): Remove.
8467         (follow_inital_value_to_phi): Remove.
8468         (edge_initial_value_for_loop_phi): Remove.
8469         (initial_value_for_loop_phi): Remove.
8470         (used_outside_reduction): Remove.
8471         (detect_commutative_reduction): Remove.
8472         (translate_scalar_reduction_to_array_for_stmt): Remove.
8473         (remove_phi): Remove.
8474         (dr_indices_valid_in_loop): Remove.
8475         (close_phi_written_to_memory): Remove.
8476         (translate_scalar_reduction_to_array): Remove.
8477         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8478         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8479         (rewrite_commutative_reductions_out_of_ssa): Remove.
8480         (build_poly_scop): Remove call to
8481         rewrite_commutative_reductions_out_of_ssa.
8483 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
8485         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8486         Add new insn types for vector load and store pairs.
8487         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8488         types "neon_ldp{,_q}".
8489         * config/arm/cortex-a57.md (neon_load_c): Add insn types
8490         "neon_ldp{,_q}".
8491         (neon_store_complex): Add insn types "neon_stp{,_q}".
8492         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8493         "neon_{ldp,stp}_q".
8495 2015-09-29  Jeff Law  <law@redhat.com>
8497         * config/rx/constraints.md (Int08): Fix undefined left shift
8498         behaviour.
8499         (Sint08, Sint16, Sint24): Likewise.
8500         * config/rx/rx.c (rx_get_stack_layout): Likewise.
8502         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8503         behaviour.
8505         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8506         left shift behaviour.
8507         * config/msp430/constraints.md ('L' constraint): Similarly.
8508         ('Ys' constraint): Similarly.
8510 2015-09-29  Richard Biener  <rguenther@suse.de>
8512         PR tree-optimization/67170
8513         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8514         the translate function pointer parameter to get the
8515         bool whether to disambiguate only by reference.
8516         (walk_non_aliased_vuses): Likewise.
8517         * tree-ssa-alias.c (maybe_skip_until): Adjust.
8518         (get_continuation_for_phi_1): Likewise.
8519         (get_continuation_for_phi): Likewise.
8520         (walk_non_aliased_vuses): Likewise.
8521         * tree-ssa-sccvn.c (const_parms): New bitmap.
8522         (vn_reference_lookup_3): Adjust for interface change.
8523         Disambiguate parameters pointing to readonly memory.
8524         (free_scc_vn): Free const_parms.
8525         (run_scc_vn): Initialize const_parms from a fn spec attribute.
8527 2015-09-29  Richard Biener  <rguenther@suse.de>
8529         PR tree-optimization/67741
8530         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8531         builtin calls with correct signature.
8533 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
8535         PR target/65105
8536         * config/i386/i386.c: Include dbgcnt.h.
8537         (has_non_address_hard_reg): New.
8538         (convertible_comparison_p): New.
8539         (scalar_to_vector_candidate_p): New.
8540         (remove_non_convertible_regs): New.
8541         (scalar_chain): New.
8542         (scalar_chain::scalar_chain): New.
8543         (scalar_chain::~scalar_chain): New.
8544         (scalar_chain::add_to_queue): New.
8545         (scalar_chain::mark_dual_mode_def): New.
8546         (scalar_chain::analyze_register_chain): New.
8547         (scalar_chain::add_insn): New.
8548         (scalar_chain::build): New.
8549         (scalar_chain::compute_convert_gain): New.
8550         (scalar_chain::replace_with_subreg): New.
8551         (scalar_chain::replace_with_subreg_in_insn): New.
8552         (scalar_chain::emit_conversion_insns): New.
8553         (scalar_chain::make_vector_copies): New.
8554         (scalar_chain::convert_reg): New.
8555         (scalar_chain::convert_op): New.
8556         (scalar_chain::convert_insn): New.
8557         (scalar_chain::convert): New.
8558         (convert_scalars_to_vector): New.
8559         (pass_data_stv): New.
8560         (pass_stv): New.
8561         (make_pass_stv): New.
8562         (ix86_option_override): Created and register stv pass.
8563         (flag_opts): Add -mstv.
8564         (ix86_option_override_internal): Likewise.
8565         * config/i386/i386.md (SWIM1248x): New.
8566         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8567         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8568         (*anddi3_doubleword): New.
8569         (*zext<mode>_doubleword): New.
8570         (*zextsi_doubleword): New.
8571         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8572         (*<code>di3_doubleword): New.
8573         * config/i386/i386.opt (mstv): New.
8574         * dbgcnt.def (stv_conversion): New.
8576 2015-09-29  Tom de Vries  <tom@codesourcery.com>
8578         * tree-cfg.c (dump_function_to_file): Dump function attributes.
8580 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8582         PR target/67716
8583         * config/sh/sh.c (sh_override_options_after_change): New.
8584         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8585         (sh_option_override): Move align_loops, align_jumps and
8586         align_functions handling into sh_override_options_after_change.
8588 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
8590         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8591         (nvptx_record_offload_symbol): Record function execution geometry.
8592         * config/nvptx/mkoffload.c (process): Include launch geometry in
8593         function data.
8594         * omp-low.c (oacc_launch_pack): New.
8595         (replace_oacc_fn_attrib): New.
8596         (set_oacc_fn_attrib): New.
8597         (get_oacc_fn_attrib): New.
8598         (expand_omp_target): Create keyed varargs for GOACC_parallel call
8599         generation.
8600         * omp-low.h (get_oacc_fn_attrib): Declare.
8601         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8602         (DEF_FUNCTION_TYPE_VAR_11): Delete.
8603         * tree.h (OMP_CLAUSE_EXPR): New.
8604         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8606 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8607             Sebastian Pop  <s.pop@samsung.com>
8609         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8611 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8612             Sebastian Pop  <s.pop@samsung.com>
8614         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8615         * graphite-scop-detection.c (struct sese_l): New type.
8616         (get_entry_bb): API for getting entry bb of SESE.
8617         (get_exit_bb): API for getting exit bb of SESE.
8618         (class debug_printer): New type.  Simple printer in debug mode.
8619         (trivially_empty_bb_p): New.  Return true when BB is empty or
8620         contains only debug instructions.
8621         (graphite_can_represent_expr): Call scalar_evoution_in_region
8622         instead of analyze_scalar_evolution.  Pass in scop instead of only
8623         the scop entry.
8624         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8625         scop entry.
8626         (stmt_simple_for_scop_p): Same.
8627         (harmful_stmt_in_bb): Same.
8628         (graphite_can_represent_loop): Deleted.
8629         (struct scopdet_info): Deleted.
8630         (scopdet_basic_block_info): Deleted.
8631         (build_scops_1): Deleted.
8632         (bb_in_sd_region): Deleted.
8633         (find_single_entry_edge): Deleted.
8634         (find_single_exit_edge): Deleted.
8635         (create_single_entry_edge): Deleted.
8636         (sd_region_without_exit): Deleted.
8637         (create_single_exit_edge): Deleted.
8638         (unmark_exit_edges): Deleted.
8639         (mark_exit_edges): Deleted.
8640         (create_sese_edges): Deleted.
8641         (build_graphite_scops): Deleted.
8642         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8643         (build_scops): Use the new scop_builder to build scops.
8644         (dot_all_scops_1): Use the new pretty printer.  Print loop father
8645         as well.
8646         (loop_body_is_valid_scop): New.  Return true if loop body is a
8647         valid scop.
8648         (class scop_builder): New.  Builds SCoPs for polyhedral
8649         optimizations.
8650         (scop_builder): New constructor.
8651         (static sese_l invalid_sese): sese_l with invalid edges.
8652         (get_sese): Get an sese (from a loop) if possible, invalid_sese
8653         otherwise.
8654         (get_nearest_dom_with_single_entry): Get nearest dominator of a
8655         basic_block with single entry.  Return NULL if we get to the
8656         beginning of a function.
8657         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8658         a basic_block with single exit.  Return NULL if we get to the
8659         beginning of a function.
8660         (print_sese): Pretty-print SESE.
8661         (merge_sese): Merge two SESEs if possible and return the new SESE.
8662         (build_scop_depth): Start building the SCoP within a loop nest.
8663         (build_scop_breadth): Start building the SCoP at a single loop
8664         depth.  Merge adjacent SESEs if valid.
8665         (can_represent_loop_1): Returns true if Graphite can represent
8666         loop inside SCoP.  Helper for can_represent_loop.
8667         (can_represent_loop): Returns true if Graphite can represent LOOP
8668         and all its nested loops in SCoP.
8669         (loop_is_valid_scop): Returns true if LOOP and all its nests
8670         constitute a valid SCoP.
8671         (region_has_one_loop): Returns true of a region has only one loop.
8672         (add_scop): Add SCoP to the list of valid scops.  Removes an
8673         already existing scop if it intersects with or subsumed by this one.
8674         (harmful_stmt_in_region): Returns true if SCoP has any statment
8675         which cannot be represented by Graphite.
8676         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8677         (remove_subscops): Remove any SCoP from the list of already found
8678         SCoPs, if subsumed by S1.
8679         (intersects): Return true if region bounded by SCoPs S1 and S2
8680         intersect.
8681         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8682         * graphite.c (print_graphite_scop_statistics):
8683         (print_graphite_statistics): Print SCoP info while debugging.
8684         (graphite_initialize): Early exit in case number of loops in a
8685         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8686         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8687         (graphite_finalize):
8688         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8689         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8690         (recompute_all_dominators): Recalculate POST_DOMINATORS.
8691         * tree-cfg.c (print_loops): Print the function name while printing
8692         loops.
8694 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
8695             Sebastian Pop  <s.pop@samsung.com>
8697         PR tree-optimization/67700
8698         * graphite-sese-to-poly.c (parameter_index_in_region): Call
8699         invariant_in_sese_p_rec.
8700         (extract_affine): Same.
8701         (rewrite_cross_bb_scalar_deps): Call update_ssa.
8702         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
8703         * sese.h (invariant_in_sese_p_rec): Declare.
8705 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
8707         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8709 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
8711         Revert:
8712         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8713                     Jiong Wang  <jiong.wang@arm.com>
8715         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8716         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8717         (REG_CLASS_NAMES): Likewise.
8718         (REG_CLASS_CONTENTS): Likewise.
8719         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8720         (aarch64_register_move_cost): Likewise.
8721         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8722         possible.
8723         * config/aarch64/constraints.md (Uc0): New constraint.
8725 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
8727         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8729 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
8731         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8732         SECTION_EXCLUDE in XO mapping class.
8734 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
8736         PR target/54236
8737         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8738         and handle ne and eq codes.
8739         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8740         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
8741         CONST_INT_P.  Use reverse_condition.
8742         (sh_split_treg_set_expr): Likewise.
8744 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
8746         * config/arm/types.md (type): Add rotate_imm.
8747         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8748         ROR immediate case.
8749         (*rorsi3_insn_uxtw): Likewise.
8750         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8751         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8752         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8754 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8756         PR rtl-optimization/67481
8757         * ifcvt.c (contains_ccmode_rtx_p): New function.
8758         (insn_valid_noce_process_p): Use it.
8760 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8762         PR rtl-optimization/67456
8763         PR rtl-optimization/67464
8764         PR rtl-optimization/67465
8765         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8766         move in the mode of x.  Handle combination of complex and simple
8767         block pairs as well as the case when one is empty.
8769 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8771         * doc/gimple.texi: Update references to gimple_statement_base.
8772         * gdbhooks.py: Likewise.
8773         * gimple.h: Likewise.
8775 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8777         * config/sparc/driver-sparc.c: map LEON to leon3
8779 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8781         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8782           and make it inverse to change default
8783         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8784           supervisor mode
8785         * doc/invoke.texi: Document change of default
8787 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
8789         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8790         true on %f0 for a target without FPU.
8791         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8792         without FPU.
8793         (untyped_return): Do not load %f0 for a target without FPU.
8795 2015-09-28  Andrew Pinski  <apinski@cavium.com>
8797         * config/aarch64/aarch64.md (prefetch):
8798         Change the predicate of operand 0 to register_operand.
8800 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
8802         * config/i386/predicates.md (register_sse4nonimm_operand): New
8803         predicate.
8804         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8805         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8806         Use register_sse4nonimm_operand as operand 0 predicate.
8807         (*vec_extractv8hi_sse2): Remove insn pattern.
8808         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8809         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8811 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
8812             Kaz Kojima  <kkojima@gcc.gnu.org>
8814         PR target/67391
8815         * config/sh/sh-protos.h (sh_lra_p): Declare.
8816         * config/sh/sh.c (sh_lra_p): Make non-static.
8817         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8818         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
8819         Expand into addsi3_scr if operands[2] if needed.
8820         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
8821         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
8822         (addsi3_scr, *addsi3): New insn_and_split patterns.
8824 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
8826         PR rtl-optimization/64164
8827         PR tree-optimization/67312
8828         PR middle-end/67340
8829         PR middle-end/67490
8830         PR bootstrap/67597
8831         * cfgexpand.c (parm_in_stack_slot_p): Remove.
8832         (ssa_default_def_partition): Remove.
8833         (get_rtl_for_parm_ssa_default_def): Remove.
8834         (set_rtl): Check that RTL assignments match expectations.
8835         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
8836         default def location for params and results.  Record SSA names
8837         or types in REG and MEM attrs, respectively.
8838         (set_parm_rtl): New.
8839         (expand_one_ssa_partition): Drop logic that assigned MEMs with
8840         unassigned addresses.
8841         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8842         deferred stack alloc vars.
8843         (expand_used_vars): Skip partitions holding parm default defs.
8844         Move adjust_one_expanded_partition_var loop...
8845         (pass_expand::execute): ... here.  Drop redundant assert.
8846         Adjust comments before the final loop over all ssa names.
8847         Require assigned rtl of parms and results to match exactly.
8848         Reset its attributes to match them, not any other variables in
8849         the same partition.
8850         (expand_debug_expr): Use entry value for PARM's default defs
8851         only iff they have zero nondebug uses.
8852         * cfgexpand.h (parm_in_stack_slot_p): Remove.
8853         (get_rtl_for_parm_ssa_default_def): Remove.
8854         (set_parm_rtl): Declare.
8855         * doc/invoke.texi: Improve wording.
8856         * explow.c (promote_decl_mode): Fix promote_function_mode for
8857         result decls not by reference.
8858         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8859         bypass TYPE_MODE to get the actual vector mode.
8860         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
8861         2015-08-19's changes as follows.  Drop include of
8862         basic-block.h and df.h.
8863         (rtl_for_parm): Remove.
8864         (maybe_reset_rtl_for_parm): Remove.
8865         (parm_in_unassigned_mem_p): Remove.
8866         (use_register_for_decl): Add logic for RESULT_DECLs matching
8867         assign_parms' behavior.
8868         (split_complex_args): Revert.
8869         (assign_parms_augmented_arg_list): Revert.  Add comment
8870         referencing the logic above.
8871         (assign_parm_adjust_stack_rtl): Revert.
8872         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
8873         of SET_DECL_RTL.  Set up a REG if the parm demands so.
8874         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
8875         calls into a single set_parm_rtl.  Set up a temporary RTL
8876         temporarily for expand_assignment.
8877         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
8878         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
8879         (assign_bounds): Revert.
8880         (assign_parms): Revert.  Use set_parm_rtl.
8881         (allocate_struct_function): Relayout result and parms of
8882         non-abstruct functions.
8883         (expand_function_start): Revert.  Use set_parm_rtl.  If the
8884         result is not a hard reg, create a pseudo from the promoted
8885         mode of the default def.  Promote static chain mode.
8886         * tree-outof-ssa.c (remove_ssa_form): Drop unused
8887         partition_has_default_def.  Set up
8888         partitions_for_parm_default_defs.
8889         (finish_out_of_ssa): Remove partition_has_default_def.
8890         Release partitions_for_parm_default_defs.
8891         * tree-outof-ssa.h (struct ssaexpand): Remove
8892         partition_has_default_def.  Add
8893         partitions_for_parm_default_defs.
8894         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8895         stor-layout.h.
8896         (build_ssa_conflict_graph): Fix conflict-detection of default
8897         defs of even unused default defs of params and results.
8898         (for_all_parms): New.
8899         (create_default_def): New.
8900         (register_default_def): New.
8901         (coalesce_with_default): New.
8902         (create_outofssa_var_map): Create default defs for all parms
8903         and results, and register their partitions.  Add GIMPLE_RETURN
8904         operands as coalesce candidates with results.  Add default
8905         defs of each parm or result as coalesce candidates with its
8906         other defs.  Mark each result def, and each default def of
8907         parms, as used_in_copy.
8908         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
8909         with the ssa names, even anonymous ones.  Drop
8910         parm_in_stack_slot_p calls.  Require same signedness and
8911         alignment.
8912         (coalesce_ssa_name): Add coalesce candidates for all defs of
8913         each parm and result, even unused ones.
8914         (parm_default_def_partition_arg): New type.
8915         (set_parm_default_def_partition): New.
8916         (get_parm_default_def_partitions): New.
8917         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8918         * tree-ssa-live.c (partition_view_init): Regard unused defs of
8919         parms and results as used.
8920         (verify_live_on_entry): Don't error out just because they're
8921         not live.
8923 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
8925         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8926         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8927         (output_fde): Don't output length for debug_frame on AIX.
8928         (output_call_frame_info): Don't output length for debug_frame on AIX.
8929         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8930         HAVE_XCOFF_DWARF_EXTRAS.
8931         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8932         HAVE_XCOFF_DWARF_EXTRAS.
8933         (output_compilation_unit_header): Don't output length on AIX.
8934         (output_pubnames): Don't output length on AIX.
8935         (output_aranges): Delete argument. Compute length locally. Don't
8936         output length on AIX.
8937         (output_line_info): Don't output length on AIX.
8938         (dwarf2out_finish): Don't compute aranges_length.
8939         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8940         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8941         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8942         symbol decoration for AIX.
8943         (rs6000_xcoff_debug_unwind_info): New.
8944         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8945         for SECTION_DEBUG.
8946         (rs6000_xcoff_declare_function_name): Emit different
8947         .function pseudo-op when DWARF2_DEBUG. Don't call
8948         xcoffout_declare_function for DWARF2_DEBUG.
8949         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8950         Redefine.
8951         * config/rs6000/aix71.h: New.
8952         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8953         locations support.
8954         * configure: Regenerate.
8955         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8956         DWARF support.
8958 2015-09-26  Jeff Law  <law@redhat.com>
8960         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8961         behaviour.
8962         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8963         behaviour.
8965         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8966         behaviour
8968         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8969         undefined behaviour.
8971         * config/cris/cris.md (asrandb): Fix left shift undefined
8972         behaviour.
8973         (asrandw): Likewise.
8975 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
8977         PR target/61578
8978         * lra-constarints.c (match_reload): Check presence of the input pseudo
8979         in the output operand.
8981 2015-09-25  Tobias Burnus  <burnus@net-b.de>
8983         * doc/invoke.texi (-fsanitize): Minor wording tweak.
8985 2015-09-25  Tobias Burnus  <burnus@net-b.de>
8987         * doc/invoke.texi (-fsanitize): Update URLs.
8989 2015-09-25  Teresa Johnson  <tejohnson@google.com>
8991         * opts.c (finish_options): Unset -freorder-blocks-and-partition
8992         if not using profile.
8994 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8996         PR pretty-print/67567
8997         * pretty-print.c (pp_string): Add gcc_checking_assert.
8998         * pretty-print.h (output_buffer_append_r): Likewise.
9000 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
9002         PR target/67675
9003         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9004         addr2 individually.  Don't emit logical or insn if one is known to
9005         be aligned approriately.
9006         (sh_expand_cmpnstr): Likewise.
9008 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
9010         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9011         __builtin_aarch64_fp[sc]r arguments into a register.
9013 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
9015         * config.gcc (x86_archs): Replace lakemount with lakemont.
9016         (with_cpu): Likewise.
9017         (with_arch): Likewise.
9018         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9019         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
9020         __tune_lakemount__ with __tune_lakemont__.
9021         * config/i386/i386.c (lakemount_cost): Renamed to ...
9022         (lakemont_cost): This.
9023         (m_LAKEMOUNT): Renamed to ...
9024         (m_LAKEMONT): This.
9025         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9026         (processor_target_table): Replace "lakemount" with "lakemont".
9027         (processor_alias_table): Likewise.
9028         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9029         PROCESSOR_LAKEMONT.
9030         (ix86_adjust_cost): Likewise.
9031         (ia32_multipass_dfa_lookahead): Likewise.
9032         * config/i386/i386.h (processor_type): Likewise.
9033         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9034         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
9035         Lakemount with Lakemont.
9037 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
9039         * config.gcc (x86_archs): Replace iamcu with lakemount.
9040         (with_cpu): Likewise.
9041         (with_arch): Likewise.
9042         * doc/invoke.texi: Likewise.
9043         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9044         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
9045         __tune_iamcu__ with __tune_lakemount__.
9046         * config/i386/i386.c (iamcu_cost): Renamed to ...
9047         (lakemount_cost): This.
9048         (m_IAMCU): Renamed to ...
9049         (m_LAKEMOUNT): This.
9050         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9051         (processor_target_table): Replace "iamcu" with "lakemount".
9052         (processor_alias_table): Likewise.
9053         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9054         PROCESSOR_LAKEMOUNT.
9055         (ix86_adjust_cost): Likewise.
9056         (ia32_multipass_dfa_lookahead): Likewise.
9057         * config/i386/i386.h (processor_type): Likewise.
9058         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9060 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
9062         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9063         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9064         Declare.
9065         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9066         (pa_expand_compare_and_swap_loop): New.
9067         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9068         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9069         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9070         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9071         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9072         Revise.
9074 2015-09-24  Michael Collison  <michael.collison@linaro.org>
9076         PR other/57195
9077         * read-md.c (read_name): Allow mode iterators inside angle
9078         brackets in rtl expressions.
9080 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
9082         PR target/61578
9083         * ira-color.c (update_allocno_cost): Add parameter.
9084         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
9085         parameter.
9087 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9089         PR driver/67640
9090         * opts-common.c (prune_options): Discard all -fdiagnostics-color
9091         but the last one, which is moved to the front to be processed
9092         first.
9093         * opts.c (enable_warning_as_error): Reject options that do not
9094         control warnings.
9096 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
9098         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9100 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
9102         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9103         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9104         (aarch64_cannot_force_const_mem): Likewise.
9105         (aarch64_classify_address): Likewise.
9106         (aarch64_classify_symbolic_expression): Likewise.
9107         (aarch64_print_operand): Likewise.
9108         (aarch64_classify_symbol): Likewise.
9109         (aarch64_mov_operand_p): Likewise.
9110         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9111         (aarch64_mov_operand): Likewise.
9113 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
9115         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9116         for info->spe_gp_size.
9118 2015-09-24  Richard Biener  <rguenther@suse.de>
9120         PR lto/67699
9121         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9122         abstract origins.
9124 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
9126         * tree-object-size.c (plus_stmt_object_size)
9127         (cond_expr_object_size): Change the formal parameters from gimple
9128         to gimple *.
9129         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9130         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9131         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9133 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9135         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9136         Check for ld -type pie on Solaris 11.x and 12.
9137         * configure: Regenerate.
9138         * config.in: Regenerate.
9140         * gcc.c (LD_PIE_SPEC): Allow redefinition.
9142         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9143         (STARTFILE_SPEC): Use it.
9144         (ENDFILE_CRTEND_SPEC): Define.
9145         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9146         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9147         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9148         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9149         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9150         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9151         (ENDFILE_ARCH_SPEC): Define.
9152         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9154 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9156         * configure.ac (gcc_cv_solaris_crts): New test.
9157         * configure. Regenerate.
9158         * config.in: Regenerate.
9159         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9160         HAVE_SOLARIS_CRTS variant.
9162 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9164         * tree-inline.h (count_insns_seq): Delete prototype.
9165         (estimate_num_insns_seq): Define prototype.
9166         * tree-inline.c (count_insns_seq): Delete.
9167         (estimate_num_insns_seq): Remove static qualifier.
9168         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9169         with estimate_num_insns_seq.
9171 2015-09-24  Richard Biener  <rguenther@suse.de>
9173         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9174         members.
9175         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9176         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
9177         offset.
9178         (ao_ref_init_from_vn_reference): Record clique and base in the
9179         built base.
9180         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9182 2015-09-24  Richard Biener  <rguenther@suse.de>
9184         PR tree-optimization/48885
9185         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9186         as not including any restrict tags from other pointers.
9188 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
9190         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9191         character when appending to offload_targets.
9193         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9194         offload targets by commas, not colons.
9195         * config.in: Regenerate.
9196         * configure: Likewise.
9197         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9198         instead of setting up the default offload targets here...
9199         (process_command): ..., do it here.
9200         libgomp/
9201         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9202         targets are separated by commas.
9203         * config.h.in: Regenerate.
9205 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
9206             Nathan Sidwell  <nathan@codesourcery.com>
9208         * omp-low.h (omp_reduction_init_op): Declare.
9209         * omp-low.c (omp_reduction_init_op): New, broken out of ...
9210         (omp_reduction_init): ... here.  Call it.
9211         * tree-parloops.c (initialize_reductions): Use
9212         omp_reduction_init_op.
9214 2015-09-23   Richard Biener  <rguenther@suse.de>
9216         PR middle-end/67662
9217         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9218         undefined overflow unless they will cancel out.
9220 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
9222         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9223         insn emit.
9225 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9227         PR c/49655
9228         * opts.h (write_langs): Declare.
9229         * opts-global.c (write_langs): Make it extern.
9231 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
9233         PR target/67391
9234         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9235         overlapping regs when matching the pattern.
9237 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
9239         * config/aarch64/aarch64-simd.md
9240         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9241         (aarch64_float_truncate_hi_v4sf_le): New.
9242         (aarch64_float_truncate_hi_v4sf_be): Likewise.
9244 2015-09-23  Richard Biener  <rguenther@suse.de>
9246         * tree-ssa-structalias.c (intra_create_variable_infos): Build
9247         representatives for all restrict qualified pointer destinations.
9249 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
9251         * config/i386/i386.md (define_code_attr mshift): New.
9252         (define_mode_iterator SWI1248_AVX512BW): Rename ...
9253         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9254         only.
9255         (define_insn "*k<logic><mode>"): Use new iterator name.
9256         (define_insn "*<mshift><mode>3"): New.
9258 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
9260         PR middle-end/67649
9261         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9262         mark the block as accessible.
9264 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
9266         * function.c (thread_prologue_and_epilogue_insns): Delete
9267         orig_entry_edge argument to try_shrink_wrapping.
9268         * shrink-wrap.c (can_get_prologue): New function.
9269         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9270         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
9271         can_get_prologue where needed.  Remove code that finds a single
9272         edge for the prologue.  Remove code that tests if any reg clobbered
9273         by the prologue is live on the prologue edge.  Remove code that finds
9274         the new prologue edge after duplicating blocks.  Make a new prologue
9275         block and edge.
9276         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9278 2015-09-22  Jeff Law  <law@redhat.com>
9280         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9281         behavior.
9283 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
9285         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
9286         -Wtemplates, -Wnamespaces): Document.
9288 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9290         PR tree-optimization/67671
9291         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9292         pointer references as restrict.
9294 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
9296         * config/nios2/nios2.c (nios2_legitimize_address): When handling
9297         'reg + reloc' cases, allow first operand to be non-REG, and use
9298         force_reg() to enforce address pattern.
9300 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
9302         PR target/67480
9303         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9304         (define_mode_iterator VI12_AVX_AVX512F): New.
9305         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9306         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9307         (define_insn "*<code><mode>3"): ... Into new pattern using
9308         VI12_AVX_AVX512F iterators without masking.
9310 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9312         * config.gcc: Support "skylake-avx512".
9313         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9314         PROCESSOR_SKYLAKE_AVX512.
9315         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9316         (processor_target_table): Add "skylake-avx512".
9317         (PTA_SKYLAKE_AVX512): Define.
9318         (ix86_option_override_internal): Add "skylake_avx512".
9319         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9320         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9321         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9322         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9323         * doc/invoke.texi (skylake-avx512): New.
9325 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9327         * config/i386/i386.md (define_insn "kunpckhi"): Fix
9328         operand in pattern.
9329         (define_insn "kunpcksi"): Ditto.
9330         (define_insn "kunpckdi"): Ditto.
9332 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9334         * config/i386/i386.md (define_split not/xor SWI1248x): Use
9335         iterator instead of fixed modes.
9337 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9339         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9340         Adjust declaration.
9341         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9342         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
9343         out_result.  Update to support update-fetch operations.
9344         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9345         Adjust for change to aarch64_gen_atomic_ldop.
9346         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9347         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9348         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9349         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9350         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9352 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9354         * config/aarch64/aarch64-protos.h
9355         (aarch64_atomic_ldop_supported_p): Declare.
9356         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9357         (enum aarch64_atomic_load_op_code): New.
9358         (aarch64_emit_atomic_load_op): New.
9359         (aarch64_gen_atomic_ldop): Update to support load-operate
9360         patterns.
9361         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9362         to an expander.
9363         (aarch64_atomic_<atomic_optab><mode>): New.
9364         (aarch64_atomic_<atomic_optab><mode>_lse): New.
9365         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9366         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9367         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9369 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9371         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9372         (UNSPECV_ATOMIC_LDOP_OR): New.
9373         (UNSPECV_ATOMIC_LDOP_BIC): New.
9374         (UNSPECV_ATOMIC_LDOP_XOR): New.
9375         (UNSPECV_ATOMIC_LDOP_PLUS): New.
9376         (ATOMIC_LDOP): New.
9377         (atomic_ldop): New.
9378         (aarch64_atomic_load<atomic_ldop><mode>): New.
9380 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9382         * config/aarch64/aarch64.md
9383         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9384         pattern.
9386 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
9388         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9389         Declare.
9390         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9391         (aarch64_gen_atomic_ldop): New.
9392         (aarch64_split_atomic_op): Fix whitespace and add a comment.
9393         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9394         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9395         (atomic_exchange<mode>): Replace with an expander.
9396         (aarch64_atomic_exchange<mode>): New.
9397         (aarch64_atomic_exchange<mode>_lse): New.
9398         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9399         (aarch64_atomic_swp<mode>): New.
9401 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9403         * tree-inline.c (expand_call_inline): Use inform for extra note.
9404         Do not give a note with UNKNOWN_LOCATION.
9405         Replace input_location with gimple_location (stmt).
9406         Use true/false instead of TRUE/FALSE.
9408 2015-09-22  Tom de Vries  <tom@codesourcery.com>
9410         PR tree-optimization/67666
9411         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9412         with single field non-conservative.
9414 2015-09-21  David S. Miller  <davem@davemloft.net>
9416         PR/67622
9417         Revert:
9418         2015-09-11  David S. Miller  <davem@davemloft.net>
9420         * config/sparc/constraints.md: Make "U" constraint a real register
9421         constraint.
9422         * config/sparc/sparc.c (TARGET_LRA_P): Define.
9423         (D_MODES, DF_MODES): Add missing cast.
9424         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9425         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9426         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9427         cost to 8.
9428         * config/sparc/sparc.h (PROMOTE_MODE): Define.
9429         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9430         provide these insn when flag_pic.
9432         2015-09-17  David S. Miller  <davem@davemloft.net>
9434         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9435         Declare.
9436         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9437         function.
9438         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9439         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9440         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9441         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9442         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9443         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9444         provide when flag_pic.
9446 2015-09-21  Jeff Law  <law@redhat.com>
9448         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9449         behavior.
9451 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9453         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9455 2015-09-21  Richard Biener  <rguenther@suse.de>
9457         * passes.c (rest_of_decl_compilation): Do not call
9458         dwarf2out_early_global_decl for aliases.
9460 2015-09-21  Richard Biener  <rguenther@suse.de>
9462         PR debug/67664
9463         * dwarf2out.c (add_location_or_const_value_attribute): Remove
9464         attribute parameter.  Early exit if either DW_AT_const_value
9465         or DW_AT_location are present already.
9466         (gen_variable_die): Adjust caller.
9467         (dwarf2out_late_global_decl): Likewise.
9469 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9471         PR target/67657
9472         * config/sh/sh.c (sh_remove_overlapping_post_inc,
9473         sh_peephole_emit_move_insn): Add new functions.
9474         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9475         sh_peephole_emit_move_insn): Declere them.
9476         * config/sh/sh.md: Use them in various peephole2 patterns.
9478 2015-09-21  Richard Biener  <rguenther@suse.de>
9480         PR middle-end/67651
9481         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9482         address with -fno-delete-null-pointer-checks.
9484 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
9486         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9487         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9488         (reduc_uplus_v16qi): Remove.
9490         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9491         (reduc_<VEC_reduc_name>_v2df): Remove.
9492         (reduc_<VEC_reduc_name>_v4sf): Remove.
9493         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9495         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9496         gen_ function by removing * prefix.
9497         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9499 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9501         PR middle-end/60832
9502         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9503         Print i_bound without converting it to a tree.
9505 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
9507         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9508         operands[4] operands[5] swap with std::swap, removed tmp variable.
9509         (arm_evpc_neon_vzip): Replaced in0/in1 and
9510         out0/out1 swaps with std::swap, removed x variable.
9511         (arm_evpc_neon_vtrn): Replaced in0/int1 and
9512         out0/out1 swaos with std::swap, removed x variable.
9513         (arm_expand_vec_perm_const_1): Replaced
9514         d->op0/d->op1 swap with std::swap, removed x variable.
9515         (arm_evpc_neon_vuzp): Replaced in0/in1 and
9516         out0/out1 swaps with std::swap, removed x variable.
9518 2015-09-21  Jonathan Yong  <10walls@gmail.com>
9520         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9521         sysroot/usr/lib/32api for additional win32 libraries,
9522         fixes failing Cygwin bootstrapping.
9524 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9526         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9528 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
9530         PR target/67126
9531         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9532         (*mov_t_msb_neg): Rewrite negc pattern.
9534 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9536         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9537         immediate generation code.
9539 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9541         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9542         redundant immediate generation code.
9544 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9546         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9547         (AARCH64_NUM_BITMASKS): Remove.
9548         (aarch64_bitmasks_cmp): Remove.
9549         (aarch64_build_bitmask_table): Remove.
9551 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9553         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9554         slow immediate matching loops with a faster algorithm.
9556 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
9558         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9559         faster algorithm.
9561 2015-09-20  Jeff Law  <law@redhat.com>
9563         PR tree-optimization/47679
9564         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9565         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9566         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9567         (thread_through_normal_block): Use record_temporary_equivalences.
9569 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
9571         * coretypes.h (gimple): Change typedef to be a forward declaration.
9572         * gimple.h (gimple_statement_base): rename to gimple.
9573         * (all functions and types using gimple): Adjust.
9574         * *.[ch]: Likewise.
9576 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
9577             David Edelsohn  <dje.gcc@gmail.com>
9579         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9580         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9581         (EH_FRAME_THROUGH_COLLECT2): Define.
9582         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9583         (ASM_OUTPUT_DWARF_PCREL): Define.
9584         (ASM_OUTPUT_DWARF_DATAREL): Define.
9586 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
9588         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9589         of TARGET_ELF32.
9591 2015-09-18  Jeff Law  <law@redhat.com>
9593         PR tree-optimization/47679
9594         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
9595         it here ...
9596         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9597         object.  Update constructor.
9598         (pass_dominator::execute):  Corresponding chagnes to declaration
9599         and initialization of avail_exprs_stack.  Update constructor call
9600         for dom_opt_dom_walker object.
9601         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
9602         it down to children as needed.
9603         (record_equivalences_from_incoming_edge): Likewise.
9604         (eliminate_redundant_computations): Likewise.
9605         (record_equivalences_from_stmt): Likewise.
9606         (simplify_stmt_for_jump_threading): Likewise.
9607         (record_temporary_equivalences): Likewise.
9608         (optimize_stmt): Likewise.
9609         (dom_opt_dom_walker::thread_across_edge): Update access to
9610         avail_exprs_stack object and pass it to children as needed.
9611         (dom_opt_dom_walker::before_dom_children): Similarly.
9612         (dom_opt_dom_walker::after_dom_children): Similarly.
9613         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9614         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9615         Add avail_expr_stack argument.  Pass it to children as needed.
9616         (dummy_simplify): Likewise.
9617         (simplify_control_stmt_condition): Likewise.
9618         (thread_around_empty_blocks): Likewise.
9619         (thread_through_normal_block): Likewise.
9620         (thread_across_edge): Likewise.
9621         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9622         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9624         PR tree-optimization/47679
9625         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
9626         it here ...
9627         (dom_opt_dom_walker): New private member holding the const_and_copies
9628         object.  Update constructor.
9629         (pass_dominator::execute): Corresponding changes to declaration
9630         and initialization of const_and_copies.  Update constructor call
9631         for the dom_opt_dom_walker object.
9632         (record_temporary_equivalences): Accept const_and_copies argument
9633         pass it down to children as needed.
9634         (record_equality): Likewise.
9635         (record_equivalences_from_incoming_edge): Likewise.
9636         (cprop_into_successor_phis, optimize_stmt): Likewise.
9637         (eliminate_redundant_computations): Likewise.
9638         (dom_opt_dom_walker::thread_across_edge): Update access to
9639         const_and_copies object and pass it to children as needed.
9640         (dom_opt_dom_walker::before_dom_children): Similarly.
9641         (dom_opt_dom_walker::after_dom_children): Similarly.
9643         PR tree-optimization/47679
9644         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
9645         it into the avail_exprs_stack class.
9646         (pass_dominator::execute): Corresponding changes to declaration
9647         and initialization of avail_exprs.  Pass avail_exprs to
9648         dump_dominator_optimization_stats.
9649         (record_cond): Extract avail_exprs from avail_exprs_stack.
9650         (lookup_avail_expr): Similarly.
9651         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
9652         position in file.
9653         (dump_dominator_optimization_stats): Make static and prototype.
9654         Add argument for the hash table to dump.
9655         (debug_dominator_optimization_stats): Remove.
9656         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9657         prototype.
9658         (debug_dominator_optimization_stats): Similarly.
9659         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9660         "void" in prototype for pop_to_marker method.  Add accessor method
9661         for the underlying avail_exprs table.
9663         * tree-ssa-threadedge.c: Remove trailing whitespace.
9665 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
9667         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9668         unsigned.
9669         (pa_ldil_cint_p): Likewise.
9670         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9671         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9672         Update callers.
9673         * config/pa/pa.md: Likewise.
9675 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
9677         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9678         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9679         (diagnostic_show_locus): Likewise.
9680         (diagnostic_print_caret_line): Likewise.
9681         * diagnostic-show-locus.c: New file.
9683 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
9685         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9686         "back" parameter. Declare label in #if block.
9688 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
9690         PR middle-end/67619
9691         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9692         the address to a register.
9694 2015-09-18  Jeff Law  <law@redhat.com>
9696         PR tree-optimization/47679
9697         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9698         * tree-ssa-dom.c: Remove unnecessary header includes.
9699         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9700         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9701         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9702         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9703         (pass_phi_only_cprop::execute): Likewise.
9704         (make_pass_phi_only_cprop): Likewise.
9705         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
9706         uses of file scoped statics by passing the required objects
9707         as parameters wherever needed.
9709 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
9710             David Edelsohn  <dje.gcc@gmail.com>
9712         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9713         EH_FRAME_THROUGH_COLLECT2.
9714         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9715         DW_EH_PE_datarel.
9716         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9717         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
9718         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9719         * except.c (switch_to_exception_section): Use a read-only section
9720         even if EH_FRAME_SECTION_NAME is undefined.
9721         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9722         * collect2.c (write_c_file_stat): Provide dbase on AIX.
9723         (scan_prog_file): Don't export __dso_handle nor
9724         __gcc_unwind_dbase.
9725         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9726         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9727         (ASM_OUTPUT_DWARF_PCREL): Define.
9728         (ASM_OUTPUT_DWARF_DATAREL): Define.
9729         (EH_FRAME_THROUGH_COLLECT2): Define.
9730         (EH_FRAME_IN_DATA_SECTION): Delete.
9731         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9732         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9733         Declare.
9734         (rs6000_asm_output_dwarf_datarel): Declare.
9735         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9736         (rs6000_aix_asm_output_dwarf_datarel): New.
9737         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9738         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9739         (EH_FRAME_THROUGH_COLLECT2): Define.
9740         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9741         (EH_FRAME_THROUGH_COLLECT2): Define.
9742         (EH_TABLES_CAN_BE_READ_ONLY): Define.
9743         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9744         (EH_FRAME_THROUGH_COLLECT2): New.
9745         (ASM_OUTPUT_DWARF_DATAREL): New.
9746         * doc/tm.texi: Regenerate.
9748 2015-09-18  Richard Biener  <rguenther@suse.de>
9750         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9751         we're in early phase.
9752         (schedule_generic_params_dies_gen): Likewise.
9753         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9754         work as possible, retaining unhandled cases.
9755         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9756         clear out generic_type_instances at the end.
9757         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9758         (dwarf2out_early_finish): ... here.  Do most of
9759         gen_remaining_tmpl_value_param_die_attribute here.
9761 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
9763         PR tree-optimization/67283
9764         * tree-sra.c (type_consists_of_records_p): Rename to...
9765         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9766         (completely_scalarize_record): Rename to...
9767         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9768         (scalarize_elem): New.
9769         (analyze_all_variable_accesses): Follow renamings.
9771 2015-09-18  Richard Biener  <rguenther@suse.de>
9773         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9774         in early-dwarf.
9776 2015-09-18  Richard Biener  <rguenther@suse.de>
9778         PR tree-optimization/66142
9779         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9780         treat MEM[&x] and x the same.
9781         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9782         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9783         when we simplified sth.
9784         (vn_reference_maybe_forwprop_address): Likewise.
9785         (valueize_refs_1): When we simplified through
9786         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9787         set valueized_anything to true.
9788         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9789         one ref kills the other instead of just a offset-based test.
9790         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9791         for the operand_equal_p test to compare bases and also compare
9792         sizes.
9794 2015-09-17  Christian Bruel  <christian.bruel@st.com>
9796         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9798 2015-09-17  Richard Henderson  <rth@redhat.com>
9800         PR libstdc++/65913
9801         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9802         pointers that encode the alignment of the object.
9804 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9806         PR rtl-optimization/66790
9807         * df-problems.c (LIVE): Amend documentation.
9809 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
9811         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9812         and optabs-tree.o.
9813         (GTFILES): Replace optabs.c with optabs-libfunc.c.
9814         * genopinit.c (main): Add an include guard to insn-opinit.h.
9815         Protect the rtx_code parts with NUM_RTX_CODE.
9816         * optabs.h: Split parts out to...
9817         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9818         * optabs.c: Split parts out to...
9819         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9820         * cilk-common.c: Include optabs-query.h rather than optabs.h.
9821         * fold-const.c: Likewise.
9822         * target-globals.c: Likewise.
9823         * tree-if-conv.c: Likewise.
9824         * tree-ssa-forwprop.c: Likewise.
9825         * tree-ssa-loop-prefetch.c: Likewise.
9826         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9827         Remove unncessary include files.
9828         * tree-ssa-phiopt.c: Likewise.
9829         * tree-ssa-reassoc.c: Likewise.
9830         * tree-switch-conversion.c: Likewise.
9831         * tree-vect-data-refs.c: Likewise.
9832         * tree-vect-generic.c: Likewise.
9833         * tree-vect-loop.c: Likewise.
9834         * tree-vect-patterns.c: Likewise.
9835         * tree-vect-slp.c: Likewise.
9836         * tree-vect-stmts.c: Likewise.
9837         * tree-vrp.c: Likewise.
9838         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9839         rather than optabs.h.
9840         * expr.c: Include optabs-tree.h.
9841         * function.c: Likewise.
9843 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9845         PR middle-end/65958
9846         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9847         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9848         * config/arm/arm.c: Include common/common-target.h.
9849         (use_return_insn): Return 0 if the static chain register was saved
9850         above a non-APCS frame.
9851         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9852         (struct scratch_reg): New.
9853         (get_scratch_register_on_entry): New function.
9854         (release_scratch_register_on_entry): Likewise.
9855         (arm_emit_probe_stack_range): Likewise.
9856         (output_probe_stack_range): Likewise.
9857         (arm_expand_prologue): Factor out code dealing with the IP register
9858         for nested function and adjust it for stack checking.
9859         Invoke arm_emit_probe_stack_range if static builtin stack checking
9860         is enabled.
9861         (thumb1_expand_prologue): Sorry out if static builtin stack checking
9862         is enabled.
9863         (arm_expand_epilogue): Add the saved static chain register, if any, to
9864         the amount of pre-pushed registers to pop.
9865         (arm_frame_pointer_required): Return true if static stack checking is
9866         enabled and we want to catch the exception with the EABI unwinder.
9867         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9868         (UNSPEC_PROBE_STACK_RANGE): Likewise.
9869         * config/arm/arm.md (probe_stack): New insn.
9870         (probe_stack_range): Likewise.
9872 2015-09-17  Richard Biener  <rguenther@suse.de>
9874         * genmatch.c (parser::parse_expr): Improve error message
9875         for mis-placed flags.
9877 2015-09-17  Richard Biener  <rguenther@suse.de>
9879         * passes.c (rest_of_decl_compilation): Always call early_global_decl
9880         debug hook when we created a varpool node.
9881         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9882         dwarf2out_early_global_decl, when not just add location or
9883         value attributes to existing DIEs.
9885 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
9887         * config/aarch64/aarch64.md (copysigndf3): New.
9888         (copysignsf3): Likewise.
9890 2015-09-17  David S. Miller  <davem@davemloft.net>
9892         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9893         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9894         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9895         (HARD_REGNO_CALLER_SAVE_MODE): Define.
9896         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9897         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9898         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9899         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9900         provide when flag_pic.
9902 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9904         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9905         object_allocator change.
9907 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
9909         PR tree-optimization/66388
9910         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9911         (dump_iv): Dump no_overflow information.
9912         (alloc_iv): Initialize new field for struct iv.
9913         (mark_bivs): Count number of no_overflow bivs.
9914         (find_deriving_biv_for_expr, record_biv_for_address_use): New
9915         functions.
9916         (idx_find_step): Call new functions above.
9917         (add_candidate_1, add_candidate): New paramter.
9918         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9919         (get_computation_aff): Simplify convertion of cand for BIV.
9920         (get_computation_cost_at): Step cand's base if necessary.
9922 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
9924         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9925         parameter.
9926         (tree_simplify_using_condition): Ditto.
9927         (simplify_using_initial_conditions): Ditto.
9928         (loop_exits_before_overflow): Pass new argument to function
9929         simplify_using_initial_conditions.  Remove case for type conversions
9930         simplification.
9931         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9932         parameter.
9933         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9934         in iv base using loop initial conditions.
9936 2015-09-16  Jeff Law  <law@redhat.com>
9938         PR tree-optimization/47679
9939         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9940         (free_all_edge_infos): Use it.
9941         (allocate_edge_info): Free preexisting edge info data.
9942         (pass_dominator::execute): Set up initial edge info structures.
9943         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9944         thread_across_edge.
9945         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9946         If non-null, then push/pop markers appropriately.
9947         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9948         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9949         thread-across_edge.
9951 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
9953         * config/ft32/ft32.c: Fix the memory address space predicate.
9955 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
9957         PR target/67573
9958         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9959         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9961 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9963         * toplev.h (check_global_declaration): Remove declaration.
9964         * toplev.c (check_global_declaration): Move to ...
9965         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9966         (analyze_functions): Update call.
9968 2015-09-16  David S. Miller  <davem@davemloft.net>
9970         * lra-constraints.c (simplify_operand_subreg): Do not assume that
9971         lowpart of a SUBREG has offset zero.
9973 2015-09-16  Jeff Law  <law@redhat.com>
9975         PR tree-optimization/47679
9976         * tree-ssa-dom.c (enum expr_kind): Moved from here to
9977         tree-ssa-scopedtables.h.
9978         (struct hashable_expr, class expr_hash_elt): Likewise.
9979         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9980         Move associated methods into tree-ssa-scopedtables.c.
9981         (avail_expr_hash, initialize_expr_from_cond): Similarly.
9982         (hashable_expr_equal_p, add_expr_commutative): Likewise.
9983         (add_hashable_expr): Likewise.
9984         (record_cond): Delete element directly.
9985         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9986         private copy ctor and assignment operator methods.
9987         (expr_elt_hasher): Inline trivial methods.
9988         (initialize_expr_from_cond): Prototype.
9989         * tree-ssa-scopedtables.c: Add necessary includes, functions and
9990         methods that were previously in tree-ssa-dom.c.  Improve various
9991         comments.
9993 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
9995         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9997 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
9999         PR bootstrap/67587
10000         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10001         fixup_partitions.
10003 2015-09-16  Richard Biener  <rguenther@suse.de>
10005         PR middle-end/67253
10006         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10007         location of possibly shared trees.
10009 2015-09-16  Richard Biener  <rguenther@suse.de>
10011         PR middle-end/67271
10012         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10014 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
10016         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10017         offset and size computations instead of HOST_WIDE_INT.
10019 2015-09-16  Richard Biener  <rguenther@suse.de>
10021         PR middle-end/67442
10022         * fold-const.c (extract_muldiv_1): Properly extend multiplication
10023         result before builting a tree via wide_int_to_tree.
10025 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
10027         * Makefile.in: Add memory-block.cc
10028         (pool_allocator::initialize): Use fixed block size.
10029         (pool_allocator::release): Use memory_block_pool.
10030         (pool_allocator::allocate): Likewise.
10031         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10032         object pools.
10033         * cfg.c (initialize_original_copy_tables): Likewise.
10034         * cselib.c (elt_list_pool, elt_loc_list_pool,
10035         cselib_val_pool): Likewise.
10036         * df-problems.c (df_chain_alloc): Likewise.
10037         * df-scan.c (df_scan_alloc): Likewise.
10038         * dse.c (cse_store_info_pool, rtx_store_info_pool,
10039         read_info_type_pool, insn_info_type_pool, bb_info_pool,
10040         group_info_pool, deferred_change_pool): Likewise.
10041         * et-forest.c (et_nodes, et_occurrences): Likewise.
10042         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10043         ipcp_agg_lattice_pool): Likewise.
10044         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10045         * ipa-profile.c (histogram_pool): Likewise.
10046         * ipa-prop.c (ipa_refdesc_pool): Likewise.
10047         * ira-build.c (live_range_pool, allocno_pool, object_pool,
10048         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10049         * ira-color.c (update_cost_record_pool): Likewise.
10050         * lra-lives.c (lra_live_range_pool): Likewise.
10051         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10052         * memory-block.cc: New file.
10053         * memory-block.h: New file.
10054         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10055         * sched-deps.c (sched_deps_init): Likewise.
10056         * sel-sched-ir.c (sched_lists_pool): Likewise.
10057         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10058         * tree-sra.c (access_pool): Likewise.
10059         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10060         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10061         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10062         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10063         * tree-ssa-strlen.c (strinfo_pool): Likewise.
10064         * tree-ssa-structalias.c (variable_info_pool): Likewise.
10065         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10066         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10068 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10070         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10071         definition.
10072         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10073         call0 ABI.
10075 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10077         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10078         to pass TLS call argument, according to current ABI.
10079         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10080         callx0 for TLS call, according to current ABI.
10082 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10084         * tree-eh.c (lower_try_finally_dup_block): Clear location information
10085         on stack restore statements.
10086         (decide_copy_try_finally): Do not consider a stack restore statement as
10087         coming from sources.
10089 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
10091         * config/alpha/alpha.c (alpha_expand_block_clear): Use
10092         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10094 2015-09-15  Jeff Law  <law@redhat.com>
10096         PR tree-optimization/47679
10097         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10098         methods and private members.
10099         (avail_exprs_stack): Similarly.  Change type of global
10100         from a pair of expr_hash_elt_t to the new class.
10101         (expr_elt_hasher::hash): Corresponding changes.
10102         (expr_elt_hasher::equal): Similarly.
10103         (avail_expr_hash): Similarly.
10104         (pass_dominator::execute): Similarly.
10105         (dom_opt_dom_walker::thread_across_edge): Similarly.
10106         (record_cond): Similarly.
10107         (dom_opt_dom_walker::before_dom_children): Similarly.
10108         (dom_opt_dom_walker::after_dom_children): Similarly.
10109         (lookup_avail_expr): Likewise.
10110         (initialize_hash_element): Now a expr_hash_elt constructor.
10111         (initialize_hash_element_from_expr): Similarly.
10112         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10113         (free_expr_hash_elt): Call dtor for the element.
10114         (remove_local_expressions_from_table): Now the "pop_to_marker"
10115         method in the available_exprs_stack class.
10116         (avail_expr_stack::record_expr): Method factored out.
10117         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10118         Fix formatting.
10119         (hashable_expr_equal_p): Fix formatting.
10121 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
10123         * input.h (location_get_source_line): Drop "expanded_location"
10124         param in favor of a file and line number.
10125         * input.c (location_get_source_line): Likewise.
10126         (dump_location_info): Update for change in signature of
10127         location_get_source_line.
10128         * diagnostic.c (diagnostic_print_caret_line): Likewise.
10130 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
10132         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10133         Bump to 4KB for SJLJ exceptions.
10134         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
10135         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10136         * doc/tm.texi: Regenerate.
10138 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10140         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10141         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
10142         Update prototype.
10144 2015-09-15  Richard Biener  <rguenther@suse.de>
10146         PR tree-optimization/67470
10147         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10148         structure for PHI hoisting by inserting a forwarder block
10149         if appropriate.
10151 2015-09-15  Christian Bruel  <christian.bruel@st.com>
10153         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10154         (arm_option_print): New function.
10156 2015-09-15  Christian Bruel  <christian.bruel@st.com>
10158         PR target/52144
10159         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10160         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10161         Remove flags parameter.
10162         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10163         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10164         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10165         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10166         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10167         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10168         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10169         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10171 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10173         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10175         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10176         AARCH64_VALID_SIMD_DREG_MODE.
10178 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10180         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10181         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10182         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10183         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10184         aarch64_ld4_lane<mode>): Combine together, making...
10185         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10186         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10187         aarch64_st4_lane<mode>): Combine together, making...
10188         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10189         * config/aarch64/iterators.md (nregs): Add comment.
10191 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10193         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10194         Change operand mode from <V_TWO_ELEM> to BLK.
10195         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10196         (aarch64_vec_store_lanesoi_lane<mode): Likewise
10197         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10198         (aarch64_ld2_lane<mode>): Likewise.
10199         (aarch64_st2_lane<VQ:mode>): Likewise.
10200         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10202 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10204         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10205         Change operand mode from <V_FOUR_ELEM> to BLK.
10206         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10207         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10208         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10209         (aarch64_ld4_lane<mode>): Likewise.
10210         (aarch64_st4_lane<mode>): Likewise.
10211         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10213 2015-09-15  Richard Biener  <rguenther@suse.de>
10215         PR middle-end/67563
10216         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10217         transfer EH info from old to new stmt.
10218         (replace_call_with_value): Likewise.
10219         (replace_call_with_call_and_fold): Likewise.
10220         (gimple_fold_builtin_memory_op): Likewise.
10221         (gimple_fold_builtin_memset): Likewise.
10222         (gimple_fold_builtin_stpcpy): Likewise.
10223         (gimple_fold_call): Likewise.
10225 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10227         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10228         comment.
10229         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10230         (aarch64_simd_intEI_type_node): Likewise.
10231         (aarch64_simd_builtin_std_type): Remove EImode case.
10232         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10233         * config/aarch64/aarch64-modes.def: Remove EImode.
10235 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10237         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10238         Change operand mode from <V_THREE_ELEM> to BLK.
10239         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10240         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10241         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10242         (aarch64_ld3_lane<mode>): Likewise.
10243         (aarch64_st3_lane<mode>): Likewise.
10244         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10246 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10248         * config/aarch64/aarch64-simd.md
10249         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10250         Change all TImode operands to BLKmode.
10251         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10252         Change all EImode operands to BLKmode.
10253         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10254         Change all OImode operands to BLKmode.
10256         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10257         and call set_mem_size.
10258         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10260         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10262 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
10264         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10265         to...
10266         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10268         (vec_store_lanesci_lane<mode>): Rename to...
10269         (aarch64_vec_store_lanesci_lane<mode>): ...this.
10271         (vec_store_lanesxi_lane<mode>): Rename to...
10272         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10274         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10275         aarch64_st4_lane<mode>): Follow renaming.
10277 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10279         * config/s390/s390.c (s390_const_operand_ok): Add missing
10280         brackets.
10282 2015-09-15  Richard Biener  <rguenther@suse.de>
10284         PR lto/67568
10285         * lto-streamer.h (lto_location_cache::current_sysp): Properly
10286         initialize.
10287         * lto-streamer-out.c (clear_line_info): Likewise.
10289 2015-09-15  Richard Biener  <rguenther@suse.de>
10291         * doc/match-and-simplify.texi: Fix wording.
10293 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
10295         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10296         unnecessary type conversion in op1.
10298 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10300         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10301         (dup_block_and_redirect): Delete function.
10302         (can_dup_for_shrink_wrapping): New function.
10303         (fix_fake_fallthrough_edge): New function.
10304         (try_shrink_wrapping): Rewrite function.
10305         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10307 2015-09-14  Rich Felker  <dalias@libc.org>
10309         * configure.ac: Change target pattern for sh TLS support
10310         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10311         * configure: Regenerate.
10313 2015-09-14  Jeff Law  <law@redhat.com>
10315         PR tree-optimization/47679
10316         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10317         type rather than void *.
10319 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10321         PR fortran/67460
10322         * diagnostic.c (diagnostic_initialize): Do not set
10323         some_warnings_are_errors.
10324         (diagnostic_finish): Use DK_WERROR count instead.
10325         (diagnostic_report_diagnostic): Do not set
10326         some_warnings_are_errors.
10327         * diagnostic.h (struct diagnostic_context): Remove
10328         some_warnings_are_errors.
10330 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
10332         * config/sparc/predicates.md (const_all_ones_operand): Use
10333         CONSTM1_RTX to simplify definition.
10335 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
10337         PR target/67061
10338         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10339         Handle call insns.
10341 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
10343         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10344         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10345         OPT_fshow_column to handled saved option cases.
10346         (append_compiler_options): Do not skip the above added options.
10348 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10350         PR target/63304
10351         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10352         nopcrelative_literal_loads.
10353         (aarch64_classify_address): Likewise.
10354         (aarch64_constant_pool_reload_icode): Define.
10355         (aarch64_secondary_reload): Handle secondary reloads for
10356         literal pools.
10357         (aarch64_override_options): Handle nopcrelative_literal_loads.
10358         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10359         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10360         Define.
10361         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10362         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10363         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10364         predicate.
10365         * doc/invoke.texi (mpc-relative-literal-loads): Document.
10367 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
10369         PR middle-end/67401
10370         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10371         sync_compare_and_swap_optab libcall to target_oval.
10373 2015-09-14  Marek Polacek  <polacek@redhat.com>
10375         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10376         value.
10377         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10379 2015-09-11  Mark Wielaard  <mjw@redhat.com>
10381         PR c/28901
10382         * toplev.c (check_global_declaration): Check and use
10383         warn_unused_const_variable.
10384         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10385         (-Wunused-variable): Remove non-constant. For C implies
10386         -Wunused-const-variable.
10387         (-Wunused-const-variable): New.
10389 2015-09-14  Richard Biener  <rguenther@suse.de>
10391         * doc/match-and-simplify.texi: Update for changed syntax
10392         of inner ifs and the new switch expression.
10394 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
10396         * config/i386/haswell.md: New file describing Haswell pipeline.
10397         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10398         haswell-like processors.
10399         (ix86_reassociation_width): Increase reassociation width for 64-bit
10400         Haswell processor family.
10401         * config/i386/i386.md: Introduce haswell cpu and include new md file.
10403 2015-09-14  Richard Biener  <rguenther@suse.de>
10405         * doc/match-and-simplify.texi: Fixup some formatting issues
10406         and document the 's' flag.
10408 2015-09-13  Olivier Hainque  <hainque@adacore.com>
10409             Eric Botcazou  <ebotcazou@adacore.com>
10411         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10412         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
10413         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10414         (TARGET_CPU_gr5): Likewise.
10415         (TARGET_CPU_gr6): Likewise.
10416         (MULTILIB_DEFAULTS): Likewise.
10417         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10418         for mcpu=gr5 and mcpu=gr6.
10419         (MULTILIB_DIRNAMES): Adjust accordingly.
10421 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10423         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10424         (mem_ref_p): Likewise.
10425         (outermost_indep_loop): Adjust.
10426         (mem_ref_in_stmt): Likewise.
10427         (determine_max_movement): Likewise.
10428         (mem_ref_alloc): Likewise.
10429         (record_mem_ref_loc): Likewise.
10430         (set_ref_stored_in_loop): Likewise.
10431         (mark_ref_stored): Likewise.
10432         (gather_mem_refs_stmt): Likewise.
10433         (mem_refs_may_alias_p): Likewise.
10434         (for_all_locs_in_loop): Likewise.
10435         (struct rewrite_mem_ref_loc): Likewise.
10436         (rewrite_mem_refs): Likewise.
10437         (struct first_mem_ref_loc_1): Likewise.
10438         (first_mem_ref_loc): Likewise.
10439         (struct sm_set_flag_if_changed): Likewise.
10440         (execute_sm_if_changed_flag_set): Likewise.
10441         (execute_sm): Likewise.
10442         (hoist_memory_references):
10443         (struct ref_always_accessed): Likewise.
10444         (ref_always_accessed_p): Likewise.
10445         (refs_independent_p): Likewise.
10446         (record_dep_loop): Likewise.
10447         (ref_indep_loop_p_1): Likewise.
10448         (ref_indep_loop_p_2): Likewise.
10449         (ref_indep_loop_p): Likewise.
10450         (can_sm_ref_p): Likewise.
10451         (find_refs_for_sm): Likewise.
10452         (tree_ssa_lim_finalize): Likewise.
10454 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10456         * dwarf2out.c (dw_attr_ref): Remove typedef.
10457         (dw_line_info_ref): Likewise.
10458         (pubname_ref): Likewise.
10459         (dw_ranges_ref): Likewise.
10460         (dw_ranges_by_label_ref): Likewise.
10461         (comdat_type_node_ref): Likewise.
10462         (get_AT): Adjust.
10463         (get_AT_low_pc): Likewise.
10464         (get_AT_hi_pc): Likewise.
10465         (get_AT_string): Likewise.
10466         (get_AT_flag): Likewise.
10467         (get_AT_unsigned): Likewise.
10468         (get_AT_ref): Likewise.
10469         (get_AT_file): Likewise.
10470         (remove_AT): Likewise.
10471         (print_die): Likewise.
10472         (check_die): Likewise.
10473         (die_checksum): Likewise.
10474         (attr_checksum_ordered): Likewise.
10475         (struct checksum_attributes): Likewise.
10476         (collect_checksum_attributes): Likewise.
10477         (die_checksum_ordered): Likewise.
10478         (same_die_p): Likewise.
10479         (is_declaration_die): Likewise.
10480         (clone_die): Likewise.
10481         (clone_as_declaration): Likewise.
10482         (copy_declaration_context): Likewise.
10483         (break_out_comdat_types): Likewise.
10484         (copy_decls_walk): Likewise.
10485         (output_location_lists): Likewise.
10486         (external_ref_hasher::hash): Likewise.
10487         (optimize_external_refs_1): Likewise.
10488         (build_abbrev_table): Likewise.
10489         (size_of_die): Likewise.
10490         (unmark_all_dies): Likewise.
10491         (size_of_pubnames): Likewise.
10492         (output_die_abbrevs): Likewise.
10493         (output_die): Likewise.
10494         (output_pubnames): Likewise.
10495         (add_ranges_num): Likewise.
10496         (add_ranges_by_labels): Likewise.
10497         (add_high_low_attributes): Likewise.
10498         (gen_producer_string): Likewise.
10499         (dwarf2out_set_name): Likewise.
10500         (new_line_info_table): Likewise.
10501         (prune_unused_types_walk_attribs): Likewise.
10502         (prune_unused_types_update_strings): Likewise.
10503         (prune_unused_types): Likewise.
10504         (resolve_addr): Likewise.
10505         (optimize_location_lists_1): Likewise.
10506         (index_location_lists): Likewise.
10507         (dwarf2out_finish): Likewise.
10509 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10511         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10513 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10515         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10516         (dump_asserts_for): Adjust.
10517         (register_new_assert_for): Likewise.
10518         (process_assert_insertions): Likewise.
10519         (insert_range_assertions): Likewise.
10521 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10523         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10524         and remove typedef.
10525         (new_temp_expr_table): Adjust.
10526         (free_temp_expr_table): Likewise.
10527         (version_to_be_replaced_p): Likewise.
10528         (make_dependent_on_partition): Likewise.
10529         (add_to_partition_kill_list): Likewise.
10530         (remove_from_partition_kill_list): Likewise.
10531         (add_dependence): Likewise.
10532         (finished_with_expr): Likewise.
10533         (process_replaceable): Likewise.
10534         (kill_expr): Likewise.
10535         (kill_virtual_exprs): Likewise.
10536         (mark_replaceable): Likewise.
10537         (find_replaceable_in_bb): Likewise.
10538         (find_replaceable_exprs): Likewise.
10539         (debug_ter): Likewise.
10541 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10543         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10544         (struct btr_user): Rename from btr_user_s.
10545         (struct btr_def): Rename from btr_def_s.
10546         (find_btr_def_group): Adjust.
10547         (add_btr_def): Likewise.
10548         (new_btr_user): Likewise.
10549         (note_other_use_this_block): Likewise.
10550         (compute_defs_uses_and_gen): Likewise.
10551         (link_btr_uses): Likewise.
10552         (build_btr_def_use_webs): Likewise.
10553         (block_at_edge_of_live_range_p): Likewise.
10554         (btr_def_live_range): Likewise.
10555         (combine_btr_defs): Likewise.
10556         (move_btr_def): Likewise.
10557         (migrate_btr_def): Likewise.
10558         (migrate_btr_defs): Likewise.
10560 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10562         * var-tracking.c (shared_hash_def): Rename to shared_hash.
10563         (shared_hash): Remove typedef.
10564         (struct dataflow_set): Adjust.
10565         (shared_hash_unshare): Likewise.
10566         (dataflow_set_merge): Likewise.
10567         (vt_initialize): Likewise.
10568         (vt_finalize): Likewise.
10570 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10572         * var-tracking.c (struct location_chain): Rename from
10573         location_chain_def.
10574         (struct variable_part): Adjust.
10575         (variable_htab_free): Likewise.
10576         (unshare_variable): Likewise.
10577         (get_init_value): Likewise.
10578         (get_addr_from_local_cache): Likewise.
10579         (drop_overlapping_mem_locs): Likewise.
10580         (val_reset): Likewise.
10581         (struct variable_union_info): Likewise.
10582         (variable_union): Likewise.
10583         (find_loc_in_1pdv): Likewise.
10584         (insert_into_intersection): Likewise.
10585         (intersect_loc_chains): Likewise.
10586         (canonicalize_loc_order_check): Likewise.
10587         (canonicalize_values_mark): Likewise.
10588         (canonicalize_values_star): Likewise.
10589         (canonicalize_vars_star): Likewise.
10590         (variable_merge_over_cur): Likewise.
10591         (remove_duplicate_values): Likewise.
10592         (variable_post_merge_new_vals): Likewise.
10593         (variable_post_merge_perm_vals): Likewise.
10594         (find_mem_expr_in_1pdv): Likewise.
10595         (dataflow_set_preserve_mem_locs): Likewise.
10596         (dataflow_set_remove_mem_locs): Likewise.
10597         (variable_part_different_p): Likewise.
10598         (onepart_variable_different_p): Likewise.
10599         (find_src_set_src): Likewise.
10600         (dump_var): Likewise.
10601         (set_slot_part): Likewise.
10602         (clobber_slot_part): Likewise.
10603         (delete_slot_part): Likewise.
10604         (vt_expand_var_loc_chain): Likewise.
10605         (emit_note_insn_var_location): Likewise.
10606         (vt_finalize): Likewise.
10608 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10610         * dse.c (store_info_t): Remove typedef.
10611         (group_info_t): Likewise.
10612         (const_group_info_t): Likewise.
10613         (deferred_change_t): Likewise.
10614         (get_group_info): Adjust.
10615         (free_store_info): Likewise.
10616         (canon_address): Likewise.
10617         (clear_rhs_from_active_local_stores): Likewise.
10618         (record_store): Likewise.
10619         (replace_read): Likewise.
10620         (check_mem_read_rtx): Likewise.
10621         (scan_insn): Likewise.
10622         (remove_useless_values): Likewise.
10623         (dse_step1): Likewise.
10624         (dse_step2_init): Likewise.
10625         (dse_step2_nospill): Likewise.
10626         (scan_stores_nospill): Likewise.
10627         (scan_reads_nospill): Likewise.
10628         (dse_step3_exit_block_scan): Likewise.
10629         (dse_step3): Likewise.
10630         (dse_step5_nospill): Likewise.
10631         (dse_step6): Likewise.
10633 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10635         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10636         (alias_set_entry): Remove typedef.
10637         (alias_set_subset_of): Adjust.
10638         (alias_sets_conflict_p): Likewise.
10639         (init_alias_set_entry): Likewise.
10640         (get_alias_set): Likewise.
10641         (new_alias_set): Likewise.
10642         (record_alias_subset): Likewise.
10644 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
10646         * doc/install.texi (Downloading the source): Mark up
10647         contrib/download_prerequisites properly and drop leading "./".
10649 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10651         * config/arc/arc.h: Remove define of STRUCT_VALUE.
10652         * config/lm32/lm32.h: Likewise.
10653         * config/mep/mep.h: Likewise.
10654         * config/visium/visium.h: Likewise.
10655         * system.h: Poison STRUCT_VALUE macro.
10657 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
10659         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10660         CONSTANT_P operands.
10662 2015-09-11  David S. Miller  <davem@davemloft.net>
10664         * config/sparc/constraints.md: Make "U" constraint a real register
10665         constraint.
10666         * config/sparc/sparc.c (TARGET_LRA_P): Define.
10667         (D_MODES, DF_MODES): Add missing cast.
10668         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10669         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10670         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10671         cost to 8.
10672         * config/sparc/sparc.h (PROMOTE_MODE): Define.
10673         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10674         provide these insn when flag_pic.
10676 2015-09-11  Jeff Law  <law@redhat.com>
10678         PR tree-optimization/47679
10679         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10680         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10681         member with m_.  Update inline member functions as necessary.  Add
10682         toplevel comment.
10683         * tree-ssa-scopedtables.c: Update const_and_copies's member
10684         functions to use m_ prefix to access the stack.
10686 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10688         * graphite-optimize-isl.c (disable_tiling): Remove.
10689         (get_schedule_for_band): Do not use disable_tiling.
10690         (get_prevector_map): Delete function.
10691         (enable_polly_vector): Remove.
10692         (get_schedule_for_band_list): Remove dead code.
10694 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
10696         * graphite-optimize-isl.c (get_tile_map): Refactor.
10697         (get_schedule_for_band): Same.
10698         (getScheduleForBand): Same.
10699         (get_prevector_map): Same.
10700         (get_schedule_for_band_list): Same.
10701         (get_schedule_map): Same.
10702         (get_single_map): Same.
10703         (apply_schedule_map_to_scop): Same.
10704         (optimize_isl): Same.
10706 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10708         PR target/63304
10709         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10710         (movtf): Delete.
10711         * config/aarch64/iterators.md (GPF_TF_F16): New.
10712         (GPF_F16): Delete.
10714 2015-09-10  Nathan Sidwell  <nathan@acm.org>
10716         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10717         (nvptx_reorg): Adjust comments.
10719 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
10721         PR bootstrap/67363
10722         * configure.ac: Check if setenv and unsetenv are declared.
10723         * configure: Rebuild.
10724         * config.in: Rebuild.
10725         * system.h: Declare setenv and unsetenv if not declared.
10727 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10729         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10730         commentary to simplify permute mask adjustment equation.
10731         (special_handling_values): Add SH_VPERM.
10732         (const_load_sequence_p): New function.
10733         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10734         the mask loaded from the constant pool.
10735         (adjust_vperm): New function.
10736         (handle_special_swappables): Call adjust_vperm.
10737         (dump_swap_insn_table): Handle SH_VPERM.
10739 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10741         * shrink-wrap.c (requires_stack_frame_p): Remove static.
10742         * shrink-wrap.h (requires_stack_frame_p): Put back.
10744 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
10746         * reload1.c (elimination_costs_in_insn): Locally turn
10747         -Wmaybe-uninitialized into a warning.
10749 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
10751         * shrink-wrap.c (requires_stack_frame_p): Make static.
10752         (prepare_shrink_wrap): Likewise.
10753         (dup_block_and_redirect): Likewise.
10754         * shrink-wrap.h: Remove declarations of those functions.
10756 2015-09-10  Mark Wielaard  <mjw@redhat.com>
10758         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10760 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
10762         PR target/67506
10763         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10764         missing simplify_gen_subreg.
10766 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10768         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10769         the vector element is bigger than 64 bit.
10771 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10773         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10774         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10776 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10778         * config/s390/s390.c: Add V1TImode to constant pool modes.
10780 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10782         PR target/67439
10783         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10784         predicate.  Set predicable_short_it attr to "no".
10786 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
10788         PR rtl-optimization/67421
10789         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10790         left wide shift tranformation.
10792 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
10794         * common/config/arc/arc-common.c: Remove references to A5.
10795         * config/arc/arc-opts.h: Likewise.
10796         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10797         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10798         * config/arc/t-arc-newlib: Likewise.
10800 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
10802         * config/arc/arc.md (length): Fix attribute length for conditional
10803         executed instructions with long immediate.
10805 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10807         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10808         type for second alternative.
10810 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
10812         * doc/invoke.texi (Downloading GCC): Mention
10813         contrib/download_prerequisites script.
10815 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
10817         PR c++/67523
10818         * gimplify.c (gimplify_omp_for): If inner stmt is not found
10819         for combined loop, assert seen_error () and return GS_ERROR.
10821         PR middle-end/67521
10822         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10823         if decl is already in outer->variables.
10825         PR middle-end/67517
10826         * gimplify.c (gimplify_scan_omp_clauses): Instead of
10827         asserting that decl is not specified in octx->variables,
10828         break out of the loop if it is.
10830         PR c++/67514
10831         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10832         iterator is not explicitly determined, but is defined inside
10833         of the combined workshare region, handle it like if it has
10834         DECL_EXPR in OMP_FOR_PRE_BODY.
10836 2015-09-09  Nathan Sidwell  <nathan@acm.org>
10838         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10839         (*cmp<mode>): Add assembler spacing.
10840         (setcc_int<mode>, set_cc_float<mode>): Likewise.
10841         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10842         level.
10843         (write_func_decl_from_insn): Refactor argument loops & comma emission.
10844         (nvptx_expand_call): Likewise.
10845         (nvptx_output_call_insn): Likewise.
10846         (nvptx_reorg_subreg): Add spacing.
10848 2015-09-09  Marek Polacek  <polacek@redhat.com>
10850         PR middle-end/67512
10851         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10852         for comparisons.
10854 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
10856         PR c++/53184
10857         * doc/invoke.texi ([Wsubobject-linkage]): Document.
10859 2015-09-09  Tom de Vries  <tom@codesourcery.com>
10861         * params-list.h: Add missing copyright notice.
10863 2015-09-09  Nathan Sidwell  <nathan@acm.org>
10865         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10866         sel_truesi, not andsi.
10868 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10870         * config/arm/arm.md (*subsi3_compare0): Rename to...
10871         (subsi3_compare0): ... This.
10872         (modsi3): New define_expand.
10873         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10874         when operand is power of 2.
10876 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10878         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10879         (*neg<mode>2_compare0): Rename to...
10880         (neg<mode>2_compare0): ... This.
10881         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10882         Move check for speed inside the if-then-elses.  Reflect
10883         CSNEG sequence in MOD by power of 2 case.
10885 2015-09-09  Alan Modra  <amodra@gmail.com>
10887         PR target/67378
10888         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10889         reload replacement for PRE_MODIFY address reg.
10891 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
10893         PR tree-optimization/53852
10894         * config.in: Regenerate.
10895         * configure: Regenerate.
10896         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10897         * graphite-optimize-isl.c (optimize_isl): Stop computation when
10898         PARAM_MAX_ISL_OPERATIONS is reached.
10899         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10900         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10901         result equal to isl_stat_ok as the status now can be isl_error_quota.
10902         (subtract_commutative_associative_deps): Same.
10903         (compute_deps): Same.
10905 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10906             Sebastian Pop  <s.pop@samsung.com>
10908         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10909         Return the parameter if it was saved in corresponding
10910         parameter_rename_map of the region.
10911         (copy_def): Copy def from sese region to the newly created region.
10912         (copy_internal_parameters): Copy all the internal parameters defined
10913         within a region to the newly created region.
10914         (graphite_regenerate_ast_isl): Copy parameters to the new region before
10915         translating isl to gimple.
10916         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10917         the loop-nest does not have any data-references.
10918         (build_graphite_scops): Create a scop only when there is at least one
10919         loop inside it.
10920         (contains_only_close_phi_nodes): Deleted.
10921         (print_graphite_scop_statistics): Deleted
10922         (print_graphite_statistics): Deleted
10923         (limit_scops): Deleted.
10924         (build_scops): Removed call to limit_scops.
10925         * sese.c (new_sese): Construct.
10926         (free_sese): Destruct.
10927         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10928         added.
10929         (set_rename): Pass sese region so that parameters inside the region can
10930         be added to its parameter_rename_map.
10931         (rename_uses): Pass sese region.
10932         (graphite_copy_stmts_from_block): Do not copy parameters that have been
10933         generated in the header of the scop. For each SSA_NAME in the
10934         parameter_rename_map rename its usage.
10935         (invariant_in_sese_p_rec): Return false if tree t is defined outside
10936         sese region.
10937         (scalar_evolution_in_region): If the tree t is invariant just return t.
10938         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10939         struct sese to keep track of all the parameters which need renaming.
10940         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10941         any data-refs.
10942         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10944 2015-09-08  Tom de Vries  <tom@codesourcery.com>
10946         * Makefile.in (generated_files): Add params.list.
10947         (params.list, s-params.list): Add rule.
10948         * params.h (enum compiler_param): Include params-list.h.  Move define
10949         DEFPARAM, include params.def and undef DEFPARAM ...
10950         * params-list.h: ... here.  New file.
10952 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
10954         * pretty-print.h (printer_fn): Fix typo in comment.
10956 2015-09-07  Jeff Law  <law@redhat.com>
10958         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10960 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10962         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10963         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10964         (arm_neon_fp16_hw): New.
10966 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10968         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10969         UNITS_PER_WORD >= 4.
10971 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10973         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10974         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10975         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10976         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10977         (aarch64_float_extend_lo_v2df): Rename to...
10978         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10980         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10981         (float_extend_lo): Add v4sf.
10983         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10984         * config/aarch64/iterators.md (VQ_HSF): New iterator.
10985         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10986         (Vwide): New mode_attr.
10988 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
10990         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10991         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10992         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10993         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10994         V4HF and V8HF variants to iterator.
10996         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10998         * config/aarch64/iterators.md (VDQF_F16): New.
10999         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11001 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11003         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11004         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11005         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11006         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11007         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11008         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11009         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11010         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11011         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11012         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11013         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11014         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11015         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11016         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11017         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11018         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11019         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11020         vld1q_dup_f16): New.
11022 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11024         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11025         Reparameterize to...
11026         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11027         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11028         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11030         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11031         v8hf variant.
11032         (float_truncate_lo_): Use BUILTIN_VDF iterator.
11034         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11036         * config/aarch64/iterators.md (VDF, Vdtype): New.
11037         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11039 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11041         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11042         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11043         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11044         Add __builtin_aarch64_simd_hf.
11045         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11046         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11047         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11048         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11049         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11050         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11051         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11052         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11053         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11055         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11056         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11057         (VDC, Vdbl): Add V4HF.
11059 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11061         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11062         V4HFmode and V8HFmode.
11063         (aarch64_split_simd_move): Add case for V8HFmode.
11064         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11065         (aarch64_simd_builtin_std_type): Handle HFmode.
11066         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11068         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11069         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11070         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11072         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11073         Float16x8_t.
11075         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11076         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11077         New typedefs.
11078         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11079         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11080         vst1q_lane_f16): New.
11081         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11082         (VALLDI_F16, VALL_F16): New.
11083         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11084         Add cases for V4HF and V8HF.
11085         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11087 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11089         * config/arm/arm-builtins.c (VAR11, VAR12): New.
11090         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11091         vld4_dup): Add v4hf variant.
11092         (vget_high, vget_low): Add v8hf variant.
11093         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11094         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11095         v4hf and v8hf variants.
11097         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11098         (VDX): Add V4HF.
11099         (V_DOUBLE): Add case for V4HF.
11100         (VQX): Add V8HF.
11101         (V_HALF): Add case for V8HF.
11102         (VDQX): Add V4HF, V8HF.
11103         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11104         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11106         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11107         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11108         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11109         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11110         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11111         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11112         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11113         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11114         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11116         (neon_vcreate, neon_vreinterpretv8qi<mode>,
11117         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11118         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11119         Change VDX to VD_RE.
11121         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11122         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11123         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11125         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11126         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11127         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11128         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11129         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11130         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11131         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11132         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11133         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11135 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11137         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11138         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11139         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11140         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11141         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11142         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11143         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11144         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11145         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11146         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11147         New.
11149 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11151         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11153         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11155         * config/arm/arm-builtins.c (v8hf_UP): New.
11156         (arm_init_simd_builtin_types): Initialise Float16x8_t.
11158         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11160         * config/arm/arm_neon.h (float16x8_t): New typedef.
11162 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
11164         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11165         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11166         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11167         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11168         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11169         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11170         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11171         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11172         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11173         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11175 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
11177         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11178         non-alphanumeric characters in the symbol name.
11180 2015-09-07  Marek Polacek  <polacek@redhat.com>
11182         PR inline-asm/67448
11183         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11184         a memory input.
11186 2015-09-07  Marek Polacek  <polacek@redhat.com>
11188         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11190 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
11192         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11193         not warn.
11195 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
11197         PR middle-end/67452
11198         * tree-ssa-live.c: Include cfgloop.h.
11199         (remove_unused_locals): Clear loop->simduid if simduid is about
11200         to be removed from cfun->local_decls.
11202 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11204         PR target/65210
11205         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11206         attribute as well.
11208 2015-09-04  Tom de Vries  <tom@codesourcery.com>
11210         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11212 2015-09-04  Jeff Law  <law@redhat.com>
11214         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11215         unnecessary constructor.  It's now trivial and implemented inside...
11216         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11217         constructor.  Add comments to various methods.  Remove unused
11218         private fields.
11219         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11220         * tree-vrp.c (identify_jump_threads): Likewise.
11221         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11222         indentation issues.
11223         (thread_across_edge): Similarly.
11224         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11225         arguments in constructor call.
11227 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11229         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11230         temp path contains a '-'.
11232 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11233             Petr Murzin  <petr.murzin@intel.com>
11234             Kirill Yukhin  <kirill.yukhin@intel.com>
11236         * config/i386/i386-builtin-types.def
11237         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11238         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11239         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11240         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11241         * config/i386/i386.c
11242         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11243         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11244         IX86_BUILTIN_SCATTERALTDIV16SI.
11245         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11246         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11247         __builtin_ia32_scatteraltdiv8si.
11248         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11249         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11250         IX86_BUILTIN_SCATTERALTDIV16SI.
11251         (ix86_vectorize_builtin_scatter): New.
11252         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11253         ix86_vectorize_builtin_scatter.
11255 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11256             Petr Murzin  <petr.murzin@intel.com>
11257             Kirill Yukhin  <kirill.yukhin@intel.com>
11259         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11260         * doc/tm.texi: Regenerate.
11261         * target.def: Add scatter builtin.
11262         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11263         for loads/stores in case of gather/scatter accordingly.
11264         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11265         STMT_VINFO_GATHER_P(S).
11266         (vect_check_gather): Rename to ...
11267         (vect_check_gather_scatter): this.
11268         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11269         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11270         (vect_check_gather_scatter): Use it instead of vect_check_gather.
11271         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11272         variable and new checkings for it accordingly.
11273         * tree-vect-stmts.c
11274         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11275         STMT_VINFO_GATHER_P(S).
11276         (vect_check_gather_scatter): Use it instead of vect_check_gather.
11277         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11279 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
11281         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11282         define_insn.
11283         (mulv16qi3): New define_expand.
11285 2015-09-03  Martin Sebor  <msebor@redhat.com>
11287         PR c/66516
11288         * doc/extend.texi (Other Builtins): Document when the address
11289         of a built-in function can be taken.
11291 2015-09-03  Richard Biener  <rguenther@suse.de>
11293         * dwarf2out.c (flush_limbo_die_list): Split out from ...
11294         (dwarf2out_early_finish): ... here.
11295         (dwarf2out_finish): Do not call dwarf2out_early_finish but
11296         flush_limbo_die_list.  Assert we have no deferred asm names.
11298 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11300         * optabs.c (expand_binop): Don't create a broadcast vector with a
11301         source element wider than the inner mode.
11303 2015-09-03  Richard Biener  <rguenther@suse.de>
11305         * varasm.c (output_constant): Use fold_convert instead of
11306         wide_int_to_tree.
11308 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11310         PR tree-optimization/65637
11311         * omp-low.c (expand_omp_for_static_chunk): Handle case that
11312         fin_bb has 2 predecessors.
11314 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11316         PR tree-optimization/65637
11317         * omp-low.c (find_phi_with_arg_on_edge): New function.
11318         (expand_omp_for_static_chunk): Fix inner loop phi.
11320 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11322         PR tree-optimization/65637
11323         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11324         that head is NULL.
11326 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11328         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11330 2015-09-03  Tom de Vries  <tom@codesourcery.com>
11332         * doc/invoke.texi (parloops-chunk-size): Add item.
11333         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11334         * tree-parloops.c: Include params.h.
11335         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11336         param parloops-chunk-size is used.
11338 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
11340         PR middle-end/67351
11341         * fold-const.c (fold_binary_loc) : Move
11342         Transform (x >> c) << c into x & (-1<<c) or
11343         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11344         types using simplify and match.
11345         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11346         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11348 2015-09-03  Richard Biener  <rguenther@suse.de>
11350         PR ipa/66705
11351         * tree-ssa-structalias.c (ctor_for_analysis): New function.
11352         (create_variable_info_for_1): Use ctor_for_analysis instead
11353         of get_constructor.
11354         (create_variable_info_for): Likewise.
11356 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
11358         PR ipa/67280
11359         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11360         in new callgraph edge.
11362 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
11364         PR target/59810
11365         PR target/63652
11366         PR target/63653
11367         * config/aarch64/aarch64-simd.md
11368         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11369         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11370         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11371         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11373 2015-09-02  Alan Modra  <amodra@gmail.com>
11375         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11376         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11377         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11379 2015-09-02  Alan Modra  <amodra@gmail.com>
11381         PR target/67417
11382         * config/rs6000/predicates.md (current_file_function_operand): Don't
11383         return true for weak symbols.
11384         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11386 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
11387             Andrew Bennett  <andrew.bennett@imgtec.com>
11389         * config/mips/mips-opts.h (mips_cb_setting): New enum.
11390         * config/mips/mips-protos.h: Add definitions for
11391         mips_output_jump and mips_output_equal_conditional_branch
11392         * config/mips/mips.c (MIPS_JR): Change to support the
11393         JIC instruction.
11394         (mips_emit_compare): Add support for the MIPS R6 conditional
11395         compact branches.
11396         (mips_process_sync_loop): Likewise.
11397         (mips_output_order_conditional_branch): Likewise.
11398         (mips16_build_call_stub): Change MIPS_CALL to
11399         mips_output_jump.
11400         (mips_print_operand_punctuation): Update 's' case to only
11401         apply to micromips r2.
11402         (mips_adjust_insn_length): Add support for forbidden slot
11403         hazards.
11404         (mips_avoid_hazard): Likewise.
11405         (mips_reorg_process_insns): Likewise.
11406         (mips_output_jump): New function.
11407         (mips_output_equal_conditional_branch): Likewise.
11408         (mips_output_conditional_branch): Use jrc/bc if compact
11409         branch support is enabled.  Ensure the forbidden slots
11410         between the two branch instructions is filled with a nop.
11411         (mips_option_override): Add support to process the compact
11412         branch option and set the correct defaults.  Prevent
11413         non-explict relocs being using for MIPS R6.
11414         (mips_trampoline_init): Add compact branch support.
11415         (mips_mult_zero_zero_cost): Allow zero initialisation of
11416         accumulators with TARGET_DSP.
11417         * config/mips/mips.h (TARGET_CB_NEVER): New define.
11418         (TARGET_CB_MAYBE): New define.
11419         (TARGET_CB_ALWAYS): New define.
11420         (ISA_HAS_DELAY_SLOTS): New define.
11421         (ISA_HAS_COMPACT_BRANCHES): New define.
11422         (ISA_HAS_JRC): New define.
11423         (MIPS_BRANCH_C): New define.
11424         (MIPS_CALL): Removed.
11425         (MICROMIPS_J): Removed.
11426         * config/mips/mips.md (compact_form): New attr.
11427         (hazard): Add support for forbidden slots.
11428         (define_delay): Add support for compact branches.
11429         (*branch_order<mode>): Likewise.
11430         (*branch_order<mode>_inverted): Likewise.
11431         (*branch_equality<mode>): Likewise.
11432         (*branch_equality<mode>_inverted): Likewise.
11433         (*jump_absolute): Likewise.
11434         (*jump_pic): Likewise.
11435         (indirect_jump): Use mips_output_jump to produce assembly output.
11436         (tablejump_<mode>"): Likewise.
11437         (*<optab>"): Likewise.
11438         (<optab>_internal): Likewise.
11439         (sibcall_internal): Likewise.
11440         (sibcall_value_internal): Likewise.
11441         (sibcall_value_multiple_internal): Likewise.
11442         (call_internal): Likewise.
11443         (call_split): Likewise.
11444         (call_internal_direct): Likewise.
11445         (call_direct_split): Likewise.
11446         (call_value_internal): Likewise.
11447         (call_value_split): Likewise.
11448         (call_value_internal_direct): Likewise.
11449         (call_value_direct_split): Likewise.
11450         (call_value_multiple_internal): Likewise.
11451         (call_value_multiple_split): Likewise.
11452         (mips_get_fcsr_mips16_<mode>): Likewise.
11453         (mips_set_fcsr_mips16_<mode>): Likewise.
11454         (tls_get_tp_mips16_<mode>): Likewise.
11455         * config/mips/mips.opt: Add -mcompact-branches option.
11456         * config/mips/predicates.md (order_operator): Ensure the
11457         conditional compact branches are only used if the ISA them.
11458         * doc/invoke.texi: Document -mcompact-branches option.
11460 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
11462         PR target/61578
11463         * lra-lives.c (process_bb_lives): Process move pseudos with the
11464         same value for copies and preferences
11465         * lra-constraints.c (match_reload): Create match reload pseudo
11466         with the same value from single dying input pseudo.
11468 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
11470         PR target/67405
11471         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11473 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
11475         * trans-mem.c: Add contributed-by.
11476         * trans-mem.h: Same.
11478 2015-09-01  Richard Biener  <rguenther@suse.de>
11480         * expr.c (expand_expr_real_1): For expanding TERed defs
11481         set the current location to that of the def if not UNKNOWN.
11483 2015-09-01  David Sherwood  <david.sherwood@arm.com>
11485         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11487 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11489         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11490         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
11491         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11492         Include rtl-iter.h.
11493         (noce_simple_bbs): New function.
11494         (noce_try_move): Bail if basic blocks are not simple.
11495         (noce_try_store_flag): Likewise.
11496         (noce_try_store_flag_constants): Likewise.
11497         (noce_try_addcc): Likewise.
11498         (noce_try_store_flag_mask): Likewise.
11499         (noce_try_cmove): Likewise.
11500         (noce_try_minmax): Likewise.
11501         (noce_try_abs): Likewise.
11502         (noce_try_sign_mask): Likewise.
11503         (noce_try_bitop): Likewise.
11504         (bbs_ok_for_cmove_arith): New function.
11505         (noce_emit_all_but_last): Likewise.
11506         (noce_emit_insn): Likewise.
11507         (noce_emit_bb): Likewise.
11508         (noce_try_cmove_arith): Handle non-simple basic blocks.
11509         (insn_valid_noce_process_p): New function.
11510         (contains_mem_rtx_p): Likewise.
11511         (bb_valid_for_noce_process_p): Likewise.
11512         (noce_process_if_block): Allow non-simple basic blocks
11513         where appropriate.
11515 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
11517         * tree-ssa-dom.c (record_equivalences_from_phis,
11518         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11519         (lookup_avail_expr): Likewise, and remove comment and unused temp.
11521 2015-09-01  Nick Clifton  <nickc@redhat.com>
11523         * config/msp430/msp430.opt (mcpu): Fix typo.
11525 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11527         * config/aarch64/aarch64.c (aarch64_set_current_function):
11528         Re-layout any vector parameters have non-simd layout.
11529         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11530         Delete.
11531         (aarch64_simd_expand_args): Delete call to the above.
11533 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
11535         * doc/invoke.texi (asan-stack): Add space before option.
11537 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
11539         * tree.h (zerop): New function.
11540         * tree.c (zerop): Likewise.
11541         (element_precision): Handle expressions.
11542         * match.pd (define_predicates): Add zerop.
11543         (x <= +Inf): Fix comment.
11544         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11545         * fold-const.c (fold_binary_loc): ... here. Remove.
11547 2015-08-31  Richard Biener  <rguenther@suse.de>
11549         PR middle-end/67381
11550         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11552 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
11554         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11555         (CEXPI): New operator list.
11556         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11557         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11558         Converted from ...
11559         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11561 2015-08-31  Tom de Vries  <tom@codesourcery.com>
11563         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11564         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11565         parameter.
11566         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11567         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11568         (rewrite_into_loop_closed_ssa): ... here.
11569         (replace_uses_in_dominated_bbs): Remove function.
11570         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11571         rewrite_into_loop_closed_ssa_1.
11573 2015-08-31  Michael Matz  <matz@suse.de>
11575         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11576         enter entry and exit blocks for reverse post order.
11578 2015-08-31  Richard Biener  <rguenther@suse.de>
11580         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11581         (lto_location_cache::current_sysp): Likewise.
11582         (output_block::current_sysp): Likewise.
11583         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11584         (lto_location_cache::apply_location_cache): Properly record
11585         system header locations.
11586         (lto_location_cache::input_location): Input whether a file
11587         is a system header.
11588         * lto-streamer-out.c (lto_output_location): Stream whether a file
11589         is a system header.
11591 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11593         PR bootstrap/67363
11594         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11596 2015-08-31  Tom de Vries  <tom@codesourcery.com>
11598         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11599         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11600         Improve function header comments.
11602 2015-08-30  Michael Collison  <michael.collison@linaro.org>
11604         PR other/67320
11605         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11606         standard names
11608 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11610         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11611         special_handling bitfield.
11612         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11613         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11614         that represents a general xxpermdi.
11615         (insn_is_swappable_p): Add handling for vec_concat of two
11616         doublewords, which maps to a specific xxpermdi.
11617         (adjust_xxpermdi): New function.
11618         (adjust_concat): Likewise.
11619         (handle_special_swappables): Call adjust_xxpermdi and
11620         adjust_concat.
11621         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11623 2015-08-30  Rich Felker <dalias@libc.org>
11625         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11626         case instead of sh[123456ble]-*-*.
11628 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
11630         * ira.c (print_unform_and_important_classes,
11631         print_translated_classes): Remove reg_class_names static array.
11632         (print_unform_and_important_classes): Rename to ...
11633         (print_uniform_and_important_classes): ... this.
11634         (ira_debug_allocno_classes): Update accordingly.
11636 2015-08-29  Tom de Vries  <tom@codesourcery.com>
11638         PR tree-optimization/46193
11639         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11640         clause.
11642 2015-08-28  Jeff Law  <law@redhat.com>
11644         PR lto/66752
11645         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11646         unable to find X NE 0 in the tables, return X as the simplified
11647         condition.
11648         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11649         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
11650         to VISISTED_BBS.
11651         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11652         after removing the control flow statement and unnecessary edges.
11654 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
11656         Revert:
11657         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11659         PR tree-optimization/67283
11660         * tree-sra.c (type_consists_of_records_p): Rename to...
11661         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11663         (completely_scalarize_record): Rename to...
11664         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11665         code to:
11666         (scalarize_elem): New.
11668 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
11670         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11671         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11672         (aarch64_symbol_type): Likewise.
11673         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11674         Likewise.
11675         (aarch64_expand_mov_immediate): Likewise.
11676         (aarch64_print_operand): Likewise.
11677         (aarch64_classify_tls_symbol): Likewise.
11679 2015-08-28  Richard Biener  <rguenther@suse.de>
11681         * cgraphunit.c (symbol_table::compile): Move early debug generation
11682         and finish...
11683         (symbol_table::finalize_compilation_unit): ... back here and
11684         add a !seen_error () guard.
11686 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11688         * toplev.c (process_options): Do not use flag_loop_block,
11689         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
11690         flag_loop_optimize_isl.
11692 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11694         * Makefile.in (OBJS): Remove graphite-blocking.o and
11695         graphite-interchange.o.
11696         * common.opt (floop-strip-mine, floop-interchange, floop-block):
11697         Alias of floop-nest-optimize.
11698         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11699         Document as alias of -floop-nest-optimize.
11700         * graphite-blocking.c: Remove.
11701         * graphite-interchange.c: Remove.
11702         * graphite-optimize-isl.c: Include dumpfile.h.
11703         (getScheduleForBand): Add dump for tiled loops.  Use
11704         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11705         * graphite-poly.c (scop_max_loop_depth): Remove.
11706         (print_scattering_function_1): Remove.
11707         (print_scattering_function): Remove.
11708         (print_scattering_functions): Remove.
11709         (debug_scattering_function): Remove.
11710         (debug_scattering_functions): Remove.
11711         (apply_poly_transforms): Remove use of flag_loop_block,
11712         flag_loop_strip_mine, and flag_loop_interchange.
11713         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11714         PBB_ORIGINAL.
11715         (print_pdr_access_layout): Remove.
11716         (print_pdr): Print ISL representation.
11717         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11718         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11719         (free_scop): Same.
11720         (openscop_print_pbb_domain): Remove.
11721         (print_pbb): Remove call to print_scattering_function.
11722         (openscop_print_scop_context): Remove.
11723         (print_scop_context): Do not print matrices anymore.
11724         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11725         SCOP_TRANSFORMED_SCHEDULE.
11726         (print_isl_set): Add printing of a new line.
11727         (print_isl_map): Same.
11728         (print_isl_aff): Same.
11729         (print_isl_constraint): Same.
11730         (loop_to_lst): Remove.
11731         (scop_to_lst): Remove.
11732         (lst_indent_to): Remove.
11733         (print_lst): Remove.
11734         (debug_lst): Remove.
11735         (dot_lst_1): Remove.
11736         (dot_lst): Remove.
11737         (reverse_loop_at_level): Remove.
11738         (reverse_loop_for_pbbs): Remove.
11739         * graphite-poly.h (pdr_dim_iter_domain): Remove.
11740         (pdr_nb_params): Remove.
11741         (pdr_alias_set_dim): Remove.
11742         (pdr_subscript_dim): Remove.
11743         (pdr_iterator_dim): Remove.
11744         (pdr_parameter_dim): Remove.
11745         (same_pdr_p): Remove.
11746         (struct poly_scattering): Remove.
11747         (struct poly_bb): Remove _original, _transformed, _saved.
11748         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11749         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11750         (PBB_NB_LOCAL_VARIABLES): Remove.
11751         (PBB_NB_SCATTERING_TRANSFORM): Remove.
11752         (schedule_to_scattering): Remove.
11753         (number_of_write_pdrs): Remove.
11754         (pbb_dim_iter_domain): Remove.
11755         (pbb_nb_params): Remove.
11756         (pbb_nb_scattering_orig): Remove.
11757         (pbb_nb_scattering_transform): Remove.
11758         (pbb_nb_dynamic_scattering_transform): Remove.
11759         (pbb_nb_local_vars): Remove.
11760         (pbb_iterator_dim): Remove.
11761         (pbb_parameter_dim): Remove.
11762         (psco_scattering_dim): Remove.
11763         (psct_scattering_dim): Remove.
11764         (psct_local_var_dim): Remove.
11765         (psco_iterator_dim): Remove.
11766         (psct_iterator_dim): Remove.
11767         (psco_parameter_dim): Remove.
11768         (psct_parameter_dim): Remove.
11769         (psct_dynamic_dim): Remove.
11770         (psct_static_dim): Remove.
11771         (psct_add_local_variable): Remove.
11772         (new_lst_loop): Remove.
11773         (new_lst_stmt): Remove.
11774         (free_lst): Remove.
11775         (copy_lst): Remove.
11776         (lst_add_loop_under_loop): Remove.
11777         (lst_depth): Remove.
11778         (lst_dewey_number): Remove.
11779         (lst_dewey_number_at_depth): Remove.
11780         (lst_pred): Remove.
11781         (lst_succ): Remove.
11782         (lst_find_pbb): Remove.
11783         (find_lst_loop): Remove.
11784         (lst_find_first_pbb): Remove.
11785         (lst_empty_p): Remove.
11786         (lst_find_last_pbb): Remove.
11787         (lst_contains_p): Remove.
11788         (lst_contains_pbb): Remove.
11789         (lst_create_nest): Remove.
11790         (lst_remove_from_sequence): Remove.
11791         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11792         (lst_niter_for_loop): Remove.
11793         (pbb_update_scattering): Remove.
11794         (lst_update_scattering_under): Remove.
11795         (lst_update_scattering): Remove.
11796         (lst_insert_in_sequence): Remove.
11797         (lst_replace): Remove.
11798         (lst_substitute_3): Remove.
11799         (lst_distribute_lst): Remove.
11800         (lst_remove_all_before_including_pbb): Remove.
11801         (lst_remove_all_before_excluding_pbb): Remove.
11802         (struct scop): Remove original_schedule, transformed_schedule, and
11803         saved_schedule.
11804         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11805         (SCOP_SAVED_SCHEDULE): Remove.
11806         (poly_scattering_new): Remove.
11807         (poly_scattering_free): Remove.
11808         (poly_scattering_copy): Remove.
11809         (store_scattering_pbb): Remove.
11810         (store_lst_schedule): Remove.
11811         (restore_lst_schedule): Remove.
11812         (store_scattering): Remove.
11813         (restore_scattering_pbb): Remove.
11814         (restore_scattering): Remove.
11815         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11816         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
11817         compute the scattering polyhedron dimension from the dimension of
11818         pbb->domain.
11819         (build_scop_scattering): Update call to
11820         build_pbb_scattering_polyhedrons.
11821         (build_poly_scop): Remove call to scop_to_lst.
11822         * graphite.c (graphite_transform_loops): Add call to print_scop.
11823         (gate_graphite_transforms): Remove use of flag_loop_block,
11824         flag_loop_interchange, and flag_loop_strip_mine.
11826 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
11828         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11829         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11830         -floop-nest-optimize.
11831         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11832         (generate_luj_sepclass): Remove.
11833         (generate_luj_options): Remove.
11834         (set_options): Remove opt_luj.
11835         (scop_to_isl_ast): Remove opt_luj.
11836         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11837         flag_loop_unroll_jam.
11838         (getPrevectorMap_full): Remove.
11839         (getScheduleForBandList): Remove map_sepcl.
11840         (getScheduleMap): Same.
11841         (apply_schedule_map_to_scop): Remove sepcl.
11842         (optimize_isl): Same.
11843         * graphite-poly.c (apply_poly_transforms): Remove check for
11844         flag_loop_unroll_jam.
11845         (new_poly_bb): Remove map_sepclass.
11846         * graphite-poly.h (struct poly_bb): Same.
11847         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11848         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11849         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11850         * toplev.c (process_options): Remove flag_loop_unroll_jam.
11852 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
11854         PR target/67317
11855         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11856         (addqi3_cc): Ditto.
11857         (UNSPEC_ADD_CARRY): Remove.
11858         (addqi3_cconly_overflow): New expander.
11859         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11860         Adjust for changed add<mode>3_carry.
11861         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11862         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11863         (<plusminus_insn><mode>3_carry): Remove expander.
11864         (*<plusminus_insn><mode>3_carry): Split insn pattern to
11865         add<mode>3_carry and sub<mode>3_carry.
11866         (plusminus_carry_mnemonic): Remove code attribute.
11867         (add<mode>3_carry): Canonicalize insn pattern.
11868         (*addsi3_carry_zext): Ditto.
11869         (sub<mode>3_carry): Ditto.
11870         (*subsi3_carry_zext): Ditto.
11871         (adcx<mode>3): Remove insn pattern.
11872         (addcarry<mode>): New insn pattern.
11873         (subborrow<mode>): Ditto.
11874         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11875         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11876         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11877         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11878         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11879         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11880         Rewrite expander to not clobber carry flag chains.
11882 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
11884         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11885         instead of a rotate.
11887 2015-08-27  Marek Polacek  <polacek@redhat.com>
11889         PR middle-end/67005
11890         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11891         an entry into an irreducible region.
11893 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11895         * configure: Regenerate.
11897 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11899         PR tree-optimization/67283
11900         * tree-sra.c (type_consists_of_records_p): Rename to...
11901         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11903         (completely_scalarize_record): Rename to...
11904         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11905         (scalarize_elem): New.
11907 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
11909         * tree-sra.c (completely_scalarize_var): Rename to...
11910         (create_total_scalarization_access): ... Here. Drop call to
11911         completely_scalarize_record.
11913         (analyze_all_variable_accesses): Replace completely_scalarize_var
11914         with create_total_scalarization_access and completely_scalarize_record.
11916 2015-08-27  Alan Modra  <amodra@gmail.com>
11918         PR target/67356
11919         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11920         for operand 1.
11922 2015-08-27  Richard Biener  <rguenther@suse.de>
11924         * passes.c (rest_of_decl_compilation): Guard early_global_decl
11925         call with !seen_error ().
11926         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11927         early debug generation and finish...
11928         (symbol_table::compile): ... here to put it after a !seen_error ()
11929         guard.
11931 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11933         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11934         Solaris 12+.
11936 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11937             Andre Vieira  <andre.simoesdiasvieira@arm.com>
11939         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11940         (*cb<optab><mode>1): Likewise.
11941         (*tb<optab><mode>1): Likewise.
11942         (*cb<optab><mode>1): Likewise.
11943         * config/aarch64/iterators.md (inv_cb): New code attribute.
11944         (inv_tb): Likewise.
11945         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11946         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11948 2015-08-27  Richard Biener  <rguenther@suse.de>
11950         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11952 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11954         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11955         trap to fix ICE.
11957 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11959         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11960         Add declaration.
11962         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11963         comment.
11964         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11965         floating point in VSX registers.
11966         (rs6000_output_move_128bit): Always print out the set insn if we
11967         can't generate an appropriate 128-bit move.
11968         (rs6000_generate_compare): Add support for IEEE 128-bit floating
11969         point in VSX registers comparisons.
11970         (rs6000_expand_float128_convert): Likewise.
11972         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11973         predicate for only GPR hard registers.
11975         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11976         modes to iterators. Add new iterators for moving 128-bit values in
11977         scalar FPR registers and VSX registers.
11978         (FMOVE128): Likewise.
11979         (FMOVE128_FPR): Likewise.
11980         (FMOVE128_GPR): Likewise.
11981         (FMOVE128_VSX): Likewise.
11982         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11983         in VSX registers.
11984         (IFKF): Likewise.
11985         (IBM128): Likewise.
11986         (TFIFKF): Likewise.
11987         (RELOAD): Add IEEE 128-bit floating point modes.
11988         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11989         floating point in VSX registers modes.
11990         (signbit<mode>2, IBM128 iterator): Likewise.
11991         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11992         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11993         (negtf2): Likewise.
11994         (neg<mode>2, TFIFKF iterator): Likewise.
11995         (negtf2_internal): Likewise.
11996         (abstf2): Likewise.
11997         (abs<mode>2, TFIFKF iterator): Likewise.
11998         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11999         VSX insn support for negate, absolute value, and negative absolute
12000         value.
12001         (ieee_128bit_vsx_neg<mode>2): Likewise.
12002         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12003         (ieee_128bit_vsx_abs<mode>2): Likewise.
12004         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12005         (ieee_128bit_vsx_nabs<mode>2): Likewise.
12006         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12007         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12008         floating point in VSX registers.
12009         (unpack<mode>_dm): Likewise.
12010         (unpack<mode>_nodm): Likewise.
12011         (pack<mode>): Likewise.
12012         (unpackv1ti): Likewise.
12013         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12014         (packv1ti): Likewise.
12015         (pack<mode>, FMOVE128_VSX iterator): Likewise.
12016         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12017         registers.
12018         (extenddftf2_internal): Likewise.
12019         (trunctfdf2): Likewise.
12020         (trunctfdf2_internal2): Likewise.
12021         (fix_trunc_helper): Likewise.
12022         (fix_trunctfdi2"): Likewise.
12023         (floatditf2): Likewise.
12024         (floatuns<mode>tf2): Likewise.
12025         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12026         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12027         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12028         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12029         (float<SDI:mode><IFKF:mode>2): Likewise.
12030         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12032 2015-08-26  Renlin Li  <renlin.li@arm.com>
12034         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12036 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12037             Jiong Wang  <jiong.wang@arm.com>
12039         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12040         (tlsie_tiny_<mode>): New define_insn.
12041         (tlsie_tiny_sidi): Likewise.
12042         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12043         SYMBOL_TINY_TLSIE.
12044         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12045         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12046         SYMBOL_TINY_TLSIE.
12047         (aarch64_expand_mov_immediate): Likewise.
12048         (aarch64_print_operand): Likewise.
12049         (arch64_classify_tls_symbol): Likewise.
12051 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12053         * config/arm/arm-arches.def: Replace single value flags with
12054         an initializer built from ARM_FSET_MAKE_CPU1.
12055         * config/arm/arm-cores.def: Likewise.
12056         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12057         derivation from the ARM_CORE macro definition, use the given value
12058         instead.
12059         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12060         ARM_ARCH macro definition, use the given value instead.
12062 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12064         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12065         feature set.
12066         (struct builtin_description): Replace field mask with field
12067         features.
12068         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12069         (IWMMXT2_BUILTIN): Likewise.
12070         (IWMMXT2_BUILTIN2): Likewise.
12071         (FP_BUILTIN): Likewise.
12072         (CRC32_BUILTIN): Likewise.
12073         (CRYPTO_BUILTIN): Likewise.
12074         (iwmmx_mbuiltin): Likewise.
12075         (iwmmx2_mbuiltin): Likewise.
12076         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12077         struct builtin_description.
12079 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12081         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12082         (struct builtin_description): Change type of mask to unsigned
12083         long.
12084         * config/arm/arm-protos.h (insn_flags): Declare as type
12085         arm_feature_set.
12086         (tune_flags): Likewise.
12087         * config/arm/arm.c (feature_count): New.
12088         (insn_flags): Define as type arm_feature_set.
12089         (tune_flags): Likewise.
12090         (struct processors): Define field flags as type arm_feature_set.
12091         (all_cores): Update for change to struct processors.
12092         (all_architectures): Likewise.
12093         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12094         macros.
12095         (arm_option_override_internal): Likewise.
12096         (arm_option_override): Likewise.
12098 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12099             Jiong Wang  <jiong.wang@arm.com>
12101         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12102         tls size for tiny, small, large memory model.
12103         (aarch64_load_symref_appropriately): Support new symbol types.
12104         (aarch64_expand_mov_immediate): Likewise.
12105         (aarch64_print_operand): Likewise.
12106         (aarch64_classify_tls_symbol): Likewise.
12107         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12108         (aarch64_symbol_type): Likewise.
12109         * config/aarch64/aarch64.md (tlsle): Deleted.
12110         (tlsle12_<mode>): New define_insn.
12111         (tlsle24_<mode>): Likewise.
12112         (tlsle32_<mode>): Likewise.
12113         (tlsle48_<mode>): Likewise.
12114         * doc/sourcebuild.texi (AArch64-specific attributes): Document
12115         "aarch64_tlsle32".
12117 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12119         * config/arm/arm-protos.h (FL_NONE): New.
12120         (FL_ANY): New.
12121         (arm_feature_set): New.
12122         (ARM_FSET_MAKE): New.
12123         (ARM_FSET_MAKE_CPU1): New.
12124         (ARM_FSET_MAKE_CPU2): New.
12125         (ARM_FSET_CPU1): New.
12126         (ARM_FSET_CPU2): New.
12127         (ARM_FSET_EMPTY): New.
12128         (ARM_FSET_ANY): New.
12129         (ARM_FSET_HAS_CPU1): New.
12130         (ARM_FSET_HAS_CPU2): New.
12131         (ARM_FSET_HAS_CPU): New.
12132         (ARM_FSET_ADD_CPU1): New.
12133         (ARM_FSET_ADD_CPU2): New.
12134         (ARM_FSET_DEL_CPU1): New.
12135         (ARM_FSET_DEL_CPU2): New.
12136         (ARM_FSET_UNION): New.
12137         (ARM_FSET_INTER): New.
12138         (ARM_FSET_XOR): New.
12139         (ARM_FSET_EXCLUDE): New.
12140         (AFM_FSET_IS_EMPTY): New.
12141         (ARM_FSET_CPU_SUBSET): New.
12143 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
12145         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12146         SYMBOL_TLSLE to SYMBOL_TLSLE24.
12147         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12148         Likewise.
12149         (aarch64_expand_mov_immediate): Likewise.
12150         (aarch64_print_operand): Likewise.
12151         (aarch64_classify_symbol): Likewise.
12153 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
12155         * config/aarch64/aarch64.opt (mtls-size): New entry.
12156         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12157         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12158         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12160 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
12162         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12163         ARM_CORE entry.  Fix some white-space.
12164         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12165         ARM_CORE definition.
12167 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12169         * fold-const.c (fold_binary_loc) : Move Optimize
12170         root(x)*root(y) as root(x*y) to match.pd.
12171         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12172         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12173         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12174         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12175         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12176         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12177         (mult (exps:s @0) (exps:s @1)) : New simplifier.
12178         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12179         (rdiv @0 (exps:s @1)) : New simplifier.
12181 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
12183         * gcc.c (driver::finalize): Only assign to extra_specs if
12184         [EXTRA_SPECS].
12186 2015-08-25  Marek Polacek  <polacek@redhat.com>
12188         PR middle-end/67330
12189         * varasm.c (declare_weak): Return after giving an error.
12191 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
12193         * gcc-main.c (main): Add params to driver ctor.
12194         * gcc.c (class env_manager): New.
12195         (env): New global.
12196         (env_manager::init): New.
12197         (env_manager::get): New.
12198         (env_manager::xput): New.
12199         (env_manager::restore): New.
12200         Poison getenv and putenv.
12201         (DEFAULT_TARGET_SYSTEM_ROOT): New.
12202         (target_system_root): Update initialization to use
12203         DEFAULT_TARGET_SYSTEM_ROOT.
12204         (struct spec_list): Add field "default_ptr".
12205         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12206         (init_spec): Likewise.
12207         (set_spec): Clear field "default_ptr".
12208         (read_specs): Free "spec" and "buffer".
12209         (xputenv): Reimplement in terms of env_manager.
12210         (process_command): Replace ::getenv calls with calls to the
12211         env_manager singleton.
12212         (process_brace_body): Free string in three places.
12213         (driver::driver): New.
12214         (driver::~driver): New.
12215         (used_arg): Convert from a function to...
12216         (class used_arg_t): ...this class, and...
12217         (used_arg): ...this new global instance.
12218         (used_arg_t::finalize): New function.
12219         (getenv_spec_function): Add "const" to local "value".  Replace
12220         ::getenv call with call to the env_manager singleton.
12221         (path_prefix_reset): New function.
12222         (driver::finalize): New function.
12223         * gcc.h (driver::driver): New.
12224         (driver::~driver): New.
12225         (driver::finalize): New.
12227 2015-08-25  Nathan Sidwell  <nathan@acm.org>
12229         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12230         target doesn't have one.
12232 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
12234         PR target/67346
12235         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12237 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
12239         PR target/67344
12240         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12241         a define_insn, remove second alternative.
12243 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
12244             Joseph Myers  <joseph@codesourcery.com>
12246         * gcc.c (struct switchstr): Expand comment.
12248 2015-08-25  Nathan Sidwell  <nathan@acm.org>
12250         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12251         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12253 2015-08-25  Richard Biener  <rguenther@suse.de>
12255         PR middle-end/67306
12256         * genmatch.c (expr::gen_transform): Verify the result of
12257         builtin_decl_implicit.
12258         (dt_simplify::gen_1): Likewise.
12260 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12262         * config/arm/constraints.md: Also list Cs and US ARM-specific
12263         constraints as used.
12265 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
12267         PR target/66609
12268         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12269         UNSPEC_PCREL.
12270         (nonpic_symbol_mentioned_p): Likewise.
12271         (sh_delegitimize_address): Likewise.
12272         (sh_function_ok_for_sibcall): Take into account weak symbols.
12273         (sh_expand_sym_label2reg): New.
12274         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12275         * config/sh/sh.md (UNSPEC_PCREL): New enum.
12276         (call_pcrel): Use sh_expand_sym_label2reg.
12277         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12278         (symPCREL_label2reg) New expand.
12280 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
12282         * graphite-poly.c: Change type of region from void* to sese.
12283         * graphite-poly.h (struct scop): Changing the type of scop::region
12284         from void* to sese. Change accessor macro accordingly.
12285         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12287 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
12289         * graphite-scop-detection.c (stmt_simple_for_scop_p):
12290         Constrain only on INTEGER_TYPE.
12292 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12294         PR target/67211
12295         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12296         -mefficient-unaligned-vsx on ISA 2.7.
12298         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12299         option to a masked option.
12301         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12302         logic for -mefficient-unaligned-vsx so that it is set via an arch
12303         ISA option, instead of being set if -mtune=power8 is set. Move
12304         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12305         near other default option handling.
12307 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12309         * genflags.c (gen_macro): Delete.
12310         (gen_proto): Don't create GEN.*CALL.* macros.
12311         * gensupport.h (get_file_location): Declare.
12312         * gensupport.c (rtx_locs): New variable.
12313         (read_md_rtx): Record rtx locations.
12314         (get_file_location): New function.
12315         * target-insns.def (call, call_pop, call_value, call_value_pop)
12316         (sibcall, sibcall_value): New patterns.
12317         * gentarget-def.c (parse_argument): New function.
12318         (def_target_insn): Use it.  Handle optional operands.  Raise an
12319         error if an .md pattern has the wrong number of operands for the
12320         pattern name.  Remove the names of unused operands from the prototype.
12321         * builtins.c (expand_builtin_apply): Use targetm functions
12322         instead of HAVE_call_value and GEN_CALL_VALUE.
12323         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
12324         and sibcall_value_pop.
12325         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12326         of GEN_CALL.
12327         * config/alpha/alpha.md (untyped_call): Likewise.
12328         * config/iq2000/iq2000.md (untyped_call): Likewise.
12329         * config/m68k/m68k.md (untyped_call): Likewise.
12330         * config/mips/mips.md (untyped_call): Likewise.
12331         * config/pa/pa.md (untyped_call): Likewise.
12332         * config/rs6000/rs6000.md (untyped_call): Likewise.
12333         * config/sparc/sparc.md (untyped_call): Likewise.
12334         * config/tilegx/tilegx.md (untyped_call): Likewise.
12335         * config/tilepro/tilepro.md (untyped_call): Likewise.
12336         * config/visium/visium.md (untyped_call): Likewise.
12337         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12338         gen_call_value instead of GEN_CALL_VALUE.
12339         * config/arm/arm.md (untyped_call): Likewise.
12340         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12341         GEN_CALL.
12343 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12345         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12346         (have_cbranchcc4): New variable.
12347         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12348         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12349         (if_convert): Initialize have_cbranchcc4.
12351 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12353         * builtins.c (expand_cmpstrn): Rename to...
12354         (expand_cmpstrn_or_cmpmem): ...this.
12355         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12356         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12357         Remove mode argument.
12358         (expand_builtin): Update accordingly.
12360 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12362         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12363         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
12364         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12365         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12366         Add predicates for operands 0 and 3.
12367         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12368         operand.
12369         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12370         immediate_operand to nonmemory_operand.
12372 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12374         * df-scan.c (df_insn_info_init_fields): New function, split out
12375         from...
12376         (df_insn_create_insn_record): ...here.
12377         (df_insn_info_free_fields): New function, split out from...
12378         (df_insn_info_delete): ...here.
12379         (df_insn_rescan): Use the new functions instead of freeing and
12380         reallocating the df_insn_info.
12382 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12384         * doc/install.texi (Binaries): Remove links no longer valid.
12386 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
12388         * config/nvptx/mkoffload.c (process): Replace
12389         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12391 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
12393         PR target/67329
12394         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12396 2015-08-24  Renlin Li  <renlin.li@arm.com>
12398         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12399         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12400         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12401         * config/arm/constraints.md ("j"): Add check for high code.
12403 2015-08-24  Tom de Vries  <tom@codesourcery.com>
12405         PR tree-optimization/65468
12406         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12407         chunk_size is one.
12409 2015-08-24  Nathan Sidwell  <nathan@acm.org>
12411         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12412         change to nvptx_type_from_mode call. Use arg_promotion for both
12413         split and non-split args.
12415 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12417         * target-insns.def (movstr): New pattern.
12418         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12419         (expand_movstr): Use targetm rather than HAVE_movstr/
12420         CODE_FOR_movstr.
12422 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
12424         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12425         cast syntax.
12427 2015-08-24  Andrew Pinski  <apinski@cavium.com>
12429         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12430         AARCH64_EXTRA_TUNING_OPTION.
12431         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12432         New enum.
12433         (aarch64_extra_tuning_flags): Base the shifted value on the index
12434         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12435         * config/aarch64/aarch64.c: Remove the last argument to
12436         AARCH64_EXTRA_TUNING_OPTION.
12438 2015-08-23  Nathan Sidwell  <nathan@acm.org>
12440         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12441         decls.
12442         (nvptx_declare_function_name): Insert formatting tabs for
12443         consistency.
12445 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12447         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12448         parm_decl, rather than generating a dummy default def in cfun.
12449         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
12450         ssa_name from cfun and child_fn do not share a stmt as def stmt.
12451         (move_stmt_op): Handle PARM_DECl.
12452         (gather_ssa_name_hash_map_from): New function.
12453         (move_sese_region_to_fn): Add default defs for function params, and add
12454         them to vars_map.  Release copied ssa names.
12455         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12457 2015-08-23  Tom de Vries  <tom@codesourcery.com>
12459         * doc/sourcebuild.texi: Rename vect_no_int_max with
12460         vect_no_int_min_max.  Update description.
12462 2015-08-22  Andrew Pinski  <apinski@cavium.com>
12464          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12465         * config/aarch64/aarch64-protos.h
12466         (aarch64_fusion_pairs_index): New enum.
12467         (aarch64_fusion_pairs): Base the shifted value on the index instead
12468         Rewrite AARCH64_FUSE_ALL to be based on the end index.
12469         of the argument to AARCH64_FUSION_PAIR.
12470         * config/aarch64/aarch64.c: Remove the last argument to
12471         AARCH64_FUSION_PAIR.
12473 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
12475         * dominance.c (new_zero_array): Define.
12476         (dom_info): Redefine as class with proper encapsulation.
12477         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12478         Add new members.
12479         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
12480         allocations/deallocations.  Pass function as parameter (instead of
12481         using cfun).
12482         (dom_info::get_idom): Define accessor method.
12483         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12484         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
12485         (calculate_dominance_info): Adjust to use dom_info class.
12486         (verify_dominators): Likewise.
12488 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
12490         * print-rtl.c (print_rtx): Check the correct range for
12491         flag_dump_unnumbered_links to behave as documented.
12493         PR rtl-optimization/67227
12494         PR rtl-optimization/64164
12495         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12496         (nonoverlapping_memrefs_p): Test offsets and sizes when given
12497         identical gimple_reg exprs.
12499 2015-08-21  Nathan Sidwell  <nathan@acm.org>
12501         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12502         expansion.
12503         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12504         crtl->stack_alignment_needed to determine alignment.
12505         (nvptx_get_drap_rtx): New.
12506         (TARGET_GET_DRAP_RTX): Override.
12507         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12509 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12511         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12513 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12515         * configure.ac: Remove uwin* cases.
12516         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12517         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12518         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12519         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12520         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12521         i[34567]86-*-uwin*, powerpc-*-beos*.
12523 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
12525         * gencodes.c (gencodes): Print the comma for the preceding
12526         enum value rather than the current one.  Use aliased enum values
12527         rather than #defines for compiled-out patterns.
12528         (main): Update accordingly.  Replace LAST_INSN_CODE with
12529         NUM_INSN_CODES.
12530         * lra.c (insn_code_data): Update accordingly.
12531         (finish_insn_code_data_once, get_static_insn_data): Likewise.
12532         * recog.h (target_recog): Likewise.
12533         (preprocess_insn_constraints): Change parameter to unsigned int.
12534         * recog.c (preprocess_insn_constraints): Likewise.
12535         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12536         * tree-vect-stmts.c (vectorizable_operation): Simplify.
12538 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12540         PR rtl-optimization/61657
12541         * loop-iv.c (iv_number_of_iterations): Declare up and down as
12542         unsigned.  Remove superflous uint64_t cast.
12544 2014-08-21  Felix Yang  <felix.yang@huawei.com>
12545             Jiji Jiang  <jiangjiji@huawei.com>
12547         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12548         argument and get builtin function code directly from CALL.
12549         (gimple_stringop_fixed_value): Modified accordingly.
12550         (gimple_stringops_transform, gimple_stringops_values_to_profile):
12551         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12553 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12555         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12557 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12559         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12560         to match.pd.
12561         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12562         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12563         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12564         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12565         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12566         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12567         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12568         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12569         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12570         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12572         * match.pd (SIN ) : New Operator.
12573         (TAN) : New Operator.
12574         (mult (SQRT@1 @0) @1) : New simplifier.
12575         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12576         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12577         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12578         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12579         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12580         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12581         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12582         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12583         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12584         (rdiv @0 (POW:s @1 @2)) : New simplifier.
12586 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
12588         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12589         loop if EXPR is simplified to const value.
12591 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
12593         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12594         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12596 2015-08-21  Richard Biener  <rguenther@suse.de>
12598         PR middle-end/67285
12599         * gimple-fold.c (replace_stmt_with_simplification): Assert
12600         seq is empty when replacing a call with itself but different
12601         arguments.
12602         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12603         a call require that it is const.
12605 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12607         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12608         * builtins.c (get_object_alignment_2): Adjust.
12609         * varasm.c (align_variable): Likewise.
12610         (get_variable_align): Likewise.
12611         (build_constant_desc): Likewise.
12612         (force_const_mem): Likewise.
12613         * doc/tm.texi.in: Likewise.
12614         * doc/tm.texi: Regenerate.
12616 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12618         * genconfig.c (main): Always define HAVE_cc0.
12619         * recog.c (rest_of_handle_peephole2): Adjust.
12621 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12623         * reorg.c (relax_delay_slots): Don't use #if to check value of
12624         HAVE_cc0.
12626 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12628         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12629         * targhooks.c (default_have_conditional_execution): Adjust.
12631 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12633         * rtl.h (rtvec_all_equal_p): Declare.
12634         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12635         * rtl.c (rtvec_all_equal_p): New function.
12636         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12637         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12638         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12639         * config/arm/arm.c (neon_vdup_constant): Likewise.
12640         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12641         * config/tilegx/constraints.md (W, Y): Likewise.
12642         * config/tilepro/constraints.md (W, Y): Likewise.
12643         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12644         (classify_immediate): Use unwrap_const_vec_duplicate.
12645         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12646         (reg_or_v2s8bit_operand): Likewise.
12647         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12648         (reg_or_v4s8bit_operand): Likewise.
12650 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12652         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12653         (vec_shasigma_be): New #define.
12654         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12655         (VPMSUMH): Likewise.
12656         (VPMSUMW): Likewise.
12657         (VPMSUMD): Likewise.
12658         (VPMSUM): New BU_P8V_OVERLOAD_2.
12659         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12660         entries for VEC_MADD and VEC_VPMSUM.
12662 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
12664         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12665         Multiply argument avr_n_flash by 64 to match unit of "KiB".
12666         (avr_pgm_check_var_decl): Same.
12668 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
12670         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12671         initialization of HFmode scalar type (float16_t) to...
12672         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12673         code.
12675         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12677         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12678         having an -mfp16-format.
12680 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
12682         * config/i386/predicates.md (vector_all_ones_operand): Use
12683         CONSTM1_RTX to simplify definition.
12685 2015-08-20  Richard Biener  <rguenther@suse.de>
12687         * toplev.c (compile_file): Remove loop calling late_global_decl
12688         on all symbols.
12689         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12690         on decls we assembled.
12692 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
12694         * common/config/aarch64/aarch64-common.c
12695         (AARCH64_CPU_NAME_LENGTH): Delete.
12696         (aarch64_option_extension): New.
12697         (all_extensions): Likewise.
12698         (processor_name_to_arch): Likewise.
12699         (arch_to_arch_name): Likewise.
12700         (all_cores): New.
12701         (all_architectures): Likewise.
12702         (aarch64_get_extension_string_for_isa_flags): Likewise.
12703         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12704         architecture names.
12705         * config/aarch64/aarch64-protos.h
12706         (aarch64_get_extension_string_for_isa_flags): New.
12707         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12708         (aarch64_option_print): Get the string to print from
12709         aarch64_get_extension_string_for_isa_flags.
12710         (aarch64_declare_function_name): Likewise.
12711         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12712         (MCPU_TO_MARCH_SPEC): This.
12713         (ASM_CPU_SPEC): Use it.
12714         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12715         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12716         (EXTRA_SPEC_FUNCTIONS): Use it.
12718 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
12720         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12721         expansion when !ISA_HAS_LWL_LWR.
12722         (mips_block_move_straight): Update the size of elements copied to
12723         account for alignment when !ISA_HAS_LWL_LWR.
12724         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12726 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12728         * expr.c (expand_expr_real_2): Check gimple statement during
12729         LSHIFT_EXPR expand.
12731 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
12733         * common.opt (fstack-protector): Initialize to -1.
12734         (fstack-protector-all): Likewise.
12735         (fstack-protector-strong): Likewise.
12736         (fstack-protector-explicit): Likewise.
12737         * configure.ac: Add --enable-default-ssp.
12738         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
12739         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12740         -1.
12741         * doc/install.texi: Document --enable-default-ssp.
12742         * config.in: Regenerated.
12743         * configure: Likewise.
12745 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
12747         PR rtl-optimization/64164
12748         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12749         (parm_in_stack_slot_p): ... this.  Disregard mode, what
12750         matters is whether the parm will live in a pseudo or a stack
12751         slot.
12752         (expand_one_ssa_partition): Deal with params without a default
12753         def.  Disregard mode.
12754         * cfgexpand.h: Renamed function declaration.
12755         * tree-ssa-coalesce.c: Adjust.
12756         * function.c (split_complex_args): Allocate stack slot for
12757         unassigned parms before splitting.
12758         (parm_in_unassigned_mem_p): New.  Use it instead of
12759         parm_maybe_byref_p throughout this file.
12760         (assign_parm_setup_block): Use it.  Accept pseudos in the
12761         expand-assigned rtl.
12762         (assign_parm_setup_reg): Drop BLKmode requirement.
12763         (assign_parm_setup_stack): Allocate and fill in the address of
12764         unassigned MEM parms.
12766 2015-08-19  David Sherwood  <david.sherwood@arm.com>
12768         * genmodes.c (emit_mode_unit_size_inline): New function.
12769         (emit_mode_unit_precision_inline): New function.
12770         (emit_insn_modes_h): Emit new #define.  Emit new functions.
12771         (emit_mode_unit_size): New function.
12772         (emit_mode_unit_precision): New function.
12773         (emit_mode_adjustments): Add mode_unit_size adjustments.
12774         (emit_insn_modes_c): Emit new arrays.
12775         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12776         use new inline methods.
12778 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12780         * config/aarch64/aarch64.c (bit_count): Delete prototype
12781         and definition.
12782         (aarch64_print_operand): Use popcount_hwi instead of the above.
12784 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12786         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12787         comment.
12789 2015-08-19  Marek Polacek  <polacek@redhat.com>
12791         PR middle-end/67133
12792         * gimple-ssa-isolate-paths.c
12793         (insert_trap_and_remove_trailing_statements): Rename to ...
12794         (insert_trap): ... this.  Don't remove trailing statements; split
12795         block instead.
12796         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12798 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
12800         PR other/67042
12801         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12802         conditionalize the whole on __GNUC__.  Add fallback code
12803         depending neither on undefined nor implementation-defined behaviour.
12805 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
12807         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12808         whitespaces with tab.
12810 2015-08-19  Florian Weimer  <fweimer@redhat.com>
12812         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12813         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12814         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12815         Move Name_Ids instantiation to the Prj.Proc package, to avoid
12816         trampolines.
12818 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12820         * config/arm/arm.c (bounds_check): Use %wd print format
12821         for HOST_WIDE_INT arguments.
12823 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
12825         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12826         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12827         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12828         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12829         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12830         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12831         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12832         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12833         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12834         typedefs.
12836 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
12838         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12839         function.c, graphite-scop-detection.c, haifa-sched.c,
12840         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12841         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12842         varasm.c: Remove typedefs of structs.
12844 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
12846         * config/rs6000/altivec.h (vec_adde): New define.
12847         (vec_addec): Likewise.
12848         (vec_double): Likewise.
12849         (vec_bperm): Likewise.
12850         (vec_gb): Likewise.
12851         * config/rs6000/rs6000-builtin.def (ADDE): New
12852         BU_ALTIVEC_OVERLOAD_3.
12853         (ADDEC): Likewise.
12854         (DOUBLE): New BU_VSX_OVERLOAD_1.
12855         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12856         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12857         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12858         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12859         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12860         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12861         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12862         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12863         and P8V_BUILTIN_VEC_VBPERMQ.
12865 2015-08-18  Jason Merrill  <jason@redhat.com>
12867         * print-tree.c (print_node): Handle TREE_BINFO.
12869 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12871         PR middle-end/36757
12872         * builtins.c (expand_builtin_signbit): Add asserts to make sure
12873         we can expand BUILT_IN_SIGNBIT inline.
12874         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12875         * doc/extend.texi: Document the type-generic __builtin_signbit.
12877 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
12879         PR rtl-optimization/67218
12880         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12881         (simplify_unary_operation_1): Use it.
12883 2015-08-18  Marek Polacek  <polacek@redhat.com>
12885         PR middle-end/67222
12886         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12887         if the call isn't valid.
12888         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12889         gimple_call_builtin_p.
12890         (call_may_clobber_ref_p_1): Likewise.
12891         (stmt_kills_ref_p): Likewise.
12893 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12895         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12896         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12897         (mips_hard_regno_scratch_ok): Likewise.
12898         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12899         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12901 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
12903         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12904         (determine_value_range): Call refine_value_range_using_guard for
12905         each loop initial condition to improve value range.
12907 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
12909         * config/i386/i386.c: Remove include of fibheap.h.
12911 2015-08-17  Richard Biener  <rguenther@suse.de>
12913         PR tree-optimization/67221
12914         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12915         (sccvn_dom_walker::before_dom_children): Mark backedges of
12916         non-executable blocks as not executable.
12918 2015-08-17  David Sherwood  <david.sherwood@arm.com>
12920         * config/arm/arm.c (neon_element_bits): Replace call to
12921         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12922         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12923         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12924         (neon_vdup_lane<mode>): Likewise.
12925         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12926         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12927         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12928         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12929         * config/spu/spu.c (arith_immediate_p): Likewise.
12930         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12931         * expr.c (expand_expr_real_2): Likewise.
12932         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12933         * simplify-rtx.c (simplify_immed_subreg): Likewise.
12934         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12935         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12936         New variable.
12937         * fold-const.c (fold_binary_loc): Replace call to
12938         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12939         GET_MODE_UNIT_PRECISION (m).
12941 2015-08-17  Mike Stump  <mikestump@comcast.net>
12943         * config/arm/arm.c (arm_block_move_unaligned_straight):
12944         Emit normal move instead of unaligned load when source or destination
12945         are appropriately aligned.
12947 2015-08-17  Richard Biener  <rguenther@suse.de>
12948             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12950         PR middle-end/16107
12951         * match.pd (div (coss (op @0) : New simplifier.
12953 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
12955         PR rtl-optimization/64164
12956         PR bootstrap/66978
12957         PR middle-end/66983
12958         PR rtl-optimization/67000
12959         PR middle-end/67034
12960         PR middle-end/67035
12961         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12962         * tree-ssa-copyrename.c: Removed.
12963         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12964         -ftree-coalesce-vars.
12965         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12966         * common.opt (ftree-copyrename): Ignore.
12967         (ftree-coalesce-inlined-vars): Likewise.
12968         * doc/invoke.texi: Remove the ignored options above.
12969         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12970         * tree-ssa-coalesce.h: ... here.
12971         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12972         headers required by it.
12973         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12974         across variables when flag_tree_coalesce_vars.  Check register
12975         use and promoted modes to allow coalescing.  Do not coalesce
12976         maybe-byref parms with SSA_NAMEs of other variables, or
12977         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
12978         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12979         with its member functions to tree-ssa-coalesce.c.
12980         (var_map_base_init): Likewise.  Renamed to
12981         compute_samebase_partition_bases.
12982         (partition_view_normal): Drop want_bases parameter.
12983         (partition_view_bitmap): Likewise.
12984         * tree-ssa-live.h: Adjust declarations.
12985         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12986         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12987         default defs at the entry point.
12988         (dump_part_var_map): New.
12989         (compute_optimized_partition_bases): New, called by...
12990         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12991         of compute_samebase_partition_bases.  Adjust.
12992         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12993         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12994         (ssa_default_def_partition): New.
12995         (get_rtl_for_parm_ssa_default_def): New.
12996         (align_local_variable, add_stack_var): Support anonymous SSA
12997         names.
12998         (defer_stack_allocation): Likewise.  Declare earlier.
12999         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13000         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13001         Do no record deferred-allocation marker in
13002         SA.partition_to_pseudo.
13003         (expand_stack_vars): Adjust check for the marker in it.
13004         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13005         redundant MEM attr setting.
13006         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13007         from...
13008         (expand_one_stack_var): ... this.  New wrapper to check and
13009         skip already expanded SSA partitions.
13010         (record_alignment_for_reg_var): New, factored out of...
13011         (expand_one_var): ... this.
13012         (expand_one_ssa_partition): New.
13013         (adjust_one_expanded_partition_var): New.
13014         (expand_one_register_var): Check and skip already expanded SSA
13015         partitions.
13016         (expand_used_vars): Don't create DECLs for anonymous SSA
13017         names.  Expand all SSA partitions, then adjust all SSA names.
13018         (pass::execute): Replace the loops that set
13019         SA.partition_to_pseudo from partition leaders and cleared
13020         DECL_RTL for multi-location variables, and that which used to
13021         rename vars and set attrs, with one that clears DECL_RTL and
13022         checks that PARMs and RESULTs default_defs match DECL_RTL.
13023         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13024         * emit-rtl.c: Include stor-layout.h.
13025         (set_reg_attrs_for_parm): Handle NULL decl.
13026         (set_reg_attrs_for_decl_rtl): Take mode from expression if
13027         it's not a DECL.
13028         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13029         rather than its possibly-NULL DECL.
13030         * explow.c (promote_ssa_mode): New.
13031         * explow.h (promote_ssa_mode): Declare.
13032         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13033         (read_complex_part): Export.
13034         * expr.h (read_complex_part): Declare.
13035         * cfgexpand.h (parm_maybe_byref_p): Declare.
13036         * function.c: Include cfgexpand.h.
13037         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13038         (use_register_for_parm_decl): Wrapper for the above to
13039         special-case the result_ptr.
13040         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13041         (split_complex_args): Take assign_parm_data_all argument.
13042         Pass it to rtl_for_parm.  Set up rtl and context for split
13043         args.  Reset complex parm before fetching its default decl
13044         rtl.
13045         (assign_parms_unsplit_complex): Use the default-def complex
13046         parm rtl if it matches the components.
13047         (assign_parms_augmented_arg_list): Adjust.
13048         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13049         multiple locations.  Recognize split complex args.
13050         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13051         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13052         (assign_parm_setup_block): Prefer SSA-assigned location, and
13053         fill in its address if the memory location of a maybe-byref
13054         parm was not assigned by cfgexpand.
13055         (assign_parm_setup_reg): Likewise.  Adjust its mode as
13056         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
13057         sure passed_pointer parms don't need conversion.  Copy address
13058         or value as needed.
13059         (assign_parm_setup_stack): Prefer SSA-assigned location.
13060         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13061         rtl before testing for pointer bounds.  Special-case result_ptr.
13062         (expand_function_start): Maybe reset DECL_RTL of result.
13063         Prefer SSA-assigned location for result and static chain.
13064         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
13065         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
13066         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13067         anonymous SSA names.  Use promote_ssa_mode.
13068         (get_temp_reg): Likewise.
13069         (remove_ssa_form): Adjust.
13070         * stor-layout.c (layout_decl): Don't set mem attributes of
13071         non-MEMs.
13072         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13073         and get its reg_usage for reg invalidation.
13074         (compute_bb_dataflow): Pass it insn.
13075         (emit_notes_in_bb): Likewise.
13077 2015-08-14  Marek Polacek  <polacek@redhat.com>
13079         * tree-core.h (tree_base): Fix typo.
13081 2015-08-14  Marek Polacek  <polacek@redhat.com>
13083         PR middle-end/67133
13084         * gimple.c (infer_nonnull_range_by_attribute): Check that the
13085         nonnull argument position is not outside function arguments.
13087 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
13089         PR target/67143
13090         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13091         'lconst_atomic' with 'const_atomic'.
13092         (atomic_fetch_<optab><mode>): Likewise.
13093         (atomic_<optab>_fetch<mode>): Likewise.
13094         * config/aarch64/iterators.md (lconst-atomic): Move below
13095         'const_atomic'.
13096         (const_atomic): New.
13098 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
13099             Bernd Schmidt  <bernds@codesourcery.com>
13101         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13102         debug options.
13103         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13104         (DWARF2_DEBUGGING_INFO): Don't define.
13105         * debug.h (dwarf2_lineno_debug_hooks): Declare.
13106         * toplev.c (process_options): Add a case for it.
13107         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13108         (dwarf2out_init): Skip most initializations if
13109         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13110         case.
13111         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13112         DWARF2_LINENO_DEBUGGING_INFO.
13113         * opts.c (set_debug_level): Likewise.
13115 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
13117         * config/arm/types.md (is_neon_type): Add missing types.
13119 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
13121         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13122         for skylake.
13123         * config/i386/i386.c (PTA_SKYLAKE): New macros.
13124         (processor_alias_table): Add skylake description.
13125         (enum processor_model): Add skylake processor.
13126         (arch_names_table): Add skylake record.
13127         * doc/invoke.texi: Add skylake item.
13129 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
13131         * ira-int.h: Include recog.h.
13132         * ira-build.c: Don't include recog.h.
13133         * ira-color.c: Likewise.
13134         * ira-conflicts.c: Likewise.
13135         * ira-costs.c: Likewise.
13136         * ira-emit.c: Likewise.
13137         * ira-lives.c: Likewise.
13138         * ira.c: Likewise.
13139         * sched-deps.c: Likewise.
13140         * sel-sched.c: Likewise.
13141         * target-globals.c: Likewise.
13143 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
13145         PR bootstrap/55035
13146         * reload1.c (elimination_costs_in_insn): Make it obvious to the
13147         compiler that the n_dups and n_operands loop bounds are invariant.
13149 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13151         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13152         expressions in A and B.
13154 2015-08-13  Richard Biener  <rguenther@suse.de>
13156         * tree.c (nonnull_arg_p): Move from ...
13157         * tree-vrp.c (nonnull_arg_p): ... here.
13158         * tree.h (nonnull_arg_p): Declare.
13159         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13160         here, register ptr != 0 for nonnull_arg_p pointer arguments.
13161         Properly initialize static chain and by-reference result pointer.
13162         (run_scc_vn): Adjust.
13164 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
13166         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13167         TUNE_I6400.
13169 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
13171         * config/aarch64/aarch64-protos.h
13172         (aarch64_gen_atomic_cas): Declare.
13173         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13174         Choose appropriate instruction pattern for the target.
13175         (aarch64_gen_atomic_cas): New.
13176         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13177         (atomic_compare_and_swap<mode>_1): Rename to
13178         aarch64_compare_and_swap<mode>.  Fix some indentation.
13179         (aarch64_compare_and_swap<mode>_lse): New.
13180         (aarch64_atomic_cas<mode>): New.
13182 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
13184         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13185         (TARGET_LSE): New.
13187 2015-08-13  Richard Biener  <rguenther@suse.de>
13189         PR tree-optimization/67191
13190         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13191         assert we value-numbered last stmts operand because it can validly
13192         trigger for unreachable code.
13194 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13196         PR rtl-optimization/67103
13197         * ifcvt.c (noce_try_store_flag_constants): Move
13198         x = (-(test != 0) & (b - a)) + a transformation to...
13199         (noce_try_cmove): ... Here.  Try it if normal conditional
13200         move fails.
13202 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
13204         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13205         pseudo-processors.
13206         * config/mips/mips.md (processor): Remove w32 and w64.
13208 2015-08-13  Richard Biener  <rguenther@suse.de>
13210         PR tree-optimization/66502
13211         PR tree-optimization/67167
13212         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13213         backedge arguments.
13214         (vn_phi_lookup): Adjust.
13215         (vn_phi_insert): Likewise.
13216         (visit_phi): Prefer to value-number to another PHI node
13217         over value-numbering to a PHI argument.
13218         (init_scc_vn): Mark DFS back edges.
13220 2015-08-13  Richard Biener  <rguenther@suse.de>
13222         * gimple.h (gcall::code_): New constant static member.
13223         (gcond::code_): Likewise.
13224         * gimple.c (gcall::code_): Define.
13225         (gcond::code_): Likewise.
13226         (is_a_helper <const gcond *>): Add.
13227         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13228         and forward to a new gcall overload with less checking and a
13229         cheaper way to access the operand.
13230         (gimple_call_lhs_ptr): Likewise.
13231         (gimple_call_set_lhs): Likewise.
13232         (gimple_call_internal_p): Likewise.
13233         (gimple_call_with_bounds_p): Likewise.
13234         (gimple_call_set_with_bounds): Likewise.
13235         (gimple_call_internal_fn): Likewise.
13236         (gimple_call_set_ctrl_altering): Likewise.
13237         (gimple_call_ctrl_altering_p): Likewise.
13238         (gimple_call_fntype): Likewise.
13239         (gimple_call_fn): Likewise.
13240         (gimple_call_fn_ptr): Likewise.
13241         (gimple_call_set_fndecl): Likewise.
13242         (gimple_call_fndecl): Likewise.
13243         (gimple_call_chain): Likewise.
13244         (gimple_call_num_args): Likewise.
13245         (gimple_call_arg): Likewise.
13246         (gimple_call_arg_ptr): Likewise.
13247         (gimple_call_set_arg): Likewise.
13248         (gimple_call_noreturn_p): Likewise.
13249         (gimple_cond_code): Likewise.
13250         (gimple_cond_lhs): Likewise.
13251         (gimple_cond_rhs): Likewise.
13252         (gimple_has_lhs): Reduce checking.
13254 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13256         PR middle-end/25529
13257         * match.pd (div (mult @0 @1) @1) : New simplifier.
13259 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
13261         PR target/67071
13262         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13263         predicate to allow construction of vector constants using the
13264         VSLDOI vector shift instruction.
13266         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13267         declaration.
13269         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13270         the number of bytes to be shifted left and filled in with either
13271         all zero or all one bits.
13272         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13273         methods exist.
13274         (output_vec_const_move): On power8, generate XXLORC to generate
13275         a vector constant with all 1's. Do a split if we need to use a
13276         VSLDOI instruction.
13278         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13279         properly test for the MSB.
13281         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13282         vector constants that can be created with VSLDOI.
13284 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13286         revert:
13287         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13288         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13289         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13290         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13291         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13292         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13293         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13294         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13295         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13297 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
13299         * config/xtensa/constraints.md (define_constraint "Y"): New
13300         constraint.
13301         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13302         * config/xtensa/linux.h (ASM_SPEC): Likewise.
13303         * config/xtensa/predicates.md (move_operand): Match constants
13304         and symbols in the presence of TARGET_AUTO_LITPOOLS.
13305         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13306         immediate references to TLS data.
13307         (xtensa_emit_move_sequence): Don't force constants to memory in
13308         the presence of TARGET_AUTO_LITPOOLS.
13309         (print_operand): Add 'y' format, same as default, but capable of
13310         printing SF mode constants as well.
13311         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13312         (movsf_internal): Add movi pattern that loads literal.
13313         (movsf, movdf): Don't force constants to memory in the presence
13314         of TARGET_AUTO_LITPOOLS.
13315         (movdf_internal): Add 'Y' constraint.
13316         * config/xtensa/xtensa.opt (mauto-litpools): New option.
13317         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13319 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
13321         * config/arm/arm-fpus.def: Replace booleans with feature flags.
13322         Update comment.
13323         * config/arm/arm.c (ARM_FPU): Update macro.
13324         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13325         (TARGET_FP16): Likewise.
13326         (TARGET_CRYPTO): Likewise.
13327         (TARGET_NEON): Likewise.
13328         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
13329         field features.
13331 2015-08-12  Tom de Vries  <tom@codesourcery.com>
13333         PR other/67092
13334         PR other/67098
13335         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
13336         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13337         accordingly.  Mention default for --with-stage1-ldflags.
13339 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
13341         * config/arm/arm.h (arm_fpu_feature_set): New.
13342         (ARM_FPU_FSET_HAS): New.
13343         (FPU_FL_NONE): New.
13344         (FPU_FL_NEON): New.
13345         (FPU_FL_FP16): New.
13346         (FPU_FL_CRYPTO): New.
13348 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13350         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13351         after -mcmodel=large -fPIC sorry.
13353 2015-08-12  Richard Biener  <rguenther@suse.de>
13355         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13356         comparison operand order and commutative ternary op operand order.
13357         (sccvn_dom_walker::cond_stack): New state to track temporary
13358         expressions.
13359         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13360         no longer valid.
13361         (sccvn_dom_walker::record_cond): Add a single temporary conditional
13362         expression.
13363         (sccvn_dom_walker::record_conds): Add a temporary conditional
13364         expressions and all related expressions also true/false.
13365         (sccvn_dom_walker::before_dom_children): Record temporary
13366         expressions based on the controlling condition of a single
13367         predecessor.  When trying to simplify a conditional statement
13368         lookup expressions we might have inserted earlier.
13370 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
13372         PR target/67127
13373         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13374         to ARM core registers.
13376 2015-08-12  Nathan Sidwell  <nathan@acm.org>
13378         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13379         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13381 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
13383         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13384         line with comments.
13385         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13387 2015-08-12  Richard Biener  <rguenther@suse.de>
13389         * gimple.h (remove_pointer): New trait.
13390         (GIMPLE_CHECK2): New inline template function.
13391         (gassign::code_): New constant static member.
13392         (is_a_helper<const gassign *>): Add.
13393         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13394         and forward to a new gassign overload with less checking and a
13395         cheaper way to access the operand.
13396         (gimple_assign_lhs_ptr): Likewise.
13397         (gimple_assign_set_lhs): Likewise.
13398         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13399         Likewise.
13400         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13401         Likewise.
13402         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13403         Likewise.
13404         (gimple_assign_rhs_code): Likewise.
13405         * gimple.c (gassign::code_): Define.
13407 2015-08-12  Richard Biener  <rguenther@suse.de>
13409         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13410         Eliminate edges marked as not executable by SCCVN.
13411         * tree-ssa-sccvn.c: Include gimple-iterator.h.
13412         (cond_dom_walker): Rename to sccvn_dom_walker.
13413         (sccvn_dom_walker::before_dom_children): Value-number defs
13414         of all stmts.
13415         (run_scc_vn): Remove loop value-numbering all SSA names.
13416         Drop not visited SSA names to varying.
13418 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
13420         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13421         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13422         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13423         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13424         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13425         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13426         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13427         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13428         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13430 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
13432         PR target/66954
13433         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13434         to enum feature_priority and feature_list.
13435         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13436         and isa_names_table.
13438 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
13440         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13441         vect_induction_def.
13443 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13445         PR c/66098
13446         PR c/66711
13447         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13448         account when deciding what was the command-line status.
13450 2015-08-11  Nathan Sidwell  <nathan@acm.org>
13452         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13454         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13455         we're not the only contributor to target phi.
13457 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
13459         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13460         FIXED_REG0.
13462 2015-08-11  Tom de Vries  <tom@codesourcery.com>
13464         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13466 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
13468         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13469         with CPU_SLM.
13470         * config/i386/i386.md (cpu): Remove knl.
13472 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13474         PR libgomp/65742
13475         PR middle-end/66332
13476         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13477         open-coded sequence.
13478         * omp-low.c (oacc_process_reduction_data): Remove handline of
13479         GOMP_DEVICE_HOST_NONSHM.
13481         * lto-streamer-in.c (lto_input_mode_table): Adjust to
13482         GET_MODE_INNER changes.
13484 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
13485             Ilya Verbin  <ilya.verbin@intel.com>
13487         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13489 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13491         * doc/options.texi (EnabledBy): Document that the argument must be
13492         a Common option.
13493         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13494         Not enabled by -Wall.
13495         * optc-gen.awk: Give nicer error messages. Detect if the argument
13496         of EnabledBy is not a Common option.
13497         * common.opt (Wnull-dereference): Not enabled by -Wall.
13498         * opt-functions.awk (lang_enabled_by): Nicer error messages.
13500 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13502         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13503         model == 0x4f as Broadwell.
13505 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
13507         PR rtl-optimization/67028
13508         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
13509         Add test to see if a const_int fits in the new mode.
13511 2015-08-07  DJ Delorie  <dj@redhat.com>
13513         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13515 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
13517         PR rtl-optimization/67029
13518         * ira-color.c: Include "recog.h" before including "ira-int.h".
13519         * target-globals.c: Likewise.
13520         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13521         adds an alternative_mask argument and use it instead of
13522         preferred_alternatives.
13523         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13524         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13525         * sched-deps.c: Include "ira-int.h" after including "ira.h".
13526         (sched_analyze_insn): Update call to
13527         ira_implicitly_set_insn_hard_regs.
13528         * sel-sched.c: Include "ira-int.h" after including "ira.h".
13529         (implicit_clobber_conflict_p): Update call to
13530         ira_implicitly_set_insn_hard_regs.
13532 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
13534         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13536 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13538         PR target/67002
13539         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13540         currently_expanding_to_rtl is set.
13542 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
13544         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13545         * configure: Regenerate.
13547 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13548             Jiong Wang  <jiong.wang@arm.com>
13550         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13551         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13552         (REG_CLASS_NAMES): Likewise.
13553         (REG_CLASS_CONTENTS): Likewise.
13554         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13555         (aarch64_register_move_cost): Likewise.
13556         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13557         possible.
13558         * config/aarch64/constraints.md (Uc0): New constraint.
13560 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
13562         * config/aarch64/constraints.md (Usf): Add the test of
13563         aarch64_is_noplt_call_p.
13565 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
13567         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13568         declaration.
13569         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13570         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13571         (call_symbol): Likewise.
13573 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13575         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13576         for vectorizing multiplication patterns.
13577         * tree-vectorizer.h: Adjust the number of patterns.
13579 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
13581         * config/i386/sse.md (*vec_concatv2df): Declare added
13582         alternatives as sselog type.
13584 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13586         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13587         all GPRs.
13589 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13591         * config/s390/s390.c (s390_expand_tbegin): Expand either
13592         tbegin_1_z13 or tbegin_1 depending on VX flag.
13593         * config/s390/s390.md ("tbegin_1_z13"): New expander.
13595 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13597         * config/s390/s390.opt: Clarify description for -mzvector
13598         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13599         -mzvector.
13601 2015-08-06  Richard Biener  <rguenther@suse.de>
13603         * gimple.h (gimple_call_set_fn): Access op member directly.
13604         (gimple_call_chain_ptr): Likewise.
13605         (gimple_call_set_chain): Likewise.
13606         (gimple_cond_lhs_ptr): Likewise.
13607         (gimple_cond_set_lhs): Likewise.
13608         (gimple_cond_rhs_ptr): Likewise.
13609         (gimple_cond_set_rhs): Likewise.
13610         (gimple_cond_true_label): Likewise.
13611         (gimple_cond_set_true_label): Likewise.
13612         (gimple_cond_set_false_label): Likewise.
13613         (gimple_cond_false_label): Likewise.
13614         (gimple_label_label): Likewise.
13615         (gimple_label_set_label): Likewise.
13616         (gimple_goto_set_dest): Likewise.
13617         (gimple_asm_input_op): Likewise.
13618         (gimple_asm_input_op_ptr): Likewise.
13619         (gimple_asm_set_input_op): Likewise.
13620         (gimple_asm_output_op): Likewise.
13621         (gimple_asm_output_op_ptr): Likewise.
13622         (gimple_asm_set_output_op): Likewise.
13623         (gimple_asm_clobber_op): Likewise.
13624         (gimple_asm_set_clobber_op): Likewise.
13625         (gimple_asm_label_op): Likewise.
13626         (gimple_asm_set_label_op): Likewise.
13627         (gimple_switch_index): Likewise.
13628         (gimple_switch_index_ptr): Likewise.
13629         (gimple_return_retval_ptr): Likewise.
13630         (gimple_return_retval): Likewise.
13631         (gimple_return_set_retval): Likewise.
13632         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
13633         (gimple_switch_label): Likewise.
13634         (gimple_switch_set_label): Likewise.
13636 2015-08-06  Richard Biener  <rguenther@suse.de>
13638         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13639         bool comparison canonicalization and restrict to integers.
13641 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
13643         * coretypes.h (enum symbol_visibility): Relocate here.
13644         * flag-types.h (enum symbol_visibility): Remove.
13645         * tree-core.h (enum symbol_visibility): Remove.
13647 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
13649         PR target/66870
13650         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13651         for no_split_stack function attribute along with
13652         flag_split_stack.
13653         (rs6000_expand_split_stack_prologue): Likewise.
13655 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13656             Jeff Law  <law@redhat.com>
13658         PR c/16351
13659         * doc/invoke.texi (Wnull-dereference): New.
13660         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13661         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13662         Warn for potential NULL dereferences.
13663         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13664         * ubsan.c (instrument_nonnull_arg): Call
13665         infer_nonnull_range_by_attribute.
13666         (instrument_nonnull_return): Likewise.
13667         * common.opt (Wnull-dereference); New.
13668         * gimple.c (infer_nonnull_range): Remove bool arguments.
13669         (infer_nonnull_range_by_dereference): New.
13670         (infer_nonnull_range_by_attribute): New.
13671         * gimple.h: Update declarations.
13673 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13675         * gensupport.c (sequence_num): Replace with...
13676         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13677         ...these new variables.
13678         (init_rtx_reader_args_cb): Update accordingly.
13679         (get_num_code_insns): Likewise.
13680         (read_md_rtx): Rework to use a while loop and get_c_test.
13681         Use the new counters.  Remove redundant DEFINE_SUBST case.
13682         * genoutput.c (gen_split): Delete.
13683         (main): Don't call it.
13685 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13687         * gensupport.h (get_c_test): Declare.
13688         * gensupport.c (get_c_test): New function.
13689         * genconditions.c (main): Use it.
13690         * genrecog.c (validate_pattern): Likewise.
13691         (match_pattern_1): Likewise.  Remove c_test argument.
13692         (match_pattern): Update accordingly and remove c_test argument.
13693         (main): Update accordingly.
13695 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13697         * gensupport.h (get_num_insn_codes): Declare.
13698         * gensupport.c (get_num_insn_codes): New function.
13699         * genattrtab.c (optimize_attrs): Rename max_insn_code to
13700         num_insn_codes.
13701         (main): Likewise.  Use get_num_insn_codes.
13702         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13704 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13706         PR middle-end/66311
13707         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13708         is zero- rather than sign-extended.
13710 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
13712         * target-insns.def (can_extend): Delete.
13714 2015-08-05  Richard Biener  <rguenther@suse.de>
13716         PR tree-optimization/67121
13717         * tree-if-conv.c (combine_blocks): Clear range-info produced
13718         by stmts no longer executed conditionally.
13720 2015-08-05  Nick Clifton  <nickc@redhat.com>
13722         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13723         to allow identical far pointers to remain.
13725 2015-08-05  Richard Biener  <rguenther@suse.de>
13727         PR middle-end/67120
13728         * match.pd: Compare address bases with == if they are decls
13729         or SSA names, not operand_equal_p.  Otherwise fail.
13731 2015-08-05  Richard Biener  <rguenther@suse.de>
13733         PR tree-optimization/67055
13734         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13735         NULL gimple_block.
13737         * g++.dg/torture/pr67055.C: New testcase.
13739 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13741         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13742         noavx512vl.
13743         (define_attr "enabled"): Handle avx521vl and noavx512vl.
13744         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13745         AVX-512 alternative out of SSE.
13746         (define_insn "*vec_concatv2df"): Ditto.
13748 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
13750         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13751         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13752         CODE_FOR_avx_ptestv4di.
13753         * config/i386/sse.md (define_mode_iterator V_AVX): New.
13754         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13755         (define_insn "avx_ptest256"): Merge this ...
13756         (define_insn "sse4_1_ptest"): And this ...
13757         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13759 2015-08-05  Richard Biener  <rguenther@suse.de>
13761         PR tree-optimization/67109
13762         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13763         against too big groups.  Print whether this is a load or store
13764         group.  Rename from ...
13765         (vect_analyze_group_access): ... this which is now a wrapper
13766         dissolving an invalid group.
13767         (vect_analyze_data_ref_accesses): Print whether this is a load
13768         or store group.
13770 2015-08-05  Richard Biener  <rguenther@suse.de>
13772         PR middle-end/67107
13773         * match.pd: Guard const_binop result checking against NULL_TREE
13774         result.
13776 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
13778         * cse.c (cse_insn): Restoring old behaviour for src_eqv
13779          when dest and value in the REG_EQUAL are same and dest
13780          is STRICT_LOW_PART.
13782 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
13784         * config/moxie/moxie.h (PRINT_OPERAND,
13785           PRINT_OPERAND_ADDRESS): Remove macros.
13786         * config/moxie/moxie-protos.h (moxie_print_operand,
13787           moxie_print_operand_address): Remove declaration.
13788         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13789           TARGET_PRINT_OPERAND_ADDRESS): Define.
13790           (moxie_print_operand, moxie_print_operand_address): Make static.
13792 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13794         PR target/66731
13795         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13796         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13798 2015-08-04  Richard Biener  <rguenther@suse.de>
13800         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13801         generated code.
13802         (dt_operand::gen_gimple_expr): Adjust.
13804 2015-08-04  Richard Biener  <rguenther@suse.de>
13806         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13807         bool compares on RHS.
13808         * match.pd: Add X ==/!= !X is false/true pattern.
13810 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
13812         * config/aarch64/aarch64.c: Change inner loop statement cost
13813         to be consistent with other targets.
13815 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
13817         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13818         targets.
13820 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
13822         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13823         (machine_function): Remove pseudos field.
13825 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13827         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13828         Exit early and use target_option_current_node if processing current
13829         pragma.
13831 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13833         * doc/extend.texi (AArch64 Function Attributes): New node.
13834         (AArch64 Pragmas): Likewise.
13836 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13838         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13839         Initialize simd builtins if TARGET_SIMD.
13840         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13841         Make sure that the builtins are initialized only once no matter how
13842         many times the function is called.
13843         (aarch64_init_builtins): Unconditionally initialize crc builtins.
13844         (aarch64_relayout_simd_param): New function.
13845         (aarch64_simd_expand_args): Use above during argument expansion.
13846         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13847         simd builtins if TARGET_SIMD.
13848         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13849         prototype.
13850         (aarch64_relayout_simd_types): Likewise.
13852 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13854         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13855         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13856         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13857         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13858         static keyword.
13859         (aarch64_reset_previous_fndecl): New function.
13860         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13861         the string.
13862         * config/aarch64/aarch64-c.c: New file.
13863         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13864         Push and pop options at beginning and end.  Remove ifdef
13865         __ARM_FEATURE_CRC32.
13866         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13867         Add pragma +nothing+simd and +nothing+crypto where appropriate.
13868         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13869         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13870         Define prototype.
13871         (aarch64_register_pragmas): Likewise.
13872         (aarch64_reset_previous_fndecl): Likewise.
13873         (aarch64_process_target_attr): Likewise.
13874         (aarch64_override_options_internal): Likewise.
13876 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13878         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13879         New function.
13880         (aarch64_can_inline_p): Likewise.
13881         (TARGET_CAN_INLINE_P): Define.
13883 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13885         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13886         Remove static.  Handle OPT_mgeneral_regs_only,
13887         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13888         OPT_momit_leaf_frame_pointer.
13889         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13890         (aarch64_attr_opt_type): New enum.
13891         (aarch64_attribute_info): New struct.
13892         (aarch64_handle_attr_arch): New function.
13893         (aarch64_handle_attr_cpu): Likewise.
13894         (aarch64_handle_attr_tune): Likewise.
13895         (aarch64_handle_attr_isa_flags): Likewise.
13896         (aarch64_attributes): New table.
13897         (aarch64_process_one_target_attr): New function.
13898         (num_occurences_in_str): Likewise.
13899         (aarch64_process_target_attr): Likewise.
13900         (aarch64_option_valid_attribute_p): Likewise.
13901         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13902         * config/aarch64/aarch64-protos.h: Include input.h
13903         (aarch64_handle_option): Declare prototype.
13905 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13907         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13908         * config/aarch64/aarch64.c: Include target-globals.h
13909         (aarch64_previous_fndecl): New variable.
13910         (aarch64_set_current_function): New function.
13911         (TARGET_SET_CURRENT_FUNCTION): Define.
13913 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13915         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13916         (explicit_arch): Likewise.
13917         (x_aarch64_isa_flags): Likewise.
13918         (mgeneral-regs-only): Mark as Save.
13919         (mfix-cortex-a53-835769): Likewise.
13920         (mcmodel=): Likewise.
13921         (mstrict-align): Likewise.
13922         (momit-leaf-frame-pointer): Likewise.
13923         (mtls-dialect): Likewise.
13924         (master=): Likewise.
13925         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13926         (aarch64_isa_flags): Remove extern declaration.
13927         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13928         to indicate success or failure.
13929         (aarch64_validate_march): Likewise.
13930         (aarch64_validate_mtune): Likewise.
13931         (aarch64_isa_flags): Delete.
13932         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13933         instead of aarch64_isa_flags.
13934         (aarch64_get_tune_cpu): New function.
13935         (aarch64_get_arch): Likewise.
13936         (aarch64_override_options): Use above and set up explicit_tune_core
13937         and explicit_arch.
13938         (aarch64_print_extension): Move earlier in file.  Add isa_flags
13939         argument and use that instead of the global aarch64_isa_flags.
13940         (aarch64_option_save): New function.
13941         (aarch64_option_restore): Likewise.
13942         (aarch64_option_print): Likewise.
13943         (aarch64_declare_function_name): Likewise.
13944         (aarch64_start_file): Delete.
13945         (TARGET_ASM_FILE_START): Do not define.
13946         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13947         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13948         Declare prototype.
13950 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13952         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13953         flag_omit_leaf_frame_pointer to 2.
13955 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13957         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13958         define to 0 or 1.
13959         (TARGET_FIX_ERR_A53_835769): New macro.
13960         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13961         handling of opts->x_aarch64_fix_a53_err835769.
13962         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13963         than aarch64_fix_a53_err835769.
13964         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13965         * config/aarch64/aarch64-linux.h: Likewise.
13967 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
13969         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13970         ix86_expand_int_movcc as boolean.
13972 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13974         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13975         (aarch64_cpu_string): Likewise.
13976         (aarch64_tune_string): Likewise.
13977         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13978         (aarch64_parse_extension): Return aarch64_parse_opt_result.
13979         Add extra argument to put result into.
13980         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
13981         (aarch64_parse_cpu): Add arguments to put results into. Return
13982         aarch64_parse_opt_result.
13983         (aarch64_parse_tune): Likewise.
13984         (aarch64_override_options_after_change_1): New function.
13985         (aarch64_override_options_internal): New function.
13986         (aarch64_validate_mcpu): Likewise.
13987         (aarch64_validate_march): Likewise.
13988         (aarch64_validate_mtune): Likewise.
13989         (aarch64_override_options): Update to reflect above changes.
13990         Move some logic into aarch64_override_options_internal.
13991         Initialize target_option_default_node and target_option_current_node.
13992         (aarch64_override_options_after_change): Move logic into
13993         aarch64_override_options_after_change_1 and call it with global_options.
13994         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13995         flag values from that.
13997 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13999         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14000         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14001         * config/aarch64/aarch64.c (struct processor): Add arch field.
14002         (all_architectures): Handle above, move above all_cores.
14003         (all_cores): Handle above.
14004         (aarch64_parse_arch): Handle above changes.
14005         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14006         above.  Update comments.
14007         (armv8.1-a): Likewise.
14008         * config/aarch64/aarch64-cores.def: Update according to above.
14009         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14010         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14011         aarch64_arch_driver_info.
14013 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14015         * config/aarch64/aarch64.c (struct processor): Add ident field.
14016         Rename core sched_core.
14017         (all_cores): Handle above changes.
14018         (all_architectures): Likewise.
14019         (aarch64_parse_arch): Likewise.
14020         (aarch64_override_options): Likewise.
14022 2015-08-04  Richard Biener  <rguenther@suse.de>
14024         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14025         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14026         comparisons embedded in [VEC_]COND_EXPRs.
14028 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
14030         * tree-if-conv.c: Fix various typos in comments.
14031         * tree-vect-stmts.c: Likewise.
14033 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14035         PR tree-optimization/67043
14036         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14037         preheader after hoisting invariant in it.
14038         (find_defs): Force recomputation of all luids.
14040 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
14042         * config/rs6000/htm.md (tabort.): Restrict the source operand to
14043         using a base register.
14045 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
14047         * main.c (main): Pass in NULL for toplev's external_timer.
14048         * timevar.c: Include coretypes.h.
14049         (class timer::named_items): New.
14050         (timer::named_items::named_items): New.
14051         (timer::named_items::~named_items): New.
14052         (timer::named_items::push): New.
14053         (timer::named_items::pop): New.
14054         (timer::named_items::print): New.
14055         (timer::timer): Initialize field "m_jit_client_items".
14056         (timer::~timer): New.
14057         (timer::push): Move bulk of implementation to...
14058         (timer::push_internal): ...here.  New function.
14059         (timer::pop): Move bulk of implementation to...
14060         (timer::pop_internal): ...here.  New function.
14061         (timer::push_client_item): New.
14062         (timer::pop_client_item): New.
14063         (timer::print_row): New function, taken from timer::print.
14064         (timer::print): Print "GCC items" header if we also have client
14065         items.  Move row-printing to timer::print_row.  Print any client
14066         items.
14067         (timer::get_topmost_item_name): New method.
14068         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14069         (TV_JIT_CLIENT_CODE): New.
14070         * timevar.h (timer::push_client_item): New declaration.
14071         (timer::pop_client_item): New declaration.
14072         (timer::get_topmost_item_name): New method.
14073         (timer::push_internal): New declaration.
14074         (timer::pop_internal): New declaration.
14075         (timer::print_row): New declaration.
14076         (timer::named_items): New declaration.
14077         (timer::m_jit_client_items): New field.
14078         (timer): Add friend class named_items.
14079         (auto_timevar::auto_timevar): Add timer param.
14080         (auto_timevar::~auto_timevar): Use field "m_timer".
14081         (auto_timevar::m_timer): New field.
14082         * toplev.c (initialize_rtl): Add g_timer as param when
14083         constructing auto_timevar instance.
14084         (toplev::toplev): Add "external_timer" param, and use it to
14085         initialize the "g_timer" global if non-NULL.
14086         (toplev::~toplev): If this created "g_timer", delete it.
14087         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14088         with "external_timer" timer *.
14090 2015-08-03  Alexander Basov <coohpt@gmail.com>
14092         PR middle-end/64744
14093         PR middle-end/48470
14094         PR middle-end/43404
14095         * cfgexpand.c (expand_one_var): Add check if stack is going to
14096         be used in naked function.
14097         * expr.c (expand_expr_addr_expr_1): Remove excess checking
14098         whether expression should not reside in MEM.
14099         * function.c (use_register_for_decl): Do not use registers for
14100         non-register things (volatile, float, BLKMode) in naked functions.
14102 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
14104         PR target/67060
14105         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14106         Adjust splits to match new pattern.
14108 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14110         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14111         (VEC_M): Likewise.
14112         (VEC_N): Likewise.
14113         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14114         point in VSX registers.
14116         * config/rs6000/constraints.md (wb constraint): Document unused
14117         w<x> constraint.
14118         (we constraint): Likewise.
14119         (wo constraint): Likewise.
14120         (wp constraint): New constraint for IEEE 128-bit floating point in
14121         VSX registers.
14122         (wq constraint): Likewise.
14124         * config/rs6000/predicates.md (easy_fp_constant): Add support for
14125         IEEE 128-bit floating point in VSX registers.
14126         (easy_scalar_constant): Likewise.
14128         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14129         constraints (wp, wq) for IEEE 128-bit floating point in VSX
14130         registers.
14131         (rs6000_init_hard_regno_mode_ok): Likewise.
14133         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14134         floating point in VSX registers.
14135         (VSX_L): Likewise.
14136         (VSX_M): Likewise.
14137         (VSX_M2): Likewise.
14138         (VSm): Likewise.
14139         (VSs): Likewise.
14140         (VSr): Likewise.
14141         (VSa): Likewise.
14142         (VSv): Likewise.
14143         (vsx_le_permute_<mode>): Add support to properly swap bytes for
14144         IEEE 128-bit floating point in VSX registers on little endian.
14145         (vsx_le_undo_permute_<mode>): Likewise.
14146         (vsx_le_perm_load_<mode>): Likewise.
14147         (vsx_le_perm_store_<mode>): Likewise.
14148         (splitters for IEEE 128-bit fp moves): Likewise.
14150         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14151         wq constraints.
14153         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14154         floating point in VSX registers.
14155         (VM2): Likewise.
14157         * doc/md.text (Machine Constraints): Document wp and wq
14158         constraints on PowerPC.
14160 2015-08-03  Jeff Law  <law@redhat.com>
14162         PR middle-end/66314
14163         PR gcov-profile/66899
14164         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14165         iterate over the jump threading paths when an element in the
14166         jump threading paths array is eliminated.
14168 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
14170         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14172 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
14174         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14175         is_use_properly_guarded the variable def_preds.  Free its
14176         contents before returning.
14177         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14178         (is_use_properly_guarded): Replace local variable def_preds with
14179         a parameter.  Adjust accordingly.  Only update *def_preds if it's
14180         the empty vector.
14182 2015-08-03  Richard Biener  <rguenther@suse.de>
14184         * genmatch.c (simplify::for_subst_vec): New member.
14185         (binary_ok): New helper for for lowering.
14186         (lower_for): Delay substituting operators into result expressions
14187         if we can merge the results eventually again.
14188         (capture_info::walk_result): Adjust for user_id appearing as
14189         result expression operator.
14190         (expr::gen_transform): Likewise.
14191         (dt_simplify::gen_1): Likewise.
14192         (dt_simplify::gen): Pass not substituted operators to tail
14193         functions or initialize local variable with it.
14194         (decision_tree::gen): Adjust function signature.
14195         * match.pd: Fix tests against global code and add default
14196         cases to switch stmts.
14198 2015-08-03  Richard Biener  <rguenther@suse.de>
14200         * genmatch.c (dt_simplify::gen): Create captures array
14201         with an initializer.
14203 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14205         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14206         the host compiler is affected by placement new aliasing bug.
14207         * configure: Regenerate.
14208         * Makefile.in (ALIASING_FLAGS): New variable.
14209         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14211 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14213         PR target/66731
14214         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14215         (negmulsf3_vfp): Likewise.
14216         (muldf3negdf_vfp): Disable for -frounding-math.
14217         (mulsf3negsf_vfp): Likewise.
14218         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14219         fix MULT cost with -frounding-math.
14221 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14223         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14224         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14225         explicit.  Prefer to add the flag whenever possible.
14226         (noce_process_if_block): Try noce_try_store_flag_constants before
14227         noce_try_cmove.
14229 2015-08-03  Richard Biener  <rguenther@suse.de>
14231         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14232         New hash-map to record equivalent transforms.
14233         (dt_node::analyze): Populate the equivalent transforms hash-map.
14234         (dt_simplify::info): Add reference to hash-map entry.
14235         (dt_simplify::gen): If we have split out a function for the
14236         transform, generate a call to it.
14237         (sinfo_hashmap_traits::hash): New function.
14238         (compare_op): New helper function for ...
14239         (sinfo_hashmap_traits::equal_keys): ... this new function.
14240         (decision_tree::gen): Split out common equivalent transforms
14241         into functions.
14243 2015-08-03  Richard Biener  <rguenther@suse.de>
14245         * gimple-fold.c (fold_gimple_assign): Remove folding of
14246         the comparison in COND_EXPRs.
14248 2015-08-03  Richard Biener  <rguenther@suse.de>
14250         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14251         on the rhs of assignments first simplify the embedded
14252         GENERIC condition.
14254 2015-08-03  Richard Biener  <rguenther@suse.de>
14256         PR tree-optimization/66917
14257         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14258         field.
14259         (DR_VECT_AUX): New macro.
14260         (set_dr_misalignment): Adjust.
14261         (dr_misalignment): Likewise.
14262         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14263         Compute whether the base is at least element aligned.
14264         * tree-vect-stmts.c (ensure_base_align): Adjust.
14265         (vectorizable_store): If the base is not element aligned
14266         preserve alignment of the original access if misalignment is unknown.
14267         (vectorizable_load): Likewise.
14269 2015-08-02  Martin Sebor  <msebor@redhat.com>
14271         * c-family/c.opt (-Wframe-address): New warning option.
14272         * doc/invoke.texi (Wframe-address): Document it.
14273         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14274         Clarify possible effects of calling the functions with non-zero
14275         arguments and mention -Wframe-address.
14276         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14278 2015-08-01  Michael Collison  <michael.collison@linaro.org
14279             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14281         * config/arm/arm.md (*arm_smin_cmp): New pattern.
14282         (*arm_umin_cmp): Likewise.
14284 2015-08-01  Caroline Tice  <cmtice@google.com>
14286         PR 66521
14287         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14288         global variables.
14289         (vtbl_find_mangled_name):  New function.
14290         (vtbl_register_mangled_name):  New function.
14291         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
14292         mangled name in mangled name vectors.
14293         (find_or_create_vtbl_map_node):  Ditto.
14294         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
14295         update recursion_depth on function entry; pass it to every recursive
14296         call; automatically exit if depth > 25 (give up looking at that point).
14297         (verify_bb_vtables):  Initialize recursion_depth and pass it to
14298         var_is_used_for_virtual_call_p.
14299         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14300         global variable decls.
14301         (vtbl_register_mangled_name): New extern function decl.
14303 2015-08-01  Tom de Vries  <tom@codesourcery.com>
14305         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14306         function.
14307         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14308         Declare.
14309         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14310         operation_no_trapping_overflow.  Allow non-overflow operations.
14311         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14312         operations.
14314 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14316         PR target/67049
14317         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14319 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14321         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14322         Enable for TARGET_32BIT.
14323         (*if_move_neg): Likewise.
14325 2015-07-31  Nick Clifton  <nickc@redhat.com>
14327         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14328         Returns true for __model__.
14329         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14331 2015-07-31  Alan Modra  <amodra@gmail.com>
14333         PR target/66870
14334         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14335         (rs6000_emit_prologue): Set it.
14336         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14338 2015-07-31  Richard Biener  <rguenther@suse.de>
14340         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14341         -> X == (C1 ^ C2) which is already implemented in match.pd.
14342         Remove redundant dispatching to fold_relational_const.
14343         Move unordered self and NaN compares ...
14344         * match.pd: ... as patterns here.  Remove some stray captures
14345         and add a comment.
14347 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
14349         * config/i386/i386.c
14350         (bdesc_special_args): Convert mask type from signed to unsigned for
14351         masked builtins.
14352         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14353         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14354         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14355         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14356         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14357         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14358         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14359         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14360         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14361         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14362         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14363         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14364         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14365         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14366         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14367         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14368         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14369         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14370         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14371         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14372         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14373         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14374         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14375         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14376         * config/i386/i386-builtin-types.def
14377         (V16QI_FTYPE_V16SI): Remove.
14378         (V8DF_FTYPE_V8SI): Ditto.
14379         (V8HI_FTYPE_V8DI): Ditto.
14380         (V8SI_FTYPE_V8DI): Ditto.
14381         (V8SF_FTYPE_V8DF): Ditto.
14382         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14383         (V16HI_FTYPE_V16SI): Ditto.
14384         (V16SF_FTYPE_V16HI): Ditto.
14385         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14386         (V16SF_FTYPE_V16SI): Ditto.
14387         (V4DI_FTYPE_V4DI): Ditto.
14388         (V16SI_FTYPE_V16SF): Ditto.
14389         (V16SF_FTYPE_FLOAT): Ditto.
14390         (V8DF_FTYPE_DOUBLE): Ditto.
14391         (V8DI_FTYPE_INT64): Ditto.
14392         (V8DI_FTYPE_V4DI): Ditto.
14393         (V16QI_FTYPE_V8DI): Ditto.
14394         (UINT_FTYPE_V4SF): Ditto.
14395         (UINT64_FTYPE_V4SF): Ditto.
14396         (UINT_FTYPE_V2DF): Ditto.
14397         (UINT64_FTYPE_V2DF): Ditto.
14398         (V16SI_FTYPE_V16SI): Ditto.
14399         (V8DI_FTYPE_V8DI): Ditto.
14400         (V16SI_FTYPE_PV4SI): Ditto.
14401         (V16SF_FTYPE_PV4SF): Ditto.
14402         (V8DI_FTYPE_PV2DI): Ditto.
14403         (V8DF_FTYPE_PV2DF): Ditto.
14404         (V4DI_FTYPE_PV2DI): Ditto.
14405         (V4DF_FTYPE_PV2DF): Ditto.
14406         (V16SI_FTYPE_PV2SI): Ditto.
14407         (V16SF_FTYPE_PV2SF): Ditto.
14408         (V8DI_FTYPE_PV4DI): Ditto.
14409         (V8DF_FTYPE_PV4DF): Ditto.
14410         (V8SF_FTYPE_FLOAT): Ditto.
14411         (V4SF_FTYPE_FLOAT): Ditto.
14412         (V4DF_FTYPE_DOUBLE): Ditto.
14413         (V8SF_FTYPE_PV4SF): Ditto.
14414         (V8SI_FTYPE_PV4SI): Ditto.
14415         (V4SI_FTYPE_PV2SI): Ditto.
14416         (V8SF_FTYPE_PV2SF): Ditto.
14417         (V8SI_FTYPE_PV2SI): Ditto.
14418         (V16SF_FTYPE_PV8SF): Ditto.
14419         (V16SI_FTYPE_PV8SI): Ditto.
14420         (V8DI_FTYPE_V8SF): Ditto.
14421         (V4DI_FTYPE_V4SF): Ditto.
14422         (V2DI_FTYPE_V4SF): Ditto.
14423         (V64QI_FTYPE_QI): Ditto.
14424         (V32HI_FTYPE_HI): Ditto.
14425         (V8UHI_FTYPE_V8UHI): Ditto.
14426         (V16UHI_FTYPE_V16UHI): Ditto.
14427         (V32UHI_FTYPE_V32UHI): Ditto.
14428         (V2UDI_FTYPE_V2UDI): Ditto.
14429         (V4UDI_FTYPE_V4UDI): Ditto.
14430         (V8UDI_FTYPE_V8UDI): Ditto.
14431         (V4USI_FTYPE_V4USI): Ditto.
14432         (V8USI_FTYPE_V8USI): Ditto.
14433         (V16USI_FTYPE_V16USI): Ditto.
14434         (V2DF_FTYPE_V2DF_UINT64): Ditto.
14435         (V2DI_FTYPE_V2DF_V2DF): Ditto.
14436         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14437         (V8DF_FTYPE_V8DF_V8DI): Ditto.
14438         (V4SF_FTYPE_V4SF_UINT64): Ditto.
14439         (V4SI_FTYPE_V4SF_V4SF): Ditto.
14440         (V16SF_FTYPE_V16SF_V16SI): Ditto.
14441         (V64QI_FTYPE_V32HI_V32HI): Ditto.
14442         (V32HI_FTYPE_V16SI_V16SI): Ditto.
14443         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14444         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14445         (V32HI_FTYPE_V64QI_V64QI): Ditto.
14446         (V32HI_FTYPE_V32HI_V32HI): Ditto.
14447         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14448         (V16SI_FTYPE_V16SI_V4SI): Ditto.
14449         (V16SI_FTYPE_V16SI_V16SI): Ditto.
14450         (V16SI_FTYPE_V32HI_V32HI): Ditto.
14451         (V16SI_FTYPE_V16SI_SI): Ditto.
14452         (V8DI_FTYPE_V8DI_V8DI): Ditto.
14453         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14454         (V8DI_FTYPE_V16SI_V16SI): Ditto.
14455         (V8DI_FTYPE_V8DI_V2DI): Ditto.
14456         (QI_FTYPE_QI): Ditto.
14457         (SI_FTYPE_SI): Ditto.
14458         (DI_FTYPE_DI): Ditto.
14459         (QI_FTYPE_QI_QI): Ditto.
14460         (QI_FTYPE_QI_INT): Ditto.
14461         (HI_FTYPE_HI_INT): Ditto.
14462         (SI_FTYPE_SI_INT): Ditto.
14463         (DI_FTYPE_DI_INT): Ditto.
14464         (HI_FTYPE_V16QI_V16QI): Ditto.
14465         (SI_FTYPE_V32QI_V32QI): Ditto.
14466         (DI_FTYPE_V64QI_V64QI): Ditto.
14467         (QI_FTYPE_V8HI_V8HI): Ditto.
14468         (HI_FTYPE_V16HI_V16HI): Ditto.
14469         (SI_FTYPE_V32HI_V32HI): Ditto.
14470         (QI_FTYPE_V4SI_V4SI): Ditto.
14471         (QI_FTYPE_V8SI_V8SI): Ditto.
14472         (QI_FTYPE_V2DI_V2DI): Ditto.
14473         (QI_FTYPE_V4DI_V4DI): Ditto.
14474         (QI_FTYPE_V8DI_V8DI): Ditto.
14475         (HI_FTYPE_V16SI_V16SI): Ditto.
14476         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14477         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14478         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14479         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14480         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14481         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14482         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14483         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14484         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14485         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14486         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14487         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14488         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14489         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14490         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14491         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14492         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14493         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14494         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14495         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14496         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14497         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14498         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14499         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14500         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14501         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14502         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14503         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14504         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14505         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14506         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14507         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14508         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14509         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14510         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14511         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14512         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14513         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14514         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14515         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14516         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14517         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14518         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14519         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14520         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14521         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14522         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14523         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14524         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14525         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14526         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14527         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14528         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14529         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14530         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14531         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14532         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14533         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14534         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14535         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14536         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14537         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14538         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14539         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14540         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14541         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14542         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14543         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14544         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14545         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14546         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14547         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14548         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14549         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14550         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14551         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14552         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14553         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14554         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14555         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14556         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14557         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14558         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14559         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14560         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14561         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14562         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14563         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14564         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14565         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14566         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14567         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14568         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14569         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14570         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14571         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14572         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14573         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14574         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14575         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14576         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14577         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14578         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14579         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14580         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14581         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14582         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14583         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14584         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14585         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14586         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14587         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14588         (HI_FTYPE_HI): Ditto.
14589         (HI_FTYPE_V16QI): Ditto.
14590         (SI_FTYPE_V32QI): Ditto.
14591         (DI_FTYPE_V64QI): Ditto.
14592         (QI_FTYPE_V8HI): Ditto.
14593         (HI_FTYPE_V16HI): Ditto.
14594         (SI_FTYPE_V32HI): Ditto.
14595         (QI_FTYPE_V4SI): Ditto.
14596         (QI_FTYPE_V8SI): Ditto.
14597         (HI_FTYPE_V16SI): Ditto.
14598         (QI_FTYPE_V2DI): Ditto.
14599         (QI_FTYPE_V4DI): Ditto.
14600         (QI_FTYPE_V8DI): Ditto.
14601         (V16QI_FTYPE_HI): Ditto.
14602         (V32QI_FTYPE_SI): Ditto.
14603         (V64QI_FTYPE_DI): Ditto.
14604         (V8HI_FTYPE_QI): Ditto.
14605         (V16HI_FTYPE_HI): Ditto.
14606         (V32HI_FTYPE_SI): Ditto.
14607         (V4SI_FTYPE_QI): Ditto.
14608         (V4SI_FTYPE_HI): Ditto.
14609         (V8SI_FTYPE_QI): Ditto.
14610         (V8SI_FTYPE_HI): Ditto.
14611         (V2DI_FTYPE_QI): Ditto.
14612         (V4DI_FTYPE_QI): Ditto.
14613         (HI_FTYPE_HI_HI): Ditto.
14614         (SI_FTYPE_SI_SI): Ditto.
14615         (DI_FTYPE_DI_DI): Ditto.
14616         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14617         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14618         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14619         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14620         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14621         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14622         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14623         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14624         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14625         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14626         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14627         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14628         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14629         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14630         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14631         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14632         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14633         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14634         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14635         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14636         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14637         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14638         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14639         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14640         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14641         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14642         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14643         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14644         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14645         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14646         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14647         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14648         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14649         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14650         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14651         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14652         (V16SI_FTYPE_HI): Ditto.
14653         (V8DI_FTYPE_QI): Ditto.
14654         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14655         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14656         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14657         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14658         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14659         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14660         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14661         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14662         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14663         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14664         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14665         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14666         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14667         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14668         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14669         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14670         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14671         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14672         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14673         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14674         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14675         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14676         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14677         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14678         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14679         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14680         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14681         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14682         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14683         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14684         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14685         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14686         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14687         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14688         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14689         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14690         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14691         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14692         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14693         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14694         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14695         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14696         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14697         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14698         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14699         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14700         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14701         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14702         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14703         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14704         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14705         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14706         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14707         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14708         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14709         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14710         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14711         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14712         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14713         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14714         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14715         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14716         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14717         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14718         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14719         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14720         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14721         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14722         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14723         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14724         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14725         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14726         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14727         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14728         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14729         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14730         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14731         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14732         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14733         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14734         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14735         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14736         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14737         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14738         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14739         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14740         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14741         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14742         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14743         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14744         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14745         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14746         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14747         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14748         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14749         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14750         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14751         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14752         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14753         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14754         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14755         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14756         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14757         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14758         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14759         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14760         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14761         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14762         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14763         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14764         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14765         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14766         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14767         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14768         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14769         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14770         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14771         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14772         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14773         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14774         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14775         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14776         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14777         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14778         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14779         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14780         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14781         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14782         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14783         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14784         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14785         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14786         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14787         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14788         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14789         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14790         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14791         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14792         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14793         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14794         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14795         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14796         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14797         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14798         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14799         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14800         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14801         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14802         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14803         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14804         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14805         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14806         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14807         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14808         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14809         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14810         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14811         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14812         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14813         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14814         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14815         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14816         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14817         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14818         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14819         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14820         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14821         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14822         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14823         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14824         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14825         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14826         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14827         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14828         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14829         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14830         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14831         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14832         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14833         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14834         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14835         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14836         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14837         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14838         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14839         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14840         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14841         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14842         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14843         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14844         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14845         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14846         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14847         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14848         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14849         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14850         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14851         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14852         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14853         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14854         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14855         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14856         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14857         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14858         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14859         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14860         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14861         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14862         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14863         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14864         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
14865         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14866         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14867         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14868         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14869         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14870         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14871         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14872         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14873         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14874         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14875         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14876         (QI_FTYPE_V8DF_INT_QI): Ditto.
14877         (QI_FTYPE_V4DF_INT_QI): Ditto.
14878         (QI_FTYPE_V2DF_INT_QI): Ditto.
14879         (HI_FTYPE_V16SF_INT_HI): Ditto.
14880         (QI_FTYPE_V8SF_INT_QI): Ditto.
14881         (QI_FTYPE_V4SF_INT_QI): Ditto.
14882         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14884 2015-07-31  Richard Biener  <rguenther@suse.de>
14886         * gimple-fold.c (fold_gimple_assign): Remove folding of
14887         GIMPLE_BINARY_RHS.
14889 2015-07-31  Tom de Vries  <tom@codesourcery.com>
14891         PR tree-optimization/66846
14892         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14893         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14894         (expand_omp_target) [ENABLE_CHECKING]: Same.
14895         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14896         cfun if !LOOPS_NEED_FIXUP.
14897         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
14898         that omp_for already has its own loop struct.
14899         * tree-parloops.c (create_phi_for_local_result)
14900         (create_call_for_reduction): Handle simple latch bb.
14901         (create_parallel_loop): Add simple latch bb to preserve
14902         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
14903         (gen_parallel_loop): Remove call to cancel_loop_tree.
14904         (parallelize_loops): Skip loops that are inner loops of parallelized
14905         loops.
14906         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14907         verify_loop_structure.
14909 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
14911         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14912         * config/v850/v850.md (RV_REGNUM): New constants.
14913         * config/v850/v850.c (v850_libcall_value): New functions.
14914         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14915         (TARGET_LIBCALL_VALUE): Define.
14917 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
14919         * rtl.h (lowpart_subreg): Move in file.
14920         * loop-iv.c (lowpart_subreg): Move to...
14921         * simplify-rtx.c (lowpart_subreg): ...here.
14922           (simplify_binary_operation_1): Use lowpart_subreg instead of
14923           simplify_gen_subreg.
14924         * expr.c (expand_expr_real_2): Ditto.
14925         * emit-rtl.c (gen_lowpart_common): Ditto.
14926         * combine.c (gen_lowpart_for_combine): Ditto.
14927         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14928           expand_debug_source_expr): Ditto.
14930 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
14932         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14933         (expand_builtin_atomic_clear): Remove support for atomic_clear
14934         pattern.
14936 2015-07-30  Richard Biener  <rguenther@suse.de>
14938         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14939         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14940         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
14941         redundant operand canonicalization.
14943 2015-07-30  David Sherwood  <david.sherwood@arm.com>
14945         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14946         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14947         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14948         * config/arm/arm.c (neon_valid_immediate): Likewise.
14949         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14950         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14951         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14952         (expand_vec_perm_vpshufb2_vpermq): Likewise.
14953         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14954         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14955         * config/i386/sse.md
14956         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14957         (*ssse3_palignr<mode>_perm): Likewise.
14958         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14959         * config/spu/spu.c (arith_immediate_p): Likewise.
14960         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14961         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14963 2015-07-30  Richard Biener  <rguenther@suse.de>
14965         * genmatch.c (decision_tree::gen_gimple): Merge with ...
14966         (decision_tree::gen_generic): ... this into ...
14967         (decision_tree::gen): ... this.
14968         (main): Adjust callers.
14970 2015-07-30  Richard Biener  <rguenther@suse.de>
14972         * genmatch.c (verbose): New global.
14973         (warning_at): Add overload with source_location.
14974         (capture_info::capture_info): Add bool whether generating gimple
14975         or generic.  Add gimple member.
14976         (capture_info::cinfo): Add capture member.
14977         (capture_info::walk_match): Record capture.  Warn on
14978         non-captured leafs.
14979         (capture_info::walk_c_expr): Add more fragments captures cannot
14980         escape through.  Warn on escaped captures.
14981         (dt_simplify::gen_1): Warn on operands we force to have no
14982         side-effects.
14983         (main): Initialize verbose.
14984         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14986 2015-07-30  Richard Biener  <rguenther@suse.de>
14988         PR middle-end/67053
14989         * match.pd: Allow both operands to independently have conversion
14990         when simplifying compares of addresses.
14992 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
14994         PR target/66217
14995         PR target/67045
14996         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14997         around those cases that need one.
14999 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
15001         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15003 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
15005         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15006         New.  Copied from config/i386/gnu-user.h.
15007         (ASM_COMMENT_START): Likewise.
15008         (DBX_REGISTER_NUMBER): Likewise.
15010 2015-07-29  Richard Biener  <rguenther@suse.de>
15012         * gimple-fold.c (fold_gimple_cond): Remove.
15013         (fold_stmt_1): Do not call it.
15015 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
15017         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15018         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15020         * config/aarch64/aarch64-modes.def: Add HFmode.
15022         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15023         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15025         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15026         aarch64_promoted_type): New.
15028         (aarch64_float_const_representable_p): Disable HFmode.
15029         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15030         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15031         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15033         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15034         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15036         * config/aarch64/iterators.md (GPF_F16): New.
15038 2015-07-29  Richard Biener  <rguenther@suse.de>
15040         * match.pd: Merge address comparison patterns and make them
15041         handle some more cases.
15043 2015-07-29  Richard Biener  <rguenther@suse.de>
15045         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15046         (parser::parse_capture): Add bool argument on whether to reject
15047         unknown captures.
15048         (parser::parse_expr): Adjust.
15049         (parser::parse_op): Likewise.
15050         (parser::parse_pattern): Likewise.
15052 2015-07-29  Richard Biener  <rguenther@suse.de>
15054         * gimple-fold.c (has_use_on_stmt): New function.
15055         (replace_stmt_with_simplification): Use it to allow
15056         abnormals originally referenced in the stmt.
15057         (fold_stmt_1): Canonicalize operand order.
15059 2015-07-28  David Sherwood  <david.sherwood@arm.com>
15061         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15062         GET_MODE_INNER unconditionally.
15063         * config/spu/spu.c (arith_immediate_p): Likewise.
15064         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15065         * expmed.c (synth_mult): Remove check for VOIDmode result from
15066         GET_MODE_INNER.
15067         (expand_mult_const): Likewise.
15068         * fold-const.c (fold_binary_loc): Replace call to element_precision
15069         with call to GET_MODE_PRECISION.
15070         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15071         m->name.
15072         (emit_mode_inner): Likewise.
15073         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15074         result check.
15075         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15076         (GET_MODE_UNIT_PRECISION): Likewise.
15077         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15078         * simplify-rtx.c (simplify_immed_subreg): Likewise.
15079         * stor-layout.c (bitwise_type_for_mode): Update assert.
15080         (element_precision): Remove.
15082 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15084         * target-insns.def (reload_load_address): New targetm instruction
15085         pattern.
15086         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15088 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15090         * target-insns.def (atomic_test_and_set): New targetm instruction
15091         pattern.
15092         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15093         HAVE_*/gen_* interface.
15095 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15097         * target-insns.def (can_extend, ptr_extend): New targetm instruction
15098         patterns.
15099         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15100         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15101         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15102         * rtlanal.c (nonzero_bits1): Likewise.
15103         (num_sign_bit_copies1): Likewise.
15105 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15107         * target-insns.def (eh_return): New targetm instruction pattern.
15108         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15109         interface.
15110         * function.c (thread_prologue_and_epilogue_insns): Remove
15111         preprocessor condition.
15113 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15115         * target-insns.def (indirect_jump): New targetm instruction pattern.
15116         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15117         interface.
15119 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
15121         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15122         instead of nonimmediate_operand.  Remove C condiition.
15124 2015-07-28  Richard Biener  <rguenther@suse.de>
15126         * match.pd: Add more simplification of address comparisons.
15128 2015-07-28  Richard Biener  <rguenther@suse.de>
15130         * match.pd: Re-order two cases in comparison with max/min
15131         value simplification to make it apply for bools.
15133 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15135         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15136         Handle simple SIGN_EXTEND or ZERO_EXTEND.
15137         (aarch64_rtx_costs): Properly strip extend or extract before
15138         passing down to rtx costs again.
15140 2015-07-28  Nick Clifton  <nickc@redhat.com>
15142         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15143         Optimizes the case where -mes0 is active and a constant symbolic
15144         address is used.
15145         * config/rl78/rl78-protos.h: Prototype the new function.
15146         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15148 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15150         * tree-parloops.c (reduc_stmt_res): New function.
15151         (initialize_reductions, add_field_for_reduction)
15152         (create_phi_for_local_result, create_loads_for_reductions)
15153         (create_stores_for_reduction, build_new_reduction): Handle case that
15154         reduc_stmt is a phi.
15155         (gather_scalar_reductions): Allow double_reduc reductions.
15157 2015-07-28  Richard Biener  <rguenther@suse.de>
15159         * fold-const.c (fold_comparison): Remove equality folding
15160         of decl addresses ...
15161         * match.pd: ... here and merge with existing pattern.
15163 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15165         PR tree-optimization/66828
15166         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15167         from int64_t to uint64_t.
15169 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15171         * opts-common.c (read_cmdline_option): List DriverOnly enum values
15172         as valid only in the error message of the driver, not in the
15173         messages of the language compilers.
15175 2015-07-27  Tom de Vries  <tom@codesourcery.com>
15177         * tree-parloops.c (gather_scalar_reductions): Simplify function
15178         structure.
15180 2015-07-27  Marek Polacek  <polacek@redhat.com>
15182         * ipa-devirt.c (types_same_for_odr): Fix typo.
15184 2015-07-27  Jason Merrill  <jason@redhat.com>
15186         PR debug/66468
15187         * dwarf2out.c (gen_inlined_subroutine_die): Check
15188         cgraph_function_possibly_inlined_p.
15190 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
15192         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15193         Place integer variant first.
15194         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15196 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
15198         PR/63870
15199         * config/arm/arm-builtins.c (enum arm_builtins):
15200         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15201         (ARM_BUILTIN_NEON_BASE): Rename macro to....
15202         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15203         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15204         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15206 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
15208         PR/63870
15209         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15210         Add qualifier_lane_index.
15211         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15212         (arm_getlane_qualifiers): Use qualifier_lane_index.
15213         (arm_lanemac_qualifiers): Rename to...
15214         (arm_mac_n_qualifiers): ...this.
15215         (LANEMAC_QUALIFIERS): Rename to...
15216         (MAC_N_QUALIFIERS): ...this.
15217         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15218         (arm_setlane_qualifiers): Use qualifier_lane_index.
15219         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15220         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15221         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15222         (arm_expand_neon_builtin): Handle qualifier_lane_index.
15224         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15225         * config/arm/arm.c (bounds_check): Likewise, improve error message.
15226         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15227         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15228         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15229         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15230         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15231         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15232         qualifiers to TERNOP_IMM.
15233         (vdup_lane): Change qualifiers to GETLANE.
15234         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15235         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15236         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15237         vqdmlsl_n): Change qualifiers to MAC_N.
15239         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15240         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15241         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15242         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15243         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15244         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15245         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15246         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15247         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15248         Remove call to neon_lane_bounds.
15250 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
15252         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15253         Place integer variant first.
15255 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
15257         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15258         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15259         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15260         for armv6kz targets.
15261         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15262         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15263         (FL_FOR_ARCH6ZK): Remove.
15264         (FL_FOR_ARCH6KZ): New.
15265         (arm_arch6zk): New declaration.
15266         * config/arm/arm-tables.opt: Regenerate.
15267         * config/arm/arm.c (arm_arch6kz): New.
15268         (arm_option_override): Set arm_arch6kz.
15269         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15270         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15271         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15273 2015-07-27  Marek Polacek  <polacek@redhat.com>
15275         PR c++/66555
15276         PR c/54979
15277         * doc/invoke.texi: Document -Wtautological-compare.
15279 2015-07-27  Richard Biener  <rguenther@suse.de>
15281         * genmatch.c (decision_tree::gen_gimple): Split out large
15282         subtrees into separate functions.
15283         (decision_tree::gen_generic): Likewise.
15285 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
15287         * config/alpha/alpha.c: Use SUBREG_P predicate.
15288         * config/alpha/predicates.md: Ditto.
15290 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15292         * config.host (s390*-*-*): Include driver-native.c only when
15293         building with s390* as host *and* target.
15295 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
15297         PR target/66930
15298         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15299         T bit register modified_between_p check.
15301 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15303         * config/i386/i386.c: Use SUBREG_P predicate.
15304         * config/i386/i386.md: Ditto.
15305         * config/i386/sse.md: Ditto.
15306         * config/i386/predicates.md: Ditto.
15308 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15310         PR target/67004
15311         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15312         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15314 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15316         * Makefile.in: Remove use of TREEBROWSER.
15317         * config.in: Regenerated.
15318         * configure: Regenerated.
15319         * configure.ac: Remove definition of TREEBROWSER.
15320         * tree-browser.c: Removed.
15321         * tree-browser.def: Removed.
15323 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15325         * graphite-scop-detection.c: Include gimple-pretty-print.h.
15326         (stmt_simple_for_scop_p): Print when a stmt is not handled in
15327         Graphite.
15328         (scopdet_basic_block_info): Print when a loop or bb cannot be
15329         represented in Graphite.
15331 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15333         PR target/66648
15334         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15335         execution guard when min_size is less than size_needed.
15337 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
15339         * doc/install.texi: Document supported versions of ISL.
15341 2015-07-25  Jeff Law  <law@redhat.com>
15343         Revert:
15344         PR lto/66752
15345         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15346         unable to find X NE 0 in the tables, return X as the simplified
15347         condition.
15348         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15349         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15350         to VISISTED_BBS.  */
15351         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15352         after removing the control flow statement and unnecessary edges.
15354 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
15356         Revert:
15357         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15359         PR rtl-optimization/64164
15360         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15361         * tree-ssa-copyrename.c: Removed.
15362         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15363         -ftree-coalesce-vars.
15364         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15365         * common.opt (ftree-copyrename): Ignore.
15366         (ftree-coalesce-inlined-vars): Likewise.
15367         * doc/invoke.texi: Remove the ignored options above.
15368         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15369         * tree-ssa-coalesce.h: ... here.
15370         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15371         headers required by it.
15372         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15373         across variables when flag_tree_coalesce_vars.  Check register
15374         use and promoted modes to allow coalescing.  Moved to
15375         tree-ssa-coalesce.c.
15376         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15377         with its member functions to tree-ssa-coalesce.c.
15378         (var_map_base_init): Likewise.  Renamed to
15379         compute_samebase_partition_bases.
15380         (partition_view_normal): Drop want_bases parameter.
15381         (partition_view_bitmap): Likewise.
15382         * tree-ssa-live.h: Adjust declarations.
15383         * tree-ssa-coalesce.c: Include explow.h.
15384         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15385         default defs at the entry point.
15386         (dump_part_var_map): New.
15387         (compute_optimized_partition_bases): New, called by...
15388         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15389         of compute_samebase_partition_bases.  Adjust.
15390         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15391         * cfgexpand.c (leader_merge): New.
15392         (get_rtl_for_parm_ssa_default_def): New.
15393         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15394         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15395         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15396         redundant MEM attr setting.
15397         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15398         from...
15399         (expand_one_stack_var): ... this.  New wrapper to check and
15400         skip already expanded SSA partitions.
15401         (record_alignment_for_reg_var): New, factored out of...
15402         (expand_one_var): ... this.
15403         (expand_one_ssa_partition): New.
15404         (adjust_one_expanded_partition_var): New.
15405         (expand_one_register_var): Check and skip already expanded SSA
15406         partitions.
15407         (expand_used_vars): Don't create DECLs for anonymous SSA
15408         names.  Expand all SSA partitions, then adjust all SSA names.
15409         (pass::execute): Replace the loops that set
15410         SA.partition_to_pseudo from partition leaders and cleared
15411         DECL_RTL for multi-location variables, and that which used to
15412         rename vars and set attrs, with one that clears DECL_RTL and
15413         checks that PARMs and RESULTs default_defs match DECL_RTL.
15414         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15415         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15416         * explow.c (promote_ssa_mode): New.
15417         * explow.h (promote_ssa_mode): Declare.
15418         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15419         * function.c: Include cfgexpand.h.
15420         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15421         (use_register_for_parm_decl): Wrapper for the above to
15422         special-case the result_ptr.
15423         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15424         (split_complex_args): Take assign_parm_data_all argument.
15425         Pass it to rtl_for_parm.  Set up rtl and context for split
15426         args.
15427         (assign_parms_augmented_arg_list): Adjust.
15428         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15429         multiple locations.  Recognize split complex args.
15430         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15431         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15432         (assign_parm_setup_block): Prefer SSA-assigned location.
15433         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15434         if stack_parm is NULL.
15435         (assign_parm_setup_stack): Prefer SSA-assigned location.
15436         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15437         rtl before testing for pointer bounds.  Special-case result_ptr.
15438         (expand_function_start): Maybe reset DECL_RTL of result.
15439         Prefer SSA-assigned location for result and static chain.
15440         Factor out DECL_RESULT and SET_DECL_RTL.
15441         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15442         anonymous SSA names.  Use promote_ssa_mode.
15443         (get_temp_reg): Likewise.
15444         (remove_ssa_form): Adjust.
15445         * stor-layout.c (layout_decl): Don't set mem attributes of
15446         non-MEMs.
15447         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15448         and get its reg_usage for reg invalidation.
15449         (compute_bb_dataflow): Pass it insn.
15450         (emit_notes_in_bb): Likewise.
15452 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
15454         * config/i386/i386.c (ix86_va_start): Remove
15455         unneeded !TARGET_64BIT check.
15456         (ix86_gimplify_va_arg): Ditto.
15458 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15460         * graphite-sese-to-poly.c (build_poly_scop): Always call
15461         rewrite_commutative_reductions_out_of_ssa.
15463 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15465         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15466         flag_associative_math to FLOAT_TYPE_P.  Honour
15467         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15469 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15471         PR c++/64079
15472         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15473         and "%qD" in warning_at instead of "%q+D" in warning.
15475 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15477         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15478         (ix86_function_abi): Cleanup.
15480 2015-07-24  Michael Darling  <darlingm@gmail.com>
15482         PR other/66259
15483         * acinclude.m4: Reflects renaming of configure.in to configure.ac
15484         * configure: Likewise
15485         * configure.ac: Likewise
15486         * doc/install.texi: Likewise
15487         * doc/tm.texi: Likewise
15488         * doc/tm.texi.in: Likewise
15490 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15492         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15493         manually swapping values.
15494         * cse.c (fold_rtx): Likewise.
15495         * lra-eliminations.c (form_sum): Likewise.
15497 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
15499         PR target/64003
15500         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15501         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15502         (*jcc_1, *jcc_2, jump, simple_return_internal)
15503         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15504         Set length_nobnd attribute instead of length attribute.
15505         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15506         (length_nobnd): Remove attribute.
15507         (length): Remove length_nobnd processing.
15509 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
15511         * gimplify.c (omp_default_clause): New function.  Reorganize flow
15512         for clarity. Broken out of ...
15513         (omp_notice_variable): ... here.
15515 2015-07-24  Gary Funck  <gary@intrepid.com>
15517         PR middle-end/66984
15518         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15519         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15521 2015-07-24  Tom de Vries  <tom@codesourcery.com>
15523         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15524         exit-first loop transform.
15526 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15528         PR 66714
15529         * tree-cfg.c (struct replace_decls_d): New struct.
15530         (replace_block_vars_by_duplicates_1): New function.
15531         (replace_block_vars_by_duplicates): Use it to replace the decls
15532         in the value exprs by duplicates.
15534 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15536         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15537         -shared, -symbolic, -rdynamic.
15539 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15541         PR target/65711
15542         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15543         -dynamic-linker within %{!static %{!shared, and -rdynamic within
15544         %{!static.
15546 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15548         PR ipa/66566
15549         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15550         edge summary is available.
15552 2015-07-24  Richard Biener  <rguenther@suse.de>
15554         * genmatch.c (struct dt_node): Add statistic fields.
15555         (dt_node::analyze): New method.
15556         (decision_tree::gen_gimple): Call analyze on the root node
15557         and print statistics to stderr.
15558         (decision_tree::gen_generic): Likewise.
15560 2015-07-24  Richard Biener  <rguenther@suse.de>
15562         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15563         against the highest or lowest possible integer ...
15564         * match.pd: ... as patterns here.
15566 2015-07-24  Richard Biener  <rguenther@suse.de>
15568         * genmatch.c (struct capture_info): Add same_as field.
15569         (capture_info::capture_info): Initialize same_as.
15570         (capture_info::walk_match): Compute same_as.
15571         (capture_info::walk_result): Compute stuff for the leader.
15572         (capture_info::walk_c_expr): Likewise.
15573         (dt_simplify::gen_1): Only look at leaders when deciding
15574         to force no side-effects or emit side-effects of omitted operands.
15576 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15578         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15579         reg note to the GPR -> FPR save instructions.
15581 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15583         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15584         cheaper.
15585         (s390_expand_insv): Don't generate risbg pattern for constant zero
15586         sources.
15587         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15588         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
15589         splitters.
15591 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15593         * config/s390/s390.c (s390_reorg): Clean up handling of processors
15594         with
15595         -mtune=
15596         (s390_issue_rate): Likewise.
15597         (s390_sched_reorder): Likewise.
15598         (s390_sched_variable_issue): Likewise.
15599         (s390_loop_unroll_adjust): Likewise.
15600         (s390_option_override):  Likewise.
15602 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15604         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15605         processor capabilities with -march=native.
15606         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15607         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
15608         (S390_TARGET_BITS_STRING): Macro to simplify specs.
15610 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15612         * config/s390/s390.c (s390_issue_rate): Handle
15613         PROCESSOR_2094_Z9_EC.
15614         (s390_option_override): Likewise.
15615         (s390_adjust_priority): Likewise.
15617 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15619         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15620         when cross compiling.
15622 2015-07-24  Richard Biener  <rguenther@suse.de>
15624         * fold-const.c (maybe_canonicalize_comparison_1): Move
15625         A code CST canonicalization ...
15626         * match.pd: ... to a pattern here.
15628 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
15630         Revert:
15631         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
15632         PR target/63521
15633         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15634         (HONOR_REG_ALLOC_ORDER): Define.
15636 2015-07-24  Richard Biener  <rguenther@suse.de>
15638         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15639         * fold-const.c (fold_comparison): Move parameter does not
15640         alias &local simplification ...
15641         * match.pd: ... as a pattern here.
15643 2015-07-24  Richard Biener  <rguenther@suse.de>
15645         * gimple-fold.c (replace_stmt_with_simplification): Special-case
15646         valueizing call operands.
15647         * gimple-match-head.c (maybe_push_res_to_seq): Take
15648         number of call arguments from ops array.
15649         (do_valueize): New function.
15650         (gimple_simplify): Return true if valueization changed
15651         any operand even if the result didn't simplify further.
15653 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15655         PR middle-end/25530
15656         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15658 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15660         PR middle-end/25529
15661         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15663 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15665         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15666         instruction.
15668 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15670         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15671         clean up.
15673 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
15675         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15676         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
15677         targets here.
15678         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15679         ms_va_list_type_node initialization.
15681 2015-07-23  Jeff Law  <law@redhat.com>
15683         PR lto/66752
15684         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15685         unable to find X NE 0 in the tables, return X as the simplified
15686         condition.
15687         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15688         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15689         to VISISTED_BBS.  */
15690         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15691         after removing the control flow statement and unnecessary edges.
15693 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15695         * tree-pass.h (get_current_pass_name): Removed.
15697 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
15699         PR rtl-optimization/64164
15700         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15701         * tree-ssa-copyrename.c: Removed.
15702         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15703         -ftree-coalesce-vars.
15704         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15705         * common.opt (ftree-copyrename): Ignore.
15706         (ftree-coalesce-inlined-vars): Likewise.
15707         * doc/invoke.texi: Remove the ignored options above.
15708         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15709         * tree-ssa-coalesce.h: ... here.
15710         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15711         headers required by it.
15712         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15713         across variables when flag_tree_coalesce_vars.  Check register
15714         use and promoted modes to allow coalescing.  Moved to
15715         tree-ssa-coalesce.c.
15716         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15717         with its member functions to tree-ssa-coalesce.c.
15718         (var_map_base_init): Likewise.  Renamed to
15719         compute_samebase_partition_bases.
15720         (partition_view_normal): Drop want_bases parameter.
15721         (partition_view_bitmap): Likewise.
15722         * tree-ssa-live.h: Adjust declarations.
15723         * tree-ssa-coalesce.c: Include explow.h.
15724         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15725         default defs at the entry point.
15726         (dump_part_var_map): New.
15727         (compute_optimized_partition_bases): New, called by...
15728         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15729         of compute_samebase_partition_bases.  Adjust.
15730         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15731         * cfgexpand.c (leader_merge): New.
15732         (get_rtl_for_parm_ssa_default_def): New.
15733         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15734         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15735         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15736         redundant MEM attr setting.
15737         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15738         from...
15739         (expand_one_stack_var): ... this.  New wrapper to check and
15740         skip already expanded SSA partitions.
15741         (record_alignment_for_reg_var): New, factored out of...
15742         (expand_one_var): ... this.
15743         (expand_one_ssa_partition): New.
15744         (adjust_one_expanded_partition_var): New.
15745         (expand_one_register_var): Check and skip already expanded SSA
15746         partitions.
15747         (expand_used_vars): Don't create DECLs for anonymous SSA
15748         names.  Expand all SSA partitions, then adjust all SSA names.
15749         (pass::execute): Replace the loops that set
15750         SA.partition_to_pseudo from partition leaders and cleared
15751         DECL_RTL for multi-location variables, and that which used to
15752         rename vars and set attrs, with one that clears DECL_RTL and
15753         checks that PARMs and RESULTs default_defs match DECL_RTL.
15754         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15755         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15756         * explow.c (promote_ssa_mode): New.
15757         * explow.h (promote_ssa_mode): Declare.
15758         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15759         * function.c: Include cfgexpand.h.
15760         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15761         (use_register_for_parm_decl): Wrapper for the above to
15762         special-case the result_ptr.
15763         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15764         (split_complex_args): Take assign_parm_data_all argument.
15765         Pass it to rtl_for_parm.  Set up rtl and context for split
15766         args.
15767         (assign_parms_augmented_arg_list): Adjust.
15768         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15769         multiple locations.  Recognize split complex args.
15770         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15771         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15772         (assign_parm_setup_block): Prefer SSA-assigned location.
15773         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15774         if stack_parm is NULL.
15775         (assign_parm_setup_stack): Prefer SSA-assigned location.
15776         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15777         rtl before testing for pointer bounds.  Special-case result_ptr.
15778         (expand_function_start): Maybe reset DECL_RTL of result.
15779         Prefer SSA-assigned location for result and static chain.
15780         Factor out DECL_RESULT and SET_DECL_RTL.
15781         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15782         anonymous SSA names.  Use promote_ssa_mode.
15783         (get_temp_reg): Likewise.
15784         (remove_ssa_form): Adjust.
15785         * stor-layout.c (layout_decl): Don't set mem attributes of
15786         non-MEMs.
15787         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15788         and get its reg_usage for reg invalidation.
15789         (compute_bb_dataflow): Pass it insn.
15790         (emit_notes_in_bb): Likewise.
15792 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15794         PR target/66217
15795         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15796         prototype.
15797         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15798         (rs6000_emit_2insn_and): Handle dot forms.
15799         * config/rs6000/rs6000.md (and<mode>3): Adjust.
15800         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
15801         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15803 2015-07-23  Richard Biener  <rguenther@suse.de>
15805         * generic-match-head.c: Include cgraph.h.
15806         * gimple-match-head.c: Likewise.
15807         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15808         SSA names.
15809         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15810         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
15811         pattern.
15813 2015-07-23  Richard Biener  <rguenther@suse.de>
15815         * gimple-fold.c (fold_gimple_cond): Do not require folding
15816         results to pass valid_gimple_rhs_p.
15817         * tree-cfg.h (fold_cond_expr_cond): Remove.
15818         * tree-cfg.c (fold_cond_expr_cond): Likewise.
15819         (make_edges): Do not call it.
15820         * tree-inline.c (tree_function_versioning): Likewise.
15822 2015-07-23  Tom de Vries  <tom@codesourcery.com>
15824         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15825         vect_force_simple_reduction.
15826         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15827         (vect_is_simple_reduction_1): Add and handle
15828         need_wrapping_integral_overflow parameter.
15829         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15830         need_wrapping_integral_overflow parameter.
15831         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15832         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15833         decl.
15835 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
15837         PR tree-optimization/66926,66951
15838         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15839         INNER_LOOP and fix up condition for renaming virtual operands.
15841 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15843         * combine.c (try_combine): Use std::swap instead of manually
15844         swapping.
15846 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
15848         * config/mips/i6400.md: New file.
15849         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15850         (mips64r6): Likewise.
15851         (i6400): Define.
15852         * config/mips/mips-tables.opt: Regenerate.
15853         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15854         (mips_issue_rate): Add support for i6400.
15855         (mips_multipass_dfa_lookahead): Likewise.
15856         * config/mips/mips.h (TUNE_I6400): Define.
15857         * config/mips/mips.md: Include i6400.md.
15858         (processor): Add i6400.
15859         * doc/invoke.texi (-march=@var{arch}): Add i6400.
15861 2015-07-23  Richard Biener  <rguenther@suse.de>
15863         PR middle-end/66916
15864         * match.pd: Guard widen and sign-change comparison simplification
15865         with single_use.
15867 2015-07-23  Richard Biener  <rguenther@suse.de>
15869         PR tree-optimization/66945
15870         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15871         ::before_dom_children): Force the propagators idea of
15872         non-executable edges to materialize, not what the folder
15873         chooses.
15875 2015-07-23  Richard Biener  <rguenther@suse.de>
15877         * gimple.h (gimple_cond_make_false): Use 0 != 0.
15878         (gimple_cond_make_true): Use 1 != 0.
15880 2015-07-22  DJ Delorie  <dj@redhat.com>
15882         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15883         slashes.
15885         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15886         (ashrhi3): Likewise.
15887         (lshrhi3): Likewise.
15888         (movhi): Take advantage of zero-extend to load small constants.
15889         (movpsi): Likewise.
15890         (and<mode>3): Likewise.
15891         (zero_extendqihi2): Likewise.
15892         (zero_extendqisi2): New.
15893         * config/msp430/constraints.md (N,O): New.
15894         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15896 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
15898         PR target/66954
15899         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15900         to enum feature_priority and feature_list.
15901         (fold_builtin_cpu): Add F_AES to enum processor_features
15902         and isa_names_table.
15904 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
15906         PR driver/66737
15907         * config/i386/linux-common.h (MPX_SPEC): Use linker option
15908         for 64bit target only.
15910 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15912         * config/nvptx/nvptx.c: Expand some comments.
15914 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
15916         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15917         (cortex_a53_advsimd): ...This.
15919 2015-07-22  Richard Biener  <rguenther@suse.de>
15921         * genmatch.c (expr::gen_transform): Clarify error message
15922         and display location.
15924 2015-07-22  Richard Biener  <rguenther@suse.de>
15926         * genmatch.c (struct operand): Add location member.
15927         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15928         constructors.
15929         (struct simplify): Remove match_location and result_location
15930         members.
15931         (elsehwere): Adjust.
15933 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
15935         * config/mips/m5100.md: New file.
15936         * config/mips/mips-cpus.def (m5100, m5101): Define.
15937         * config/mips/mips-tables.opt: Regenerate.
15938         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15939         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15940         -march=m5101 to -mips32r5.
15941         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15942         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15943         !-msoft-float.
15944         * config/mips/mips.md: Include m5100.md.
15945         (processor): Add m5100.
15946         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15948 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
15950         * config/mips/mips-cpus.def (interaptiv): Define.
15951         * config/mips/mips-tables.opt: Regenerate.
15952         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15953         -mips32r2.
15954         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15955         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15957 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
15959         PR target/63521
15960         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15961         (HONOR_REG_ALLOC_ORDER): Define.
15963 2015-07-22  Richard Biener  <rguenther@suse.de>
15965         PR tree-optimization/66952
15966         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15967         blocks we end up executing unconditionally reset all SSA
15968         info such as range and alignment.
15969         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15970         * tree-ssanames.c (reset_flow_sensitive_info): New function.
15972 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
15974         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15975         typo in attribute.
15977 2015-07-22  Richard Biener  <rguenther@suse.de>
15979         * genmatch.c (parser::parse_result): Properly handle
15980         match with result operands and conditions.
15982 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
15984         PR target/63870
15985         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15986         Add qualifier_struct_load_store_lane_index.
15987         (aarch64_types_loadstruct_lane_qualifiers): Use
15988         qualifier_struct_load_store_lane_index for lane index argument for
15989         last argument.
15990         (aarch64_types_storestruct_lane_qualifiers): Ditto.
15991         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15992         (aarch64_simd_expand_args): Add new argument describing mode of
15993         builtin. Check lane bounds for arguments with
15994         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15995         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15996         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15997         (aarch64_simd_expand_builtin): Handle arguments with
15998         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15999         aarch64_simd_expand_args.
16000         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16001         vst[234]_lane with BUILTIN_VALLDIF.
16002         * config/aarch64/aarch64-simd.md:
16003         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16004         endianness reversal on lane index.
16005         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16006         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16007         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16008         (vec_store_lanesci_lane<mode>): Ditto.
16009         (vec_store_lanesxi_lane<mode>): Ditto.
16010         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16011         reversal of lane index.
16012         (aarch64_ld3_lane<mode>): Ditto.
16013         (aarch64_ld4_lane<mode>): Ditto.
16014         (aarch64_st2_lane<mode>): Ditto.
16015         (aarch64_st3_lane<mode>): Ditto.
16016         (aarch64_st4_lane<mode>): Ditto.
16017         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16018         to qmode. Add new mode parameter. Update uses.
16019         (__LD3_LANE_FUNC): Ditto.
16020         (__LD4_LANE_FUNC): Ditto.
16021         (__ST2_LANE_FUNC): Ditto.
16022         (__ST3_LANE_FUNC): Ditto.
16023         (__ST4_LANE_FUNC): Ditto.
16025 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
16027         * doc/invoke.texi (Language Independent Options): Rename node to
16028         Diagnostic Message Formatting Options.
16030 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
16032         PR ipa/66424.
16033         * lra-remat.c (operand_to_remat): Prevent using insns with input
16034         subregs processed separately by IRA.
16036 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
16038         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16039         straight loops.
16040         (single_imm_use): Check for iterator node.
16041         (num_imm_uses): Likewise.
16042         * tree-ssa-operands.c (has_zero_uses_1): Delete.
16043         (single_imm_use_1): Check for iterator node.
16045 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
16046             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16048         * configure.ac: Add check for new options in isl-0.15.
16049         * config.in, configure: Rebuilt.
16050         * graphite-blocking.c: Include <isl/constraint.h>
16051         * graphite-interchange.c,  graphite-poly.c: Likewise.
16052         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16053         * graphite.c: Likewise.
16054         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16055         <isl/union_set.h>.
16056         * graphite-dependences.c: Include <isl/constraint.h>.
16057         (max_number_of_out_dimensions): Returns isl_stat.
16058         (extend_schedule_1): Likewise
16059         (extend_schedule): Corresponding changes.
16060         * graphite-optimize-isl.c: Include <isl/constraint.h> and
16061         <isl/union_set.h>.
16062         (getSingleMap): Change return type of isl_stat.
16063         (optimize_isl): Conditionally use
16064         isl_options_set_schedule_serialize_sccs.
16065         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16066         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16068 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
16070         PR target/66956
16071         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16072         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16074 2015-07-21  Richard Biener  <rguenther@suse.de>
16076         PR tree-optimization/66948
16077         * genmatch.c (capture_info::walk_match): Also recurse to
16078         captures.  Properly compute expr state from captures of
16079         captures.
16080         * match.pd: Add single-use guards to
16081         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16083 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
16085         * config/nvptx/mkoffload.c (process): Add static destructor call.
16087 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16089         PR middle-end/66915
16090         * match.pd (A - B -> A + (-B)): Don't allow folding
16091         when type if a fixed-point type.
16093 2015-07-20  DJ Delorie  <dj@redhat.com>
16095         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16096         (iorqi3_real): Likewise for set1.
16098 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
16100         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16101         for !TARGET_64BIT.
16103 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
16105         * graphite-isl-ast-to-gimple.c:
16106         Refactor so that each function can access 'region'. This will help
16107         maintain a parameter rename_map within a region.
16109 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
16111         * config/rs6000/rs6000.md (*lt0_disi): New.
16113 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
16115         PR target/66217
16116         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
16117         "available letters" comment.
16118         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16119         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16120         and_2rld_operand):  Delete.
16121         (and_operand): Adjust.
16122         (rotate_mask_operator): New.
16123         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16124         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16125         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16126         extract_ME): Delete.
16127         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16128         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16129         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16130         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16131         rs6000_emit_2insn_and): New.
16132         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16133         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16134         includes_rldic_lshift_p, includes_rldicr_lshift_p,
16135         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16136         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16137         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16138         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16139         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16140         rs6000_emit_2insn_and): New.
16141         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16142         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16143         handling.
16144         <NOT>: Don't fall through to next case.
16145         <AND>: Handle the various rotate-and-mask cases directly.
16146         <IOR>: Always cost as one insn.
16147         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16148         (and<mode>3): Adjust expander for the new patterns.
16149         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16150         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16151         (*and<mode>3_imm_dot_shifted): New.
16152         (*and<mode>3_mask): Delete, rewrite as ...
16153         (and<mode>3_mask): ... New.
16154         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16155         (andsi3_internal0_nomc): Delete.
16156         (*andsi3_internal6): Delete.
16157         (*and<mode>3_2insn): New.
16158         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16159         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16160         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16161         *insvdi_internal3): Delete.
16162         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16163         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16164         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16165         *ior<mode>_mask): New.
16166         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16167         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16168         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16169         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16170         Delete.
16171         (ashr<mode>3): Delete expander.
16172         (*ashr<mode>3): Rename to ...
16173         (ashr<mode>3): ... This.
16174         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16175         (*rotldi3_internal4, *rotldi3_internal5 and split,
16176         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16177         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16178         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16179         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16180         (splitter for loading a mask): Adjust.
16181         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16183 2015-07-20  Marek Polacek  <polacek@redhat.com>
16185         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16186         output_add_clobbers, output_added_clobbers_hard_reg_p,
16187         gen_rtx_scratch): Remove declarations.
16189 2015-07-20  Marek Polacek  <polacek@redhat.com>
16191         PR c++/55095
16192         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16194 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16196         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16197         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16199 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16201         * combine.c (combine_simplify_rtx): Move simplification step
16202         before various transformations/substitutions.
16204 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
16206         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16207         (struct int_traits): Likewise.
16209 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16211         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16212         function to vmsdbgout_function_decl.
16214 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
16216         PR target/66922
16217         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16218         from misaligned positions.
16219         (ix86_expand_pinsr): Reject insertions to misaligned positions.
16221 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
16223         PR middle-end/46851
16224         PR middle-end/60340
16225         * Makefile.in: Removed omega.o.
16226         * common.opt: Document flag fcheck-data-deps as deprecated.
16227         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16228         its associated params: omega-max-vars, omega-max-geqs,
16229         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16230         omega-max-keys, omega-eliminate-redundant-constraints.
16231         * doc/loop.texi: Remove all the section on Omega.
16232         * graphite-blocking.c: Include missing params.h: it used to be
16233         included through tree-data-ref.h and omega.h.
16234         * graphite-isl-ast-to-gimple.c: Same.
16235         * graphite-optimize-isl.c: Same.
16236         * graphite-sese-to-poly.c: Same.
16237         * graphite.c: Same.
16238         * omega.c: Remove.
16239         * omega.h: Remove.
16240         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16241         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16242         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16243         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16244         * passes.def: Remove pass_check_data_deps.
16245         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16246         (dump_conflict_function): Same.
16247         (dump_subscript): Same.
16248         (print_direction_vector): Same.
16249         (print_dir_vectors): Same.
16250         (print_lambda_vector): Same.
16251         (print_dist_vectors): Same.
16252         (dump_data_dependence_relation): Same.
16253         (dump_data_dependence_relations): Same.
16254         (dump_dist_dir_vectors): Same.
16255         (dump_ddrs): Same.
16256         (init_omega_eq_with_af): Removed.
16257         (omega_extract_distance_vectors): Removed.
16258         (omega_setup_subscript): Removed.
16259         (init_omega_for_ddr_1): Removed.
16260         (init_omega_for_ddr): Removed.
16261         (ddr_consistent_p): Removed.
16262         (compute_affine_dependence): Do not use omega to check data
16263         dependences.
16264         (compute_data_dependences_for_bb): Removed.
16265         (analyze_all_data_dependences): Removed.
16266         (tree_check_data_deps): Removed.
16267         * tree-data-ref.h: Do not include omega.h.
16268         (compute_data_dependences_for_bb): Removed.
16269         (tree_check_data_deps): Removed.
16270         * tree-ssa-loop.c (pass_check_data_deps): Removed.
16271         (make_pass_check_data_deps): Removed.
16272         * tree-ssa-phiopt.c: Include params.h.
16273         * tree-vect-data-refs.c: Same.
16274         * tree-vect-slp.c: Same.
16276 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
16278         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16279         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
16280         (mem->fpreg splitters): Ditto.
16281         (general_operand->nonimmediate_operand splitter): Use explicit modes.
16282         Disable DFmode for TARGET_64BIT.
16284 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
16286         PR target/66906
16287         * config/i386/i386.c (ix86_expand_prologue): Replicate static
16288         chain on the stack.
16290 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16292         * config/nvptx/mkoffload.c (process): Constify host data.
16293         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16294         Constify host data.
16295         (generate_host_descr_file): Likewise.
16297 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
16298             Sebastian Pop  <s.pop@samsung.com>
16300         PR middle-end/61929
16301         * graphite-dependences.c (add_pdr_constraints): Renamed
16302         pdr->extent to pdr->subscript_sizes.
16303         * graphite-interchange.c (build_linearized_memory_access): Add
16304         back all gcc_assert's that the "isl_int to isl_val conversion"
16305         patch has removed.  Refactored.
16306         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16307         * graphite-poly.c (new_poly_dr): Same.
16308         (free_poly_dr): Same.
16309         * graphite-poly.h (struct poly_dr): Same.
16310         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16311         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16312         * graphite-scop-detection.h: Fix space.
16313         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16314         back all gcc_assert's removed by a previous patch.
16315         (wrap): Remove the_isl_ctx global variable that the same patch has
16316         added.
16317         (build_loop_iteration_domains): Same.
16318         (add_param_constraints): Same.
16319         (pdr_add_data_dimensions): Same.  Refactored.
16320         (build_poly_dr): Renamed extent to subscript_sizes.
16322 2015-07-17  Marek Polacek  <polacek@redhat.com>
16324         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16325         * match.pd: ... here.
16327 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
16329         * config/nvptx/mkoffload.c (process): Constify target data.
16330         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16331         Constify target data.
16332         (generate_target_offloadend_file): Likewise.
16334 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
16336         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16337         to allow renaming of PHI arguments on edges incoming from outer
16338         loop header, add corresponding check before start PHI iterator.
16339         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16340         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16341         with true force_vectorize.  Set-up dominator for outer loop too.
16342         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16343         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16344         was marked with force_vectorize and has restricted cfg.
16345         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16346         inner loop.
16347         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16348         do peeling for outer loops.
16350 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
16351             Matthias Klose  <doko@ubuntu.com>
16353         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16354         build-sysroot, sysroot from the `Miscenalleous configure options' to
16355         the `Directories' section and strip trailing `/' from with_sysroot.
16356         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16357         * configure: Regenerated.
16359 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16361         PR target/66824
16362         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16363         (TARGET_HARD_DF_REGS): Ditto.
16364         (TARGET_HARD_XF_REGS): Ditto.
16365         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16366         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16367         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16368         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16369         (*movsf_internal): Add alternatives 16 and 17. Enable
16370         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16372 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
16374         PR rtl-optimization/66891
16375         * calls.c (expand_call): Wrap precompute_register_parameters with
16376         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16378 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
16380         * config/nvptx/mkoffload.c (process): Constify mapping variables.
16381         Define target data struct and initialize it.
16383 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
16385         PR rtl-optimization/66626
16386         * ira.h (emit-rtl.h): Include.
16387         (non_spilled_static_chain_regno_p): New.
16388         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16389         unless it is non spilled static chain pseudo.
16390         (assign_hard_rego): Spill memory profitable allocno unless it is
16391         non spilled static chain pseudo.
16392         (allocno_spill_priority_compare): Put non spilled static chain
16393         pseudo at the end of sorted array.
16394         (improve_allocation): Do nothing if we have static chain and
16395         non-local goto.
16396         (allocno__priority_compare_func): Put non spilled static chain
16397         pseudo at the beginning of sorted array.
16398         (move_spill_restore): Ignore non spilled static chain pseudo.
16399         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16400         to non spilled static chain pseudo.
16401         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16402         pseudo at the beginning of sorted array.
16403         (spill_for): Spill non spilled static chain pseudo last.
16404         * lra-constraints.c (lra_constraints): Remove static chain pseudo
16405         check for equivalence.
16407 2015-07-16  Martin Liska  <mliska@suse.cz>
16409         PR ipa/66896.
16410         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16411         dst_ctx if it does not exist.
16413 2015-07-16  Martin Liska  <mliska@suse.cz>
16415         * hash-set.h (remove): New function.
16416         (iterator): New iteration class for hash_set.
16418 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16420         * genattrtab.c (make_canonical): Add a file_location parameter.
16421         Use fatal_at rather than fatal.
16422         (get_attr_value): Likewise.  Update call to make_canonical.
16423         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16424         (make_internal_attr): Update calls accordingly.
16426 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16428         * read-md.h (message_with_line, error_with_line): Delete.
16429         * read-md.c (message_with_line, error_with_line): Delete.
16430         * gensupport.h: Include read-md.h.
16431         (md_rtx_info): New structure.
16432         (read_md_rtx): Use it.  Return a bool success value.
16433         * gensupport.c (read_md_rtx): Likewise.
16434         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16435         (main): Update after interface changes.
16436         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16437         (main): Update after interface changes.
16438         * genattrtab.c (insn_code_number): Delete.
16439         (optimize_attrs): Add a max_insn_code parameter and use it instead
16440         of insn_code_number.
16441         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16442         Use *_at rather than *_with_line functions.
16443         (gen_insn): Likewise.
16444         (gen_delay): Likewise.
16445         (gen_insn_reserv): Likewise.
16446         (gen_bypass): Take an md_rtx_info rather than an rtx.
16447         (main): Update after interface changes.  Use a local max_insn_code
16448         variable instead of insn_code_number.
16449         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16450         an rtx.  Use fatal_at rather than fatal.
16451         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16452         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16453         (gen_absence_set, gen_final_absence_set, gen_automaton)
16454         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16455         (main): Update after interface changes.
16456         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16457         and code number.
16458         (main): Update after interface changes.
16459         * genconditions.c (main): Use new read_md_rtx interface.
16460         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16461         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16462         (main): Update after interface changes.
16463         * genemit.c (insn_code_number, insn_index_number): Delete.
16464         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16465         Use fatal_at rather than fatal.
16466         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
16467         rather than fatal.
16468         (gen_split): Likewise.
16469         (main): Update after interface changes.
16470         * genextract.c (line_no): Delete.
16471         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16472         Update call to walk_rtx.
16473         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
16474         rather than message_with_line.
16475         (walk_rtx): Add an md_rtx_info argument.  Update call to
16476         VEC_safe_set_locstr.
16477         (main): Update after interface changes.
16478         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16479         and lineno.  Use error_at rather than separate message_with_line
16480         calls and have_error assignments.
16481         (main): Update after interface changes.
16482         * genmddump.c (main): Use new read_md_rtx interface.
16483         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16484         (main): Update after interface changes.
16485         * genoutput.c (next_code_number): Delete.
16486         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16487         (gen_peephole, gen_expand, gen_split): Likewise.
16488         (note_constraint): Likewise.  Use *_at rather than *_with_line
16489         functions.
16490         (main): Update after interface changes.
16491         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16492         rtx and lineno.
16493         (main): Update after interface changes.
16494         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16495         than an rtx and lineno.
16496         (process_define_constraint): Likewise.
16497         (process_define_register_constraint): Likewise.
16498         (main): Update after interface changes.
16499         * genrecog.c (next_insn_code, pattern_lineno): Delete.
16500         (validate_pattern): Replace top-level rtx with an md_rtx_info.
16501         Use *_at rather than *_with_line functions.
16502         (match_pattern_2): Likewise.
16503         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16504         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16505         Use *_at rather than *_with_line functions.
16506         * gentarget-def.c (add_insn): New function.
16507         (main): Use it.  Use new read_md_rtx interface.
16509 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16511         * gensupport.h (compute_test_codes): Take a file_location rather
16512         than a line number.
16513         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
16514         rather than *_with_line functions.
16515         (process_define_predicate): Update call to compute_test_codes.
16516         * genpreds.c (validate_exp): Take a file_location rather than a
16517         line number.  Use *_at functions rather than *_with_line functions.
16518         (process_define_predicate): Update call to validate_exp.
16519         (constraint_data): Replace lineno field with a file_location.
16520         (add_constraint): Take a file_location rather than a line number.
16521         Use *_at functions rather than *_with_line functions.  Fix error
16522         message for address constraints.  Update after changes to
16523         validate_exp, constraint_data and compute_test_codes.
16524         (process_define_constraint): Update accordingly.
16525         (process_define_register_constraint): Likewise.
16527 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16529         * genoutput.c (data): Use a file_location to record the source
16530         position.
16531         (nothing): Delete.
16532         (idata, idata_end): Remove initialization.
16533         (constraint_data): Replace lineno with a file_location.
16534         (output_insn_data): Update after changes to data.
16535         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16536         (scan_operands): Likewise, using *_at rather than *_with_line
16537         functions.
16538         (process_template): Likewise.
16539         (validate_insn_alternatives): Likewise.
16540         (validate_insn_operands): Likewise.
16541         (validate_optab_operands): Likewise.
16542         (init_insn_for_nothing): Initialize idata and idata_end.
16543         (note_constraint): Update after changes to constraint_data,
16544         using at rather than with_line functions.
16545         (mdep_constraint_len): Take a file_location rather than a
16546         line number.  Use at rather than with_line functions.
16548 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16550         * read-md.h (fatal_at): Declare.
16551         * read-md.c (fatal_at): New function.
16552         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16553         to record the source position.
16554         (check_attr_test): Take a file_location instead of a line number.
16555         Use fatal_at instead of fatal.
16556         (check_attr_value): Update after above changes, using "at"
16557         rather than "with_line" reporting functions.
16558         (convert_set_attr_alternative): Likewise.
16559         (gen_attr): Likewise.
16560         (check_defs): Likewise.  Don't assign to read_md_filename.
16561         (gen_insn): Update initialization after above changes.
16562         (gen_delay): Likewise.
16563         (write_insn_cases): Print the filename for a define_peephole.
16564         (gen_insn_reserv): Take a line number as argument and update
16565         the call to check_attr_test.
16566         (main): Pass a line number to gen_insn_reserv.
16568 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16570         * read-md.h (file_location): New structure.
16571         (directive_handler_t): Take a file_location rather than a line number.
16572         (message_at, error_at): Declare.
16573         (read_skip_construct): Delete.
16574         * read-md.c (message_with_line_1): Replace with...
16575         (message_at_1): ...this new function.
16576         (message_at, error_at): New functions.
16577         (message_with_line, error_with_line): Update to use message_at_1.
16578         (handle_enum): Take a file_location rather than a line number
16579         and use error_at for error reporting.
16580         (handle_include): Likewise.
16581         (read_skip_construct): Likewise.  Make static.
16582         (handle_file): Update after above changes.  Pass a file_location
16583         rather than a line number to handle_directive.
16584         * gensupport.c (queue_elem): Replace separate filename and lineno
16585         with a file_location.
16586         (queue_pattern): Replace filename and lineno arguments with a
16587         file_location.  Update after change to queue_elem.
16588         (process_define_predicate): Replace lineno argument with a
16589         file_location and use error_at for error reporting.  Update
16590         after above changes.
16591         (process_rtx): Likewise.
16592         (subst_pattern_match): Likewise.
16593         (get_alternatives_number): Likewise.
16594         (alter_predicate_for_insn): Likewise.
16595         (rtx_handle_directive): Likewise.
16596         (is_predicable): Update after above changes, using error_at rather
16597         than error_with_line.
16598         (has_subst_attribute): Likewise.
16599         (identify_predicable_attribute): Likewise.
16600         (alter_attrs_for_subst_insn): Likewise.
16601         (process_one_cond_exec): Likewise.
16602         (process_substs_on_one_elem): Likewise.
16603         (process_define_subst): Likewise.
16604         (check_define_attr_duplicates): Likewise.
16605         (read_md_rtx): Update after change to queue_elem.
16607 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16609         * genoutput.c (next_index_number): Delete.
16610         (data): Remove index_number.
16611         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16612         (main): Remove manipulation of next_index_number.
16614 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
16616         * genattrtab.c (check_attr_value): Remove handling of null attrs.
16617         (make_canonical): Likewise.
16619 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
16621         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16622         instead of adjust_address_nv.
16623         (restore_stack_nonlocal): Likewise.
16624         (nonlocal_goto): Likewise.
16626 2015-07-16  Tom de Vries  <tom@codesourcery.com>
16628         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16629         not have a corresponding loop header phi.
16631 2015-07-16  Tom de Vries  <tom@codesourcery.com>
16633         * tree-parloops.c (create_loads_for_reductions): Handle case that
16634         reduction is unused.
16636 2015-07-16  Richard Biener  <rguenther@suse.de>
16638         PR tree-optimization/66894
16639         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16640         about deriving NE_EXPR from truncated values.
16642 2015-07-16  Martin Liska  <mliska@suse.cz>
16644         * alloc-pool.h
16645         (object_allocator): Add new class.
16646         (pool_allocator::initialize): Use the underlying class.
16647         (pool_allocator::allocate): Likewise.
16648         (pool_allocator::remove): Likewise.
16649         (operator new): A new generic allocator.
16650         * asan.c (struct asan_mem_ref): Remove unused members.
16651         (asan_mem_ref_new): Replace new operator with
16652         object_allocator::allocate.
16653         (free_mem_ref_resources): Change deallocation.
16654         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16655         with object_allocator.
16656         * config/sh/sh.c (add_constant): Replace new operator with
16657         object_allocator::allocate.
16658         (sh_reorg): Change call to a release method.
16659         * cselib.c (struct elt_list): Remove unused members.
16660         (new_elt_list): Replace new operator with
16661         object_allocator::allocate.
16662         (new_elt_loc_list): Likewise.
16663         (new_cselib_val): Likewise.
16664         (unchain_one_elt_list): Change delete operator with remove method.
16665         (unchain_one_elt_loc_list): Likewise.
16666         (unchain_one_value): Likewise.
16667         (cselib_finish): Release newly added static allocators.
16668         * cselib.h (struct cselib_val): Remove unused members.
16669         (struct elt_loc_list): Likewise.
16670         * df-problems.c (df_chain_alloc): Replace pool_allocator with
16671         object_allocator.
16672         * df-scan.c (struct df_scan_problem_data): Likewise.
16673         (df_scan_alloc): Likewise.
16674         * df.h (struct dataflow): Likewise.
16675         * dse.c (struct read_info_type): Likewise.
16676         (struct insn_info_type): Likewise.
16677         (struct dse_bb_info_type): Likewise.
16678         (struct group_info): Likewise.
16679         (struct deferred_change): Likewise.
16680         (get_group_info): Likewise.
16681         (delete_dead_store_insn): Likewise.
16682         (free_read_records): Likewise.
16683         (replace_read): Likewise.
16684         (check_mem_read_rtx): Likewise.
16685         (scan_insn): Likewise.
16686         (dse_step1): Likewise.
16687         (dse_step7): Likewise.
16688         * et-forest.c (struct et_occ): Remove unused members.
16689         (et_new_occ): Use allocate instead of new operator.
16690         (et_new_tree): Likewise.
16691         (et_free_tree): Call release method explicitly.
16692         (et_free_tree_force): Likewise.
16693         (et_free_pools): Likewise.
16694         (et_split): Use remove instead of delete operator.
16695         * et-forest.h (struct et_node): Remove unused members.
16696         * ipa-cp.c: Change pool_allocator to object_allocator.
16697         * ipa-inline-analysis.c: Likewise.
16698         * ipa-profile.c: Likewise.
16699         * ipa-prop.c: Likewise.
16700         * ipa-prop.h: Likewise.
16701         * ira-build.c (initiate_cost_vectors): Cast return value.
16702         (ira_allocate_cost_vector): Likewise.
16703         * ira-color.c (struct update_cost_record): Remove unused members.
16704         * lra-int.h (struct lra_live_range): Likewise.
16705         (struct lra_copy): Likewise.
16706         (struct lra_insn_reg): Likewise.
16707         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16708         * lra.c (new_insn_reg): Replace new operator with allocate method.
16709         (free_insn_regs): Same for operator delete.
16710         (finish_insn_regs): Release new static allocator.
16711         (finish_insn_recog_data): Likewise.
16712         (lra_free_copies): Replace delete operator with remove method.
16713         (lra_create_copy): Replace operator new with allocate method.
16714         (invalidate_insn_data_regno_info): Same for remove method.
16715         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16716         (free_debug_insn_changes): Replace delete operator with remove method.
16717         (replace_oldest_value_reg): Replace operator new with allocate method.
16718         (pass_cprop_hardreg::execute): Release new static variable.
16719         * sched-deps.c (sched_deps_init): Change pool_allocator to
16720         object_allocator.
16721         * sel-sched-ir.c: Likewise.
16722         * sel-sched-ir.h: Likewise.
16723         * stmt.c (expand_case): Likewise.
16724         (expand_sjlj_dispatch_table): Likewise.
16725         * tree-sra.c (struct access): Remove unused members.
16726         (struct assign_link): Likewise.
16727         (sra_deinitialize): Release newly added static pools.
16728         (create_access_1):Replace operator new with allocate method.
16729         (build_accesses_from_assign): Likewise.
16730         (create_artificial_child_access): Likewise.
16731         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16732         pool_allocator to object_allocator.
16733         * tree-ssa-pre.c: Likewise.
16734         * tree-ssa-reassoc.c: Likewise.
16735         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16736         * tree-ssa-strlen.c: Likewise.
16737         * tree-ssa-structalias.c: Likewise.
16738         * var-tracking.c (onepart_pool_allocate): New function.
16739         (unshare_variable): Use the newly added function.
16740         (variable_merge_over_cur): Likewise.
16741         (variable_from_dropped): Likewise.
16742         (variable_was_changed): Likewise.
16743         (set_slot_part): Likewise.
16744         (emit_notes_for_differences_1): Likewise.
16745         (vt_finalize): Release newly added static pools.
16747 2015-07-16  Martin Jambor  <mjambor@suse.cz>
16749         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
16750         all uses.  Fix two typos in its general comment.
16751         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
16753 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
16755         * config/i386/linux-common.h (LINK_MPX): New.
16756         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16757         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16758         indicating '-z bndplt' support by linker.
16759         * configure: Regenerate.
16760         * config.in: Regenerate.
16762 2015-07-16  Richard Biener  <rguenther@suse.de>
16764         * fold-const.c (fold_widened_comparison): Remove.
16765         (fold_sign_changed_comparison): Likewise.
16766         (fold_comparison): Move widened and sign-changed comparison
16767         simplification ...
16768         * match.pd: ... to patterns here.
16769         * generic-match-head.c: Include target.h.
16770         * gimple-match-head.c: Likewise.
16772 2015-07-16  Richard Biener  <rguenther@suse.de>
16774         * tree-ssa-dom.c (dom_valueize): New function.
16775         (record_temporary_equivalences): Also record equivalences
16776         for dominating stmts that have uses of equivalences we are
16777         about to record.
16779 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
16781         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16782         add_autoinc_candidates.
16783         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16784         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16785         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16786         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16787         Call new function.
16788         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16789         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16790         Remove parameter struct iv*.  Call add_autoinc_candidates here.
16791         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16792         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16793         Call new function.
16794         (find_iv_candidates): Call new functions.
16796 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
16798         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16799         uninitialized-variable warning.
16801 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16803         PR target/65249
16804         * config/sh/sh.md (movdi): Split simple reg move to two movsi
16805         when the destination is R0.
16807 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
16809         PR target/66866
16810         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16811         * config/i386/i386.c (ix86_expand_pextr): New function.
16812         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
16813         for non-lowpart subregs.
16814         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16815         (insv<mode>): Use SWI248 mode iterator.
16816         (insv<mode>_1): Ditto.
16818 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16819             Sebastian Pop  <s.pop@samsung.com>
16821         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16822         iterator to use_stmt.
16824 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16825             Sebastian Pop <s.pop@samsung.com>
16827         * graphite-scop-detection.c (build_scops_1): Discard scops for
16828         which entry==exit.
16830 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16831             Sebastian Pop <s.pop@samsung.com>
16833         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16834         case of a return statement in scop.
16836 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
16837             Sebastian Pop <s.pop@samsung.com>
16839         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16840         INTEGER_TYPE parameters.
16841         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16842         VECTOR_CST in scan_tree_for_params.
16843         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16845 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
16847         * gimple-pretty-print.h: Don't include pretty-print.h.
16848         * tree-streamer.h: Don't include lto-streamer.h.
16849         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16850         * gimple-streamer-in.c: Remove redundant includes.
16851         * gimple-streamer-out.c: Likewise.
16852         * ipa-devirt.c: Likewise.
16853         * ipa-icf.c: Likewise.
16854         * ipa-inline-analysis.c: Likewise.
16855         * ipa-polymorphic-call.c: Likewise.
16856         * ipa-profile.c: Likewise.
16857         * ipa-prop.c: Likewise.
16858         * ipa-pure-const.c: Likewise.
16859         * lto-cgraph.c: Likewise.
16860         * lto-streamer-in.c: Likewise.
16861         * lto-streamer-out.c: Likewise.
16862         * lto-streamer.c: Likewise.
16863         * tree-streamer-in.c: Likewise.
16864         * tree-streamer-out.c: Likewise.
16865         * tree-streamer.c: Likewise.
16867 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
16869         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16870         include input.h.
16871         * opts.c: Remove multiline #include comment.
16873 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
16875         * config/nvptx/mkoffload.c (process): Add C++ protection to
16876         emitted code.
16878 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16880         PR target/66854
16881         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16882         null before IEEE 128-bit floating point support patch.
16884 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16886         * simplify-rtx.c (simplify_ternary_operation): Add simplification
16887         for (!c) != {0,...,0} ? a : b for vector modes.
16889 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
16890             Martin Jambor  <mjambor@suse.cz>
16892         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16893         struct func_body_info* instead of struct ipa_node_params*, expecting
16894         fbi->info to be filled in.  Replace throughout.  Adjust call to
16895         ipa_load_from_parm_agg.
16896         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16897         instead of struct ipa_node_params*.  Adjust calls to other functions
16898         so that they pass either fbi or fbi->info.
16899         (set_switch_stmt_execution_predicate): Likewise.
16900         (will_be_nonconstant_predicate): Likewise.
16901         (compute_bb_predicates): Likewise.
16902         (estimate_function_body_sizes): Move asserts earlier.  Fill in
16903         struct func_body_info, replace parms_info with fbi.info.  Adjust
16904         calls to functions that now accept struct func_body_info.
16905         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16906         (struct func_body_info): Likewise.
16907         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16908         remove static.  Adjust callers.
16909         (ipa_load_from_parm_agg): Remove.
16910         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16911         (func_body_info): Likewise.
16912         (ipa_load_from_parm_agg): Adjust prototype.
16914 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16916         * gensupport.c (rtx_handle_directive): Adjust.
16917         * read-rtl.c (apply_iterators): Take vector to add rtxs to
16918         instead of expr list rtx.
16919         (add_define_attr_for_define_subst): Likewise.
16920         (add_define_subst_attr): Likewise.
16921         (read_subst_mapping): Likewise.
16922         (read_rtx): Likewise.
16923         * rtl.h (read_rtx): Adjust.
16925 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16927         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16929 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
16931         PR target/58066
16932         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16933         (*tls_local_dynamic_base_64_<mode>): Ditto.
16934         (*tls_local_dynamic_base_64_largepic): Ditto.
16935         (tls_global_dynamic_64_<mode>): Update expander pattern.
16936         (tls_local_dynamic_base_64_<mode>): Ditto.
16938 2015-07-15  Richard Biener  <rguenther@suse.de>
16940         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16941         and bool_var == 1 -> bool_var simplifications ...
16942         * match.pd: ... to patterns here.  Factor out negate_expr_p
16943         cases from the A - B -> A + (-B) patterns as negate_expr_p
16944         predicate and add a -(A + B) -> (-B) - A pattern.
16946 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
16948         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16950 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
16951             Robert Suchanek  <robert.suchanek@imgtec.com>
16953         * config/mips/mips.c (mips_int_mask): New enum.
16954         (mips_shadow_set): Likewise.
16955         (int_mask): New variable.
16956         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16957         (machine_function): Add int_mask and use_shadow_register_set.
16958         (mips_attribute_table): Add attribute handlers for interrupt and
16959         use_shadow_register_set.
16960         (mips_interrupt_mask): New static function.
16961         (mips_handle_interrupt_attr): Likewise.
16962         (mips_handle_use_shadow_register_set_attr): Likewise.
16963         (mips_use_shadow_register_set): Change return type to enum
16964         mips_shadow_set.  Add argument handling for use_shadow_register_set
16965         attribute.
16966         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16967         compare with mips_shadow_set enum.
16968         (mips_compute_frame_info): Add interrupt mask and
16969         use_shadow_register_set to per-function information structure.
16970         Add a stack slot for EPC unconditionally.
16971         (mips_expand_prologue): Compare use_shadow_register_set value
16972         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
16973         masked interrupt register but in EIC mode use K0 and save Cause in K0.
16974         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
16975         copying the stack pointer from the shadow register set.
16976         * config/mips/mips.h (SR_IM0): New define.
16977         * config/mips/mips.md (mips_rdpgpr): Rename to...
16978         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
16979         * doc/extend.texi (Declaring Attributes of Functions): Document
16980         optional arguments for interrupt and use_shadow_register_set
16981         attributes.
16983 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
16985         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16986         interrupt attribute.
16987         (mips_expand_prologue): Disable the floating point unit in an ISR.
16988         * config/mips/mips.h (SR_COP1): New define.
16990 2015-07-15  Richard Biener  <rguenther@suse.de>
16992         * genmatch.c (parser::peek, parser::peek_ident): Add argument
16993         to tell how many tokens to peek ahead (default 1).
16994         (parser::eat_token, parser::eat_ident): Return token consumed.
16995         (parser::parse_result): Parse new switch statement.
16996         * match.pd: Use case statements where appropriate.
16998 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17000         PR rtl-optimization/58066
17001         * calls.c (expand_call): Precompute register parameters before stack
17002         alignment is performed.
17004 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
17006         PR rtl-optimization/66838
17007         * postreload.c (reload_cse_move2add): Also process
17008         CALL_INSN_FUNCTION_USAGE when resetting information of
17009         call-clobbered registers.
17011 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17012             Cesar Philippidis  <cesar@codesourcery.com>
17013             Chung-Lin Tang  <cltang@codesourcery.com>
17015         * config/nios2/constraints.md (U, v): New constraints.
17016         * config/nios2/predicates.md (rdprs_dcache_operand): New.
17017         (ldstex_memory_operand): New.
17018         * config/nios2/sync.md: New file.
17019         * config/nios2/nios2.md (unspecv): Add new builtin function
17020         UNSPECV codes.
17021         (rdprs, flushd, flushda, wrpie, eni): New patterns.
17022         (top-level): Include sync.md.
17023         * config/nios2/nios2.c (N2_FTYPES): Add function types for
17024         new builtins.
17025         (N2_BUILTINS): Add arch field setting, add new builtins.
17026         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17027         for arch field.
17028         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17029         Also handle ldex/stex/ldsex/stsex builtins.
17030         (nios2_expand_rdprs_builtin): New function.
17031         (nios2_expand_cache_builtin): New function.
17032         (nios2_expand_wrpie_builtin): New function.
17033         (nios2_expand_eni_builtin): New function.
17034         (nios2_expand_builtin): Add arch field handling and new builtin
17035         cases.
17036         * doc/extend.texi (Altera Nios II Built-in Functions): Document
17037         new builtins.
17038         * doc/md.texi (Machine Constraints): Document U and v constraints.
17040 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17041             Cesar Philippidis  <cesar@codesourcery.com>
17042             Chung-Lin Tang  <cltang@codesourcery.com>
17044         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17045         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17046         callee_save_reg_size and uses_anonymous_args fields.
17047         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17048         (nios2_create_cfa_notes): New function.
17049         (nios2_adjust_stack): New function for adjusting stack.
17050         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17051         Use nios2_adjust_stack.
17052         (nios2_expand_epilogue): Likewise.
17053         (nios2_expand_return): New function.
17054         (nios2_can_use_return_insn): Update for CDX pop.n usage.
17055         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17056         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17057         * config/nios2/nios2.md (return): Use nios2_expand_return.
17059 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17060             Cesar Philippidis  <cesar@codesourcery.com>
17061             Chung-Lin Tang  <cltang@codesourcery.com>
17063         * config/nios2/predicates.md (pop_operation): New.
17064         (ldwm_operation, stwm_operation): New.
17065         (nios2_hard_register_operand): New.
17066         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17067         (ldstwm_operation_p): Declare.
17068         (gen_ldstwm_peep): Declare.
17069         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17070         (base_reg_adjustment_p): New.
17071         (pop_operation_p): New.
17072         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17073         (nios2_ldstwm_regset_p): New.
17074         (ldstwm_operation_p): New.
17075         (gen_ldst): New.
17076         (nios2_ldst_parallel): New.
17077         (struct ldswm_operand): Declare.
17078         (compare_ldstwm_operands): New.
17079         (can_use_cdx_ldstw): New.
17080         (gen_ldstwm_peep): New.
17081         * config/nios2/nios2-ldstwm.sml: New.
17082         * config/nios2/nios2.md: Include ldstwm.md.
17083         * config/nios2/ldstwm.md: Generated.
17085 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17086             Cesar Philippidis  <cesar@codesourcery.com>
17087             Chung-Lin Tang  <cltang@codesourcery.com>
17089         * config/nios2/nios2.h (LABEL_ALIGN): Define.
17090         (REG_ALLOC_ORDER): Define.
17091         (ADJUST_REG_ALLOC_ORDER): Define.
17092         (HONOR_REG_ALLOC_ORDER): Define.
17093         (CDX_REG_P): Define.
17094         (ANDCLEAR_INT): Define.
17095         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17096         (nios2_label_align): Declare.
17097         (nios2_cdx_narrow_form_p): Declare.
17098         (nios2_adjust_reg_alloc_order): Declare.
17099         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17100         operation.
17101         (nios2_large_unspec_reloc_p): New function, split from...
17102         (nios2_legitimate_pic_operand_p): ...here.
17103         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17104         (nios2_print_operand_punct_valid_p): New.
17105         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
17106         (split_mem_address): New.
17107         (split_alu_insn): New.
17108         (cdxreg): New.
17109         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17110         (enum nios2_add_insn_kind): New.
17111         (nios2_add_insn_names, nios2_add_insn_narrow): New.
17112         (nios2_add_insn_classify): New.
17113         (nios2_add_insn_asm): New.
17114         (nios2_cdx_narrow_form_p): New.
17115         (label_align, min_labelno, max_labelno): New.
17116         (nios2_reorg): New.
17117         (nios2_label_align): New.
17118         (nios2_adjust_reg_alloc_order): New.
17119         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17120         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17121         * config/nios2/constraints.md (P): New constraint.
17122         * config/nios2/predicates.md (const_and_operand): New.
17123         (and_operand): New.
17124         (stack_memory_operand): New.
17125         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17126         (length): Update to use nios2_cdx_narrow_form_p().
17127         (type): Add new insn type values.
17128         (control, alu, st, ld, shift): Update insn reservations with
17129         new insn type values.
17130         (*high, *lo_sum): Define new insn patterns for constant generation.
17131         (movqi_internal, movhi_internal, movsi_internal): Reduce
17132         alternatives, update asm template to handle CDX variants, update
17133         type attributes.
17134         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17135         template, update type attributes.
17136         (extendhisi2, extendqi<mode>2): Likewise.
17137         (addsi3): Change to use function for asm string.
17138         (subsi3): Add CDX notation to asm template, update type attributes.
17139         (negsi3, one_cmplsi3): Likewise.
17140         (andsi3): New pattern, specialized from logical patterns.
17141         (<code>si3): Remove and case, combine alternatives, update asm
17142         template.
17143         (<shift_op>si3): Add CDX notation, update type attributes.
17144         (rotrsi3): Update type attribute.
17145         (*merge, extzv, insv): New insn patterns.
17146         (return): Change to define_expand.
17147         (simple_return): Add CDX notation, update type attributes.
17148         (indirect_jump): Add CDX notation.
17149         (jump): Update asm cases, update length attribute expression.
17150         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17151         (nios2_cbranch): Update asm cases and length attribute expression
17152         to handle CDX variants.
17153         (nios2_cmp<code>): Update asm template.
17154         (nop): Add CDX notation, update type attributes.
17155         (trap): Add CDX notation.
17156         (ctrapsi4): Update asm cases and length attribute expression to
17157         handle CDX variant.
17158         * doc/md.texi (Machine Constraints): Document P constraint.
17160 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17161             Cesar Philippidis  <cesar@codesourcery.com>
17162             Chung-Lin Tang  <cltang@codesourcery.com>
17164         * config/nios2/nios2.h (SMALL_INT12): New macro.
17165         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17166         (nios2_valid_addr_expr_p): Use it.
17167         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17168         with implicit "io" instructions on R2.
17169         * config/nios2/constraints.md (w): New constraint.
17170         * config/nios2/predicates.md (ldstio_memory_operand): New.
17171         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17172         operand predicate and constraint.
17173         (ld<bh>io_signed, st<bhw>io>): Likewise.
17174         * doc/md.texi (Machine Constraints): Document w constraint.
17176 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17177             Cesar Philippidis  <cesar@codesourcery.com>
17178             Chung-Lin Tang  <cltang@codesourcery.com>
17180         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17181         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17182         Nios II architecture level.
17183         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17184         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17185         (OPTION_DEFAULT_SPECS): Define.
17186         (ASM_SPEC): Add -march= spec strings.
17187         * config/nios2/nios2.c (nios2_option_override): Check for
17188         conflicts involving new options.
17189         * config.gcc (nios2*-*-*): Support --with-arch=.
17190         * doc/invoke.texi (Option Summary, Nios II Options): Document
17191         -march=, -mbmx, and -mcdx.
17193 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
17195         PR rtl-optimization/66626
17196         * lra-constraints.c (lra_constraints): Prevent equivalence
17197         substitution for static chain pseudo in functions with nonlocal
17198         goto.
17200 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
17202         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17203         (nios2_emit_stack_limit_check): Add size parameter.  Handle
17204         -fstack-limit-symbol as well as -fstack-limit-register.
17205         (nios2_expand_prologue): Emit only a single stack limit check,
17206         even if multiple stack adjustments are required.
17207         (nios2_option_override): Diagnose unsupported combination of -fpic
17208         and -stack-limit-symbol.
17210 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
17212         * Makefile.in (top_srcdir): New.
17213         * configure.ac: Use AM_ZLIB.
17214         * configure: Regeneated.
17216 2015-07-14  Matthias Klose  <doko@ubuntu.com>
17218         PR target/66840
17219         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17221 2015-07-14  Richard Biener  <rguenther@suse.de>
17223         PR tree-optimization/66863
17224         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17225         what we record for conversion use stmt lhs inequalities.
17227 2015-07-14  Richard Biener  <rguenther@suse.de>
17229         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17230         (decision_tree::gen_gimple): Likewise.
17232 2015-07-14  Tom de Vries  <tom@codesourcery.com>
17234         * gcc.c (greater_than_spec_func): Declare forward.
17235         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17236         -ftree-parallelize-loops={0,1}.
17237         (static_spec_functions): Add greater_than_spec_func function with name
17238         "gt".
17239         (greater_than_spec_func): New function.
17241 2015-07-14  Richard Biener  <rguenther@suse.de>
17243         * tree-ssa-dom.c (record_temporary_equivalences): Merge
17244         wideing type conversion case from record_equivalences_from_incoming_edge
17245         and use record_equality to record equivalences.
17246         (record_equivalences_from_incoming_edge): Call
17247         record_temporary_equivalences.
17249 2015-07-14  Richard Biener  <rguenther@suse.de>
17251         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17252         (struct if_expr): New.
17253         (struct with_expr): Likewise.
17254         (is_a_helper): Add helpers for if_expr and with_expr.
17255         (struct simplify): Add simplify_kind enum and member.  Remove
17256         ifexpr_vec member.
17257         (simplify::simplify): Adjust.
17258         (lower_commutative): Adjust.
17259         (lower_opt_convert): Likewise.
17260         (lower_cond): Likewise.
17261         (replace_id): Handle with_expr and if_expr.
17262         (lower_for): Adjust.
17263         (dt_simplify::gen_1): New recursive worker, split out from ...
17264         (dt_simplify::gen): ... here.  Deal with if and with expansion
17265         recursively.
17266         (capture_info::capture_info): Take context argument
17267         (capture_info::walk_result): Only analyze specific result.
17268         (parser::parse_result): New function.
17269         (parser::parse_simplify): Adjust to parse ifs with then end
17270         else case.
17271         (parser::parse_if): Simplify.
17272         (parser::parse_pattern): Pass down simplify kind.
17273         * match.pd: Convert if structure to new syntax.
17275 2015-07-13  Marek Polacek  <polacek@redhat.com>
17277         * rtl.c (rtx_equal_p_cb): Fix typo.
17279 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
17281         * omega.h: Don't include config.h, don't include params.h again if
17282         omega.h has already been included.
17283         * graphite-poly.h: Include sese.h.
17284         * graphite.c: Don't include sese.h, remove needless includes and
17285         minimize includes outside #ifdef HAVE_isl block.
17286         * graphite-blocking.c: Don't include sese.h, remove needless includes,
17287         and wrap entire file in #ifdef HAVE_isl
17288         * graphite-dependences.c: Likewise.
17289         * graphite-interchange.c: Likewise.
17290         * graphite-isl-ast-to-gimple.c: Likewise.
17291         * graphite-optimize-isl.c: Likewise.
17292         * graphite-poly.c: Likewise.
17293         * graphite-scop-detection.c: Likewise.
17294         * graphite-sese-to-poly.c: Likewise.
17296 2015-07-13  Tom de Vries  <tom@codesourcery.com>
17298         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17300 2015-07-13  Renlin Li  <renlin.li@arm.com>
17302         PR rtl/66556
17303         * simplify-rtx.c (simplify_const_relational_operation): Add
17304         side_effects_p checks.
17306 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
17308         * bitmap.h: Fix double word typos.
17309         * builtins.c: Same.
17310         * calls.c: Same.
17311         * cfgloopmanip.c: Same.
17312         * cgraph.c: Same.
17313         * cgraph.h: Same.
17314         * cgraphclones.c: Same.
17315         * combine.c: Same.
17316         * config/aarch64/aarch64-protos.h: Same.
17317         * config/aarch64/aarch64.c: Same.
17318         * config/aarch64/aarch64.md: Same.
17319         * config/arm/arm.md: Same.
17320         * config/arm/arm1020e.md: Same.
17321         * config/arm/arm1026ejs.md: Same.
17322         * config/arm/arm926ejs.md: Same.
17323         * config/arm/fa526.md: Same.
17324         * config/arm/fa606te.md: Same.
17325         * config/arm/fa626te.md: Same.
17326         * config/arm/fa726te.md: Same.
17327         * config/arm/fmp626.md: Same.
17328         * config/darwin.c: Same.
17329         * config/epiphany/epiphany.c: Same.
17330         * config/frv/frv.c: Same.
17331         * config/ft32/ft32.c: Same.
17332         * config/gnu-user.h: Same.
17333         * config/h8300/constraints.md: Same.
17334         * config/i386/i386.c: Same.
17335         * config/i386/i386.md: Same.
17336         * config/iq2000/iq2000.md: Same.
17337         * config/mips/mips.c: Same.
17338         * config/mmix/mmix.md: Same.
17339         * config/moxie/moxie.c: Same.
17340         * config/nds32/nds32.md: Same.
17341         * config/pa/pa.h: Same.
17342         * config/rs6000/aix.h: Same.
17343         * config/rs6000/rs6000.h: Same.
17344         * config/sh/sh.c: Same.
17345         * config/tilegx/tilegx.md: Same.
17346         * config/tilepro/gen-mul-tables.cc: Same.
17347         * cse.c: Same.
17348         * dbxout.c: Same.
17349         * doc/invoke.texi: Same.
17350         * dse.c: Same.
17351         * dwarf2out.c: Same.
17352         * final.c: Same.
17353         * gcc.c: Same.
17354         * genmatch.c: Same.
17355         * gimplify.c: Same.
17356         * hash-table.h: Same.
17357         * internal-fn.c: Same.
17358         * ipa-cp.c: Same.
17359         * ipa-devirt.c: Same.
17360         * ipa-icf.c: Same.
17361         * ipa-icf.h: Same.
17362         * ipa-profile.c: Same.
17363         * ipa-prop.c: Same.
17364         * ipa-prop.h: Same.
17365         * ira.c: Same.
17366         * omp-low.c: Same.
17367         * reg-stack.c: Same.
17368         * regcprop.c: Same.
17369         * reorg.c: Same.
17370         * rtl.h: Same.
17371         * sbitmap.h: Same.
17372         * tree-eh.c: Same.
17373         * tree-inline.c: Same.
17374         * tree-sra.c: Same.
17375         * tree-ssa-dom.c: Same.
17376         * tree-ssa-loop-ivopts.c: Same.
17377         * tree-ssa-structalias.c: Same.
17378         * tree-ssa-tail-merge.c: Same.
17379         * tree-ssa-ter.c: Same.
17380         * tree-ssa-threadupdate.c: Same.
17381         * tree-ssa-uninit.c: Same.
17382         * tree-ssanames.c: Same.
17383         * tree-vect-loop-manip.c: Same.
17384         * tree-vrp.c: Same.
17385         * tree.c: Same.
17386         * valtrack.c: Same.
17387         * vec.h: Same.
17389 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17391         PR middle-end/66726
17392         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17393         tree_ssa_phiopt_worker): Call it.
17395 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17397         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17398         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17399         REG_EQUAL note.
17401 2015-07-11  Marek Polacek  <polacek@redhat.com>
17403         PR middle-end/66353
17404         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17405         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17406         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17407         rather than bb_has_abnormal_call_pred.
17408         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17409         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17410         rather than bb_has_abnormal_call_pred.
17412 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
17414         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17415         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17416         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17417         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17418         v850_legitimate_address_p): New functions.
17419         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17421 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
17423         PR target/66819
17424         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17425         indirect sibcall with register arguments if register available
17426         for argument passing.
17427         (init_cumulative_args): Set cfun->machine->arg_reg_available
17428         to (cum->nregs > 0) or to true if function has a variable
17429         argument list.
17430         (function_arg_advance_32): Set cfun->machine->arg_reg_available
17431         to false if cum->nregs <= 0.
17432         * config/i386/i386.h (machine_function): Add arg_reg_available.
17434 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17436         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17437         and gen_higpart instead of gen_rtx_SUBREG.
17438         * config/i386/i386.md
17439         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17440         (read-modify peephole2): Use gen_lowpart instead of
17441         gen_rtx_SUBREG for operand 5.
17443 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17445         * config/tilepro/gen-mul-tables.cc (main): Change include list for
17446         generated files.
17447         * config/tilepro/mul-tables.c: Regenerate.
17448         * config/tilegx/mul-tables.c: Regenerate.
17450 2015-07-10  Richard Biener  <rguenther@suse.de>
17452         * fold-const.c (distribute_bit_expr): Remove.
17453         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17454         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17455         to A & (B | C) and simplifying A << C1 << C2 to ...
17456         * match.pd: ... patterns here.
17458 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
17460         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17461         Mark mem as READONLY and NOTRAP for PIC symbol.
17463 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
17465         * gimple-predict.h: New file.
17466         (gimple_predict_predictor, gimple_predict_set_predictor,
17467         gimple_predict_outcome, gimple_predict_set_outcome,
17468         gimple_build_predict): Relocate here.
17469         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17470         gimple_predict_outcome, gimple_predict_set_outcome): Move to
17471         gimple-predict.h.
17472         * gimple.c (gimple_build_predict): Move to gimple-predict.h
17473         * basic-block.h: Don't include cfghooks.h.
17474         * backend.h: Don't include predict.h.
17475         * cfghooks.h: Include predict.h.
17476         * gimple-pretty-print.c: Include gimple-predict.h.
17477         * gimplify.c: Likwise.
17478         * predict.c: Adjust includes.
17479         * tree-inline.c: Likewise.
17480         * asan.c: Likewise.
17481         * auto-inc-dec.c: Likewise.
17482         * auto-profile.c: Likewise.
17483         * bb-reorder.c: Likewise.
17484         * builtins.c: Likewise.
17485         * caller-save.c: Likewise.
17486         * calls.c: Likewise.
17487         * cfganal.c: Likewise.
17488         * cfgbuild.c: Likewise.
17489         * cfg.c: Likewise.
17490         * cfgcleanup.c: Likewise.
17491         * cfgexpand.c: Likewise.
17492         * cfghooks.c: Likewise.
17493         * cfgloopanal.c: Likewise.
17494         * cfgloop.c: Likewise.
17495         * cfgloopmanip.c: Likewise.
17496         * cfgrtl.c: Likewise.
17497         * cgraph.c: Likewise.
17498         * cgraphunit.c: Likewise.
17499         * combine.c: Likewise.
17500         * cprop.c: Likewise.
17501         * cse.c: Likewise.
17502         * dce.c: Likewise.
17503         * dojump.c: Likewise.
17504         * dse.c: Likewise.
17505         * except.c: Likewise.
17506         * expmed.c: Likewise.
17507         * expr.c: Likewise.
17508         * final.c: Likewise.
17509         * fold-const.c: Likewise.
17510         * function.c: Likewise.
17511         * fwprop.c: Likewise.
17512         * gcc-plugin.h: Likewise.
17513         * gcse.c: Likewise.
17514         * genattrtab.c: Likewise.
17515         * genemit.c: Likewise.
17516         * gengtype.c: Likewise.
17517         * genopinit.c: Likewise.
17518         * genoutput.c: Likewise.
17519         * genpreds.c: Likewise.
17520         * genrecog.c: Likewise.
17521         * gimple-fold.c: Likewise.
17522         * gimple-iterator.c: Likewise.
17523         * gimple-ssa-isolate-paths.c: Likewise.
17524         * gimple-ssa-strength-reduction.c: Likewise.
17525         * graph.c: Likewise.
17526         * graphite-blocking.c: Likewise.
17527         * graphite.c: Likewise.
17528         * graphite-dependences.c: Likewise.
17529         * graphite-interchange.c: Likewise.
17530         * graphite-isl-ast-to-gimple.c: Likewise.
17531         * graphite-optimize-isl.c: Likewise.
17532         * graphite-poly.c: Likewise.
17533         * graphite-scop-detection.c: Likewise.
17534         * graphite-sese-to-poly.c: Likewise.
17535         * haifa-sched.c: Likewise.
17536         * ifcvt.c: Likewise.
17537         * internal-fn.c: Likewise.
17538         * ipa-cp.c: Likewise.
17539         * ipa-profile.c: Likewise.
17540         * ipa-split.c: Likewise.
17541         * ipa-utils.c: Likewise.
17542         * ira-build.c: Likewise.
17543         * ira-color.c: Likewise.
17544         * ira-conflicts.c: Likewise.
17545         * ira-costs.c: Likewise.
17546         * ira-emit.c: Likewise.
17547         * ira-lives.c: Likewise.
17548         * jump.c: Likewise.
17549         * loop-doloop.c: Likewise.
17550         * loop-init.c: Likewise.
17551         * loop-invariant.c: Likewise.
17552         * loop-unroll.c: Likewise.
17553         * lower-subreg.c: Likewise.
17554         * lra-assigns.c: Likewise.
17555         * lra.c: Likewise.
17556         * lra-coalesce.c: Likewise.
17557         * lra-constraints.c: Likewise.
17558         * lra-lives.c: Likewise.
17559         * lto-cgraph.c: Likewise.
17560         * lto-streamer-in.c: Likewise.
17561         * mode-switching.c: Likewise.
17562         * modulo-sched.c: Likewise.
17563         * omp-low.c: Likewise.
17564         * optabs.c: Likewise.
17565         * passes.c: Likewise.
17566         * postreload.c: Likewise.
17567         * postreload-gcse.c: Likewise.
17568         * profile.c: Likewise.
17569         * recog.c: Likewise.
17570         * regstat.c: Likewise.
17571         * reload1.c: Likewise.
17572         * reorg.c: Likewise.
17573         * rtlanal.c: Likewise.
17574         * sched-ebb.c: Likewise.
17575         * sel-sched-ir.c: Likewise.
17576         * sese.c: Likewise.
17577         * shrink-wrap.c: Likewise.
17578         * simplify-rtx.c: Likewise.
17579         * stmt.c: Likewise.
17580         * store-motion.c: Likewise.
17581         * tracer.c: Likewise.
17582         * trans-mem.c: Likewise.
17583         * tree-call-cdce.c: Likewise.
17584         * tree-cfg.c: Likewise.
17585         * tree-cfgcleanup.c: Likewise.
17586         * tree-chkp.c: Likewise.
17587         * tree-complex.c: Likewise.
17588         * tree-eh.c: Likewise.
17589         * tree-if-conv.c: Likewise.
17590         * tree-loop-distribution.c: Likewise.
17591         * tree-outof-ssa.c: Likewise.
17592         * tree-parloops.c: Likewise.
17593         * tree-predcom.c: Likewise.
17594         * tree-pretty-print.c: Likewise.
17595         * tree-profile.c: Likewise.
17596         * tree-sra.c: Likewise.
17597         * tree-ssa.c: Likewise.
17598         * tree-ssa-coalesce.c: Likewise.
17599         * tree-ssa-dce.c: Likewise.
17600         * tree-ssa-dom.c: Likewise.
17601         * tree-ssa-forwprop.c: Likewise.
17602         * tree-ssa-ifcombine.c: Likewise.
17603         * tree-ssa-loop-ch.c: Likewise.
17604         * tree-ssa-loop-im.c: Likewise.
17605         * tree-ssa-loop-ivcanon.c: Likewise.
17606         * tree-ssa-loop-ivopts.c: Likewise.
17607         * tree-ssa-loop-manip.c: Likewise.
17608         * tree-ssa-loop-prefetch.c: Likewise.
17609         * tree-ssa-loop-unswitch.c: Likewise.
17610         * tree-ssa-math-opts.c: Likewise.
17611         * tree-ssa-phiopt.c: Likewise.
17612         * tree-ssa-pre.c: Likewise.
17613         * tree-ssa-reassoc.c: Likewise.
17614         * tree-ssa-sink.c: Likewise.
17615         * tree-ssa-tail-merge.c: Likewise.
17616         * tree-ssa-threadedge.c: Likewise.
17617         * tree-ssa-threadupdate.c: Likewise.
17618         * tree-switch-conversion.c: Likewise.
17619         * tree-tailcall.c: Likewise.
17620         * tree-vect-data-refs.c: Likewise.
17621         * tree-vect-loop.c: Likewise.
17622         * tree-vect-loop-manip.c: Likewise.
17623         * tree-vectorizer.c: Likewise.
17624         * tree-vrp.c: Likewise.
17625         * ubsan.c: Likewise.
17626         * value-prof.c: Likewise.
17627         * varasm.c: Likewise.
17628         * var-tracking.c: Likewise.
17629         * config/aarch64/aarch64-builtins.c: Likewise.
17630         * config/aarch64/aarch64.c: Likewise.
17631         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17632         * config/alpha/alpha.c: Likewise.
17633         * config/arc/arc.c: Likewise.
17634         * config/arm/arm.c: Likewise.
17635         * config/avr/avr.c: Likewise.
17636         * config/bfin/bfin.c: Likewise.
17637         * config/c6x/c6x.c: Likewise.
17638         * config/cr16/cr16.c: Likewise.
17639         * config/cris/cris.c: Likewise.
17640         * config/darwin.c: Likewise.
17641         * config/darwin-c.c: Likewise.
17642         * config/epiphany/epiphany.c: Likewise.
17643         * config/epiphany/mode-switch-use.c: Likewise.
17644         * config/epiphany/resolve-sw-modes.c: Likewise.
17645         * config/fr30/fr30.c: Likewise.
17646         * config/frv/frv.c: Likewise.
17647         * config/ft32/ft32.c: Likewise.
17648         * config/h8300/h8300.c: Likewise.
17649         * config/i386/i386.c: Likewise.
17650         * config/i386/winnt.c: Likewise.
17651         * config/ia64/ia64.c: Likewise.
17652         * config/iq2000/iq2000.c: Likewise.
17653         * config/lm32/lm32.c: Likewise.
17654         * config/m32c/m32c.c: Likewise.
17655         * config/m32r/m32r.c: Likewise.
17656         * config/m68k/m68k.c: Likewise.
17657         * config/mcore/mcore.c: Likewise.
17658         * config/mep/mep.c: Likewise.
17659         * config/microblaze/microblaze.c: Likewise.
17660         * config/mips/mips.c: Likewise.
17661         * config/mmix/mmix.c: Likewise.
17662         * config/mn10300/mn10300.c: Likewise.
17663         * config/moxie/moxie.c: Likewise.
17664         * config/msp430/msp430.c: Likewise.
17665         * config/nds32/nds32.c: Likewise.
17666         * config/nds32/nds32-cost.c: Likewise.
17667         * config/nds32/nds32-fp-as-gp.c: Likewise.
17668         * config/nds32/nds32-intrinsic.c: Likewise.
17669         * config/nds32/nds32-isr.c: Likewise.
17670         * config/nds32/nds32-md-auxiliary.c: Likewise.
17671         * config/nds32/nds32-memory-manipulation.c: Likewise.
17672         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17673         * config/nds32/nds32-predicates.c: Likewise.
17674         * config/nios2/nios2.c: Likewise.
17675         * config/nvptx/nvptx.c: Likewise.
17676         * config/pa/pa.c: Likewise.
17677         * config/pdp11/pdp11.c: Likewise.
17678         * config/rl78/rl78.c: Likewise.
17679         * config/rs6000/rs6000.c: Likewise.
17680         * config/rx/rx.c: Likewise.
17681         * config/s390/s390.c: Likewise.
17682         * config/sh/sh.c: Likewise.
17683         * config/sh/sh-mem.cc: Likewise.
17684         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17685         * config/sh/sh_treg_combine.cc: Likewise.
17686         * config/sparc/sparc.c: Likewise.
17687         * config/spu/spu.c: Likewise.
17688         * config/stormy16/stormy16.c: Likewise.
17689         * config/tilegx/tilegx.c: Likewise.
17690         * config/tilepro/tilepro.c: Likewise.
17691         * config/v850/v850.c: Likewise.
17692         * config/vax/vax.c: Likewise.
17693         * config/visium/visium.c: Likewise.
17694         * config/xtensa/xtensa.c: Likewise.
17696 2015-07-10  Richard Biener  <rguenther@suse.de>
17698         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17699         (decision_tree::gen_gimple): Likewise.
17700         (decision_tree::gen_generic): Likewise.
17702 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
17704         PR target/66813
17705         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17706         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17708 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
17710         PR middle-end/66820
17711         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17712         or ORT_TASK contexts.
17713         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17714         is non-zero.
17716 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17718         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17719         above function.
17721 2015-07-10  Tom de Vries  <tom@codesourcery.com>
17723         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17724         insert nit + 1 bound.
17726 2015-07-10  Richard Biener  <rguenther@suse.de>
17728         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17729         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17730         (if_convertible_loop_p_1): For this always compute bb predicates.
17731         (if_convertible_loop_p): And free them.
17733 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17735         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17736         in dump message.
17738 2015-07-10  Richard Biener  <rguenther@suse.de>
17740         PR tree-optimization/66823
17741         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17742         inverted predicate.
17744 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
17746         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17747         to handle mips[32|64]r3 and mips[32|64]r5.
17749 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
17751         PR middle-end/66633
17752         * tree-nested.c (get_static_chain): Or in a flag into
17753         info->static_chain_added.
17754         (get_frame_field, get_nonlocal_debug_decl): Likewise.
17755         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17756         2015-07-01 changes.
17757         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17758         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17759         add it to clauses.
17761         PR tree-optimization/66718
17762         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17763         field.
17764         (vect_simd_lane_linear): New function.
17765         (vectorizable_simd_clone_call): Support using linear arguments for
17766         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17768 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17770         PR target/66821
17771         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17773 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
17775         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17776         Use machine mode, not enum machine_mode in the prototype.
17778         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17779         classify 128-bit floating point support.
17780         (FLOAT128_IBM_P): Likewise.
17781         (FLOAT128_VECTOR_P): Likewise.
17782         (FLOAT128_2REG_P): Likewise.
17783         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17784         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17785         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17786         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17788         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17789         tests against TFmode/TDmode, since those modes do not use VSX
17790         addresses.
17791         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17792         support.
17793         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17794         tests against TFmode, etc.
17795         (invalid_e500_subreg): Add tests against IFmode/KFmode.
17796         (reg_offset_addressing_ok_p): Likewise.
17797         (rs6000_legitimate_offset_address_p): Likewise.
17798         (rs6000_legitimize_address): Likewise.
17799         (rs6000_legitimize_reload_address): Likewise.
17800         (rs6000_legitimate_address_p): Clean up tests against TFmode and
17801         TDmode to use the new helper macros, which will include IFmode and
17802         KFmode.
17803         (rs6000_emit_move): Likewise.
17804         (rs6000_darwin64_record_arg_recurse): Likewise.
17805         (print_operand): Likewise.
17806         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17807         that uses a single vector register as a vector and not as a
17808         floating point register in terms of the calling sequence.
17809         (rs6000_discover_homogeneous_aggregate): Likewise.
17810         (rs6000_return_in_memory): Likewise.
17811         (init_cumulative_args): Likewise.
17812         (rs6000_function_arg_boundary): Likewise.
17813         (rs6000_function_arg_advance_1): Likewise.
17814         (rs6000_function_arg): Likewise.
17815         (rs6000_pass_by_reference): Likewise.
17816         (rs6000_gimplify_va_arg): Likewise.
17817         (rs6000_secondary_reload_memory): Use machine_mode not enum
17818         machine mode.
17819         (rs6000_split_multireg_move): Use new helper macros.
17820         (spe_func_has_64bit_regs_p): Likewise.
17821         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17822         (output_toc): Use new helper macros.
17823         (rs6000_register_move_cost): Likewise.
17824         (rs6000_function_value): Add IEEE 128-bit floating point calling
17825         sequence support.
17826         (rs6000_libcall_value): Likewise.
17827         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17828         floating point support.
17829         (rs6000_vector_mode_supported_p): Likewise.
17831 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
17833         PR rtl-optimization/66782
17834         * lra-int.h (struct lra_insn_recog_data): Add comment about
17835         clobbered hard regs for arg_hard_regs.
17836         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17837         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17838         Add condition for processing used hard regs.
17839         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17840         Process clobbered hard regs.
17842 2015-07-09  Michael Matz  <matz@suse.de>
17844         * genmatch.c (fprintf_indent): New function.
17845         (operand::gen_transform): Add indent parameter.
17846         (expr::gen_transform, c_expr::gen_transform,
17847         capture::gen_transform): Ditto and use fprintf_indent.
17848         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17849         (dt_operand::gen, dt_operand::gen_predicate,
17850         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17851         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17852         (decision_tree::gen_gimple): Adjust calls and indent generated
17853         code.
17854         (decision_tree::gen_generic): Ditto.
17855         (write_predicate): Ditto.
17857 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
17859         PR target/66814
17860         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17861         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17862         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17863         {GENERAL,SSE,MMX}_REG_P where appropriate.
17865 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
17867         * lto-streamer.h: Don't include target.h and alloc-pool.h.
17868         * builtins.c: Adjust includes.
17869         * gimple.c: Likewise.
17870         * ipa-icf.c: Likewise.
17871         * lto-opts.c: Likewise.
17872         * ipa-reference.c: Likewise.
17873         * lto-section-out.c: Likewise.
17874         * lto-streamer-in.c: Likewise.
17875         * lto-streamer-out.c: Likewise.
17876         * opts-global.c: Likewise.
17877         * symtab.c: Likewise.
17878         * tree-chkp.c: Likewise.
17879         * tree-ssa-live.c: Likewise.
17880         * tree-streamer-in.c: Likewise.
17881         * tree-streamer-out.c: Likewise.
17882         * config/darwin.c: Likewise.
17883         * config/i386/winnt.c: Likewise.
17885 2015-07-09  Richard Biener  <rguenther@suse.de>
17887         * genmatch.c (struct expr): Add force_single_use flag.
17888         (expr::expr): Add copy constructor.
17889         (capture_info::walk_match): Gather force_single_use captures.
17890         (expr::gen_transform): Use possibly NULLified sequence.
17891         (dt_simplify::gen): Apply single-use restrictions by NULLifying
17892         seq if any constrained expr is not single-use.
17893         (parser::parse_expr): Refactor to allow multiple flags.  Handle
17894         's' flag to force an expression have a single-use if the pattern
17895         simplifies to more than one statement.
17896         * match.pd: Convert most single_use conditionals to :s flags.
17898 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17900         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17901         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17902         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17904 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
17906         * flags.h: Don't include flag-types.h or options.h.
17907         * opts-common.c: Adjust includes.
17908         * opts-global.c: Likewise.
17909         * common/config/epiphany/epiphany-common.c: Likewise.
17911 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17913         PR target/66818
17914         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17915         for IA MCU.
17917 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
17919         PR target/66817
17920         * config/i386/i386.c (ix86_return_in_memory): Return true
17921         if int_size_in_bytes returns negative for IA MCU.
17923 2015-07-09  Marek Polacek  <polacek@redhat.com>
17925         PR tree-optimization/66718
17926         * Makefile.in (OBJS): Add gimple-laddress.o.
17927         * passes.def: Schedule pass_laddress.
17928         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17929         * tree-pass.h (make_pass_laddress): Declare.
17930         * gimple-laddress.c: New file.
17932 2015-07-09  Richard Biener  <rguenther@suse.de>
17934         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17936 2015-07-09  Richard Biener  <rguenther@suse.de>
17938         PR tree-optimization/66807
17939         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17941 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
17943         * function.c (stack_protect_epilogue): Use if rather than switch for
17944         check targetm.have_stack_protect_test.
17946 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17948         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17949         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17950         * config/arc/arc.h: Likewise.
17951         * config/arm/arm.h: Likewise.
17952         * config/bfin/bfin.h: Likewise.
17953         * config/epiphany/epiphany.h: Likewise.
17954         * config/frv/frv.h: Likewise.
17955         * config/ia64/ia64.h: Likewise.
17956         * config/iq2000/iq2000.h: Likewise.
17957         * config/lm32/lm32.h: Likewise.
17958         * config/m32r/m32r.h: Likewise.
17959         * config/mcore/mcore.h: Likewise.
17960         * config/mep/mep.h: Likewise.
17961         * config/microblaze/microblaze.h: Likewise.
17962         * config/mips/mips.h: Likewise.
17963         * config/mmix/mmix.h: Likewise.
17964         * config/mn10300/mn10300.h: Likewise.
17965         * config/nds32/nds32.h: Likewise.
17966         * config/nios2/nios2.h: Likewise.
17967         * config/pa/pa.h: Likewise.
17968         * config/rl78/rl78.h: Likewise.
17969         * config/sh/sh.h: Likewise.
17970         * config/sparc/sparc.h: Likewise.
17971         * config/stormy16/stormy16.h: Likewise.
17972         * config/tilegx/tilegx.h: Likewise.
17973         * config/tilepro/tilepro.h: Likewise.
17974         * config/v850/v850.h: Likewise.
17975         * config/xtensa/xtensa.h: Likewise.
17976         * doc/tm.texi: Regenerate.
17977         * doc/tm.texi.in: Adjust.
17978         * combine.c (simplify_set): Likewise.
17979         (simplify_comparison): Likewise.
17980         * expr.c (store_constructor): Likewise.
17981         * internal-fn.c (expand_arith_overflow): Likewise.
17982         * reload.c (push_reload): Likewise.
17983         (find_reloads): Likewise.
17984         (find_reloads_subreg_address): Likewise.
17985         * reload1.c (eliminate_regs_1): Likewise.
17986         * rtlanal.c (nonzero_bits1): Likewise.
17987         (num_sign_bit_copies1): Likewise.
17988         * simplify-rtx.c (simplify_truncation): Likewise.
17990 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17992         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17993         of AUTO_INC_DEC with the preprocessor.
17994         * combine.c (combine_instructions): Likewise.
17995         (can_combine_p): Likewise.
17996         (try_combine): Likewise.
17997         * emit-rtl.c (try_split): Likewise.
17998         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17999         * lower-subreg.c (resolve_simple_move): Likewise.
18000         * lra.c (update_inc_notes): Likewise.
18001         * recog.c (asm_operand_ok): Likewise.
18002         (constrain_operands): Likewise.
18003         * regrename.c (scan_rtx_address): Likewise.
18004         * reload.c (update_auto_inc_notes): Likewise.
18005         (reg_inc_found_and_valid_p): Likewise.
18006         * reload1.c (reload): Likewise.
18007         (emit_input_reload_insns): Likewise.
18008         (delete_output_reload): Likewise.
18009         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18010         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18012 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18014         * rtl.h: Always define AUTO_INC_DEC.
18015         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18016         * combine.c (combine_instructions): Likewise.
18017         (can_combine_p): Likewise.
18018         (try_combine): Likewise.
18019         * emit-rtl.c (try_split): Likewise.
18020         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18021         * lower-subreg.c (resolve_simple_move): Likewise.
18022         * lra.c (update_inc_notes): Likewise.
18023         * recog.c (asm_operand_ok): Likewise.
18024         (constrain_operands): Likewise.
18025         * regrename.c (scan_rtx_address): Likewise.
18026         * reload.c (update_auto_inc_notes): Likewise.
18027         (find_equiv_reg): Likewise.
18028         * reload1.c (reload): Likewise.
18029         (reload_as_needed): Likewise.
18030         (choose_reload_regs): Likewise.
18031         (emit_input_reload_insns): Likewise.
18032         (delete_output_reload): Likewise.
18033         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18034         * valtrack.c (cleanup_auto_inc_dec): Likewise.
18036 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18038         * combine.c (can_combine_def_p): Don't check the value of
18039         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18040         (combinable_i3pat): Likewise.
18041         (mark_used_regs_combine): Likewise.
18042         * regrename.c (rename_chains): Likewise.
18043         * reload.c (find_reloads_address): Likewise.
18044         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18046 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18048         * combine.c (update_rsp_from_reg_equal): Don't check if
18049         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18050         (reg_nonzero_bits_for_combine): Likewise.
18051         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18052         1.
18053         * config/frv/frv.h: Likewise.
18054         * config/lm32/lm32.h: Likewise.
18055         * config/mep/mep.h: Likewise.
18056         * config/mips/mips.h: Likewise.
18057         * config/rs6000/rs6000.h: Likewise.
18058         * config/sh/sh.h: Likewise.
18059         * config/tilegx/tilegx.h (enum reg_class): Likewise.
18060         * config/tilepro/tilepro.h: Likewise.
18061         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18062         * doc/tm.texi: Regenerate.
18063         * doc/tm.texi.in: Adjust.
18064         * rtlanal.c (nonzero_bits1): Likewise.
18066 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18068         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18069         with the preprocessor.
18070         (combine_instructions): Likewise.
18071         (try_combine): Likewise.
18072         (subst): Likewise.
18073         (distribute_notes): Likewise.
18075 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18077         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18078         defined.
18079         (simplify_set): Likewise.
18080         * cse.c (cse_insn): Likewise.
18081         * fold-const.c (fold_single_bit_test): Likewise.
18082         (fold_unary_loc): Likewise.
18083         * postreload.c (reload_cse_simplify_set): Likewise.
18084         (reload_cse_simplify_operands): Likewise.
18086 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
18088         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18089         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18091 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
18093         PR target/66746
18094         * config/i386/x86intrin.h: Include <adxintrin.h> even if
18095         __iamcu__ is defined.
18097 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18099         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18101 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
18103         PR target/66523
18104         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18105         names from preservation.
18107 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
18109         PR target/66806
18110         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18111         change for IAMCU.
18112         (function_arg_advance_32): Don't pass vectors in registers for
18113         IAMCU.
18114         (function_arg_32): Likewise.
18115         (ix86_return_in_memory): Don't return vectors in registers for
18116         IAMCU.
18118 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
18120         PR middle-end/66334
18121         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18122         hard regno live at the start of BB with incoming abnormal edges.
18123         * lra-lives.c (process_bb_lives): Ditto.
18125 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
18127         PR libgomp/65099
18128         * config/nvptx/mkoffload.c (main): Create an offload image only in
18129         64-bit configurations.
18131 2015-07-08  Martin Liska  <mliska@suse.cz>
18133         PR bootstrap/66744
18134         * tree-sra.c (create_access_1): Call ctor without brackets.
18135         (create_artificial_child_access): Likewise.
18137 2015-07-08  Richard Biener  <rguenther@suse.de>
18139         PR tree-optimization/66793
18140         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18141         Properly split the block after stmts ending it.
18143 2015-07-08  Richard Biener  <rguenther@suse.de>
18145         PR tree-optimization/66794
18146         * passes.c (execute_function_todo): Assert that post-dominators
18147         are not computed.
18148         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18149         Free post-dominators.
18151 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18153         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18154         with early exit.
18156 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
18158         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18159         more than or equal 8 and less than 32 when optimizing for size.
18161 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18163         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18164         COSTS_N_INSNS (1) and increment it appropriately throughout the
18165         function.
18167 2015-07-08  Richard Biener  <rguenther@suse.de>
18169         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18171 2015-07-08  Alan Modra  <amodra@gmail.com>
18173         * target.def (rtx_costs): Remove "code" param, add "mode".
18174         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18175         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
18176         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18177         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
18178         call.  Track mode when given in rtx.
18179         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
18180         (default_address_cost): Pass Pmode to rtx_cost.
18181         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18182         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18183         with NULL set.
18184         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
18185         (notreg_cost): Add mode param.  Use it.
18186         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
18187         mode param and pass to set_src_cost.  Update all calls.
18188         (hash_scan_set): Formatting.
18189         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18190         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18191         * hooks.h: Ditto.
18192         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18193         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18194         emit_store_flag): Update set_src_cost and rtx_cost calls.
18195         * auto-inc-dec.c (attempt_change): Likewise.
18196         * calls.c (precompute_register_parameters): Likewise.
18197         * combine.c (expand_compound_operation, make_extraction,
18198         force_to_mode, distribute_and_simplify_rtx): Likewise.
18199         * dojump.c (prefer_and_bit_test): Likewise.
18200         * dse.c (find_shift_sequence): Likewise.
18201         * expr.c (compress_float_constant): Likewise.
18202         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18203         * ifcvt.c (noce_try_sign_mask): Likewise.
18204         * loop-doloop.c (doloop_optimize): Likewise.
18205         * loop-invariant.c (create_new_invariant): Likewise.
18206         * lower-subreg.c (shift_cost, compute_costs): Likewise.
18207         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18208         lshift_cheap_p): Likewise.
18209         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18210         try_replace_in_use, reload_cse_move2add): Likewise.
18211         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18212         Likewise.
18213         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18214         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18215         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18216         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18217         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18218         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
18219         to rtx_cost calls.
18220         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18221         * config/arc/arc.c (arc_rtx_costs): Likewise.
18222         * config/arm/arm.c (arm_rtx_costs): Likewise.
18223         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18224         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18225         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18226         * config/cris/cris.c (cris_rtx_costs): Likewise.
18227         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18228         * config/frv/frv.c (frv_rtx_costs): Likewise.
18229         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18230         * config/i386/i386.c (ix86_rtx_costs): Likewise.
18231         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18232         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18233         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18234         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18235         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18236         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18237         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18238         * config/mep/mep.c (mep_rtx_cost): Likewise.
18239         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18240         * config/mips/mips.c (mips_rtx_costs): Likewise.
18241         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18242         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18243         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18244         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18245         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18246         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18247         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18248         * config/pa/pa.c (hppa_rtx_costs): Likewise.
18249         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18250         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18251         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18252         * config/s390/s390.c (s390_rtx_costs): Likewise.
18253         * config/sh/sh.c (sh_rtx_costs): Likewise.
18254         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18255         * config/spu/spu.c (spu_rtx_costs): Likewise.
18256         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18257         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18258         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18259         * config/v850/v850.c (v850_rtx_costs): Likewise.
18260         * config/vax/vax.c (vax_rtx_costs): Likewise.
18261         * config/visium/visium.c (visium_rtx_costs): Likewise.
18262         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18263         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18264         "code" param, and pass as outer_code to first rtx_cost call.  Pass
18265         mode to rtx_cost calls.
18266         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18267         calls.
18268         (aarch64_rtx_costs_wrapper): Update.
18269         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18270         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18271         rtx_cost calls.
18272         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18273         and rtx_cost calls.
18274         (avr_operand_rtx_cost): Similarly.
18275         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18276         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18277         * config/mips/mips.c (mips_stack_address_p): Comment typo.
18278         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18279         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18280         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18281         rtx_cost.
18282         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18283         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18284         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18285         * doc/tm.texi: Regenerate.
18287 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
18289         * tree-core.h: Include symtab.h.
18290         * rtl.h: Include hard-reg-set.h but not flags.h.
18291         (HARD_CONST): Remove condition compilation involving HARD_CONST since
18292         hard-reg-set.h is always included.
18293         * regs.h: Don't include hard-reg-set.h or rtl.h.
18294         * cfg.h: Include dominance.h.
18295         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18296         * backend.h: New.  Aggregate commonly used backend header files.
18297         * gimple-ssa.h: Don't include tree-hasher.h.
18298         * ssa.h: New.  Aggregate commonly used SSA header files.
18299         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18300         * sel-sched-ir.h: Flatten includes.
18301         * lra-int.h: Flatten completely.
18302         * sel-sched-dump.h: Flatten includes.
18303         * ira-int.h: Flatten includes.
18304         * gimple-streamer.h: Remove all includes.
18305         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18306         * resource.h: Flatten hard-reg-set.h and df.h.
18307         * sched-int.h: Flatten insn-arrt.h and df.h.
18308         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18309         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18310         * genattrtab.c (write_header): Adjust generated includes.
18311         * genautomata.c (main): Likewise.
18312         * genconditions.c (write-header): Likewise.
18313         * genemit.c (main): Likewise.
18314         * gengtype.c (open_base_files): Likewise.
18315         * genopinit.c (main): Likewise.
18316         * genoutput.c (output_prologue): Likewise.
18317         * genpeep.c (main): Likewise.
18318         * genpreds.c (write_insn_preds_c): Likewise.
18319         * genrecog.c (write_header): Likewise.
18320         * alias.c: Adjust includes.
18321         * asan.c: Likewise.
18322         * attribs.c: Likewise.
18323         * auto-inc-dec.c: Likewise.
18324         * auto-profile.c: Likewise.
18325         * bb-reorder.c: Likewise.
18326         * bt-load.c: Likewise.
18327         * builtins.c: Likewise.
18328         * caller-save.c: Likewise.
18329         * calls.c: Likewise.
18330         * ccmp.c: Likewise.
18331         * cfg.c: Likewise.
18332         * cfganal.c: Likewise.
18333         * cfgbuild.c: Likewise.
18334         * cfgcleanup.c: Likewise.
18335         * cfgexpand.c: Likewise.
18336         * cfghooks.c: Likewise.
18337         * cfgloop.c: Likewise.
18338         * cfgloopanal.c: Likewise.
18339         * cfgloopmanip.c: Likewise.
18340         * cfgrtl.c: Likewise.
18341         * cgraph.c: Likewise.
18342         * cgraphbuild.c: Likewise.
18343         * cgraphclones.c: Likewise.
18344         * cgraphunit.c: Likewise.
18345         * cilk-common.c: Likewise.
18346         * combine-stack-adj.c: Likewise.
18347         * combine.c: Likewise.
18348         * compare-elim.c: Likewise.
18349         * convert.c: Likewise.
18350         * coverage.c: Likewise.
18351         * cppbuiltin.c: Likewise.
18352         * cprop.c: Likewise.
18353         * cse.c: Likewise.
18354         * cselib.c: Likewise.
18355         * data-streamer-in.c: Likewise.
18356         * data-streamer-out.c: Likewise.
18357         * data-streamer.c: Likewise.
18358         * dbxout.c: Likewise.
18359         * dce.c: Likewise.
18360         * ddg.c: Likewise.
18361         * debug.c: Likewise.
18362         * df-core.c: Likewise.
18363         * df-problems.c: Likewise.
18364         * df-scan.c: Likewise.
18365         * dfp.c: Likewise.
18366         * dojump.c: Likewise.
18367         * dominance.c: Likewise.
18368         * domwalk.c: Likewise.
18369         * double-int.c: Likewise.
18370         * dse.c: Likewise.
18371         * dumpfile.c: Likewise.
18372         * dwarf2asm.c: Likewise.
18373         * dwarf2cfi.c: Likewise.
18374         * dwarf2out.c: Likewise.
18375         * emit-rtl.c: Likewise.
18376         * et-forest.c: Likewise.
18377         * except.c: Likewise.
18378         * explow.c: Likewise.
18379         * expmed.c: Likewise.
18380         * expr.c: Likewise.
18381         * final.c: Likewise.
18382         * fixed-value.c: Likewise.
18383         * fold-const.c: Likewise.
18384         * function.c: Likewise.
18385         * fwprop.c: Likewise.
18386         * gcc-plugin.h: Likewise.
18387         * gcse-common.c: Likewise.
18388         * gcse.c: Likewise.
18389         * generic-match-head.c: Likewise.
18390         * ggc-page.c: Likewise.
18391         * gimple-builder.c: Likewise.
18392         * gimple-expr.c: Likewise.
18393         * gimple-fold.c: Likewise.
18394         * gimple-iterator.c: Likewise.
18395         * gimple-low.c: Likewise.
18396         * gimple-match-head.c: Likewise.
18397         * gimple-pretty-print.c: Likewise.
18398         * gimple-ssa-isolate-paths.c: Likewise.
18399         * gimple-ssa-strength-reduction.c: Likewise.
18400         * gimple-streamer-in.c: Likewise.
18401         * gimple-streamer-out.c: Likewise.
18402         * gimple-walk.c: Likewise.
18403         * gimple.c: Likewise.
18404         * gimplify-me.c: Likewise.
18405         * gimplify.c: Likewise.
18406         * godump.c: Likewise.
18407         * graph.c: Likewise.
18408         * graphite-blocking.c: Likewise.
18409         * graphite-dependences.c: Likewise.
18410         * graphite-interchange.c: Likewise.
18411         * graphite-isl-ast-to-gimple.c: Likewise.
18412         * graphite-optimize-isl.c: Likewise.
18413         * graphite-poly.c: Likewise.
18414         * graphite-scop-detection.c: Likewise.
18415         * graphite-sese-to-poly.c: Likewise.
18416         * graphite.c: Likewise.
18417         * haifa-sched.c: Likewise.
18418         * hw-doloop.c: Likewise.
18419         * ifcvt.c: Likewise.
18420         * init-regs.c: Likewise.
18421         * internal-fn.c: Likewise.
18422         * ipa-chkp.c: Likewise.
18423         * ipa-comdats.c: Likewise.
18424         * ipa-cp.c: Likewise.
18425         * ipa-devirt.c: Likewise.
18426         * ipa-icf-gimple.c: Likewise.
18427         * ipa-icf.c: Likewise.
18428         * ipa-inline-analysis.c: Likewise.
18429         * ipa-inline-transform.c: Likewise.
18430         * ipa-inline.c: Likewise.
18431         * ipa-polymorphic-call.c: Likewise.
18432         * ipa-profile.c: Likewise.
18433         * ipa-prop.c: Likewise.
18434         * ipa-pure-const.c: Likewise.
18435         * ipa-ref.c: Likewise.
18436         * ipa-reference.c: Likewise.
18437         * ipa-split.c: Likewise.
18438         * ipa-utils.c: Likewise.
18439         * ipa-visibility.c: Likewise.
18440         * ipa.c: Likewise.
18441         * ira-build.c: Likewise.
18442         * ira-color.c: Likewise.
18443         * ira-conflicts.c: Likewise.
18444         * ira-costs.c: Likewise.
18445         * ira-emit.c: Likewise.
18446         * ira-lives.c: Likewise.
18447         * ira.c: Likewise.
18448         * jump.c: Likewise.
18449         * langhooks.c: Likewise.
18450         * lcm.c: Likewise.
18451         * loop-doloop.c: Likewise.
18452         * loop-init.c: Likewise.
18453         * loop-invariant.c: Likewise.
18454         * loop-iv.c: Likewise.
18455         * loop-unroll.c: Likewise.
18456         * lower-subreg.c: Likewise.
18457         * lra-assigns.c: Likewise.
18458         * lra-coalesce.c: Likewise.
18459         * lra-constraints.c: Likewise.
18460         * lra-eliminations.c: Likewise.
18461         * lra-lives.c: Likewise.
18462         * lra-remat.c: Likewise.
18463         * lra-spills.c: Likewise.
18464         * lra.c: Likewise.
18465         * lto-cgraph.c: Likewise.
18466         * lto-compress.c: Likewise.
18467         * lto-opts.c: Likewise.
18468         * lto-section-in.c: Likewise.
18469         * lto-section-out.c: Likewise.
18470         * lto-streamer-in.c: Likewise.
18471         * lto-streamer-out.c: Likewise.
18472         * lto-streamer.c: Likewise.
18473         * mcf.c: Likewise.
18474         * mode-switching.c: Likewise.
18475         * modulo-sched.c: Likewise.
18476         * omega.c: Likewise.
18477         * omp-low.c: Likewise.
18478         * optabs.c: Likewise.
18479         * opts-global.c: Likewise.
18480         * passes.c: Likewise.
18481         * plugin.c: Likewise.
18482         * postreload-gcse.c: Likewise.
18483         * postreload.c: Likewise.
18484         * predict.c: Likewise.
18485         * print-rtl.c: Likewise.
18486         * print-tree.c: Likewise.
18487         * profile.c: Likewise.
18488         * real.c: Likewise.
18489         * realmpfr.c: Likewise.
18490         * recog.c: Likewise.
18491         * ree.c: Likewise.
18492         * reg-stack.c: Likewise.
18493         * regcprop.c: Likewise.
18494         * reginfo.c: Likewise.
18495         * regrename.c: Likewise.
18496         * regstat.c: Likewise.
18497         * reload.c: Likewise.
18498         * reload1.c: Likewise.
18499         * reorg.c: Likewise.
18500         * resource.c: Likewise.
18501         * rtl-chkp.c: Likewise.
18502         * rtlanal.c: Likewise.
18503         * rtlhooks.c: Likewise.
18504         * sanopt.c: Likewise.
18505         * sched-deps.c: Likewise.
18506         * sched-ebb.c: Likewise.
18507         * sched-rgn.c: Likewise.
18508         * sched-vis.c: Likewise.
18509         * sdbout.c: Likewise.
18510         * sel-sched-dump.c: Likewise.
18511         * sel-sched-ir.c: Likewise.
18512         * sel-sched.c: Likewise.
18513         * sese.c: Likewise.
18514         * shrink-wrap.c: Likewise.
18515         * simplify-rtx.c: Likewise.
18516         * stack-ptr-mod.c: Likewise.
18517         * stmt.c: Likewise.
18518         * stor-layout.c: Likewise.
18519         * store-motion.c: Likewise.
18520         * stringpool.c: Likewise.
18521         * symtab.c: Likewise.
18522         * target-globals.c: Likewise.
18523         * targhooks.c: Likewise.
18524         * toplev.c: Likewise.
18525         * tracer.c: Likewise.
18526         * trans-mem.c: Likewise.
18527         * tree-affine.c: Likewise.
18528         * tree-browser.c: Likewise.
18529         * tree-call-cdce.c: Likewise.
18530         * tree-cfg.c: Likewise.
18531         * tree-cfgcleanup.c: Likewise.
18532         * tree-chkp-opt.c: Likewise.
18533         * tree-chkp.c: Likewise.
18534         * tree-chrec.c: Likewise.
18535         * tree-complex.c: Likewise.
18536         * tree-data-ref.c: Likewise.
18537         * tree-dfa.c: Likewise.
18538         * tree-diagnostic.c: Likewise.
18539         * tree-dump.c: Likewise.
18540         * tree-eh.c: Likewise.
18541         * tree-emutls.c: Likewise.
18542         * tree-if-conv.c: Likewise.
18543         * tree-inline.c: Likewise.
18544         * tree-into-ssa.c: Likewise.
18545         * tree-iterator.c: Likewise.
18546         * tree-loop-distribution.c: Likewise.
18547         * tree-nested.c: Likewise.
18548         * tree-nrv.c: Likewise.
18549         * tree-object-size.c: Likewise.
18550         * tree-outof-ssa.c: Likewise.
18551         * tree-parloops.c: Likewise.
18552         * tree-phinodes.c: Likewise.
18553         * tree-predcom.c: Likewise.
18554         * tree-pretty-print.c: Likewise.
18555         * tree-profile.c: Likewise.
18556         * tree-scalar-evolution.c: Likewise.
18557         * tree-sra.c: Likewise.
18558         * tree-ssa-address.c: Likewise.
18559         * tree-ssa-alias.c: Likewise.
18560         * tree-ssa-ccp.c: Likewise.
18561         * tree-ssa-coalesce.c: Likewise.
18562         * tree-ssa-copy.c: Likewise.
18563         * tree-ssa-copyrename.c: Likewise.
18564         * tree-ssa-dce.c: Likewise.
18565         * tree-ssa-dom.c: Likewise.
18566         * tree-ssa-dse.c: Likewise.
18567         * tree-ssa-forwprop.c: Likewise.
18568         * tree-ssa-ifcombine.c: Likewise.
18569         * tree-ssa-live.c: Likewise.
18570         * tree-ssa-loop-ch.c: Likewise.
18571         * tree-ssa-loop-im.c: Likewise.
18572         * tree-ssa-loop-ivcanon.c: Likewise.
18573         * tree-ssa-loop-ivopts.c: Likewise.
18574         * tree-ssa-loop-manip.c: Likewise.
18575         * tree-ssa-loop-niter.c: Likewise.
18576         * tree-ssa-loop-prefetch.c: Likewise.
18577         * tree-ssa-loop-unswitch.c: Likewise.
18578         * tree-ssa-loop.c: Likewise.
18579         * tree-ssa-math-opts.c: Likewise.
18580         * tree-ssa-operands.c: Likewise.
18581         * tree-ssa-phiopt.c: Likewise.
18582         * tree-ssa-phiprop.c: Likewise.
18583         * tree-ssa-pre.c: Likewise.
18584         * tree-ssa-propagate.c: Likewise.
18585         * tree-ssa-reassoc.c: Likewise.
18586         * tree-ssa-sccvn.c: Likewise.
18587         * tree-ssa-scopedtables.c: Likewise.
18588         * tree-ssa-sink.c: Likewise.
18589         * tree-ssa-strlen.c: Likewise.
18590         * tree-ssa-structalias.c: Likewise.
18591         * tree-ssa-tail-merge.c: Likewise.
18592         * tree-ssa-ter.c: Likewise.
18593         * tree-ssa-threadedge.c: Likewise.
18594         * tree-ssa-threadupdate.c: Likewise.
18595         * tree-ssa-uncprop.c: Likewise.
18596         * tree-ssa-uninit.c: Likewise.
18597         * tree-ssa.c: Likewise.
18598         * tree-ssanames.c: Likewise.
18599         * tree-stdarg.c: Likewise.
18600         * tree-streamer-in.c: Likewise.
18601         * tree-streamer-out.c: Likewise.
18602         * tree-streamer.c: Likewise.
18603         * tree-switch-conversion.c: Likewise.
18604         * tree-tailcall.c: Likewise.
18605         * tree-vect-data-refs.c: Likewise.
18606         * tree-vect-generic.c: Likewise.
18607         * tree-vect-loop-manip.c: Likewise.
18608         * tree-vect-loop.c: Likewise.
18609         * tree-vect-patterns.c: Likewise.
18610         * tree-vect-slp.c: Likewise.
18611         * tree-vect-stmts.c: Likewise.
18612         * tree-vectorizer.c: Likewise.
18613         * tree-vrp.c: Likewise.
18614         * tree.c: Likewise.
18615         * tsan.c: Likewise.
18616         * ubsan.c: Likewise.
18617         * valtrack.c: Likewise.
18618         * value-prof.c: Likewise.
18619         * var-tracking.c: Likewise.
18620         * varasm.c: Likewise.
18621         * varpool.c: Likewise.
18622         * vmsdbgout.c: Likewise.
18623         * vtable-verify.c: Likewise.
18624         * web.c: Likewise.
18625         * wide-int.cc: Likewise.
18626         * xcoffout.c: Likewise.
18627         * config/aarch64/aarch64-builtins.c: Likewise.
18628         * config/aarch64/aarch64.c: Likewise.
18629         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18630         * config/alpha/alpha.c: Likewise.
18631         * config/arc/arc.c: Likewise.
18632         * config/arm/aarch-common.c: Likewise.
18633         * config/arm/arm-builtins.c: Likewise.
18634         * config/arm/arm-c.c: Likewise.
18635         * config/arm/arm.c: Likewise.
18636         * config/avr/avr-c.c: Likewise.
18637         * config/avr/avr-log.c: Likewise.
18638         * config/avr/avr.c: Likewise.
18639         * config/bfin/bfin.c: Likewise.
18640         * config/c6x/c6x.c: Likewise.
18641         * config/cr16/cr16.c: Likewise.
18642         * config/cris/cris.c: Likewise.
18643         * config/darwin-c.c: Likewise.
18644         * config/darwin.c: Likewise.
18645         * config/epiphany/epiphany.c: Likewise.
18646         * config/epiphany/mode-switch-use.c: Likewise.
18647         * config/epiphany/resolve-sw-modes.c: Likewise.
18648         * config/fr30/fr30.c: Likewise.
18649         * config/frv/frv.c: Likewise.
18650         * config/ft32/ft32.c: Likewise.
18651         * config/h8300/h8300.c: Likewise.
18652         * config/i386/i386-c.c: Likewise.
18653         * config/i386/i386.c: Likewise.
18654         * config/i386/msformat-c.c: Likewise.
18655         * config/i386/winnt-cxx.c: Likewise.
18656         * config/i386/winnt-stubs.c: Likewise.
18657         * config/i386/winnt.c: Likewise.
18658         * config/ia64/ia64-c.c: Likewise.
18659         * config/ia64/ia64.c: Likewise.
18660         * config/iq2000/iq2000.c: Likewise.
18661         * config/lm32/lm32.c: Likewise.
18662         * config/m32c/m32c-pragma.c: Likewise.
18663         * config/m32c/m32c.c: Likewise.
18664         * config/m32r/m32r.c: Likewise.
18665         * config/m68k/m68k.c: Likewise.
18666         * config/mcore/mcore.c: Likewise.
18667         * config/mep/mep-pragma.c: Likewise.
18668         * config/mep/mep.c: Likewise.
18669         * config/microblaze/microblaze-c.c: Likewise.
18670         * config/microblaze/microblaze.c: Likewise.
18671         * config/mips/mips.c: Likewise.
18672         * config/mmix/mmix.c: Likewise.
18673         * config/mn10300/mn10300.c: Likewise.
18674         * config/moxie/moxie.c: Likewise.
18675         * config/msp430/msp430-c.c: Likewise.
18676         * config/msp430/msp430.c: Likewise.
18677         * config/nds32/nds32-cost.c: Likewise.
18678         * config/nds32/nds32-fp-as-gp.c: Likewise.
18679         * config/nds32/nds32-intrinsic.c: Likewise.
18680         * config/nds32/nds32-isr.c: Likewise.
18681         * config/nds32/nds32-md-auxiliary.c: Likewise.
18682         * config/nds32/nds32-memory-manipulation.c: Likewise.
18683         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18684         * config/nds32/nds32-predicates.c: Likewise.
18685         * config/nds32/nds32.c: Likewise.
18686         * config/nios2/nios2.c: Likewise.
18687         * config/nvptx/nvptx.c: Likewise.
18688         * config/pa/pa.c: Likewise.
18689         * config/pdp11/pdp11.c: Likewise.
18690         * config/rl78/rl78-c.c: Likewise.
18691         * config/rl78/rl78.c: Likewise.
18692         * config/rs6000/rs6000-c.c: Likewise.
18693         * config/rs6000/rs6000.c: Likewise.
18694         * config/rx/rx.c: Likewise.
18695         * config/s390/s390-c.c: Likewise.
18696         * config/s390/s390.c: Likewise.
18697         * config/sh/sh-c.c: Likewise.
18698         * config/sh/sh-mem.cc: Likewise.
18699         * config/sh/sh.c: Likewise.
18700         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18701         * config/sh/sh_treg_combine.cc: Likewise.
18702         * config/sol2-c.c: Likewise.
18703         * config/sol2-cxx.c: Likewise.
18704         * config/sol2-stubs.c: Likewise.
18705         * config/sol2.c: Likewise.
18706         * config/sparc/sparc-c.c: Likewise.
18707         * config/sparc/sparc.c: Likewise.
18708         * config/spu/spu-c.c: Likewise.
18709         * config/spu/spu.c: Likewise.
18710         * config/stormy16/stormy16.c: Likewise.
18711         * config/tilegx/mul-tables.c: Likewise.
18712         * config/tilegx/tilegx-c.c: Likewise.
18713         * config/tilegx/tilegx.c: Likewise.
18714         * config/tilepro/mul-tables.c: Likewise.
18715         * config/tilepro/tilepro-c.c: Likewise.
18716         * config/tilepro/tilepro.c: Likewise.
18717         * config/v850/v850-c.c: Likewise.
18718         * config/v850/v850.c: Likewise.
18719         * config/vax/vax.c: Likewise.
18720         * config/visium/visium.c: Likewise.
18721         * config/vms/vms-c.c: Likewise.
18722         * config/vms/vms.c: Likewise.
18723         * config/vxworks.c: Likewise.
18724         * config/xtensa/xtensa.c: Likewise.
18726 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
18728         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18729         Remove operand constraints.  Change operand 2 predicate to
18730         nonmemory operand.  Limit const_int values to mode bitsize.  Only
18731         allow const_int values less than 32 when optimizing for size.
18732         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18733         Remove operand constraints.
18734         (*bt<mode>): Use SImode for const_int values less than 32.
18735         (regmode): Remove mode attribute.
18737 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
18739         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18740         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18741           moxie_legitimate_address_p): New functions.
18742           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18744 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18746         PR tree-optimization/66642
18747         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18748         header comment.  Rename split_edge variable to edge_at_split.  Split
18749         exit edge to create new loop exit bb.  Insert loop exit phis in new
18750         loop exit bb.
18752 2015-07-07  Tom de Vries  <tom@codesourcery.com>
18754         * tree-cfg.c (get_virtual_phi): New function.
18755         * tree-cfg.h (get_virtual_phi): Declare.
18756         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18757         (rewrite_virtuals_into_loop_closed_ssa): New function.
18758         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18759         Declare.
18760         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18761         (transform_to_exit_first_loop_alt): Use
18762         rewrite_virtuals_into_loop_closed_ssa.
18764 2015-07-07  Richard Biener  <rguenther@suse.de>
18766         * fold-const.c (fold_binary_loc): Move
18767         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18768         * match.pd: ... here.
18769         Add (X * C1) % C2 -> 0 simplification pattern derived from
18770         extract_muldiv_1.
18772 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18774         PR target/66780
18775         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18776         change for target/65249.
18778 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
18780         * symtab.c (address_matters_1): Fix typo in comment above.
18781         (can_increase_alignment_p): Likewise.
18783 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18785         * function.c (free_after_compilation): Clear PROP_cfg in
18786         f->curr_properties.
18788 2015-07-07  Richard Biener  <rguenther@suse.de>
18790         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18791         add which use to.
18792         (add_control_edge): Remove excessive vertical space in dumping.
18793         (process_ssa_edge_worklist): Simulate at most one statement and
18794         return whether we did.  Do not simulate PHIs if they are in a
18795         BB not yet simulated.
18796         (ssa_propagate): Adjust to always drain the BB worklist whenever
18797         a BB is available there, likewise the VARYING edges list before
18798         the interesting edge list.
18800 2015-07-07  Christian Bruel  <christian.bruel@st.com>
18802         PR target/52144
18803         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18805 2015-07-07  Richard Biener  <rguenther@suse.de>
18807         PR middle-end/66739
18808         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18809         A - B.
18811 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
18813         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
18814         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
18815         Copy operand 0 to a temporary if !ext_register_operand.  Remove
18816         ancient extract_bit_field workaround.
18817         (insv<mode>_1): Rename from mov<mode>_insv_1.
18818         (*insvqi): Rename from *movqi_insv_2.
18819         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18820         for renamed insvsi_1.
18821         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18823 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
18825         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
18826         call to nvptx_reorg_subreg.
18828 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
18830         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18831         * graphite-dependencies.c, graphite-interchange.c,
18832         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18833         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18834         Likewise.
18836 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
18838         * match.pd: Remove element_mode inside HONOR_*.
18839         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18840         (~X | X -> -1, ~X ^ X -> -1): Merge.
18841         * tree.c (build_each_one_cst): New function.
18842         * tree.h (build_each_one_cst): Likewise.
18844 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18846         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18847         PROCESSOR_IAMCU.
18849 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
18851         * config.gcc <mips*-*-*>: Add fused-madd.opt.
18852         * config/mips/mips.opt (mfused-madd): Remove.
18853         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18854         * config/mips/mips.h (TARGET_MIPS8000): New.
18855         (ISA_HAS_FP_MADD4_MSUB4): Remove.
18856         (ISA_HAS_FP_MADDF_MSUBF): Remove.
18857         (ISA_HAS_FP_MADD3_MSUB3): Remove.
18858         (ISA_HAS_NMADD4_NMSUB4): Remove.
18859         (ISA_HAS_NMADD3_NMSUB3): Remove.
18860         (ISA_HAS_FUSED_MADD4): New.
18861         (ISA_HAS_UNFUSED_MADD4): New.
18862         (ISA_HAS_FUSED_MADDF): New.
18863         (ISA_HAS_FUSED_MADD3): New.
18864         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
18865         (*fma<mode>4_madd3) New.
18866         (*fma<mode>4_madd4) New.
18867         (*fma<mode>4_maddf) New.
18868         (fms<mode>4) New.
18869         (*fms<mode>4_msub3) New.
18870         (*fms<mode>4_msub4) New.
18871         (fnma<mode>4) New.
18872         (*fnma<mode>4_nmadd3) New.
18873         (*fnma<mode>4_nmadd4) New.
18874         (fnms<mode>4) New.
18875         (*fnms<mode>4_nmsub3) New.
18876         (*fnms<mode>4_nmsub4) New.
18877         (*madd4<mode>) Modify to be unfused only.
18878         (*msub4<mode>) Modify to be unfused only.
18879         (*nmadd4<mode>) Modify to be unfused only.
18880         (*nmsub4<mode>) Modify to be unfused only.
18881         (*madd3<mode>) Remove.
18882         (*msub3<mode>) Remove.
18883         (*nmadd3<mode>) Remove.
18884         (*nmsub3<mode>) Remove.
18885         (*nmadd3<mode>_fastmath) Remove.
18886         (*nmsub3<mode>_fastmath) Remove.
18887         (*nmadd4<mode>_fastmath) Update condition.
18888         (*nmsub4<mode>_fastmath) Update condition.
18890 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
18892         PR target/65956
18893         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18894         alignment attribute, exploring one level down for records and arrays.
18896 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
18898         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
18899         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
18900         Copy operand 1 to a temporary if !ext_register_operand.  Remove
18901         ancient extract_bit_field workaround.
18902         (*extv<mode>): Rename from *mov<mode>_extv_1.
18903         (*extvqi): Rename from *movqi_extv_1.
18904         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
18905         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
18906         to a temporary if !ext_register_operand.  Remove ancient
18907         extract_bit_field workaround.
18908         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18909         (*extzvqi): Rename from *movqi_extzv_2.
18910         (*testqi_ext_3): Remove modes from const_int_operand predicated
18911         operands.  Add "n" constraint.
18912         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18913         operand.  Add "J" constraint.
18914         (*btsq, *btrq, *btcq peephole2s): Remove mode from
18915         const_0_to_63 predicated operand.
18916         (regmode): New insn attribute.
18917         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
18918         to nonmemory_operand.  Use regmode insn attribute.
18919         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18920         (*jcc_bt<mode>_mask): Remove mode from operand 3.
18921         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18922         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18923         operands.  Use "N" constraint instead of "n".
18925 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
18927         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18929 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18931         PR target/66749
18932         * config/i386/i386.c (iamcu_cost): New.
18933         (m_IAMCU): Likewise.
18934         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18935         (processor_target_table): Add an entry for "iamcu".
18936         (processor_alias_table): Likewise.
18937         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18938         (ix86_adjust_cost): Likewise.
18939         (ia32_multipass_dfa_lookahead): Likewise.
18940         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18941         * config/i386/x86-tune.def: Updated for m_IAMCU.
18943 2015-07-06  Richard Biener  <rguenther@suse.de>
18945         PR tree-optimization/66772
18946         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18947         values are available in the PHI node BB when there are
18948         still unexecutable edges.
18950 2015-07-06  Richard Biener  <rguenther@suse.de>
18952         PR tree-optimization/66767
18953         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18954         Make sure to build the alignment test on a SSA name without
18955         final alignment info valid only if the alignment test
18956         evaluates to true.
18958 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
18960         PR target/66620
18961         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18962         loop start when inserting LSETUP.
18964 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
18966         PR target/53383
18967         * config/i386/i386.c (ix86_option_override_internal): Allow
18968         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18970 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18972         * read-md.c (decimal_string): Rename to ...
18973         (md_decimal_string): ... this.
18974         (handle_enum): Reflect this.
18976 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18978         PR target/66731
18979         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18981 2015-07-06  Richard Biener  <rguenther@suse.de>
18983         PR middle-end/66759
18984         * match.pd: Add missing constraint of y to REAL_CST in
18985         REAL_CST - x CMP y to y - CST CMP x simplification.
18987 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
18989         PR tree-optimization/66757
18990         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18992 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
18993             Sandra Loosemore <sandra@codesourcery.com>
18995         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18996         Delete extern declaration.
18997         (gprel_constant_p): Add extern declaration.
18998         * config/nios2/constraints.md ("S"): Use gprel_constant_p
18999         instead of nios2_symbol_ref_in_small_data_p.
19000         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19001         (nios2_symbol_ref_in_small_data_p): Make static.
19002         (gprel_constant_p): Make non-static.
19004 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19006         * doc/fragments.texi (Target Fragment): Convert debian.org
19007         link to use https.
19008         * doc/install.texi (Configuration): Ditto.
19010 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
19012         PR tree-optimization/66718
19013         * tree-vect-stmts.c (vectorizable_call): Replace uses of
19014         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19016         PR tree-optimization/66718
19017         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19018         vectorizable_load, vectorizable_condition): Move vectype,
19019         nunits, ncopies computation after checking what kind of statement
19020         stmt is.
19022 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19024         * target-insns.def (extv, extzv, insv): New targetm instruction
19025         patterns.
19026         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19027         interface.
19028         * recog.c (simplify_while_replacing): Likewise.
19030 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19032         * target-insns.def (doloop_begin, doloop_end): New targetm
19033         instruction patterns.
19034         * loop-init.c: Include target.h.
19035         (pass_loop2::gate): Use the new targetm patterns instead of
19036         HAVE_*/gen_* interface.
19037         (pass_rtl_doloop::gate): Likewise.
19038         (pass_rtl_doloop::execute): Remove preprocessor condition.
19039         * hw-doloop.c: Build unconditionally.
19040         * loop-doloop.c: Likewise.
19041         (doloop_optimize): Use the new targetm patterns instead of
19042         HAVE_*/gen_* interface.
19043         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19044         * modulo-sched.c (doloop_register_get): Likewise.
19046 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19048         * target-insns.def (clear_cache): New targetm instruction pattern.
19049         * builtins.c (expand_builtin___clear_cache): Use it instead of
19050         HAVE_*/gen_* interface.
19052 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19054         * target-insns.def (allocate_stack, check_stack, probe_stack)
19055         (probe_stack_address, split_stack_prologue, split_stack_space_check):
19056         New targetm instruction patterns.
19057         * explow.c (allocate_dynamic_stack_space): Use them instead of
19058         HAVE_*/gen_* interface.
19059         (emit_stack_probe): Likewise.
19060         (probe_stack_range): Likewise.
19061         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19063 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19065         * target-insns.def (stack_protect_set, stack_protect_test): New
19066         targetm instruction patterns.
19067         * cfgexpand.c (stack_protect_prologue): Use them instead of
19068         HAVE_*/gen_* interface.
19069         * function.c (stack_protect_epilogue): Likewise.
19071 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19073         * expr.h (gen_move_insn_uncast): Delete.
19074         * expr.c (gen_move_insn_uncast): Delete.
19076 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19078         * target-insns.def (restore_stack_block, restore_stack_function)
19079         (restore_stack_nonlocal, save_stack_block, save_stack_function)
19080         (save_stack_nonlocal): New targetm instruction patterns.
19081         * builtins.c (expand_builtin_apply): Use them instead of
19082         HAVE_*/gen_* interface.
19083         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19085 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19087         * target-insns.def (trap): New targetm instruction pattern.
19088         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19089         interface.
19090         * explow.c (allocate_dynamic_stack_space): Likewise.
19091         * ifcvt.c (find_if_header): Likewise.
19093 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19095         * target-insns.def (prefetch): New targetm instruction pattern.
19096         * tree-ssa-loop-prefetch.c: Include targeth.
19097         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19098         of HAVE_*/gen_* interface.
19099         * builtins.c (expand_builtin_prefetch): Likewise.
19100         * toplev.c (process_options): Likewise.
19102 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19104         * target-insns.def (untyped_call, untyped_return): New targetm
19105         instruction patterns.
19106         * builtins.c (expand_builtin_apply): Use them instead of
19107         HAVE_*/gen_* interface.
19108         (result_vector): Define unconditionally.
19110 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19112         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19113         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19114         (nonlocal_goto_receiver): New targetm instruction patterns.
19115         * builtins.c (expand_builtin_setjmp_setup): Use them instead
19116         of HAVE_*/gen_* interface.
19117         (expand_builtin_setjmp_receiver): Likewise.
19118         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19119         * except.c (expand_dw2_landing_pad_for_region): Likewise.
19121 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
19123         * target.def: Add code_for_* hooks.
19124         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19125         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19126         * target-insns.def (casesi, tablejump): New targetm instruction
19127         patterns.
19128         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19129         (do_tablejump): Likewise.
19130         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19131         (expand_sjlj_dispatch_table): Likewise.
19132         * targhooks.c (default_case_values_threshold): Likewise.
19134 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
19136         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19137         Use rtx_insn * instead of rtx.
19138         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19139         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19140         (nios2_call_tls_get_addr): Likewise.
19141         (nios2_emit_expensive_div): Likewise.
19142         (nios2_emit_move_sequence): Change return type to bool.
19143         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19144         Change return type to bool.
19146 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19148         PR target/66747
19149         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19151 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
19153         PR target/66114
19154         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19155         of register_operand.  Remove constraint.
19157 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
19159         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19160         the first argument.
19162 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
19164         * attribs.c (decl_attributes): Guard inform with the return value
19165         of the preceding warning.
19167 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
19169         * doc/invoke.texi (moverride): Move to correct section.
19171 2015-07-03  Richard Biener  <rguenther@suse.de>
19173         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19174         Copy from tree.c
19175         (dt_operand::gen_gimple_expr): After valueizing operands
19176         re-canonicalize operand order for commutative tree codes.
19178 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
19180         PR target/66746.
19181         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19182         is defined.
19183         (__crc32w): Likewise.
19184         (__crc32d): Likewise.
19185         (__rdpmc): Likewise.
19186         (__rdtscp): Likewise.
19187         (_rdpmc): Likewise.
19188         (_rdtscp): Likewise.
19189         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19190         is defined.
19192 2015-07-03  Richard Biener  <rguenther@suse.de>
19194         * fold-const.c (fold_mathfn_compare): Remove.
19195         (fold_inf_compare): Likewise.
19196         (fold_comparison): Move floating point comparison simplifications...
19197         * match.pd: ... to patterns here.  Introduce simple_comparisons
19198         operator list and use it for patterns formerly in fold_comparison.
19200 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
19202         PR tree-optimization/66119
19203         * toplev.c (process_options): Don't set up default values for
19204         the sra_max_scalarization_size_{speed,size} parameters.
19205         * tree-sra (analyze_all_variable_accesses): If no values
19206         have been set for the sra_max_scalarization_size_{speed,size}
19207         parameters, call get_move_ratio to get target defaults.
19209 2015-07-03  Richard Biener  <rguenther@suse.de>
19211         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19212         * match.pd: ... here.
19214 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
19216         PR target/37072
19217         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19218         is not actually the default on FreeBSD.
19220 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19222         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19223         definition.
19224         (CMPGE_8HI): Likewise.
19225         (CMPGE_4SI): Likewise.
19226         (CMPGE_2DI): Likewise.
19227         (CMPGE_U16QI): Likewise.
19228         (CMPGE_U8HI): Likewise.
19229         (CMPGE_U4SI): Likewise.
19230         (CMPGE_U2DI): Likewise.
19231         (CMPLE_16QI): Likewise.
19232         (CMPLE_8HI): Likewise.
19233         (CMPLE_4SI): Likewise.
19234         (CMPLE_2DI): Likewise.
19235         (CMPLE_U16QI): Likewise.
19236         (CMPLE_U8HI): Likewise.
19237         (CMPLE_U4SI): Likewise.
19238         (CMPLE_U2DI): Likewise.
19239         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19240         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19241         ALTIVEC_BUILTIN_VEC_CMPLE.
19242         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19243         floating-point vector modes.
19244         (vector_nlt<mode>): New define_expand.
19245         (vector_nltu<mode>): Likewise.
19246         (vector_ngt<mode>): Likewise.
19247         (vector_ngtu<mode>): Likewise.
19249 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19251         PR rtl-optimization/66706
19252         * combine.c (make_compound_operation): If an AND of SUBREG of
19253         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19255 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
19257         * tree-pass.h (make_pass_ch_vect): New.
19258         * passes.def: Add pass_ch_vect just before pass_if_conversion.
19260         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19261         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19262         make_pass_ch_vect): New.
19263         (pass_ch): Extend ch_base.
19265         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19266         (ch_base::copy_headers): ...here.
19268 2015-07-02  Richard Biener  <rguenther@suse.de>
19270         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19271         * fold-const.c (get_pointer_modulus_and_residue): Remove.
19272         (fold_binary_loc): Implement (T)ptr & CST in terms of
19273         get_pointer_alignment_1.
19274         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19275         Make sure to build the alignment test on a SSA name without
19276         final alignment info valid only after the prologue.
19278 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
19280         * config/cris/cris.md ("epilogue"): Remove condition.
19281         ("prologue"): Ditto.
19283 2015-07-02  Richard Biener  <rguenther@suse.de>
19285         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19286         parameter to record a condition that is false.
19287         (record_conditions): When recording an extra NE_EXPR that is
19288         true also record a EQ_EXPR that is false.
19290 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
19292         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19293         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19294         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
19295         (set_iv, find_interesting_uses_address, add_candidate_1): New
19296         argument to alloc_iv.
19297         (find_interesting_uses_op, find_interesting_uses_cond): Don't
19298         duplicate struct iv.
19299         (free_loop_data): Don't free struct iv explicitly.
19300         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19302 2015-07-01  DJ Delorie  <dj@redhat.com>
19304         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19305         (LIB_SPEC): Add.
19306         (SUPPORTS_DISCRIMINATOR): Define.
19308 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19310         PR bootstrap/66685
19311         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19312         there are no CALLs in the same pattern.
19314 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19316         PR rtl-optimization/61047
19317         * rtlanal.c (get_initial_register_offset): New function.
19318         (rtx_addr_can_trap_p_1): Check offsets of stack references.
19320 2015-07-01  Richard Biener  <rguenther@suse.de>
19322         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19323         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19324         ~X CMP C -> X CMP' ~C to ...
19325         * match.pd: ... patterns here.
19327 2015-07-01  Nick Clifton  <nickc@redhat.com>
19329         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19330         a 16-bit value into a 20-bit memory slot.
19332 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19334         * doc/sourcebuild.texi (AArch64-specific attributes): Document
19335         "aarch64_tiny", "aarch64_small", "aarch64_large",
19336         "aarch64_little_endian", "aarch64_big_endian".
19338 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19340         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19341         Document "aarch64_small_fpic".
19343 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
19345         * configure.ac: Add check for aarch64 assembler -fpic relocation
19346         modifier support.
19347         * configure: Regenerate.
19348         * config.in: Regenerate.
19349         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19350         to -fPIC if not support of -fpic relocation modifier in assembler.
19352 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
19354         PR bootstrap/66685
19355         * rtl.c (classify_insn): Handle returns in PARALLELs.
19357 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
19359         PR middle-end/66633
19360         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19361         to true if the function is nested and if not optimizing.
19362         (convert_local_omp_clauses): Initialize need_frame to true if the
19363         function contains nested functions and if not optimizing.
19365 2015-07-01  Richard Biener  <rguenther@suse.de>
19367         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19368         (X & Y) ^ Y -> ~X & Y transforms to ...
19369         * match.pd: ... here.
19371 2015-07-01  Richard Biener <rguenther@suse.de>
19373         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19374         of converts to avoid uninteresting noise from the conversion
19375         simplifying patterns.
19377 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
19379         * config/c6x/c6x.c (try_rename_operands): Do not depend on
19380         gcc_assert evaluating its argument for side-effect.
19382 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
19384         PR target/64833
19385         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19386         flag_pic is set.
19388 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19390         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19391         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19392         (hash_scc): Add this_ref_p and ref_p parameters and pass them
19393         to the inner DFS walk.
19395 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19397         * target-insns.def (jump): New targetm instruction pattern.
19398         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19399         instead of gen_jump.
19400         (fix_up_crossing_landing_pad): Likewise.
19401         (add_labels_and_missing_jumps): Likewise.
19402         (fix_crossing_conditional_branches): Likewise.
19403         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19404         (force_nonfallthru_and_redirect): Likewise.
19405         * cse.c (cse_insn): Likewise.
19406         * expmed.c (expand_divmod): Likewise.
19407         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19408         * haifa-sched.c (init_before_recovery): Likewise.
19409         (sched_create_recovery_edges): Likewise.
19410         * ifcvt.c (find_cond_trap): Likewise.
19411         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19412         (expand_float, expand_fix): Likewise.
19413         * stmt.c (emit_jump): Likewise.
19415 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19417         * defaults.h (HAVE_load_multiple, gen_load_multiple)
19418         (HAVE_store_multiple, gen_store_multiple): Delete.
19419         * target-insns.def (load_multiple, store_multiple): New targetm
19420         instruction patterns.
19421         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19422         of HAVE_*/gen_* interface.
19424 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19426         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19427         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19428         (gen_mem_signal_fence): Delete.
19429         * target-insns.def (mem_signal_fence, mem_thread_fence)
19430         (memory_barrier): New targetm instruction patterns.
19431         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19432         interface.
19433         (expand_mem_signal_fence): Likewise.
19435 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
19437         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19438         * target-insns.def (epilogue, prologue, sibcall_prologue): New
19439         targetm instruction patterns.
19440         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19441         interface.
19442         * calls.c (expand_call): Likewise.
19443         * cfgrtl.c (cfg_layout_finalize): Likewise.
19444         * df-scan.c (df_get_entry_block_def_set): Likewise.
19445         (df_get_exit_block_use_set): Likewise.
19446         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19447         * final.c (final_start_function): Likewise.
19448         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19449         (reposition_prologue_and_epilogue_notes): Likewise.
19450         * reorg.c (find_end_label): Likewise.
19451         * toplev.c (process_options): Likewise.
19453 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
19455         * typed-splay-tree.h: New file.
19457 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
19459         PR debug/66691
19460         * lra-int.h (lra_substitute_pseudo): Add a parameter.
19461         (lra_substitute_pseudo_within_insn): Ditto.
19462         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
19463         of constant.
19464         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
19465         to lra_substitute_pseudo.
19466         * lra-lives.c (process_bb_lives): Add an argument to
19467         lra_substitute_pseudo_within_insn call.
19468         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19469         argument to lra_substitute_pseudo and
19470         lra_substitute_pseudo_within_insn calls.
19471         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19473 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19475         * configure: Regenerated.
19477 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
19479         * config.gcc: Support i[34567]86-*-elfiamcu target.
19480         * config/i386/iamcu.h: New.
19481         * config/i386/i386.opt: Add -miamcu.
19482         * doc/invoke.texi: Document -miamcu.
19483         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
19484         off x87/MMX/SSE/AVX codegen for -miamcu.
19485         * config/i386/i386-c.c (ix86_target_macros_internal): Define
19486         __iamcu/__iamcu__ for -miamcu.
19487         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19488         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19489         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19490         * config/i386/i386.c (ix86_option_override_internal): Ignore and
19491         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
19492         MCU by default.  Default long double to 64-bit for Intel MCU.
19493         Turn on -freg-struct-return for Intel MCU.  Issue an error when
19494         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19495         AVX is turned on.
19496         (function_arg_advance_32): Pass value whose size is no larger
19497         than 8 bytes in registers for Intel MCU.
19498         (function_arg_32): Likewise.
19499         (ix86_return_in_memory): Return value whose size is no larger
19500         than 8 bytes in registers for Intel MCU.
19501         (iamcu_alignment): New function.
19502         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19503         true.
19504         (ix86_local_alignment): Don't increase alignment for Intel MCU.
19505         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19506         true.
19508 2015-06-30  Marek Polacek  <polacek@redhat.com>
19510         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
19511         both operands of the resulting expression.
19513         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
19514         the final expression with the operand's type and then convert
19515         it to the type of the expression.
19517 2015-06-30  Richard Biener  <rguenther@suse.de>
19519         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19520         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19521         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19522         * match.pd: ... to patterns here.
19524 2015-06-30  Richard Biener  <rguenther@suse.de>
19526         PR tree-optimization/66704
19527         * tree-vect-data-refs.c (vect_setup_realignment): Use
19528         make_ssa_name for non-SSA name source.
19530 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
19532         PR middle-end/66702
19533         * omp-low.c (simd_clone_adjust): Handle addressable linear
19534         or uniform parameters or non-gimple type uniform parameters.
19536 2015-06-30  Richard Biener  <rguenther@suse.de>
19538         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19539         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19540         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19541         * match.pd: ... here.
19542         Add a few cases of A - B -> A + (-B) when B "easily" negates.
19543         Move (x & y) | x -> x and friends before
19544         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19546 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
19548         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19549         -mfix-ut699 is not specified.
19550         (leon3_load): Rename into...
19551         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
19552         is specified.
19554 2015-06-30  Marek Polacek  <polacek@redhat.com>
19556         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19557         * match.pd: ... here.
19559 2015-06-30  Richard Biener  <rguenther@suse.de>
19561         * target-insns.def (canonicalize_funcptr_for_compare): Add.
19562         * fold-const.c (build_range_check): Replace uses of
19563         HAVE_canonicalize_funcptr_for_compare.
19564         (fold_widened_comparison): Likewise.
19565         (fold_sign_changed_comparison): Likewise.
19566         * dojump.c: Include "target.h".
19567         (do_compare_and_jump): Replace uses of
19568         HAVE_canonicalize_funcptr_for_compare and
19569         gen_canonicalize_funcptr_for_compare.
19570         * expr.c (do_store_flag): Likewise.
19572 2015-06-30  Tom de Vries  <tom@codesourcery.com>
19574         PR tree-optimization/66652
19575         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19576         max_loop_iterations to determine if nit + 1 overflows.
19578 2015-06-30  Richard Biener  <rguenther@suse.de>
19580         * tree-vrp.c (register_edge_assert_for_2): Also register
19581         asserts for dominating conversion results.
19583 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
19585         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19586         field in struct iv.
19588 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
19590         PR target/66509
19591         * configure.ac: Fix filds and fildq test for 64-bit.
19592         * configure: Regenerated.
19594 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
19596         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19597         (nvptx_reorg): Here.  Keep the non-subreg pieces.
19599 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
19601         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19602         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19604 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
19606         * config/i386/i386.md (*jcc_1): Use %! in asm template.
19607         Set attribute "length_nobnd" instead of "length".
19608         (*jcc_2): Ditto.
19609         (jump): Ditto.
19610         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19612 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
19614         * config/nios2/nios2.c (nios2_delegitimize_address): Make
19615         assert less restrictive.
19617 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19619         PR fortran/66605
19620         * cgraphunit.c (cgraph_node::finalize_function): Do not call
19621         do_warn_unused_parameter.
19622         * function.c (do_warn_unused_parameter): Move from here.
19623         * function.h (do_warn_unused_parameter): Do not declare.
19625 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19627         PR target/65697
19628         * gcc.target/arm/armv-sync-comp-swap.c: New.
19629         * gcc.target/arm/armv-sync-op-acquire.c: New.
19630         * gcc.target/arm/armv-sync-op-full.c: New.
19631         * gcc.target/arm/armv-sync-op-release.c: New.
19633 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19635         PR target/65697
19636         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19637         initial acquire barrier with final barrier.
19639 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19641         PR target/65697
19642         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19643         initial acquire barrier with final barrier.
19645 2015-06-29  Richard Henderson  <rth@redhat.com>
19647         * config/i386/constraints.md (Bf): New constraint.
19648         * config/i386/i386-c.c (ix86_target_macros): Define
19649         __GCC_ASM_FLAG_OUTPUTS__.
19650         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19651         as flags outputs.
19652         * doc/extend.texi (FlagOutputOperands): Document them.
19654 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
19656         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19657         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19658         unspec name.
19659         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19660         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19661         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19662         (aarch64_symbol_context): Ditto.
19663         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19664         and use new pattern name.
19665         (aarch64_expand_mov_immediate): Ditto.
19666         (aarch64_print_operand): Ditto.
19667         (aarch64_classify_tls_symbol): Ditto.
19669 2015-06-29  Marek Polacek  <polacek@redhat.com>
19670             Marc Glisse  <marc.glisse@inria.fr>
19672         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19673         * match.pd: ... pattern here.
19675 2015-06-29  Tom de Vries  <tom@codesourcery.com>
19677         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19678         function structure.
19680 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
19682         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19683         feature description, split out the native option, add a link to
19684         the feature documentation, rearrange and slightly rewrite text.
19685         (Aarch64 options, -mcpu): Likewise.
19686         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
19687         +rdma implies Adv. SIMD.
19689 2015-06-29  Marek Polacek  <polacek@redhat.com>
19691         PR c/66322
19692         * function.c (stack_protect_epilogue): Remove a cast to int.
19693         * doc/invoke.texi: Update -Wswitch-bool description.
19695 2015-06-29  Richard Biener  <rguenther@suse.de>
19697         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19698         * fold-const.c (fold_binary_loc): Move &A - &B simplification
19699         via ptr_difference_const ...
19700         * match.pd: ... here.
19701         When matching (X ^ Y) == Y also match with swapped operands.
19703 2015-06-29  Richard Biener  <rguenther@suse.de>
19705         * lto-streamer.h (LTO_major_version): Bump to 5.
19707 2015-06-29  Richard Biener  <rguenther@suse.de>
19709         PR tree-optimization/66677
19710         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19711         STMT_VINFO_VEC_STMT clobbering less strict.
19713 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
19715         PR middle-end/64130
19716         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19717         division, compute max and min when value ranges for dividend and
19718         divisor are available.
19720 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
19721             Sandra Loosemore <sandra@codesourcery.com>
19723         * regrename.h (regrename_do_replace): Change to return bool.
19724         * regrename.c (rename_chains): Check return value of
19725         regname_do_replace.
19726         (regrename_do_replace): Re-validate the modified insns and
19727         return bool status.
19728         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19729         Update to match rename_chains changes.
19730         * config/c6x/c6x.c (try_rename_operands): Assert that
19731         regrename_do_replace returns true.
19733 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
19735         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19736         operand 2 here.  Use copy_addr_to_reg to copy non-index
19737         register operand 2 to a temporary.
19738         (<mode>_stx): Ditto for operand 1.
19739         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19740         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19741         (ix86_store_bounds): Ditto.
19743 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
19745         * print-tree.c (print_node) [TREE_VEC]: Print its length.
19747 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
19749         * gimple.c (gimple_call_set_fndecl): Remove.
19750         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19751         build1_loc directly instead of build_fold_addr_expr_loc.
19753 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19755         * hash-map.h (hash_map::traverse): Use the definition of the
19756         Key typedef rather than the typedef itself.
19758 2015-06-26  Martin Jambor  <mjambor@suse.cz>
19760         PR debug/66301
19761         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19762         NULL instead of calling dump_enabled_p.
19764 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19766         * config/aarch64/aarch64.opt: (override): New.
19767         * doc/invoke.texi (override): Document.
19768         * config/aarch64/aarch64.c (aarch64_flag_desc): New
19769         (aarch64_fusible_pairs): Likewise.
19770         (aarch64_tuning_flags): Likewise.
19771         (aarch64_tuning_override_function): Likewise.
19772         (aarch64_tuning_override_functions): Likewise.
19773         (aarch64_parse_one_option_token): Likewise.
19774         (aarch64_parse_boolean_options): Likewise.
19775         (aarch64_parse_fuse_string): Likewise.
19776         (aarch64_parse_tune_string): Likewise.
19777         (aarch64_parse_one_override_token): Likewise.
19778         (aarch64_parse_override_string): Likewise.
19779         (aarch64_override_options): Parse the -override string if it
19780         is present.
19782 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19784         * config/aarch64/aarch64-protos.h (tune_params): Remove
19785         const from members.
19786         (aarch64_tune_params): Remove const, change to no longer be
19787         a pointer.
19788         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19789         change to no longer be a pointer, initialize to generic_tunings.
19790         (aarch64_min_divisions_for_recip_mul): Change dereference of
19791         aarch64_tune_params to member access.
19792         (aarch64_reassociation_width): Likewise.
19793         (aarch64_rtx_mult_cost): Likewise.
19794         (aarch64_address_cost): Likewise.
19795         (aarch64_branch_cost): Likewise.
19796         (aarch64_rtx_costs): Likewise.
19797         (aarch64_register_move_cost): Likewise.
19798         (aarch64_memory_move_cost): Likewise.
19799         (aarch64_sched_issue_rate): Likewise.
19800         (aarch64_builtin_vectorization_cost): Likewise.
19801         (aarch64_override_options): Take a copy of the selected tuning
19802         struct in to aarch64_tune_params, rather than just setting
19803         a pointer, change dereferences of aarch64_tune_params to member
19804         accesses.
19805         (aarch64_override_options_after_change): Change dereferences of
19806         aarch64_tune_params to member access.
19807         (aarch64_macro_fusion_p): Likewise.
19808         (aarch_macro_fusion_pair_p): Likewise.
19809         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19811 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19813         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19814         (aarch64_tune_flags): Likewise.
19815         (AARCH64_TUNE_FMA_STEERING): Likewise.
19816         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19817         to AARCH64_FL_USE_FMA_STEERING_PASS.
19818         (cortex-a57.cortex-a53): Likewise.
19819         (cortex-a72): Use cortexa72_tunings.
19820         (cortex-a72.cortex-a53): Likewise.
19821         (exynos-m1): Likewise.
19822         * config/aarch64/aarch64-protos.h (tune_params): Add
19823         a field: extra_tuning_flags.
19824         * config/aarch64/aarch64-tuning-flags.def: New.
19825         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19826         (aarch64_extra_tuning_flags): Likewise.
19827         (aarch64_tune_params): Declare here.
19828         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19829         (cortexa53_tunings): Likewise.
19830         (cortexa57_tunings): Likewise.
19831         (thunderx_tunings): Likewise.
19832         (xgene1_tunings): Likewise.
19833         (cortexa72_tunings): New.
19834         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19835          (gate): Check against aarch64_tune_params.
19836         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19837         aarch64-protos.h.
19839 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19841         * config/aarch64/aarch64-fusion-pairs.def: New.
19842         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19843         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19844         aarch64_fusion_pairs.
19845         (AARCH64_FUSE_MOV_MOVK): Likewise.
19846         (AARCH64_FUSE_ADRP_ADD): Likewise.
19847         (AARCH64_FUSE_MOVK_MOVK): Likewise.
19848         (AARCH64_FUSE_ADRP_LDR): Likewise.
19849         (AARCH64_FUSE_CMP_BRANCH): Likewise.
19851 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
19853         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19854         SYMBOL_SMALL_GOT_28K.
19855         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19856         relocation modifiers.
19857         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19858         (ldr_got_small_28k_<mode>): New.
19859         (ldr_got_small_28k_sidi): New.
19860         * config/aarch64/iterators.md (got_modifier): New mode iterator.
19861         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19862         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19863         SYMBOL_SMALL_GOT_28K.
19864         (aarch64_rtx_costs): Add costs for new instruction sequences.
19865         (initialize_aarch64_code_model): Initialize new model.
19866         (aarch64_classify_symbol): Recognize new model and new symbol classification.
19867         (aarch64_asm_preferred_eh_data_format): Support new model.
19868         (aarch64_load_symref_appropriately): Generate new instruction
19869         sequences for -fpic.
19870         (TARGET_USE_PSEUDO_PIC_REG): New definition.
19871         (aarch64_use_pseudo_pic_reg): New function.
19873 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
19875         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19876         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19877         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19878         (aarch64_expand_mov_immediate): Ditto.
19879         (aarch64_print_operand): Ditto.
19880         (aarch64_classify_symbol): Ditto.
19882 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
19884         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19886 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
19888         PR bootstrap/66638
19889         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19890         assertion failed.  Remove assertion itself.
19892 2015-06-26  Richard Biener  <rguenther@suse.de>
19894         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19895         and -A CMP CST -> A CMP -CST which is redundant with a pattern
19896         in match.pd.
19897         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19898         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19899         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19900         * match.pd: ... patterns here.
19902 2015-06-26  Marek Polacek  <polacek@redhat.com>
19904         * match.pd ((x | y) & ~(x & y) -> x ^ y,
19905         (x | y) & (~x ^ y) -> x & y): New patterns.
19907 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
19909         * rtl.h (emit): Add an optional boolean parameter to control
19910         whether barriers are emitted.
19911         * emit-rtl.c (emit): Likewise.
19912         * gensupport.c (get_emit_function): Return null rather than "emit".
19913         * genemit.c (gen_emit_seq): Handle the null return value.
19914         Don't emit barriers after the final instruction in the sequence.
19915         * gentarget-def.c (main): Don't emit barriers after the instruction.
19917 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19919         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19920         TARGET_UNIFIED_ASM.
19922 2015-06-26  Richard Biener  <rguenther@suse.de>
19924         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19926 2015-06-26  Richard Biener  <rguenther@suse.de>
19928         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19929         irrespective on whether the inner operation has a single use
19930         of both off are constant.
19932 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
19933             Segher Boessenkool  <segher@kernel.crashing.org>
19935         PR target/66412
19936         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19937         before doing PUT_MODE or PUT_CODE on operands to avoid
19938         in-place RTX modification.
19940 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19942         * gentarget-def.c (def_target_insn): Cast return of strtol to
19943         unsigned int.
19945 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19947         * gimple.h (gimple_call_set_fn): Move inline function.
19948         * gimple.c (gimple_call_set_fn): Relocate here.
19950 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
19952         PR target/65979
19953         PR target/66611
19954         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19955         the replacement insn will work.
19957 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19959         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19960         by default.
19962 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
19964         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19965         * cgraph.h: Include ipa-ref.h and plugin-api.h.
19966         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19967         (symtab_node::address_can_be_compared_p): Move function.
19968         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19969         definition here.
19970         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19971         * auto-profile.c: Likewise.
19972         * bb-reorder.c: Likewise.
19973         * builtins.c: Likewise.
19974         * calls.c: Likewise.
19975         * cfgexpand.c: Likewise.
19976         * cgraphbuild.c: Likewise.
19977         * cgraphclones.c: Likewise.
19978         * cgraphunit.c: Likewise.
19979         * combine.c: Likewise.
19980         * coverage.c: Likewise.
19981         * data-streamer-in.c: Likewise.
19982         * data-streamer-out.c: Likewise.
19983         * data-streamer.c: Likewise.
19984         * dbxout.c: Likewise.
19985         * dwarf2out.c: Likewise.
19986         * except.c: Likewise.
19987         * expr.c: Likewise.
19988         * final.c: Likewise.
19989         * fold-const.c: Likewise.
19990         * ggc-page.c: Likewise.
19991         * gimple-fold.c: Likewise.
19992         * gimple-iterator.c: Likewise.
19993         * gimple-pretty-print.c: Likewise.
19994         * gimple-streamer-in.c: Likewise.
19995         * gimple-streamer-out.c: Likewise.
19996         * gimple.c: Likewise.
19997         * gimplify.c: Likewise.
19998         * ipa-chkp.c: Likewise.
19999         * ipa-comdats.c: Likewise.
20000         * ipa-cp.c: Likewise.
20001         * ipa-devirt.c: Likewise.
20002         * ipa-icf-gimple.c: Likewise.
20003         * ipa-icf.c: Likewise.
20004         * ipa-inline-analysis.c: Likewise.
20005         * ipa-inline-transform.c: Likewise.
20006         * ipa-inline.c: Likewise.
20007         * ipa-polymorphic-call.c: Likewise.
20008         * ipa-profile.c: Likewise.
20009         * ipa-prop.c: Likewise.
20010         * ipa-pure-const.c: Likewise.
20011         * ipa-ref.c: Likewise.
20012         * ipa-reference.c: Likewise.
20013         * ipa-split.c: Likewise.
20014         * ipa-utils.c: Likewise.
20015         * ipa-visibility.c: Likewise.
20016         * ipa.c: Likewise.
20017         * langhooks.c: Likewise.
20018         * lto-cgraph.c: Likewise.
20019         * lto-compress.c: Likewise.
20020         * lto-opts.c: Likewise.
20021         * lto-section-in.c: Likewise.
20022         * lto-section-out.c: Likewise.
20023         * lto-streamer-in.c: Likewise.
20024         * lto-streamer-out.c: Likewise.
20025         * lto-streamer.c: Likewise.
20026         * omp-low.c: Likewise.
20027         * opts-global.c: Likewise.
20028         * passes.c: Likewise.
20029         * predict.c: Likewise.
20030         * print-tree.c: Likewise.
20031         * profile.c: Likewise.
20032         * ree.c: Likewise.
20033         * sanopt.c: Likewise.
20034         * stor-layout.c: Likewise.
20035         * symtab.c: Likewise.
20036         * toplev.c: Likewise.
20037         * trans-mem.c: Likewise.
20038         * tree-cfg.c: Likewise.
20039         * tree-chkp.c: Likewise.
20040         * tree-eh.c: Likewise.
20041         * tree-emutls.c: Likewise.
20042         * tree-inline.c: Likewise.
20043         * tree-nested.c: Likewise.
20044         * tree-parloops.c: Likewise.
20045         * tree-pretty-print.c: Likewise.
20046         * tree-profile.c: Likewise.
20047         * tree-sra.c: Likewise.
20048         * tree-ssa-alias.c: Likewise.
20049         * tree-ssa-live.c: Likewise.
20050         * tree-ssa-loop-ivcanon.c: Likewise.
20051         * tree-ssa-loop-ivopts.c: Likewise.
20052         * tree-ssa-pre.c: Likewise.
20053         * tree-ssa-sccvn.c: Likewise.
20054         * tree-ssa-strlen.c: Likewise.
20055         * tree-ssa-structalias.c: Likewise.
20056         * tree-streamer-in.c: Likewise.
20057         * tree-streamer-out.c: Likewise.
20058         * tree-streamer.c: Likewise.
20059         * tree-switch-conversion.c: Likewise.
20060         * tree-tailcall.c: Likewise.
20061         * tree-vect-data-refs.c: Likewise.
20062         * tree-vect-stmts.c: Likewise.
20063         * tree-vectorizer.c: Likewise.
20064         * tree.c: Likewise.
20065         * tsan.c: Likewise.
20066         * ubsan.c: Likewise.
20067         * value-prof.c: Likewise.
20068         * varasm.c: Likewise.
20069         * varpool.c: Likewise.
20070         * config/arm/arm.c: Likewise.
20071         * config/bfin/bfin.c: Likewise.
20072         * config/c6x/c6x.c: Likewise.
20073         * config/cris/cris.c: Likewise.
20074         * config/darwin-c.c: Likewise.
20075         * config/darwin.c: Likewise.
20076         * config/i386/i386.c: Likewise.
20077         * config/i386/winnt.c: Likewise.
20078         * config/microblaze/microblaze.c: Likewise.
20079         * config/mips/mips.c: Likewise.
20080         * config/rs6000/rs6000.c: Likewise.
20081         * config/rx/rx.c: Likewise.
20082         * config/s390/s390.c: Likewise.
20083         * config/tilegx/mul-tables.c: Likewise.
20085 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20087         * config/aarch64/aarch64.c, config/alpha/alpha.c,
20088         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20089         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20090         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20091         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20092         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20093         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20094         config/microblaze/microblaze.c, config/mips/mips.c,
20095         config/mmix/mmix.c, config/mn10300/mn10300.c,
20096         config/moxie/moxie.c, config/msp430/msp430.c,
20097         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20098         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20099         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20100         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20101         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20102         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20103         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20104         target-def.h include.
20105         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
20107 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20109         * Makefile.in (TARGET_DEF): Add target-insns.def.
20110         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20111         (build/gentarget-def.o): New rule.
20112         (genprogrtl): Add target-def.
20113         * target-insns.def, gentarget-def.c: New files.
20114         * target.def: Add targetm.have_* and targetm.gen_* hooks,
20115         based on the contents of target-insns.def.
20116         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20117         (HAVE_return, gen_return): Delete.
20118         * target-def.h: Include insn-target-def.h.
20119         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20120         instead of direct calls.  Rely on them to do the appropriate assertions.
20121         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
20122         (convert_jumps_to_returns): Use targetm interface instead of
20123         direct calls.
20124         (thread_prologue_and_epilogue_insns): Likewise.
20125         * reorg.c (find_end_label, dbr_schedule): Likewise.
20126         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20127         * shrink-wrap.c (convert_to_simple_return): Likewise.
20128         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20130 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20132         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20133         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20134         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20135         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20136         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20137         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20138         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20139         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20140         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20141         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20142         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20143         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20144         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20145         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20146         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20147         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20148         includes to end.
20150 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20152         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20153         (unbounded_int_hashmap_traits::key_type): Likewise.
20154         * hash-map.h (hash_map): Get the key type from the traits.
20155         * hash-traits.h (default_hash_traits): By default, inherit from the
20156         template parameter.
20157         * alias.c (alias_set_traits): Delete.
20158         (alias_set_entry_d::children): Use alias_set_hash as the first
20159         template parameter.
20160         (record_alias_subset): Update accordingly.
20161         * except.c (tree_hash_traits): Delete.
20162         (type_to_runtime_map): Use tree_hash as the first template parameter.
20163         (init_eh): Update accordingly.
20164         * genmatch.c (capture_id_map_hasher): Delete.
20165         (cid_map_t): Use nofree_string_hash as first template parameter.
20166         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20167         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20168         Use symbol_compare_hash as the first template parameter in
20169         subdivide_hash_map.
20170         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20171         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20172         template parameter.
20173         * passes.c (pass_registry_hasher): Delete.
20174         (name_to_pass_map): Use nofree_string_hash as the first template
20175         parameter.
20176         (register_pass_name): Update accordingly.
20177         * sanopt.c (sanopt_tree_map_traits): Delete.
20178         (sanopt_tree_triplet_map_traits): Delete.
20179         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20180         template parameter.
20181         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20182         the first template parameter.
20183         * sese.c (rename_map_hasher): Delete.
20184         (rename_map_type): Use tree_ssa_name_hash as the first template
20185         parameter.
20186         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20187         (function_summary::m_map): Use map_hash as the first template
20188         parameter.
20189         (function_summary::release): Update accordingly.
20190         * tree-if-conv.c (phi_args_hash_traits): Delete.
20191         (predicate_scalar_phi): Use tree_operand_hash as the first template
20192         parameter to phi_arg_map.
20193         * tree-inline.h (dependence_hasher): Delete.
20194         (copy_body_data::dependence_map): Use dependence_hash as the first
20195         template parameter.
20196         * tree-inline.c (remap_dependence_clique): Update accordingly.
20197         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20198         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20199         parameter.
20200         (addr_stridxptr): Update accordingly.
20201         * value-prof.c (profile_id_traits): Delete.
20202         (cgraph_node_map): Use profile_id_hash as the first template
20203         parameter.
20204         (init_node_map): Update accordingly.
20205         * config/alpha/alpha.c (string_traits): Delete.
20206         (machine_function::links): Use nofree_string_hash as the first
20207         template parameter.
20208         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20209         * config/m32c/m32c.c (pragma_traits): Delete.
20210         (pragma_htab): Use nofree_string_hash as the first template parameter.
20211         (m32c_note_pragma_address): Update accordingly.
20212         * config/mep/mep.c (pragma_traits): Delete.
20213         (pragma_htab): Use nofree_string_hash as the first template parameter.
20214         (mep_note_pragma_flag): Update accordingly.
20215         * config/mips/mips.c (mips16_flip_traits): Delete.
20216         (mflip_mips16_htab): Use nofree_string_hash as the first template
20217         parameter.
20218         (mflip_mips16_use_mips16_p): Update accordingly.
20219         (local_alias_traits): Delete.
20220         (mips16_local_aliases): Use nofree_string_hash as the first template
20221         parameter.
20222         (mips16_local_alias): Update accordingly.
20224 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20226         * hash-map-traits.h (default_hashmap_traits): Delete.
20228 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20230         * hash-map-traits.h (unbounded_hashmap_traits): New class.
20231         (unbounded_int_hashmap_traits): Likewise.
20232         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20234 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20236         * ipa-icf.h (symbol_compare_hash): New class.
20237         (symbol_compare_hashmap_traits): Use it.
20238         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20239         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20240         (mem_alloc_description::reverse_mem_map_t): Remove redundant
20241         default_hashmap_traits.
20242         * sanopt.c (sanopt_tree_triplet_hash): New class.
20243         (sanopt_tree_triplet_map_traits): Use it.
20245 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20247         * gengtype-parse.c (require_template_declaration): Allow '+' in
20248         template parameters.  Consolidate cases.
20249         * hash-traits.h (int_hash): New class.
20250         * alias.c (alias_set_hash): New structure.
20251         (alias_set_traits): Use it.
20252         * symbol-summary.h (function_summary::map_hash): New class.
20253         (function_summary::summary_hashmap_traits): Use it.
20254         * tree-inline.h (dependence_hash): New class.
20255         (dependence_hasher): Use it.
20256         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20257         * value-prof.c (profile_id_hash): New class.
20258         (profile_id_traits): Use it.
20260 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20262         * config/mips/mips.c (mips16_flip_traits): Use it.
20263         (local_alias_traits, mips16_local_aliases): Convert from a map of
20264         rtxes to a map of symbol names.
20265         (mips16_local_alias): Update accordingly.
20267 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20269         * hash-traits.h (string_hash, nofree_string_hash): New classes.
20270         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20271         * passes.c (pass_registry_hasher): Likewise.
20272         * config/alpha/alpha.c (string_traits): Likewise.
20273         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20274         * config/m32c/m32c.c (pragma_traits): Likewise.
20275         * config/mep/mep.c (pragma_traits): Likewise.
20277 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20279         * tree-hash-traits.h (tree_hash): New class.
20280         * except.c: Include tree-hash-traits.h.
20281         (tree_hash_traits): Use tree_hash.
20283 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20285         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20286         * sese.c: Include tree-hash-traits.h.
20287         (rename_map_hasher): Use tree_ssa_name_hasher.
20289 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20291         * tree-hash-traits.h (tree_decl_hash): New class.
20292         * tree-ssa-strlen.c: Include tree-hash-traits.h.
20293         (stridxlist_hash_traits): Use tree_decl_hash.
20295 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20297         * tree-hash-traits.h: New file.
20298         (tree_operand_hash): New class.
20299         * sanopt.c: Include tree-hash-traits.h.
20300         (sanopt_tree_map_traits): Use tree_operand_hash.
20301         * tree-if-conv.c: Include tree-hash-traits.h.
20302         (phi_args_hash_traits): Use tree_operand_hash.
20303         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20304         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20306 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20308         * hash-map-traits.h: Include hash-traits.h.
20309         (simple_hashmap_traits): New class.
20310         * mem-stats.h (hash_map): Change the default traits to
20311         simple_hashmap_traits<default_hash_traits<Key> >.
20313 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20315         * hash-table.h: Update comments.
20317 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20319         * hash-traits.h (default_hash_traits): New structure.
20320         * hash-set.h (default_hashset_traits): Delete.
20321         (hash_set): Use default_hash_traits<Key> instead of
20322         default_hashset_traits.  Delete hash_entry type and use Key directly.
20323         * ipa-devirt.c (pair_traits): Delete.
20324         (default_hash_traits <type_pair>): Override.
20325         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20326         (odr_types_equivalent_p, add_type_duplicate): Likewise.
20328 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20330         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20332 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20334         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20335         (has_is_empty, is_empty_helper): Delete.
20336         (has_mark_deleted, mark_deleted_helper): Delete.
20337         (has_mark_empty, mark_empty_helper): Delete.
20338         (hash_table::is_deleted): Call the Descriptor unconditionally.
20339         (hash_table::is_empty): Likewise.
20340         (hash_table::mark_deleted): Likewise.
20341         (hash_table::mark_empty): Likewise.
20343 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20345         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
20346         redundant typedefs and members.
20347         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
20348         redundant typedefs.
20349         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20350         * ipa-devirt.c (odr_name_hasher): Likewise.
20351         (polymorphic_call_target_hasher): Likewise.
20352         * ira-costs.c (cost_classes_hasher): Likewise.
20353         * statistics.c (stats_counter_hasher): Likewise.
20354         * trans-mem.c (log_entry_hasher): Likewise.
20355         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20356         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20357         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20358         * var-tracking.c (variable_hasher): Likewise.
20359         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20360         Remove redundant typedefs and members.
20362 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20364         * hash-traits.h (ggc_cache_hasher): Rename to...
20365         (ggc_cache_remove): ...this and remove typedefs.
20366         (ggc_cache_ptr_hash): New class.
20367         * hash-table.h: Update commentary.
20368         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20369         rather than ggc_cache_hasher.
20370         (const_wide_int_hasher, reg_attr_hasher): Likewise.
20371         (const_double_hasher, const_fixed_hasher): Likewise.
20372         * function.c (insn_cache_hasher): Likewise.
20373         * trans-mem.c (tm_wrapper_hasher): Likewise.
20374         * tree.h (tree_decl_map_cache_hasher): Likewise.
20375         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20376         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20377         * ubsan.c (tree_type_map_cache_hasher): Likewise.
20378         * varasm.c (tm_clone_hasher): Likewise.
20379         * config/i386/i386.c (dllimport_hasher): Likewise.
20380         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20381         (tree_hasher): Likewise.
20383 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20385         * hash-traits.h (ggc_hasher): Rename to...
20386         (ggc_remover): ...this and remove typedefs.
20387         (ggc_cache_hasher): Update accordingly.  Add typedefs.
20388         (ggc_ptr_hash): New class.
20389         * hash-table.h: Update comment.
20390         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20391         ggc_hasher.
20392         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20393         (tree_descriptor_hasher): Likewise.
20394         * cgraph.c (function_version_hasher): Likewise.
20395         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20396         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20397         (dw_loc_list_hasher, addr_hasher): Likewise.
20398         * function.h (used_type_hasher): Likewise.
20399         * function.c (temp_address_hasher): Likewise.
20400         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20401         * libfuncs.h (libfunc_hasher): Likewise.
20402         * lto-streamer.h (decl_state_hasher): Likewise.
20403         * optabs.c (libfunc_decl_hasher): Likewise.
20404         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20405         * varasm.c (section_hasher, object_block_hasher): Likewise.
20406         (const_rtx_desc_hasher): Likewise.
20407         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20408         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20410 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20412         * hash-traits.h (free_ptr_hash): New class.
20413         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20414         rather than typed_free_remove.  Remove redudant typedefs.
20415         (external_ref_hasher): Likewise.
20416         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20417         (ehspec_hasher): Likewise.
20418         * ggc-common.c (saving_hasher): Likewise.
20419         * gimplify.c (gimplify_hasher): Likewise.
20420         * haifa-sched.c (delay_i2_hasher): Likewise.
20421         * loop-invariant.c (invariant_expr_hasher): Likewise.
20422         * loop-iv.c (biv_entry_hasher): Likewise.
20423         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20424         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20425         * tree-cfg.c (locus_discrim_hasher): Likewise.
20426         * tree-eh.c (finally_tree_hasher): Likewise.
20427         * tree-into-ssa.c (var_info_hasher): Likewise.
20428         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20429         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20430         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20431         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20432         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20433         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20434         (shared_bitmap_hasher): Likewise.
20435         * tree-ssa-threadupdate.c (redirection_data): Likewise.
20436         * tree-vectorizer.h (peel_info_hasher): Likewise.
20437         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20438         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20440 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20442         * hash-table.h: Update comments.
20443         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20444         (nofree_ptr_hash): New class.
20445         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20446         than typed_noop_remove.  Remove redudant typedefs.
20447         * attribs.c (attribute_hasher): Likewise.
20448         * cfg.c (bb_copy_hasher): Likewise.
20449         * cselib.c (cselib_hasher): Likewise.
20450         * dse.c (invariant_group_base_hasher): Likewise.
20451         * dwarf2cfi.c (trace_info_hasher): Likewise.
20452         * dwarf2out.c (macinfo_entry_hasher): Likewise.
20453         (comdat_type_hasher, loc_list_hasher): Likewise.
20454         * gcse.c (pre_ldst_expr_hasher): Likewise.
20455         * genmatch.c (id_base): Likewise.
20456         * genrecog.c (test_pattern_hasher): Likewise.
20457         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20458         * haifa-sched.c (delay_i1_hasher): Likewise.
20459         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20460         * ipa-icf.h (congruence_class_group_hash): Likewise.
20461         * ipa-profile.c (histogram_hash): Likewise.
20462         * ira-color.c (allocno_hard_regs_hasher): Likewise.
20463         * lto-streamer.h (string_slot_hasher): Likewise.
20464         * lto-streamer.c (tree_entry_hasher): Likewise.
20465         * plugin.c (event_hasher): Likewise.
20466         * postreload-gcse.c (expr_hasher): Likewise.
20467         * store-motion.c (st_expr_hasher): Likewise.
20468         * tree-sra.c (uid_decl_hasher): Likewise.
20469         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20470         (ssa_name_var_hash): Likewise.
20471         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20472         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20473         * tree-ssa-pre.c (pre_expr_d): Likewise.
20474         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20475         * vtable-verify.h (registration_hasher): Likewise.
20476         * vtable-verify.c (vtbl_map_hasher): Likewise.
20477         * config/arm/arm.c (libcall_hasher): Likewise.
20478         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20479         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20480         * config/sol2.c (comdat_entry_hasher): Likewise.
20481         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20482         (print_fold_checksum, fold_checksum_tree): Likewise.
20483         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20484         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20485         (fold_build_call_array_loc): Likewise.
20486         * tree-ssa-ccp.c (gimple_htab): Likewise.
20487         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20488         rather than pointer_type.
20490 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20492         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20493         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20495 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20497         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20498         (ggc_hasher::ggc_mx): Likewise.
20499         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
20500         that duplicate ggc_hasher ones.
20502 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20504         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20505         (gt_cleare_cache): Check here for deleted and empty entries.
20506         Replace handle_cache_entry with a call to keep_cache_entry.
20507         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20508         (ggc_cache_hasher::keep_cache_entry): New function.
20509         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20510         (tm_wrapper_hasher::keep_cache_entry): New function.
20511         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20512         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20513         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20514         (type_cache_hasher::keep_cache_entry): New function.
20515         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20516         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20517         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20518         (tree_type_map_cache_hasher::keep_cache_entry): New function.
20519         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20520         (tm_clone_hasher::keep_cache_entry): New function.
20521         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20522         (dllimport_hasher::keep_cache_entry): New function.
20524 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20526         * hash-table.h: Include hash-traits.h.
20527         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20528         (ggc_cache_hasher): Move to...
20529         * hash-traits.h: ...this new file.
20531 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20533         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20534         struct cl_optimization.
20535         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20536         * tree.c (make_node_stat): Allocate cl_optimization struct.
20537         (copy_node_stat): Allocate and copy cl_optimization struct.
20539 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20541         * function.h (struct incoming_args): Move struct.
20542         (pass_by_reference, reference_callee_copied): Remove prototypes.
20543         * emit-rtl.h (struct incoming_args): Relocate struct here.
20544         * calls.h (pass_by_reference, reference_callee_copied): Relocate
20545         prototypes here.
20546         * function.c (pass_by_reference, reference_callee_copied): Move.
20547         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20548         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20549         * ipa-chkp.c: Include calls.h.
20551 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
20553         * alias.h (alias_set_type): Move typedef.
20554         * coretypes.h (alias_set_type): Relocate typedef here.
20555         * rtl.h: Don't include alias.h.
20557 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
20559         * cgraph.h (cgraph_rtl_info): Move to rtl.h
20560         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20561         and instance.
20562         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20563         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20564         doesn't exist.
20565         * calls.c: Include hard-reg-set.h before rtl.h.
20566         * ira.c: Likewise.
20568 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20569             Vladimir Makarov  <vmakarov@redhat.com>
20571         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20572         Add assert.
20574 2015-06-25  Richard Biener  <rguenther@suse.de>
20576         * fold-const.c (fold_binary_loc): Move simplification of
20577         (X <<>> C1) & C2 ...
20578         * match.pd: ... here.
20580 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
20582         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20584 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
20586         * match.pd: Add patterns for vec_conds between 1 and 0.
20588 2015-06-25  Richard Biener  <rguenther@suse.de>
20590         * tree-vect-stmts.c (vectorizable_conversion): Do not set
20591         STMT_VINFO_VEC_STMT for SLP.
20592         (vectorizable_store): Likewise.
20593         (vectorizable_load): Likewise.
20594         (vect_transform_stmt): Catch SLP vectorization clobbering
20595         STMT_VINFO_VEC_STMT.
20597 2015-06-25  Richard Biener  <rguenther@suse.de>
20599         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20600         dumping.
20601         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20602         cleanup resulting dead code and parameters.
20603         (vect_transform_slp_perm_load): Adjust.
20605 2015-06-25  Nick Clifton  <nickc@redhat.com>
20607         * config/bfin/bfin.c (bfin_expand_prologue): Set
20608         current_function_static_stack_size if flag_stack_usage_info is set.
20609         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20610         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20611         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20612         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20614 2015-06-25  Tom de Vries  <tom@codesourcery.com>
20616         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20617         comment that the generated IV is unsigned.
20619 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20621         PR target/29693
20622         * config/arm/arm.c (arm_dbx_register_number): Return
20623         DWARF_FRAME_REGISTERS by default.
20625 2015-06-25  Tom de Vries  <tom@codesourcery.com>
20627         * dominance.c (calculate_dominance_info): Fix verify_dominators call
20628         argument.  Call verify_dominator when reusing dominator info.
20630 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
20632         PR target/66563
20633         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20634         an additional element of the unspec vector.  Modify indices
20635         of operands.
20636         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20637         * config/sh/sh.c (prepare_move_operands): Pass incremented
20638         const_int to gen_GOTaddr2picreg.
20639         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20641 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20643         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20644         Condition on TARGET_FLOAT.
20646 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20648         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20649         and (no)crypto.
20651 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
20653         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20655         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20656         aarch64_err_no_fpadvsimd.
20658         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20659         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20660         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20661         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20662         Turn error into assert, test TARGET_FLOAT.
20663         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20664         TARGET_FLOAT.
20666 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
20668         PR debug/66482
20669         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20671 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20673         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20675 2015-06-24  Renlin Li <renlin.li@arm.com>
20677         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20678         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20680 2015-06-24  Richard Biener  <rguenther@suse.de>
20682         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20683         (main): Likewise.
20684         (lower_opt_convert): Support lowering of conditional view_convert.
20685         (parser::parse_operation): Likewise.
20686         (parser::parse_for): Likewise.
20688 2015-06-24  Renlin Li  <renlin.li@arm.com>
20690         * varasm.c (emit_local): Use unsigned int for align variable.
20692 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20694         PR target/63408
20695         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20696         for negative numbers.
20698 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20700         PR rtl-optimization/66306
20701         * reload.c (find_reloads): Swap the match_dup info for
20702         commutative operands.
20704 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20706         * config/s390/vx-builtins.md
20707         ("vec_scatter_element<mode>_<non_vec_int>")
20708         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20709         attribute with bhfgq.
20711 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20713         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20715 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20717         * config/s390/s390-builtin-types.def: Add flag to indicate the
20718         options under which the function type is needed.
20719         * config/s390/s390-builtins.def: Add flag to indicate the options
20720         under which the builtin is enabled.
20721         * config/s390/s390-builtins.h: Add flags parameter to macro
20722         definitions.
20723         (bflags_for_builtin): New function.
20724         (flags_for_builtin): Renamed to ...
20725         (opflags_for_builtin): ... this.
20726         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20727         flags_for_builtin to bflags_for_builtin and
20728         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20729         * config/s390/s390.c: Add initialization of bflags_builtin and
20730         opflags_builtin arrays.
20731         Remove code for flags_builtin.
20732         (s390_init_builtins): Only create builtin function types if one of
20733         their flags is active.
20734         Only create builtins if all of their flags are active.
20735         (s390_expand_builtin): Rename flags_for_builtin to
20736         opflags_for_builtin.
20738 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20740         * config/s390/vecintrin.h: Remove internal builtins.
20742 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20744         * config/s390/s390.c (s390_secondary_reload): Fix check for
20745         GENERAL_REGS register class.
20747 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20749         * config/s390/s390.c (s390_support_vector_misalignment): Call
20750         default implementation for !TARGET_VX.
20752 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20754         * config/s390/s390.c (s390_legitimate_constant_p): Add
20755         TARGET_VX check.
20757 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20759         * config/s390/s390.c (s390_vector_abi): New variable definition.
20760         (s390_check_type_for_vector_abi): New function.
20761         (TARGET_ASM_FILE_END): New macro definition.
20762         (s390_asm_file_end): New function.
20763         (s390_function_arg): Call s390_check_type_for_vector_abi.
20764         (s390_gimplify_va_arg): Likewise.
20765         * configure: Regenerate.
20766         * configure.ac: Check for .gnu_attribute Binutils feature.
20768 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
20770         PR target/65803
20771         * config/bfin/bfin.c (hwloop_optimize): Initialize
20772         JUMP_LABEL for newly created jump.
20774 2015-06-23  Tristan Gingold  <gingold@adacore.com>
20776         * collect-utils.c (collect_wait): Unlink the response file here
20777         instead of...
20778         (do_wait): ...here.
20779         (utils_cleanup): ...and here.
20781 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
20783         * df-scan.c: Don't include target-def.h.
20784         * targhooks.c: Likewise.
20785         * config/arm/arm-c.c: Likewise.
20786         * config/i386/i386-c.c: Likewise.
20787         * config/nds32/nds32-cost.c: Likewise.
20788         * config/nds32/nds32-fp-as-gp.c: Likewise.
20789         * config/nds32/nds32-intrinsic.c: Likewise.
20790         * config/nds32/nds32-isr.c: Likewise.
20791         * config/nds32/nds32-md-auxiliary.c: Likewise.
20792         * config/nds32/nds32-memory-manipulation.c: Likewise.
20793         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20794         * config/nds32/nds32-predicates.c: Likewise.
20796 2015-06-23  Richard Biener  <rguenther@suse.de>
20798         PR tree-optimization/66636
20799         * tree-vect-stmts.c (vectorizable_store): Properly compute the
20800         def type for further defs for strided stores.
20802 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
20804         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20805         conditional selects.
20806         (setcc_int<mode>, setcc_float<mode>): Reformat.
20808 2015-06-23  Marek Polacek  <polacek@redhat.com>
20810         * match.pd ((x + y) - (x | y) -> x & y,
20811         (x + y) - (x & y) -> x | y): New patterns.
20813 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
20815         PR 65711
20816         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20817         '-dynamic-linker' within %{!shared: ...}.
20819 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
20821         PR target/66560
20822         * config/i386/predicates.md (addsub_vm_operator): New predicate.
20823         (addsub_vs_operator): Ditto.
20824         (addsub_vs_parallel): Ditto.
20825         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20826         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20827         Put minus RTX before plus and adjust vec_merge selector.
20828         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20829         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20830         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20831         (addsub vec_merge splitters): New combiner splitters.
20832         (addsub vec_select/vec_concat splitters): Ditto.
20834 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
20836         PR tree-optimization/66449
20837         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20838         POINTER_PLUS_EXPR for pointers.
20840 2015-06-23  Alan Modra  <amodra@gmail.com>
20842         * rtlanal.c (commutative_operand_precedence): Correct comments.
20843         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20844         declaration.  Return an int.  Distinguish REG,REG return from
20845         others.
20846         (struct simplify_plus_minus_op_data): Make local to function.
20847         (simplify_plus_minus): Don't set canonicalized if merely sorting
20848         registers.  Avoid packing ops if nothing changes.  White space fixes.
20850 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
20852         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20853         -fdump-ada-spec is passed but not if -fsyntax-only is.
20855 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
20857         PR bootstrap/63740
20858         * lra-lives.c (process_bb_lives): Check insn copying the same
20859         reload pseudo and don't create a copy for it.
20861 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20863         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20864         for cond_stmt.
20866 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20868         * builtins.def (DEF_GOMP_BUILTIN): Test
20869         'flag_tree_parallelize_loops > 1' instead of
20870         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
20872 2015-06-22  Tom de Vries  <tom@codesourcery.com>
20874         * dominance.c (calculate_dominance_info): Verify dominators if
20875         early-out.
20877 2015-06-22  Marek Polacek  <polacek@redhat.com>
20879         * match.pd ((x ^ y) ^ (x | y) -> x & y,
20880         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20881         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20882         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20884 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
20886         PR target/65871
20887         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20888         cost of embedded comparison.
20890 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20892         PR target/65914
20893         * config/rs6000/predicates.md (altivec_register_operand): Permit
20894         virtual stack registers.
20895         (vsx_register_operand): Likewise.
20896         (vfloat_operand): Likewise.
20897         (vint_operand): Likewise.
20898         (vlogical_operand): Likewise.
20900 2015-06-22  Richard Biener  <rguenther@suse.de>
20902         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20903         and single_scalar_iteration_cost members.
20904         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20905         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20906         (vect_get_single_scalar_iteration_cost): Remove.
20907         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20908         Use LOOP_VINFO_SCALAR_ITERATION_COST.
20909         * tree-vect-loop.c (destroy_loop_vec_info): Free
20910         scalar_cost_vec.
20911         (vect_get_single_scalar_iteration_cost): Compute result into
20912         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20913         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
20914         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20915         (vect_estimate_min_profitable_iters): Use them.
20917 2015-06-22  Christian Bruel  <christian.bruel@st.com>
20919         PR target/52144
20920         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20921         (TARGET_INSERT_ATTRIBUTES): Define.
20922         (thumb_flipper): New var.
20923         * config/arm/arm.opt (-mflip-thumb): New switch.
20925 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
20926             Martin Liska  <mliska@suse.cz>
20928         PR ipa/65908
20929         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20930         construction of arg_types.
20931         (sem_function::sem_function): Likewise.
20932         (sem_function::~sem_function): Remove destruction of arg_types.
20933         (sem_function::compatible_parm_types_p): New function.
20934         (sem_function::equals_wpa): Reorg matching of return values
20935         and parameter types.
20936         (sem_function::equals_private): Reorg mathcing of argument types.
20937         (sem_function::parse_tree_args): Remove.
20938         * ipa-icf.h (init_wpa): Do not call it.
20939         (parse_tree_args): Remove.
20940         (compatible_parm_types_p): Declare.
20941         (result_type): Remove.
20942         (arg_types): Remove.
20944 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
20946         PR ipa/66351
20947         * ipa-polymorphic-call.c
20948         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20949         initializing alias oracle; fix formating; set base_alias_set if it
20950         is known.
20952 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
20954         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20955         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20956         (find_inc): Likewise.
20957         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20958         swapping.
20959         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20960         * df-scan.c (df_swap_refs): Remove.
20961         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20962         * dominance.c (link_roots): Use std::swap instead of manually swapping.
20963         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20964         * fold-const.c (fold_relational_const): Likewise.
20965         * genattrtab.c (simplify_test_exp): Likewise.
20966         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20967         gimple_simplify): Likewise.
20968         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20969         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20970         * ipa-devirt.c (add_type_duplicate): Likewise.
20971         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20972         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20973         * lra.c (lra_create_copy): Likewise.
20974         * lto-streamer-out.c (DFS::DFS): Likewise.
20975         * modulo-sched.c (get_sched_window): Likewise.
20976         * omega.c (omega_pretty_print_problem): Likewise.
20977         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20978         * reload1.c (reloads_unique_chain_p): Likewise.
20979         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20980         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20981         use std::swap.
20982         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20983         manually swapping.
20984         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20985         predicate_mem_writes): Likewise.
20986         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20987         * tree-predcom.c (combine_chains): Likewise.
20988         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20989         refs_may_alias_p_1): Likewise.
20990         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20991         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20992         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20993         number_of_iterations_cond): Likewise.
20994         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20995         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20996         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20997         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20998         * tree-vrp.c (extract_range_from_binary_expr_1,
20999         extract_range_from_unary_expr_1): Likewise.
21001 2015-06-20  Marek Polacek  <polacek@redhat.com>
21003         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21005 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
21007         PR target/66591
21008         * config/sh/sh.c (prepare_move_operands): Replace subreg
21009         index term with R0 for base and index addressing.
21011 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
21013         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21014         op1 is an fp zero.
21015         (movsf_aarch64): Change condition from register_operand to
21016         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
21017         load1.  Change type for alternative 7 to store1.
21018         (movdf_aarch64): Likewise.
21020 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
21022         * config/vax/vax.md: Adjust sign/zero extend patterns to
21023         handle SUBREGs in operands[1].
21025 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21027         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21028         of manually swapping.
21029         (expand_vec_perm_interleave2): Likewise.
21031 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
21033         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21034         reuse bounds created for abnormal ssa names.
21036 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
21038         * config/nvptx/nvptx.md (allocate_stack): Rename to...
21039         (allocate_stack_<mode>): ... this, and add :P on both
21040         match_operand and unspec.
21041         (allocate_stack): New expander.
21043 2015-06-19  Christian Bruel  <christian.bruel@st.com>
21045         PR target/66541
21046         PR target/52144
21047         * config/arm/arm.c (arm_set_current_function): Handle
21048         explicit default options.
21050 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
21052         * config/i386/i386.md (*movsicc_noc_zext): New insn.
21053         (zero-extended cmove with mem peephole2): New pattern.
21054         (cmove with mem peephole2): Merge patterns.
21056 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
21058         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21060 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
21062         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21063         * config/mips/mips.md (*madd4<mode>): Ditto.
21064         (*nmadd3<mode>) Ditto.
21065         (*nmadd4<mode>_fastmath): Ditto.
21066         (*nmadd3<mode>_fastmath): Ditto.
21067         (*nmsub4<mode>): Ditto.
21068         (*nmsub3<mode>): Ditto.
21069         (*nmsub4<mode>_fastmath): Ditto.
21070         (*nmsub3<mode>_fastmath): Ditto.
21072 2015-06-18  Michael Matz  <matz@suse.de>
21074         PR middle-end/66253
21075         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21076         grouped strided stores.
21077         (vectorizable_load): Don't use the DR from first_stmt in
21078         the non-SLP grouped strided case.
21080 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21082         PR target/66569
21083         * function.c (assign_bounds): Add arguments assign_regs,
21084         assign_special, assign_bt.
21085         (assign_parms): For vararg functions handle bounds in BT
21086         and special slots after incoming vararg bounds.
21088 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21090         PR middle-end/66568
21091         * cfgexpand.c (expand_return): Handle missing bounds.
21092         (expand_gimple_stmt_1): Likewise.
21093         * tree-chkp.c (chkp_expand_zero_bounds): New.
21094         * tree-chkp.h (chkp_expand_zero_bounds): New.
21096 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21098         PR middle-end/66567
21099         * ipa-chkp.c (chkp_maybe_create_clone): Require
21100         functions to be instrumentable.
21101         * tree-chkp.c (chkp_replace_function_pointer): Use
21102         chkp_instrumentable_p instead of attribute check.
21104 2015-06-18  Richard Biener  <rguenther@suse.de>
21106         PR tree-optimization/66510
21107         * tree-vect-stmts.c (vectorizable_load): Properly compute the
21108         number of vector loads for SLP permuted loads.
21109         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21110         check the stride for loop vectorization.
21111         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21112         vectorization factor.
21113         (vect_analyze_group_access): If the group size is not a power
21114         of two require a epilogue loop.
21115         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21116         compute and optimizing and alias test pruning after final
21117         vectorization factor computation.
21118         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21119         vector alignment.
21120         (vect_transform_slp_perm_load): Properly compute the original
21121         number of vector load stmts.
21123 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
21125         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21126         "unlikely character , in @var" warning.
21128 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
21130         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21131         (ix86_function_arg_advance): Ditto.
21132         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
21134 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21136         * function.h (struct rtl_data): Remove struct and accessor macros.
21137         * emit-rtl.h (struct rtl_data): Relocate to here.
21138         * Makefile.in (GTFILES): Add emit-rtl.h.
21139         * df-core.c: Include emit-rtl.h.
21140         * genattrtab.c: Likewise.
21141         * genconditions.c: Likewise.
21142         * genpreds.c: Likewise.
21143         * genrecog.c: Likewise.
21144         * regcprop.c: Likewise.
21145         * resource.c: Likewise.
21146         * sched-rgn.c: Likewise.
21147         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21148         * config/i386/winnt.c: Likewise.
21150 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
21152         PR middle-end/66429
21153         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21154         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
21155         and has_force_vectorize_loops flags from cfun into
21156         child_cfun.
21157         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21158         if simduid is non-NULL.
21159         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21160         * passes.def (pass_simduid_cleanup): Add new pass after loop
21161         passes.
21162         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21163         indirection from htab argument's type.
21164         (shrink_simd_arrays): New function.
21165         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
21166         Don't call adjust_simduid_builtins if there are no loops.
21167         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21168         (pass_simduid_cleanup::execute): New method.
21169         (make_pass_simduid_cleanup): New function.
21171 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
21173         * tree-core.h (tree_target_option): Make opts field a pointer to a
21174         cl_target_option instead of an instance of the struct.
21175         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21176         the structure.
21177         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21178         TARGET_OPTION_NODE.
21179         (copy_node_stat): Allocate and copy struct cl_target_option.
21181 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21183         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21184         Remove conditional exposure of prototypes.
21185         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21186         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
21187         definitions in tree.h with functions.
21188         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21189         anon_aggrname_p.
21190         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21192 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
21194         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21195         (*cmp<mode>_signed): ... this.
21196         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21197         (*cmp<mode>_unsigned): ... this.  Remove %b.
21199 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
21201         * coretypes.h: Include input.h and as-a.h.
21202         * rtl.h: Include input.h and as-a.h for generator files.
21203         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21204         * vec.c: Don't include diagnostic-core.h.
21205         * alias.c: Do not include input.h, line-map.h or is-a.h.
21206         * asan.c: Likewise.
21207         * attribs.c: Likewise.
21208         * auto-inc-dec.c: Likewise.
21209         * auto-profile.c: Likewise.
21210         * bb-reorder.c: Likewise.
21211         * bt-load.c: Likewise.
21212         * builtins.c: Likewise.
21213         * caller-save.c: Likewise.
21214         * calls.c: Likewise.
21215         * ccmp.c: Likewise.
21216         * cfg.c: Likewise.
21217         * cfganal.c: Likewise.
21218         * cfgbuild.c: Likewise.
21219         * cfgcleanup.c: Likewise.
21220         * cfgexpand.c: Likewise.
21221         * cfghooks.c: Likewise.
21222         * cfgloop.c: Likewise.
21223         * cfgloop.h: Likewise.
21224         * cfgloopanal.c: Likewise.
21225         * cfgloopmanip.c: Likewise.
21226         * cfgrtl.c: Likewise.
21227         * cgraph.c: Likewise.
21228         * cgraphbuild.c: Likewise.
21229         * cgraphclones.c: Likewise.
21230         * cgraphunit.c: Likewise.
21231         * cilk-common.c: Likewise.
21232         * combine-stack-adj.c: Likewise.
21233         * combine.c: Likewise.
21234         * compare-elim.c: Likewise.
21235         * convert.c: Likewise.
21236         * coverage.c: Likewise.
21237         * cppbuiltin.c: Likewise.
21238         * cprop.c: Likewise.
21239         * cse.c: Likewise.
21240         * cselib.c: Likewise.
21241         * data-streamer-in.c: Likewise.
21242         * data-streamer-out.c: Likewise.
21243         * data-streamer.c: Likewise.
21244         * dbxout.c: Likewise.
21245         * dce.c: Likewise.
21246         * ddg.c: Likewise.
21247         * debug.c: Likewise.
21248         * df-core.c: Likewise.
21249         * df-problems.c: Likewise.
21250         * df-scan.c: Likewise.
21251         * df.h: Likewise.
21252         * dfp.c: Likewise.
21253         * diagnostic-core.h: Likewise.
21254         * diagnostic.c: Likewise.
21255         * dojump.c: Likewise.
21256         * dominance.c: Likewise.
21257         * domwalk.c: Likewise.
21258         * double-int.c: Likewise.
21259         * dse.c: Likewise.
21260         * dumpfile.c: Likewise.
21261         * dumpfile.h: Likewise.
21262         * dwarf2asm.c: Likewise.
21263         * dwarf2cfi.c: Likewise.
21264         * dwarf2out.c: Likewise.
21265         * emit-rtl.c: Likewise.
21266         * et-forest.c: Likewise.
21267         * except.c: Likewise.
21268         * explow.c: Likewise.
21269         * expmed.c: Likewise.
21270         * expr.c: Likewise.
21271         * final.c: Likewise.
21272         * fixed-value.c: Likewise.
21273         * fold-const.c: Likewise.
21274         * function.c: Likewise.
21275         * fwprop.c: Likewise.
21276         * gcc-plugin.h: Likewise.
21277         * gcse.c: Likewise.
21278         * generic-match-head.c: Likewise.
21279         * ggc-page.c: Likewise.
21280         * gimple-builder.c: Likewise.
21281         * gimple-expr.c: Likewise.
21282         * gimple-fold.c: Likewise.
21283         * gimple-iterator.c: Likewise.
21284         * gimple-low.c: Likewise.
21285         * gimple-match-head.c: Likewise.
21286         * gimple-pretty-print.c: Likewise.
21287         * gimple-ssa-isolate-paths.c: Likewise.
21288         * gimple-ssa-strength-reduction.c: Likewise.
21289         * gimple-streamer-in.c: Likewise.
21290         * gimple-streamer-out.c: Likewise.
21291         * gimple-streamer.h: Likewise.
21292         * gimple-walk.c: Likewise.
21293         * gimple.c: Likewise.
21294         * gimplify-me.c: Likewise.
21295         * gimplify.c: Likewise.
21296         * godump.c: Likewise.
21297         * graph.c: Likewise.
21298         * graphite-blocking.c: Likewise.
21299         * graphite-dependences.c: Likewise.
21300         * graphite-interchange.c: Likewise.
21301         * graphite-isl-ast-to-gimple.c: Likewise.
21302         * graphite-optimize-isl.c: Likewise.
21303         * graphite-poly.c: Likewise.
21304         * graphite-scop-detection.c: Likewise.
21305         * graphite-sese-to-poly.c: Likewise.
21306         * graphite.c: Likewise.
21307         * haifa-sched.c: Likewise.
21308         * hw-doloop.c: Likewise.
21309         * ifcvt.c: Likewise.
21310         * init-regs.c: Likewise.
21311         * input.c: Likewise.
21312         * internal-fn.c: Likewise.
21313         * ipa-chkp.c: Likewise.
21314         * ipa-comdats.c: Likewise.
21315         * ipa-cp.c: Likewise.
21316         * ipa-devirt.c: Likewise.
21317         * ipa-icf-gimple.c: Likewise.
21318         * ipa-icf.c: Likewise.
21319         * ipa-inline-analysis.c: Likewise.
21320         * ipa-inline-transform.c: Likewise.
21321         * ipa-inline.c: Likewise.
21322         * ipa-polymorphic-call.c: Likewise.
21323         * ipa-profile.c: Likewise.
21324         * ipa-prop.c: Likewise.
21325         * ipa-pure-const.c: Likewise.
21326         * ipa-ref.c: Likewise.
21327         * ipa-reference.c: Likewise.
21328         * ipa-split.c: Likewise.
21329         * ipa-utils.c: Likewise.
21330         * ipa-visibility.c: Likewise.
21331         * ipa.c: Likewise.
21332         * ira-build.c: Likewise.
21333         * ira-color.c: Likewise.
21334         * ira-conflicts.c: Likewise.
21335         * ira-costs.c: Likewise.
21336         * ira-emit.c: Likewise.
21337         * ira-lives.c: Likewise.
21338         * ira.c: Likewise.
21339         * jump.c: Likewise.
21340         * langhooks.c: Likewise.
21341         * lcm.c: Likewise.
21342         * loop-doloop.c: Likewise.
21343         * loop-init.c: Likewise.
21344         * loop-invariant.c: Likewise.
21345         * loop-iv.c: Likewise.
21346         * loop-unroll.c: Likewise.
21347         * lower-subreg.c: Likewise.
21348         * lra-assigns.c: Likewise.
21349         * lra-coalesce.c: Likewise.
21350         * lra-constraints.c: Likewise.
21351         * lra-eliminations.c: Likewise.
21352         * lra-lives.c: Likewise.
21353         * lra-remat.c: Likewise.
21354         * lra-spills.c: Likewise.
21355         * lra.c: Likewise.
21356         * lto-cgraph.c: Likewise.
21357         * lto-compress.c: Likewise.
21358         * lto-opts.c: Likewise.
21359         * lto-section-in.c: Likewise.
21360         * lto-section-out.c: Likewise.
21361         * lto-streamer-in.c: Likewise.
21362         * lto-streamer-out.c: Likewise.
21363         * lto-streamer.c: Likewise.
21364         * mcf.c: Likewise.
21365         * mode-switching.c: Likewise.
21366         * modulo-sched.c: Likewise.
21367         * omega.c: Likewise.
21368         * omp-low.c: Likewise.
21369         * optabs.c: Likewise.
21370         * opts-global.c: Likewise.
21371         * opts.h: Likewise.
21372         * passes.c: Likewise.
21373         * plugin.c: Likewise.
21374         * postreload-gcse.c: Likewise.
21375         * postreload.c: Likewise.
21376         * predict.c: Likewise.
21377         * pretty-print.h: Likewise.
21378         * print-rtl.c: Likewise.
21379         * print-tree.c: Likewise.
21380         * profile.c: Likewise.
21381         * real.c: Likewise.
21382         * realmpfr.c: Likewise.
21383         * recog.c: Likewise.
21384         * ree.c: Likewise.
21385         * reg-stack.c: Likewise.
21386         * regcprop.c: Likewise.
21387         * reginfo.c: Likewise.
21388         * regrename.c: Likewise.
21389         * regstat.c: Likewise.
21390         * reload.c: Likewise.
21391         * reload1.c: Likewise.
21392         * reorg.c: Likewise.
21393         * resource.c: Likewise.
21394         * rtl-chkp.c: Likewise.
21395         * rtl-error.c: Likewise.
21396         * rtlanal.c: Likewise.
21397         * rtlhooks.c: Likewise.
21398         * sanopt.c: Likewise.
21399         * sched-deps.c: Likewise.
21400         * sched-ebb.c: Likewise.
21401         * sched-rgn.c: Likewise.
21402         * sched-vis.c: Likewise.
21403         * sdbout.c: Likewise.
21404         * sel-sched-dump.c: Likewise.
21405         * sel-sched-ir.c: Likewise.
21406         * sel-sched.c: Likewise.
21407         * sese.c: Likewise.
21408         * shrink-wrap.c: Likewise.
21409         * simplify-rtx.c: Likewise.
21410         * stack-ptr-mod.c: Likewise.
21411         * statistics.c: Likewise.
21412         * stmt.c: Likewise.
21413         * stor-layout.c: Likewise.
21414         * store-motion.c: Likewise.
21415         * streamer-hooks.c: Likewise.
21416         * stringpool.c: Likewise.
21417         * symtab.c: Likewise.
21418         * target-globals.c: Likewise.
21419         * targhooks.c: Likewise.
21420         * toplev.c: Likewise.
21421         * tracer.c: Likewise.
21422         * trans-mem.c: Likewise.
21423         * tree-affine.c: Likewise.
21424         * tree-browser.c: Likewise.
21425         * tree-call-cdce.c: Likewise.
21426         * tree-cfg.c: Likewise.
21427         * tree-cfgcleanup.c: Likewise.
21428         * tree-chkp-opt.c: Likewise.
21429         * tree-chkp.c: Likewise.
21430         * tree-chrec.c: Likewise.
21431         * tree-complex.c: Likewise.
21432         * tree-data-ref.c: Likewise.
21433         * tree-dfa.c: Likewise.
21434         * tree-diagnostic.c: Likewise.
21435         * tree-dump.c: Likewise.
21436         * tree-eh.c: Likewise.
21437         * tree-emutls.c: Likewise.
21438         * tree-if-conv.c: Likewise.
21439         * tree-inline.c: Likewise.
21440         * tree-into-ssa.c: Likewise.
21441         * tree-iterator.c: Likewise.
21442         * tree-loop-distribution.c: Likewise.
21443         * tree-nested.c: Likewise.
21444         * tree-nrv.c: Likewise.
21445         * tree-object-size.c: Likewise.
21446         * tree-outof-ssa.c: Likewise.
21447         * tree-parloops.c: Likewise.
21448         * tree-phinodes.c: Likewise.
21449         * tree-predcom.c: Likewise.
21450         * tree-pretty-print.c: Likewise.
21451         * tree-profile.c: Likewise.
21452         * tree-scalar-evolution.c: Likewise.
21453         * tree-sra.c: Likewise.
21454         * tree-ssa-address.c: Likewise.
21455         * tree-ssa-alias.c: Likewise.
21456         * tree-ssa-ccp.c: Likewise.
21457         * tree-ssa-coalesce.c: Likewise.
21458         * tree-ssa-copy.c: Likewise.
21459         * tree-ssa-copyrename.c: Likewise.
21460         * tree-ssa-dce.c: Likewise.
21461         * tree-ssa-dom.c: Likewise.
21462         * tree-ssa-dse.c: Likewise.
21463         * tree-ssa-forwprop.c: Likewise.
21464         * tree-ssa-ifcombine.c: Likewise.
21465         * tree-ssa-live.c: Likewise.
21466         * tree-ssa-loop-ch.c: Likewise.
21467         * tree-ssa-loop-im.c: Likewise.
21468         * tree-ssa-loop-ivcanon.c: Likewise.
21469         * tree-ssa-loop-ivopts.c: Likewise.
21470         * tree-ssa-loop-manip.c: Likewise.
21471         * tree-ssa-loop-niter.c: Likewise.
21472         * tree-ssa-loop-prefetch.c: Likewise.
21473         * tree-ssa-loop-unswitch.c: Likewise.
21474         * tree-ssa-loop.c: Likewise.
21475         * tree-ssa-math-opts.c: Likewise.
21476         * tree-ssa-operands.c: Likewise.
21477         * tree-ssa-phiopt.c: Likewise.
21478         * tree-ssa-phiprop.c: Likewise.
21479         * tree-ssa-pre.c: Likewise.
21480         * tree-ssa-propagate.c: Likewise.
21481         * tree-ssa-reassoc.c: Likewise.
21482         * tree-ssa-sccvn.c: Likewise.
21483         * tree-ssa-scopedtables.c: Likewise.
21484         * tree-ssa-sink.c: Likewise.
21485         * tree-ssa-strlen.c: Likewise.
21486         * tree-ssa-structalias.c: Likewise.
21487         * tree-ssa-tail-merge.c: Likewise.
21488         * tree-ssa-ter.c: Likewise.
21489         * tree-ssa-threadedge.c: Likewise.
21490         * tree-ssa-threadupdate.c: Likewise.
21491         * tree-ssa-uncprop.c: Likewise.
21492         * tree-ssa-uninit.c: Likewise.
21493         * tree-ssa.c: Likewise.
21494         * tree-ssanames.c: Likewise.
21495         * tree-stdarg.c: Likewise.
21496         * tree-streamer-in.c: Likewise.
21497         * tree-streamer-out.c: Likewise.
21498         * tree-streamer.c: Likewise.
21499         * tree-switch-conversion.c: Likewise.
21500         * tree-tailcall.c: Likewise.
21501         * tree-vect-data-refs.c: Likewise.
21502         * tree-vect-generic.c: Likewise.
21503         * tree-vect-loop-manip.c: Likewise.
21504         * tree-vect-loop.c: Likewise.
21505         * tree-vect-patterns.c: Likewise.
21506         * tree-vect-slp.c: Likewise.
21507         * tree-vect-stmts.c: Likewise.
21508         * tree-vectorizer.c: Likewise.
21509         * tree-vrp.c: Likewise.
21510         * tree.c: Likewise.
21511         * tsan.c: Likewise.
21512         * ubsan.c: Likewise.
21513         * valtrack.c: Likewise.
21514         * value-prof.c: Likewise.
21515         * var-tracking.c: Likewise.
21516         * varasm.c: Likewise.
21517         * varpool.c: Likewise.
21518         * vmsdbgout.c: Likewise.
21519         * vtable-verify.c: Likewise.
21520         * web.c: Likewise.
21521         * wide-int.cc: Likewise.
21522         * xcoffout.c: Likewise.
21523         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21524         * common/common-targhooks.c: Likewise.
21525         * config/aarch64/aarch64-builtins.c: Likewise.
21526         * config/aarch64/aarch64.c: Likewise.
21527         * config/alpha/alpha.c: Likewise.
21528         * config/arc/arc.c: Likewise.
21529         * config/arm/aarch-common.c: Likewise.
21530         * config/arm/arm-builtins.c: Likewise.
21531         * config/arm/arm-c.c: Likewise.
21532         * config/arm/arm.c: Likewise.
21533         * config/avr/avr-c.c: Likewise.
21534         * config/avr/avr-log.c: Likewise.
21535         * config/avr/avr.c: Likewise.
21536         * config/bfin/bfin.c: Likewise.
21537         * config/c6x/c6x.c: Likewise.
21538         * config/cr16/cr16.c: Likewise.
21539         * config/cris/cris.c: Likewise.
21540         * config/darwin-c.c: Likewise.
21541         * config/darwin.c: Likewise.
21542         * config/default-c.c: Likewise.
21543         * config/epiphany/epiphany.c: Likewise.
21544         * config/epiphany/mode-switch-use.c: Likewise.
21545         * config/epiphany/resolve-sw-modes.c: Likewise.
21546         * config/fr30/fr30.c: Likewise.
21547         * config/frv/frv.c: Likewise.
21548         * config/ft32/ft32.c: Likewise.
21549         * config/glibc-c.c: Likewise.
21550         * config/h8300/h8300.c: Likewise.
21551         * config/i386/i386-c.c: Likewise.
21552         * config/i386/i386.c: Likewise.
21553         * config/i386/msformat-c.c: Likewise.
21554         * config/i386/winnt-cxx.c: Likewise.
21555         * config/i386/winnt-stubs.c: Likewise.
21556         * config/i386/winnt.c: Likewise.
21557         * config/ia64/ia64-c.c: Likewise.
21558         * config/ia64/ia64.c: Likewise.
21559         * config/iq2000/iq2000.c: Likewise.
21560         * config/lm32/lm32.c: Likewise.
21561         * config/m32c/m32c-pragma.c: Likewise.
21562         * config/m32c/m32c.c: Likewise.
21563         * config/m32r/m32r.c: Likewise.
21564         * config/m68k/m68k.c: Likewise.
21565         * config/mcore/mcore.c: Likewise.
21566         * config/mep/mep-pragma.c: Likewise.
21567         * config/mep/mep.c: Likewise.
21568         * config/microblaze/microblaze-c.c: Likewise.
21569         * config/microblaze/microblaze.c: Likewise.
21570         * config/mips/mips.c: Likewise.
21571         * config/mmix/mmix.c: Likewise.
21572         * config/mn10300/mn10300.c: Likewise.
21573         * config/moxie/moxie.c: Likewise.
21574         * config/msp430/msp430-c.c: Likewise.
21575         * config/msp430/msp430.c: Likewise.
21576         * config/nds32/nds32-cost.c: Likewise.
21577         * config/nds32/nds32-fp-as-gp.c: Likewise.
21578         * config/nds32/nds32-intrinsic.c: Likewise.
21579         * config/nds32/nds32-isr.c: Likewise.
21580         * config/nds32/nds32-md-auxiliary.c: Likewise.
21581         * config/nds32/nds32-memory-manipulation.c: Likewise.
21582         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21583         * config/nds32/nds32-predicates.c: Likewise.
21584         * config/nds32/nds32.c: Likewise.
21585         * config/nios2/nios2.c: Likewise.
21586         * config/nvptx/nvptx.c: Likewise.
21587         * config/pa/pa.c: Likewise.
21588         * config/pdp11/pdp11.c: Likewise.
21589         * config/rl78/rl78-c.c: Likewise.
21590         * config/rl78/rl78.c: Likewise.
21591         * config/rs6000/rs6000-c.c: Likewise.
21592         * config/rs6000/rs6000.c: Likewise.
21593         * config/rx/rx.c: Likewise.
21594         * config/s390/s390-c.c: Likewise.
21595         * config/s390/s390.c: Likewise.
21596         * config/sh/sh-c.c: Likewise.
21597         * config/sh/sh-mem.cc: Likewise.
21598         * config/sh/sh.c: Likewise.
21599         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21600         * config/sh/sh_treg_combine.cc: Likewise.
21601         * config/sol2-c.c: Likewise.
21602         * config/sol2-cxx.c: Likewise.
21603         * config/sol2-stubs.c: Likewise.
21604         * config/sol2.c: Likewise.
21605         * config/sparc/sparc-c.c: Likewise.
21606         * config/sparc/sparc.c: Likewise.
21607         * config/spu/spu-c.c: Likewise.
21608         * config/spu/spu.c: Likewise.
21609         * config/stormy16/stormy16.c: Likewise.
21610         * config/tilegx/mul-tables.c: Likewise.
21611         * config/tilegx/tilegx-c.c: Likewise.
21612         * config/tilegx/tilegx.c: Likewise.
21613         * config/tilepro/mul-tables.c: Likewise.
21614         * config/tilepro/tilepro-c.c: Likewise.
21615         * config/tilepro/tilepro.c: Likewise.
21616         * config/v850/v850-c.c: Likewise.
21617         * config/v850/v850.c: Likewise.
21618         * config/vax/vax.c: Likewise.
21619         * config/visium/visium.c: Likewise.
21620         * config/vms/vms-c.c: Likewise.
21621         * config/vms/vms.c: Likewise.
21622         * config/vxworks.c: Likewise.
21623         * config/winnt-c.c: Likewise.
21624         * config/xtensa/xtensa.c: Likewise.
21626 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
21628         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21629         function.
21630         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21632 2015-06-17  Richard Biener  <rguenther@suse.de>
21634         PR tree-optimization/66251
21635         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21636         stmts for SLP strided stores.
21638         Revert
21639         2015-05-22  Richard Biener  <rguenther@suse.de>
21641         PR tree-optimization/66251
21642         * tree-vect-stmts.c (vectorizable_conversion): Properly
21643         set STMT_VINFO_VEC_STMT even for the SLP case.
21645         2015-05-26  Michael Matz  <matz@suse.de>
21647         PR middle-end/66251
21648         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21649         STMT_VINFO_VEC_STMT, also with SLP.
21651 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
21653         PR target/56766
21654         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21655         (*avx_addsubv4df3_1s): Ditto.
21656         (*sse3_addsubv2df3_1): Ditto.
21657         (*sse3_addsubv2df3_1s): Ditto.
21658         (*avx_addsubv8sf3_1): Ditto.
21659         (*avx_addsubv8sf3_1s): Ditto.
21660         (*sse3_addsubv4sf3_1): Ditto.
21661         (*sse3_addsubv4sf3_1s): Ditto.
21663 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
21665         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21666         (SYSROOT_SUFFIX_SPEC): Update.
21667         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21668         (STARTFILE_PREFIX_SPEC): Update.
21669         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21670         (MULTILIB_REQUIRED): New.
21671         (MULTILIB_OSDIRNAMES): New.
21672         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21673         (MULTILIB_REQUIRED): New.
21674         (MULTILIB_OSDIRNAMES): New.
21676 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
21678         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21679         * config/aarch64/aarch64-options-extensions.def: Update "fP",
21680         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
21681         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21682         (AARCH64_FL_PAN): New.
21683         (AARCH64_FL_LOR): New.
21684         (AARCH64_FL_RDMA): New.
21685         (AARCH64_FL_FOR_ARCH8_1): New.
21686         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21687         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21689 2015-06-16  Martin Liska  <mliska@suse.cz>
21691         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21692         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21693         guard.
21695 2015-06-16  Richard Biener  <rguenther@suse.de>
21697         * tree-vect-stmts.c (vectorizable_store): Adjust.
21698         (vectorizable_load): Likewise.
21699         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21700         Simplify.
21701         (vect_create_data_ref_ptr): Likewise.
21702         (bump_vector_ptr): Adjust.
21704 2015-06-16  Richard Biener  <rguenther@suse.de>
21706         * tree-vect-stmts.c (vectorizable_load): Properly start loads
21707         with the first element if this is grouped loads.
21709 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
21711         * config/arm/arm-protos.h (struct tune_params): Rename
21712         log_op_non_sc to log_op_non_short_circuit, and rename enum
21713         values to expand SC to SHORT_CIRCUIT.
21714         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21715         to LOG_OP_NON_SHORT_CIRCUIT.
21716         (arm_fastmul_tune):Likewise
21717         (arm_strongarm_tune): Likewise.
21718         (arm_xscale_tune): Likewise.
21719         (arm_9e_tune): Likewise.
21720         (arm_marvell_pj4_tune): Likewise.
21721         (arm_v6t2_tune): Likewise.
21722         (arm_cortex_tune): Likewise.
21723         (arm_cortex_a8_tune): Likewise.
21724         (arm_cortex_a7_tune): Likewise.
21725         (arm_cortex_a15_tune): Likewise.
21726         (arm_cortex_a53_tune): Likewise.
21727         (arm_cortex_a57_tune): Likewise.
21728         (arm_xgene1_tune): Likewise.
21729         (arm_cortex_a5_tune): Likewise.
21730         (arm_cortex_a9_tune): Likewise.
21731         (arm_cortex_a12_tune): Likewise.
21732         (arm_v7m_tune): Likewise.
21733         (arm_cortex_m7_tune): Likewise.
21734         (arm_v6m_tune): Likewise.
21735         (arm_fa726te_tune): Likewise.
21737 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
21739         * altivec.md: Delete UNSPEC_VMLADDUHM.
21740         (mulv4si3_p8): New pattern.
21741         (mulv4si3): Use it for POWER8.
21742         (mulv8hi3): Use vmladduhm with zero addend.
21743         (altivec_vmladduhm): Descriptive RTL.
21745 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
21747         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21748         to use neon_move instead of mov_imm.
21749         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21750         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21752         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21753         aarch64_float_const_zero_rtx_p check before TFmode check.
21754         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21755         an fp zero.
21756         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
21757         code and attributes to match.  Change condition from register_operand
21758         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
21759         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
21760         to store2.
21762 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
21764         PR debug/66535
21765         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21766         there is no parent.
21768 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
21770         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21771         HOST_WIDE_INT parameter.
21773 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
21775         PR ipa/66181
21776         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21777         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21778         TYPE_NO_FORCE_BLK.
21779         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21781 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
21783         * rtl.h (classify_insn): Declare.
21784         * emit-rtl.c (classify_insn): Move to...
21785         * rtl.c: ...here and add generator support.
21786         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21787         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21788         * genemit.c (gen_emit_seq): New function.
21789         (gen_expand, gen_split): Use it.
21791 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
21793         * tree.c (make_vector_stat): Fix comment to state that the
21794         function returns a VECTOR_CST.
21796 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
21798         * gensupport.h (add_implicit_parallel): Declare.
21799         * genrecog.c (add_implicit_parallel): Move to...
21800         * gensupport.c (add_implicit_parallel): ...here.
21801         (process_one_cond_exec): Use it.
21802         * genemit.c (gen_insn): Likewise.
21804 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
21806         PR bootstrap/66448
21807         * passes.c (rest_of_decl_compilation): Do not register globals for
21808         early debug if they are declared in built-ins.
21810 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
21812         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21814 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21816         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21817         manually swapping.
21818         (noce_try_cmove_arith): Likewise.
21819         (noce_get_alt_condition): Likewise.
21821 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21823         * common/config/i386/i386-common.c
21824         (OPTION_MASK_ISA_MWAITX_SET): New.
21825         (ix86_handle_option): Handle mwaitx.
21826         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21827         (x86_64-*-*): Likewise.
21828         * config/i386/mwaitxintrin.h: New header.
21829         * config/i386/cpuid.h (bit_MWAITX):  Define.
21830         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21831         MWAITX support.
21832         * config/i386/i386.opt (mwaitx): New.
21833         * config/i386/i386-builtin-types.def
21834         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21835         * config/i386/i386-c.c: Define __MWAITX__ if needed.
21836         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21837         (PTA_MWAITX): New.
21838         (ix86_option_override_internal): Handle new option.
21839         (processor_alias_table): Added PTA_MWAITX.
21840         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21841         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21842         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21843         IX86_BUILTIN_MONITORX  built-ins.
21844         * config/i386/i386.h (TARGET_MWAITX): New.
21845         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21846         UNSPEC_MONITORX.
21847         (mwaitx):  New pattern.
21848         (monitorx_<mode>): New pattern.
21849         * config/i386/x86intrin.h: Include mwaitxintrin.h.
21850         * doc/extend.texi: Document monitorx and mwaitx builtins.
21851         * doc/invoke.texi: Document -mmwaitx option.
21853 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
21855         * emit-rtl.c (need_atomic_barrier_p): Mask model with
21856         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
21858 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
21860         * dbxout.c (xcoff_debug_hooks): Provide a function for
21861         register_main_translation_unit hook.
21863 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
21865         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21866         variants cases from switch.
21867         (rs6000_post_atomic_barrier): Same.
21868         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21869         (rs6000_expand_atomic_exchange): Same.
21870         (rs6000_expand_atomic_op): Same.
21871         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21872         SYNC variants cases from switch.
21873         (atomic_load): Same.
21874         (atomic_store): Same.
21876 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
21878         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21879         CONST_INT for goto.
21881 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
21883         PR bootstrap/66448
21884         * dwarf2out.c (check_die): Check for common duplicate attributes.
21885         (add_location_or_const_value_attribute): Do not add duplicate
21886         attributes.
21887         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21888         time around.
21889         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21890         (gen_type_die_with_usage): Call check_die.
21891         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21893 2015-06-11  Jason Merrill  <jason@redhat.com>
21895         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21896         dies.
21898 2015-06-11  Marek Polacek  <polacek@redhat.com>
21900         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21902 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
21904         PR bootstrap/66252
21905         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21906         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21907         (*addx_extend_sp32): Fix pasto.
21908         (*subx_extend): Rename into...
21909         (*subx_extend_sp32): ...this.
21910         (*adddi3_extend_sp32): Add earlyclobber.
21911         (*subdi3_insn_sp32): Likewise.
21912         (*subdi3_extend_sp32): Likewise.
21913         (*and_not_di_sp32): Likewise.
21914         (*or_not_di_sp32): Likewise.
21915         (*xor_not_di_sp32): Likewise.
21916         (*negdi2_sp32): Likewise.
21917         (*one_cmpldi2_sp32): Likewise.
21919 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
21921         * debug.h (struct gcc_debug_hooks): Add a
21922         register_main_translation_unit hook.
21923         * debug.c (do_nothing_debug_hooks): Provide a function for this
21924         new hook.
21925         * dbxout.c (dbx_debug_hooks): Likewise.
21926         * sdbout.c (sdb_debug_hooks): Likewise.
21927         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21928         * dwarf2out.c (main_translation_unit): New global variable.
21929         (dwarf2out_register_main_translation_unit): New function
21930         implementing the new hook.
21931         (dwarf2_debug_hooks): Assign
21932         dwarf2out_register_main_translation_unit to this new hook.
21933         (dwarf2out_init): Associate any main translation unit to
21934         comp_unit_die ().
21936 2015-06-11  Marek Polacek  <polacek@redhat.com>
21938         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21940 2015-06-11  Marek Polacek  <polacek@redhat.com>
21942         * match.pd: Use single_use throughout.
21944 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21946         * config/arm/arm.c (arm_option_params_internal): When optimising
21947         for speed set max_insns_skipped when arm_restrict_it.
21949 2015-06-11  Christian Bruel  <christian.bruel@st.com>
21951         PR target/52144
21952         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21953          macros in ...
21954         (arm_cpu_builtins): New function.
21955         (arm_pragma_target_parse): Call arm_cpu_builtins.
21956         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21957         (arm_register_target_pragmas): Likewise.
21958         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21959          Call arm_register_target_pragmas.
21960         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21961         (arm_pragma_target_parse): Likewise.
21963 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21965         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21966         of the second operand.
21968 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
21970         PR target/66473
21971         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21972         to prepare mask operand for AVX512 modes.
21974 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
21976         PR target/66474
21977         * doc/md.texi (Machine Constraints): Document that on the PowerPC
21978         if you use a constraint that targets a VSX register, you must use
21979         %x<n> in the template.
21981 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
21983         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21984         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21985         (define_insn "trap"): New definition.
21987 2015-06-10  Richard Biener  <rguenther@suse.de>
21989         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21990         out from ...
21991         (vect_supported_load_permutation_p): ... here.  Handle
21992         supportable permutations in reductions.
21993         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21994         for vectorizing strided group loads.
21996 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
21998         PR target/66470
21999         * config/i386/i386.c (ix86_split_long_move): For collisions
22000         involving direct tls segment refs, move the UNSPEC_TP possibly
22001         wrapped in ZERO_EXTEND out of the address for lea, to each of
22002         the memory loads.
22004 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22006         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22007         dmb sy. Adjust tabs.
22009 2015-06-10  Tom de Vries  <tom@codesourcery.com>
22011         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22013 2015-06-10  Martin Liska  <mliska@suse.cz>
22015         PR bootstrap/66471
22016         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22017         all enum values in mem_alloc_origin.
22018         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22019         name.
22020         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22021         * bitmap.c (bitmap_register): Likewise.
22022         (dump_bitmap_statistics): Likewise.
22023         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22024         (ggc_record_overhead): Likewise.
22025         * hash-map.h: Likewise.
22026         * hash-set.h: Likewise.
22027         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22028         * hash-table.h: Likewise.
22029         * vec.c (vec_prefix::register_overhead): Likewise.
22030         (vec_prefix::release_overhead): Likewise.
22031         (dump_vec_loc_statistics): Likewise.
22033 2015-06-09  Christian Bruel  <christian.bruel@st.com>
22035         PR target/52144
22036         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22037         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22038         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22039         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22040         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22041         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22042         (arm_valid_target_attribute_p): Likewise.
22043         (arm_set_current_function, arm_can_inline_p): Likewise.
22044         (arm_valid_target_attribute_rec): Likewise.
22045         (arm_previous_fndecl): New variable.
22046         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22047         (TARGET_CAN_INLINE_P): Define.
22048         (arm_asm_trampoline_template): Emit mode.
22049         (arm_file_start): Don't set unified syntax.
22050         (arm_declare_function_name): Set unified syntax and mode.
22051         (arm_option_override): Init target_option_default_node.
22052         and target_option_current_node.
22053         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22054         (*call_symbol): Likewise.
22055         * doc/extend.texi: Document ARM/Thumb target attribute.
22056         * doc/invoke.texi: Likewise.
22058 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22060         Revert:
22061         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22062         PR rtl-optimization/64164
22063         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22064         * tree-ssa-copyrename.c: Removed.
22065         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
22066         -ftree-coalesce-vars.
22067         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22068         * common.opt (ftree-copyrename): Ignore.
22069         (ftree-coalesce-inlined-vars): Likewise.
22070         * doc/invoke.texi: Remove the ignored options above.
22071         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22072         * tree-ssa-coalesce.h: ... here.
22073         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22074         headers required by it.
22075         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22076         across variables when flag_tree_coalesce_vars.  Check register
22077         use and promoted modes to allow coalescing.  Moved to
22078         tree-ssa-coalesce.c.
22079         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22080         with its member functions to tree-ssa-coalesce.c.
22081         (var_map_base_init): Likewise.  Renamed to
22082         compute_samebase_partition_bases.
22083         (partition_view_normal): Drop want_bases parameter.
22084         (partition_view_bitmap): Likewise.
22085         * tree-ssa-live.h: Adjust declarations.
22086         * tree-ssa-coalesce.c: Include explow.h.
22087         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22088         default defs at the entry point.
22089         (dump_part_var_map): New.
22090         (compute_optimized_partition_bases): New, called by...
22091         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22092         of compute_samebase_partition_bases.  Adjust.
22093         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22094         * cfgexpand.c (leader_merge): New.
22095         (get_rtl_for_parm_ssa_default_def): New.
22096         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22097         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22098         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
22099         redundant MEM attr setting.
22100         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
22101         from...
22102         (expand_one_stack_var): ... this.  New wrapper to check and
22103         skip already expanded SSA partitions.
22104         (record_alignment_for_reg_var): New, factored out of...
22105         (expand_one_var): ... this.
22106         (expand_one_ssa_partition): New.
22107         (adjust_one_expanded_partition_var): New.
22108         (expand_one_register_var): Check and skip already expanded SSA
22109         partitions.
22110         (expand_used_vars): Don't create DECLs for anonymous SSA
22111         names.  Expand all SSA partitions, then adjust all SSA names.
22112         (pass::execute): Replace the loops that set
22113         SA.partition_to_pseudo from partition leaders and cleared
22114         DECL_RTL for multi-location variables, and that which used to
22115         rename vars and set attrs, with one that clears DECL_RTL and
22116         checks that PARMs and RESULTs default_defs match DECL_RTL.
22117         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22118         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22119         * explow.c (promote_ssa_mode): New.
22120         * explow.h (promote_ssa_mode): Declare.
22121         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22122         * function.c: Include cfgexpand.h.
22123         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22124         (use_register_for_parm_decl): Wrapper for the above to
22125         special-case the result_ptr.
22126         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22127         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22128         multiple locations.
22129         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22130         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
22131         (assign_parm_setup_block): Prefer SSA-assigned location.
22132         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
22133         if stack_parm is NULL.
22134         (assign_parm_setup_stack): Prefer SSA-assigned location.
22135         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
22136         rtl before testing for pointer bounds.  Special-case result_ptr.
22137         (expand_function_start): Maybe reset DECL_RTL of result.
22138         Prefer SSA-assigned location for result and static chain.
22139         Factor out DECL_RESULT and SET_DECL_RTL.
22140         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22141         anonymous SSA names.  Use promote_ssa_mode.
22142         (get_temp_reg): Likewise.
22143         (remove_ssa_form): Adjust.
22144         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22145         and get its reg_usage for reg invalidation.
22146         (compute_bb_dataflow): Pass it insn.
22147         (emit_notes_in_bb): Likewise.
22148         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22149         fail assert on conversion between unsigned types.
22151 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22153         PR tree-optimization/65460
22154         * omp-low.c (expand_omp_target): Set parallelized_function on
22155         cgraph_node for child_fn.
22157 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22159         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22160         parallelized_function before add_new_function.
22162 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
22164         * gcc-plugin.h: Move decls to plugin.h and include it.
22165         * plugin.h: Relocate decls from gcc-plugin.h
22166         * ggc-page.c: Include required header files.
22167         * passes.c: Likewise.
22168         * cgraphunit.c: Likewise.
22170 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22172         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22174 2015-06-09  Jason Merrill  <jason@redhat.com>
22176         PR bootstrap/66448
22177         * toplev.c (check_global_declaration): Don't warn about a clone.
22179 2015-06-09  Marek Polacek  <polacek@redhat.com>
22181         PR tree-optimization/66299
22182         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22183         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22184         patterns.
22186 2015-06-09  Richard Biener  <rguenther@suse.de>
22188         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22189         (vect_analyze_slp_instance): Instead do not falsely drop
22190         load permutations.
22192 2015-06-09  Richard Biener  <rguenther@suse.de>
22194         PR middle-end/66423
22195         * match.pd: Handle A % (unsigned)(1 << B).
22197 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
22199         * varasm.c (output_object_block_htab): Remove.
22200         (output_object_block_compare): New.
22201         (output_object_blocks): Sort named object_blocks before outputting
22202         them.
22204 2015-06-09  Richard Biener  <rguenther@suse.de>
22206         PR tree-optimization/66419
22207         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22208         consider GROUP_GAP when detecting a perfect subchain.
22210 2015-06-09  Nick Clifton  <nickc@redhat.com>
22212         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22213         place read only data in the .frodata section.
22215 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
22217         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22218         (atomic_store<mode>): Likewise.
22220 2015-06-09  Richard Biener  <rguenther@suse.de>
22222         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22224 2015-06-09  Richard Biener  <rguenther@suse.de>
22226         PR middle-end/66413
22227         * tree-inline.c (insert_init_debug_bind): Unshare value.
22229 2015-06-09  Richard Biener  <rguenther@suse.de>
22231         PR tree-optimization/66396
22232         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22233         Rename virtual operands.
22235 2015-06-09  Tom de Vries  <tom@codesourcery.com>
22237         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22238         always return false.
22240 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22242         PR rtl-optimization/64164
22243         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22244         * tree-ssa-copyrename.c: Removed.
22245         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
22246         -ftree-coalesce-vars.
22247         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22248         * common.opt (ftree-copyrename): Ignore.
22249         (ftree-coalesce-inlined-vars): Likewise.
22250         * doc/invoke.texi: Remove the ignored options above.
22251         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22252         * tree-ssa-coalesce.h: ... here.
22253         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22254         headers required by it.
22255         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22256         across variables when flag_tree_coalesce_vars.  Check register
22257         use and promoted modes to allow coalescing.  Moved to
22258         tree-ssa-coalesce.c.
22259         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22260         with its member functions to tree-ssa-coalesce.c.
22261         (var_map_base_init): Likewise.  Renamed to
22262         compute_samebase_partition_bases.
22263         (partition_view_normal): Drop want_bases parameter.
22264         (partition_view_bitmap): Likewise.
22265         * tree-ssa-live.h: Adjust declarations.
22266         * tree-ssa-coalesce.c: Include explow.h.
22267         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22268         default defs at the entry point.
22269         (dump_part_var_map): New.
22270         (compute_optimized_partition_bases): New, called by...
22271         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22272         of compute_samebase_partition_bases.  Adjust.
22273         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22274         * cfgexpand.c (leader_merge): New.
22275         (get_rtl_for_parm_ssa_default_def): New.
22276         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22277         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22278         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
22279         redundant MEM attr setting.
22280         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
22281         from...
22282         (expand_one_stack_var): ... this.  New wrapper to check and
22283         skip already expanded SSA partitions.
22284         (record_alignment_for_reg_var): New, factored out of...
22285         (expand_one_var): ... this.
22286         (expand_one_ssa_partition): New.
22287         (adjust_one_expanded_partition_var): New.
22288         (expand_one_register_var): Check and skip already expanded SSA
22289         partitions.
22290         (expand_used_vars): Don't create DECLs for anonymous SSA
22291         names.  Expand all SSA partitions, then adjust all SSA names.
22292         (pass::execute): Replace the loops that set
22293         SA.partition_to_pseudo from partition leaders and cleared
22294         DECL_RTL for multi-location variables, and that which used to
22295         rename vars and set attrs, with one that clears DECL_RTL and
22296         checks that PARMs and RESULTs default_defs match DECL_RTL.
22297         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22298         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22299         * explow.c (promote_ssa_mode): New.
22300         * explow.h (promote_ssa_mode): Declare.
22301         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22302         * function.c: Include cfgexpand.h.
22303         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22304         (use_register_for_parm_decl): Wrapper for the above to
22305         special-case the result_ptr.
22306         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22307         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22308         multiple locations.
22309         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22310         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
22311         (assign_parm_setup_block): Prefer SSA-assigned location.
22312         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
22313         if stack_parm is NULL.
22314         (assign_parm_setup_stack): Prefer SSA-assigned location.
22315         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
22316         rtl before testing for pointer bounds.  Special-case result_ptr.
22317         (expand_function_start): Maybe reset DECL_RTL of result.
22318         Prefer SSA-assigned location for result and static chain.
22319         Factor out DECL_RESULT and SET_DECL_RTL.
22320         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22321         anonymous SSA names.  Use promote_ssa_mode.
22322         (get_temp_reg): Likewise.
22323         (remove_ssa_form): Adjust.
22324         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22325         and get its reg_usage for reg invalidation.
22326         (compute_bb_dataflow): Pass it insn.
22327         (emit_notes_in_bb): Likewise.
22328         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22329         fail assert on conversion between unsigned types.
22331 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
22333         PR debug/58315
22334         * tree-inline.c (reset_debug_binding): New.
22335         (reset_debug_bindings): Likewise.
22336         (expand_call_inline): Call it.
22338 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22340         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22341         TYPE_STRING_FLAG.
22343 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22345         * lto-streamer-out.c (lto_output_location): Stream
22346         reserved locations correctly.
22347         * lto-streamer-in.c (lto_output_location): Likewise.
22349 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
22351         * coretypes.h: Include hash-table.h and hash-set.h for host files.
22352         * ggc.h: Don't include statistics.h>
22353         * hash-map.h: Remove all includes.
22354         * hash-set.h: Likewise.
22355         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22356         the include list. Remove <new>.
22357         * inchash.h: Remove all includes.
22358         * mem-stats.h: Likewise.
22359         * vec.h: No special processing for generators or ggc.
22360         * alias.c : Adjust include files.
22361         * alloc-pool.c : Likewise.
22362         * alloc-pool.h : Likewise.
22363         * asan.c : Likewise.
22364         * attribs.c : Likewise.
22365         * auto-inc-dec.c : Likewise.
22366         * auto-profile.c : Likewise.
22367         * bb-reorder.c : Likewise.
22368         * bitmap.c : Likewise.
22369         * bitmap.h : Likewise.
22370         * bt-load.c : Likewise.
22371         * builtins.c : Likewise.
22372         * caller-save.c : Likewise.
22373         * calls.c : Likewise.
22374         * ccmp.c : Likewise.
22375         * cfg.c : Likewise.
22376         * cfganal.c : Likewise.
22377         * cfgbuild.c : Likewise.
22378         * cfgcleanup.c : Likewise.
22379         * cfgexpand.c : Likewise.
22380         * cfghooks.c : Likewise.
22381         * cfgloop.c : Likewise.
22382         * cfgloop.h : Likewise.
22383         * cfgloopanal.c : Likewise.
22384         * cfgloopmanip.c : Likewise.
22385         * cfgrtl.c : Likewise.
22386         * cgraph.c : Likewise.
22387         * cgraphbuild.c : Likewise.
22388         * cgraphclones.c : Likewise.
22389         * cgraphunit.c : Likewise.
22390         * cilk-common.c : Likewise.
22391         * combine-stack-adj.c : Likewise.
22392         * combine.c : Likewise.
22393         * compare-elim.c : Likewise.
22394         * context.c : Likewise.
22395         * convert.c : Likewise.
22396         * coverage.c : Likewise.
22397         * cppbuiltin.c : Likewise.
22398         * cprop.c : Likewise.
22399         * cse.c : Likewise.
22400         * cselib.c : Likewise.
22401         * data-streamer-in.c : Likewise.
22402         * data-streamer-out.c : Likewise.
22403         * data-streamer.c : Likewise.
22404         * data-streamer.h : Likewise.
22405         * dbxout.c : Likewise.
22406         * dce.c : Likewise.
22407         * ddg.c : Likewise.
22408         * debug.c : Likewise.
22409         * df-core.c : Likewise.
22410         * df-problems.c : Likewise.
22411         * df-scan.c : Likewise.
22412         * df.h : Likewise.
22413         * dfp.c : Likewise.
22414         * dojump.c : Likewise.
22415         * dominance.c : Likewise.
22416         * domwalk.c : Likewise.
22417         * double-int.c : Likewise.
22418         * dse.c : Likewise.
22419         * dumpfile.c : Likewise.
22420         * dwarf2asm.c : Likewise.
22421         * dwarf2cfi.c : Likewise.
22422         * dwarf2out.c : Likewise.
22423         * emit-rtl.c : Likewise.
22424         * et-forest.c : Likewise.
22425         * except.c : Likewise.
22426         * except.h : Likewise.
22427         * explow.c : Likewise.
22428         * expmed.c : Likewise.
22429         * expr.c : Likewise.
22430         * final.c : Likewise.
22431         * fixed-value.c : Likewise.
22432         * fold-const.c : Likewise.
22433         * function.c : Likewise.
22434         * fwprop.c : Likewise.
22435         * gcc-plugin.h : Likewise.
22436         * gcc.c : Likewise.
22437         * gcse-common.c : Likewise.
22438         * gcse.c : Likewise.
22439         * genattrtab.c : Likewise.
22440         * genautomata.c : Likewise.
22441         * genconditions.c : Likewise.
22442         * genemit.c : Likewise.
22443         * generic-match-head.c : Likewise.
22444         * genextract.c : Likewise.
22445         * gengtype-state.c : Likewise.
22446         * gengtype.c : Likewise.
22447         * genhooks.c : Likewise.
22448         * genmatch.c : Likewise.
22449         * genmodes.c : Likewise.
22450         * genrecog.c : Likewise.
22451         * gensupport.c : Likewise.
22452         * ggc-common.c : Likewise.
22453         * ggc-internal.h : Likewise.
22454         * ggc-none.c : Likewise.
22455         * ggc-page.c : Likewise.
22456         * gimple-builder.c : Likewise.
22457         * gimple-expr.c : Likewise.
22458         * gimple-fold.c : Likewise.
22459         * gimple-iterator.c : Likewise.
22460         * gimple-low.c : Likewise.
22461         * gimple-match-head.c : Likewise.
22462         * gimple-pretty-print.c : Likewise.
22463         * gimple-ssa-isolate-paths.c : Likewise.
22464         * gimple-ssa-strength-reduction.c : Likewise.
22465         * gimple-ssa.h : Likewise.
22466         * gimple-streamer-in.c : Likewise.
22467         * gimple-streamer-out.c : Likewise.
22468         * gimple-streamer.h : Likewise.
22469         * gimple-walk.c : Likewise.
22470         * gimple.c : Likewise.
22471         * gimplify-me.c : Likewise.
22472         * gimplify.c : Likewise.
22473         * godump.c : Likewise.
22474         * graph.c : Likewise.
22475         * graphds.c : Likewise.
22476         * graphite-blocking.c : Likewise.
22477         * graphite-dependences.c : Likewise.
22478         * graphite-interchange.c : Likewise.
22479         * graphite-isl-ast-to-gimple.c : Likewise.
22480         * graphite-optimize-isl.c : Likewise.
22481         * graphite-poly.c : Likewise.
22482         * graphite-scop-detection.c : Likewise.
22483         * graphite-sese-to-poly.c : Likewise.
22484         * graphite.c : Likewise.
22485         * haifa-sched.c : Likewise.
22486         * hard-reg-set.h : Likewise.
22487         * hw-doloop.c : Likewise.
22488         * ifcvt.c : Likewise.
22489         * inchash.c : Likewise.
22490         * incpath.c : Likewise.
22491         * init-regs.c : Likewise.
22492         * input.c : Likewise.
22493         * internal-fn.c : Likewise.
22494         * ipa-chkp.c : Likewise.
22495         * ipa-comdats.c : Likewise.
22496         * ipa-cp.c : Likewise.
22497         * ipa-devirt.c : Likewise.
22498         * ipa-icf-gimple.c : Likewise.
22499         * ipa-icf.c : Likewise.
22500         * ipa-inline-analysis.c : Likewise.
22501         * ipa-inline-transform.c : Likewise.
22502         * ipa-inline.c : Likewise.
22503         * ipa-polymorphic-call.c : Likewise.
22504         * ipa-profile.c : Likewise.
22505         * ipa-prop.c : Likewise.
22506         * ipa-pure-const.c : Likewise.
22507         * ipa-ref.c : Likewise.
22508         * ipa-reference.c : Likewise.
22509         * ipa-split.c : Likewise.
22510         * ipa-utils.c : Likewise.
22511         * ipa-visibility.c : Likewise.
22512         * ipa.c : Likewise.
22513         * ira-build.c : Likewise.
22514         * ira-color.c : Likewise.
22515         * ira-conflicts.c : Likewise.
22516         * ira-costs.c : Likewise.
22517         * ira-emit.c : Likewise.
22518         * ira-lives.c : Likewise.
22519         * ira.c : Likewise.
22520         * jump.c : Likewise.
22521         * langhooks.c : Likewise.
22522         * lcm.c : Likewise.
22523         * libfuncs.h : Likewise.
22524         * lists.c : Likewise.
22525         * loop-doloop.c : Likewise.
22526         * loop-init.c : Likewise.
22527         * loop-invariant.c : Likewise.
22528         * loop-iv.c : Likewise.
22529         * loop-unroll.c : Likewise.
22530         * lower-subreg.c : Likewise.
22531         * lra-assigns.c : Likewise.
22532         * lra-coalesce.c : Likewise.
22533         * lra-constraints.c : Likewise.
22534         * lra-eliminations.c : Likewise.
22535         * lra-lives.c : Likewise.
22536         * lra-remat.c : Likewise.
22537         * lra-spills.c : Likewise.
22538         * lra.c : Likewise.
22539         * lto-cgraph.c : Likewise.
22540         * lto-compress.c : Likewise.
22541         * lto-opts.c : Likewise.
22542         * lto-section-in.c : Likewise.
22543         * lto-section-out.c : Likewise.
22544         * lto-streamer-in.c : Likewise.
22545         * lto-streamer-out.c : Likewise.
22546         * lto-streamer.c : Likewise.
22547         * lto-streamer.h : Likewise.
22548         * mcf.c : Likewise.
22549         * mode-switching.c : Likewise.
22550         * modulo-sched.c : Likewise.
22551         * omega.c : Likewise.
22552         * omp-low.c : Likewise.
22553         * optabs.c : Likewise.
22554         * opts-global.c : Likewise.
22555         * opts.h : Likewise.
22556         * passes.c : Likewise.
22557         * plugin.c : Likewise.
22558         * postreload-gcse.c : Likewise.
22559         * postreload.c : Likewise.
22560         * predict.c : Likewise.
22561         * print-rtl.c : Likewise.
22562         * print-tree.c : Likewise.
22563         * profile.c : Likewise.
22564         * read-md.c : Likewise.
22565         * read-md.h : Likewise.
22566         * read-rtl.c : Likewise.
22567         * real.c : Likewise.
22568         * realmpfr.c : Likewise.
22569         * recog.c : Likewise.
22570         * ree.c : Likewise.
22571         * reg-stack.c : Likewise.
22572         * regcprop.c : Likewise.
22573         * reginfo.c : Likewise.
22574         * regrename.c : Likewise.
22575         * regstat.c : Likewise.
22576         * reload.c : Likewise.
22577         * reload1.c : Likewise.
22578         * reorg.c : Likewise.
22579         * resource.c : Likewise.
22580         * rtl-chkp.c : Likewise.
22581         * rtl.c : Likewise.
22582         * rtl.h : Likewise.
22583         * rtlanal.c : Likewise.
22584         * rtlhash.c : Likewise.
22585         * rtlhash.h : Likewise.
22586         * rtlhooks.c : Likewise.
22587         * sanopt.c : Likewise.
22588         * sched-deps.c : Likewise.
22589         * sched-ebb.c : Likewise.
22590         * sched-rgn.c : Likewise.
22591         * sched-vis.c : Likewise.
22592         * sdbout.c : Likewise.
22593         * sel-sched-dump.c : Likewise.
22594         * sel-sched-ir.c : Likewise.
22595         * sel-sched-ir.h : Likewise.
22596         * sel-sched.c : Likewise.
22597         * sese.c : Likewise.
22598         * shrink-wrap.c : Likewise.
22599         * shrink-wrap.h : Likewise.
22600         * simplify-rtx.c : Likewise.
22601         * stack-ptr-mod.c : Likewise.
22602         * statistics.c : Likewise.
22603         * stmt.c : Likewise.
22604         * stor-layout.c : Likewise.
22605         * store-motion.c : Likewise.
22606         * stringpool.c : Likewise.
22607         * symtab.c : Likewise.
22608         * target-globals.c : Likewise.
22609         * targhooks.c : Likewise.
22610         * tlink.c : Likewise.
22611         * toplev.c : Likewise.
22612         * tracer.c : Likewise.
22613         * trans-mem.c : Likewise.
22614         * tree-affine.c : Likewise.
22615         * tree-affine.h : Likewise.
22616         * tree-browser.c : Likewise.
22617         * tree-call-cdce.c : Likewise.
22618         * tree-cfg.c : Likewise.
22619         * tree-cfgcleanup.c : Likewise.
22620         * tree-chkp-opt.c : Likewise.
22621         * tree-chkp.c : Likewise.
22622         * tree-chrec.c : Likewise.
22623         * tree-complex.c : Likewise.
22624         * tree-data-ref.c : Likewise.
22625         * tree-dfa.c : Likewise.
22626         * tree-diagnostic.c : Likewise.
22627         * tree-dump.c : Likewise.
22628         * tree-eh.c : Likewise.
22629         * tree-eh.h : Likewise.
22630         * tree-emutls.c : Likewise.
22631         * tree-hasher.h : Likewise.
22632         * tree-if-conv.c : Likewise.
22633         * tree-inline.c : Likewise.
22634         * tree-inline.h : Likewise.
22635         * tree-into-ssa.c : Likewise.
22636         * tree-iterator.c : Likewise.
22637         * tree-loop-distribution.c : Likewise.
22638         * tree-nested.c : Likewise.
22639         * tree-nrv.c : Likewise.
22640         * tree-object-size.c : Likewise.
22641         * tree-outof-ssa.c : Likewise.
22642         * tree-parloops.c : Likewise.
22643         * tree-phinodes.c : Likewise.
22644         * tree-predcom.c : Likewise.
22645         * tree-pretty-print.c : Likewise.
22646         * tree-profile.c : Likewise.
22647         * tree-scalar-evolution.c : Likewise.
22648         * tree-sra.c : Likewise.
22649         * tree-ssa-address.c : Likewise.
22650         * tree-ssa-alias.c : Likewise.
22651         * tree-ssa-ccp.c : Likewise.
22652         * tree-ssa-coalesce.c : Likewise.
22653         * tree-ssa-copy.c : Likewise.
22654         * tree-ssa-copyrename.c : Likewise.
22655         * tree-ssa-dce.c : Likewise.
22656         * tree-ssa-dom.c : Likewise.
22657         * tree-ssa-dse.c : Likewise.
22658         * tree-ssa-forwprop.c : Likewise.
22659         * tree-ssa-ifcombine.c : Likewise.
22660         * tree-ssa-live.c : Likewise.
22661         * tree-ssa-loop-ch.c : Likewise.
22662         * tree-ssa-loop-im.c : Likewise.
22663         * tree-ssa-loop-ivcanon.c : Likewise.
22664         * tree-ssa-loop-ivopts.c : Likewise.
22665         * tree-ssa-loop-manip.c : Likewise.
22666         * tree-ssa-loop-niter.c : Likewise.
22667         * tree-ssa-loop-prefetch.c : Likewise.
22668         * tree-ssa-loop-unswitch.c : Likewise.
22669         * tree-ssa-loop.c : Likewise.
22670         * tree-ssa-math-opts.c : Likewise.
22671         * tree-ssa-operands.c : Likewise.
22672         * tree-ssa-phiopt.c : Likewise.
22673         * tree-ssa-phiprop.c : Likewise.
22674         * tree-ssa-pre.c : Likewise.
22675         * tree-ssa-propagate.c : Likewise.
22676         * tree-ssa-reassoc.c : Likewise.
22677         * tree-ssa-sccvn.c : Likewise.
22678         * tree-ssa-scopedtables.c : Likewise.
22679         * tree-ssa-sink.c : Likewise.
22680         * tree-ssa-strlen.c : Likewise.
22681         * tree-ssa-structalias.c : Likewise.
22682         * tree-ssa-tail-merge.c : Likewise.
22683         * tree-ssa-ter.c : Likewise.
22684         * tree-ssa-threadedge.c : Likewise.
22685         * tree-ssa-threadupdate.c : Likewise.
22686         * tree-ssa-uncprop.c : Likewise.
22687         * tree-ssa-uninit.c : Likewise.
22688         * tree-ssa.c : Likewise.
22689         * tree-ssanames.c : Likewise.
22690         * tree-stdarg.c : Likewise.
22691         * tree-streamer-in.c : Likewise.
22692         * tree-streamer-out.c : Likewise.
22693         * tree-streamer.c : Likewise.
22694         * tree-streamer.h : Likewise.
22695         * tree-switch-conversion.c : Likewise.
22696         * tree-tailcall.c : Likewise.
22697         * tree-vect-data-refs.c : Likewise.
22698         * tree-vect-generic.c : Likewise.
22699         * tree-vect-loop-manip.c : Likewise.
22700         * tree-vect-loop.c : Likewise.
22701         * tree-vect-patterns.c : Likewise.
22702         * tree-vect-slp.c : Likewise.
22703         * tree-vect-stmts.c : Likewise.
22704         * tree-vectorizer.c : Likewise.
22705         * tree-vectorizer.h : Likewise.
22706         * tree-vrp.c : Likewise.
22707         * tree.c : Likewise.
22708         * tsan.c : Likewise.
22709         * ubsan.c : Likewise.
22710         * valtrack.c : Likewise.
22711         * valtrack.h : Likewise.
22712         * value-prof.c : Likewise.
22713         * var-tracking.c : Likewise.
22714         * varasm.c : Likewise.
22715         * varpool.c : Likewise.
22716         * vec.c: Likewise.
22717         * vmsdbgout.c : Likewise.
22718         * vtable-verify.c : Likewise.
22719         * vtable-verify.h : Likewise.
22720         * web.c : Likewise.
22721         * wide-int.cc : Likewise.
22722         * xcoffout.c : Likewise.
22723         * config/aarch64/aarch64-builtins.c : Likewise.
22724         * config/aarch64/aarch64.c : Likewise.
22725         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22726         * config/alpha/alpha.c : Likewise.
22727         * config/arc/arc.c : Likewise.
22728         * config/arm/aarch-common.c : Likewise.
22729         * config/arm/arm-builtins.c : Likewise.
22730         * config/arm/arm-c.c : Likewise.
22731         * config/arm/arm.c : Likewise.
22732         * config/avr/avr-c.c : Likewise.
22733         * config/avr/avr-log.c : Likewise.
22734         * config/avr/avr.c : Likewise.
22735         * config/bfin/bfin.c : Likewise.
22736         * config/c6x/c6x.c : Likewise.
22737         * config/cr16/cr16.c : Likewise.
22738         * config/cris/cris.c : Likewise.
22739         * config/darwin-c.c : Likewise.
22740         * config/darwin.c : Likewise.
22741         * config/default-c.c : Likewise.
22742         * config/epiphany/epiphany.c : Likewise.
22743         * config/epiphany/mode-switch-use.c : Likewise.
22744         * config/epiphany/resolve-sw-modes.c : Likewise.
22745         * config/fr30/fr30.c : Likewise.
22746         * config/frv/frv.c : Likewise.
22747         * config/ft32/ft32.c : Likewise.
22748         * config/glibc-c.c : Likewise.
22749         * config/h8300/h8300.c : Likewise.
22750         * config/i386/i386-c.c : Likewise.
22751         * config/i386/i386.c : Likewise.
22752         * config/i386/msformat-c.c : Likewise.
22753         * config/i386/winnt-cxx.c : Likewise.
22754         * config/i386/winnt-stubs.c : Likewise.
22755         * config/i386/winnt.c : Likewise.
22756         * config/ia64/ia64-c.c : Likewise.
22757         * config/ia64/ia64.c : Likewise.
22758         * config/iq2000/iq2000.c : Likewise.
22759         * config/lm32/lm32.c : Likewise.
22760         * config/m32c/m32c-pragma.c : Likewise.
22761         * config/m32c/m32c.c : Likewise.
22762         * config/m32r/m32r.c : Likewise.
22763         * config/m68k/m68k.c : Likewise.
22764         * config/mcore/mcore.c : Likewise.
22765         * config/mep/mep-pragma.c : Likewise.
22766         * config/mep/mep.c : Likewise.
22767         * config/microblaze/microblaze-c.c : Likewise.
22768         * config/microblaze/microblaze.c : Likewise.
22769         * config/mips/mips.c : Likewise.
22770         * config/mmix/mmix.c : Likewise.
22771         * config/mn10300/mn10300.c : Likewise.
22772         * config/moxie/moxie.c : Likewise.
22773         * config/msp430/msp430-c.c : Likewise.
22774         * config/msp430/msp430.c : Likewise.
22775         * config/nds32/nds32-cost.c : Likewise.
22776         * config/nds32/nds32-fp-as-gp.c : Likewise.
22777         * config/nds32/nds32-intrinsic.c : Likewise.
22778         * config/nds32/nds32-isr.c : Likewise.
22779         * config/nds32/nds32-md-auxiliary.c : Likewise.
22780         * config/nds32/nds32-memory-manipulation.c : Likewise.
22781         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22782         * config/nds32/nds32-predicates.c : Likewise.
22783         * config/nds32/nds32.c : Likewise.
22784         * config/nios2/nios2.c : Likewise.
22785         * config/nvptx/nvptx.c : Likewise.
22786         * config/pa/pa.c : Likewise.
22787         * config/pdp11/pdp11.c : Likewise.
22788         * config/rl78/rl78-c.c : Likewise.
22789         * config/rl78/rl78.c : Likewise.
22790         * config/rs6000/rs6000-c.c : Likewise.
22791         * config/rs6000/rs6000.c : Likewise.
22792         * config/rx/rx.c : Likewise.
22793         * config/s390/s390-c.c : Likewise.
22794         * config/s390/s390.c : Likewise.
22795         * config/sh/sh-c.c : Likewise.
22796         * config/sh/sh-mem.cc : Likewise.
22797         * config/sh/sh.c : Likewise.
22798         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22799         * config/sh/sh_treg_combine.cc : Likewise.
22800         * config/sol2-c.c : Likewise.
22801         * config/sol2-cxx.c : Likewise.
22802         * config/sol2-stubs.c : Likewise.
22803         * config/sol2.c : Likewise.
22804         * config/sparc/sparc-c.c : Likewise.
22805         * config/sparc/sparc.c : Likewise.
22806         * config/spu/spu-c.c : Likewise.
22807         * config/spu/spu.c : Likewise.
22808         * config/stormy16/stormy16.c : Likewise.
22809         * config/tilegx/mul-tables.c : Likewise.
22810         * config/tilegx/tilegx-c.c : Likewise.
22811         * config/tilegx/tilegx.c : Likewise.
22812         * config/tilepro/mul-tables.c : Likewise.
22813         * config/tilepro/tilepro-c.c : Likewise.
22814         * config/tilepro/tilepro.c : Likewise.
22815         * config/v850/v850-c.c : Likewise.
22816         * config/v850/v850.c : Likewise.
22817         * config/vax/vax.c : Likewise.
22818         * config/visium/visium.c : Likewise.
22819         * config/vms/vms-c.c : Likewise.
22820         * config/vms/vms.c : Likewise.
22821         * config/vxworks.c : Likewise.
22822         * config/winnt-c.c : Likewise.
22823         * config/xtensa/xtensa.c : Likewise.
22825 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
22827         PR lto/65378
22828         * ipa-utils.h (warn_types_mismatch): Update prototype.
22829         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22830         parameters.
22831         (type_mismatch_p): New function.
22832         (warn_types_mismatch): Reorg to work better on non-C++ types.
22833         (odr_types_equivalent_p): Add loc1/loc2 parameters.
22834         (add_type_duplicate): Update.
22836 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22838         PR rtl-optimization/66444
22839         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22840         call_used_regs.
22842 2015-06-08  Richard Biener  <rguenther@suse.de>
22844         PR tree-optimization/66422
22845         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22846         block after inserted gcc_unreachable.
22848 2015-06-08  Nick Clifton  <nickc@redhat.com>
22850         * config/rx/rx.c (rx_function_value): Do not promote vector types.
22851         (rx_promote_function_mode): Likewise.
22852         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22854 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
22856         * genattrtab.c (insn_alternatives): Change type from int *
22857         to uint64_t *.
22858         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22859         (get_attr_value): Change type of num_alt to uint64_t.
22860         (compute_alternative_mask): Change return type from
22861         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22862         (make_alternative_compare, mk_attr_alt): Change argument type
22863         from int to uint64_t.
22864         (simplify_test_exp): Change type of i from int to uint64_t.
22865         Shift ((uint64_t) 1) instead of 1 up.
22866         (main): Adjust oballocvec first argument from int to uint64_t.
22867         Shift ((uint64_t) 1) instead of 1 up.
22869 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
22871         PR other/65366
22872         * gdbhooks.py: Import sys.
22873         (intptr): New function.  Replace int(...) by intptr(...).
22875 2015-06-08  Richard Biener  <rguenther@suse.de>
22877         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22878         adjustment for gaps at the end of a SLP load group properly.
22879         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22880         all permutations we can generate.
22881         (vect_transform_slp_perm_load): Use the correct group-size.
22883 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
22885         * genmatch.c (expr::gen_transform): For conditions, guess the type
22886         from the second operand.
22888 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22890         PR tree-optimization/66442
22891         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22892         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22893         if the loop latch is not a singleton.  Use
22894         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22896 2015-06-08  Marek Polacek  <polacek@redhat.com>
22898         PR sanitizer/66452
22899         * toplev.c (check_global_declaration): Don't warn about artificial
22900         decls.
22902 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22904         PR tree-optimization/66436
22905         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22906         dump file.
22907         * gimplify.c: Add tree-dump.h include.
22908         (gimplify_function_tree): Dump function to gimple dump file.
22909         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22910         dump file.
22912 2015-06-08  Tom de Vries  <tom@codesourcery.com>
22914         PR tree-optimization/66435
22915         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22916         function.
22918 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
22920         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22921         of ptr_type_node to not be ptr_to_node.
22922         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22923         TREE_TYPE of pointers.
22924         * gimple-expr.c (useless_type_conversion): Reorder the check for
22925         function pointers and TYPE_CANONICAL.
22927 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
22929         PR bootstrap/66319
22930         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22931         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22932         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22933         later.
22934         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22935         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22936         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22937         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22938         and non iso if unix2003.
22940 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
22942         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22944 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
22946         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22947         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22948         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22949         except.c, final.c, function.c, gcse-common.c, genemit.c,
22950         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22951         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22952         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22953         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22954         more derived ones.
22956 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
22958         * combine.c (combine_split_insns): Remove cast.
22959         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22960         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22961         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22962         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22963         * genemit.c (gen_split): Change return type of generated functions to
22964         rtx_insn.
22965         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22966         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22967         gen_peephole2_* functions.
22968         (print_subroutine, main): Likewise.
22969         * recog.c (peephole2_optimize): Remove cast.
22970         (peep2_next_insn): Promote return type to rtx_insn.
22971         * recog.h (peep2_next_insn): Fix prototype.
22972         * rtl.h (try_split, split_insns): Likewise.
22974 2015-06-06  DJ Delorie  <dj@redhat.com>
22976         * config/msp430/msp430.c (msp430_asm_integer): Support addition
22977         and subtraction too.
22979 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
22981         PR target/66410
22982         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22983         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22984         instead of Snd.  Disparage Sid/z alternative with '^'.
22986 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
22988         * dwarf2out.c: Remove deferred_locations*.
22989         (dwarf2_debug_hooks): Add early_finish hook.
22990         Remove global_decl hook.
22991         Add early_global_decl and late_global_decl hook.
22992         New global early_dwarf.
22993         New structure set_early_dwarf.
22994         (output_die): Indicate whether a DIE was generated early
22995         when generating assembly with -dA.
22996         (struct limbo_die_struct): Document created_for field.
22997         Remove file_table_last_lookup.
22998         (remove_AT): Return TRUE if successful.
22999         (remove_child_TAG): Clear die_parent.
23000         (reparent_child): New function abstracted from...
23001         (splice_child_die): ...here.
23002         (new_die): ICE if a DIE ends up in limbo too late.
23003         (check_die): New.
23004         (defer_location): Remove.
23005         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23006         (fill_variable_array_bounds): New.
23007         (decl_start_label): Call fill_variable_array_bounds.
23008         (gen_formal_parameter_die): Rewrite to reuse previously generated
23009         DIEs.
23010         (gen_subprogram_die): Same.
23011         (gen_variable_die): Same.
23012         (gen_const_die): Same.
23013         (gen_label_die): Same.
23014         (gen_lexical_block_die): Same.
23015         (decl_will_get_specification_p): New.
23016         (local_function_static): New.
23017         (gen_struct_or_union_type_die): Fill in variable-length fields.
23018         (gen_typedef_die): Fill in variable-length typedefs.
23019         (gen_tagged_type_die): Gracefully return on error_mark_node.
23020         Handle re-entrancy.
23021         (gen_type_die_with_usage): Handle variable-length types.
23022         Remove duplicate code for ARRAY_TYPE case.
23023         (process_scope_var): Only process imported modules during early
23024         dwarf.
23025         (dwarf2out_early_global_decl): New.
23026         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23027         (dwarf2out_type_decl): Set early_dwarf while calling
23028         dwarf2out_decl.
23029         (dwarf2out_decl): Verify that we did not recreate a previously
23030         generated DIE.
23031         Do not return on DECL_EXTERNALs in VAR_DECLs.
23032         Abstract some code to local_function_static.
23033         (lookup_filename): Remove use of file_table_last_lookup.
23034         Gracefully exit on missing file_name.
23035         (dwarf2out_finish): Verify limbo list.
23036         Remove deferred_locations_list use.
23037         Move deferred_asm_name and limbo flushing to...
23038         (dwarf2out_early_finish): ...here.  New.
23039         (dwarf2out_c_finalize): Remove set of deferred_location_list,
23040         deferred_asm_name, and file_table_last_lookup.
23041         * cgraph.h (referred_to_p): Add default argument.
23042         * cgraphunit.c (referred_to_p): Add and handle include_self
23043         argument.
23044         (analyze_functions): Add first_time argument.
23045         Call check_global_declaration for all symbols.
23046         Call late_global_decl for nodes for moribund nodes.
23047         (finalize_compilation_unit): Add new argument to
23048         analyze_functions.
23049         Call early_global_decl for functions.
23050         Call early_finish debug hook.
23051         * dbxout.c (dbxout_early_global_decl): New.
23052         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
23053         (dbx_debug_hooks): Add new hooks.
23054         (xcoff_debug_hooks): Same.
23055         * debug.c (do_nothing_debug_hooks): Add early_finish field.
23056         Add early and late debug hooks.
23057         Remove global_decl hook.
23058         * debug.h (struct gcc_debug_hooks): Add early_finish,
23059         early_global_decl, and late_global_decl fields.
23060         Remove global_decl field.
23061         Document gcc_debug_hooks.
23062         * gengtype.c (output_typename): Remove.
23063         * godump.c (go_early_global_decl): New.
23064         (go_late_global_decl): New.
23065         (go_global_decl): Remove.
23066         (dump_go_spec_init): Remove global_decl.  Add
23067         {early,late}_global_decl.
23068         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23069         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23070         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23071         (write_global_declarations): Remove.
23072         (global_decl_processing): New.
23073         * langhooks.h (struct lang_hooks_for_decls): Remove
23074         final_write_globals field.
23075         Add post_compilation_parsing_cleanups field.
23076         * passes.c (rest_of_decl_compilation): Call early_global_decl.
23077         * sdbout.c: Add early and late_global_decl hooks.  Remove
23078         sdbout_global_decl hook.
23079         Add early_finish field for sdb_debug_hooks.
23080         (sdbout_global_decl): Remove.
23081         (sdbout_early_global_decl): New.
23082         (sdbout_late_global_decl): New.
23083         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23084         * toplev.c (check_global_declaration): Rename from
23085         check_global_declaration_1.
23086         Adapt to use symtab infrastructure.
23087         (check_global_declarations): Remove.
23088         (emit_debug_global_declarations): Remove.
23089         (compile_file): Remove call to final_write_globals langhook.
23090         Run the actual compilation process.
23091         Perform any post compilation parser cleanups.
23092         Generate late debug info.
23093         * toplev.h (check_global_declaration): New.
23094         (check_global_declaration_1): Remove.
23095         (check_global_declarations): Remove.
23096         (write_global_declarations): Remove.
23097         (emit_debug_global_declarations): Remove.
23098         (global_decl_processing): New.
23099         * tree-core.h (struct tree_block): Add DIE field.
23100         * tree.h (BLOCK_DIE): New.
23101         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23102         throughout.
23103         (vmsdbgout_early_global_decl): New.
23104         (vmsdbgout_late_global_decl): New.
23105         Add early_finish debug hook field to vmsdbg_debug_hooks.
23106         Remove vmsdbgout_decl to vmsdbgout_function_decl.
23107         Add early and late_global_decl debug hooks.
23109 2015-06-05  Julian Brown  <julian@codesourcery.com>
23110             Sandra Loosemore  <sandra@codesourcery.com>
23112         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23113         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23114         to print-sysroot-suffix.sh script.
23116 2015-06-05  Tom de Vries  <tom@codesourcery.com>
23118         merge from gomp4 branch:
23119         2015-05-28  Tom de Vries  <tom@codesourcery.com>
23121         PR tree-optimization/65443
23122         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23123         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23124         (try_transform_to_exit_first_loop_alt): New function.
23125         (transform_to_exit_first_loop): Use
23126         try_transform_to_exit_first_loop_alt.
23128 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
23130         * builtins.c (expand_builtin_atomic_compare_exchange): Call
23131         emit_cmp_and_jump_insns with the mode of target.
23133 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23135         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23137 2015-06-04  DJ Delorie  <dj@redhat.com>
23139         * config/msp430/msp430.md (movsi_s): New.  Special case for
23140         storing a 20-bit symbol into a 32-bit register.
23141         * config/msp430/msp430.c (msp430_subreg): Add support for it.
23142         * config/msp430/predicates.md (msp430_symbol_operand): New.
23144 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
23146         * c-family/c-common.c (noplt): New attribute.
23147         (handle_noplt_attribute): New handler.
23148         * calls.c (prepare_call_address): Check for noplt
23149         attribute.
23150         * config/i386/i386.c (ix86_expand_call): Check
23151         for noplt attribute.
23152         (ix86_nopic_noplt_attribute_p): New function.
23153         (ix86_output_call_insn): Output indirect call for non-pic
23154         no plt calls.
23155         * doc/extend.texi (noplt): Document new attribute.
23156         * doc/invoke.texi: Document new attribute.
23158 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
23160         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23161         real.h, and fixed-value.h when included in host source files.
23162         * double-int.h: Remove redundant #includes listed above.
23163         * fixed-value.h: Likewise.
23164         * real.h: Likewise.
23165         * wide-int.h: Likewise.
23166         * inchash.h: Likewise.
23167         * rtl.h: Add some include files When included from a generator file.
23168         * target.h: Remove wide-int.h and insn-modes.h from the include list.
23169         * internal-fn.h: Don't include coretypes.h.
23170         * alias.c: Adjust includes for restructured coretypes.h.
23171         * asan.c: Likewise.
23172         * attribs.c: Likewise.
23173         * auto-inc-dec.c: Likewise.
23174         * auto-profile.c: Likewise.
23175         * bb-reorder.c: Likewise.
23176         * bt-load.c: Likewise.
23177         * builtins.c: Likewise.
23178         * caller-save.c: Likewise.
23179         * calls.c: Likewise.
23180         * ccmp.c: Likewise.
23181         * cfg.c: Likewise.
23182         * cfganal.c: Likewise.
23183         * cfgbuild.c: Likewise.
23184         * cfgcleanup.c: Likewise.
23185         * cfgexpand.c: Likewise.
23186         * cfghooks.c: Likewise.
23187         * cfgloop.c: Likewise.
23188         * cfgloop.h: Likewise.
23189         * cfgloopanal.c: Likewise.
23190         * cfgloopmanip.c: Likewise.
23191         * cfgrtl.c: Likewise.
23192         * cgraph.c: Likewise.
23193         * cgraphbuild.c: Likewise.
23194         * cgraphclones.c: Likewise.
23195         * cgraphunit.c: Likewise.
23196         * cilk-common.c: Likewise.
23197         * combine-stack-adj.c: Likewise.
23198         * combine.c: Likewise.
23199         * compare-elim.c: Likewise.
23200         * convert.c: Likewise.
23201         * coverage.c: Likewise.
23202         * cppbuiltin.c: Likewise.
23203         * cprop.c: Likewise.
23204         * cse.c: Likewise.
23205         * cselib.c: Likewise.
23206         * data-streamer-in.c: Likewise.
23207         * data-streamer-out.c: Likewise.
23208         * data-streamer.c: Likewise.
23209         * dbxout.c: Likewise.
23210         * dce.c: Likewise.
23211         * ddg.c: Likewise.
23212         * debug.c: Likewise.
23213         * df-core.c: Likewise.
23214         * df-problems.c: Likewise.
23215         * df-scan.c: Likewise.
23216         * df.h: Likewise.
23217         * dfp.c: Likewise.
23218         * dojump.c: Likewise.
23219         * dominance.c: Likewise.
23220         * domwalk.c: Likewise.
23221         * double-int.c: Likewise.
23222         * dse.c: Likewise.
23223         * dumpfile.c: Likewise.
23224         * dwarf2asm.c: Likewise.
23225         * dwarf2cfi.c: Likewise.
23226         * dwarf2out.c: Likewise.
23227         * dwarf2out.h: Likewise.
23228         * emit-rtl.c: Likewise.
23229         * et-forest.c: Likewise.
23230         * except.c: Likewise.
23231         * explow.c: Likewise.
23232         * expmed.c: Likewise.
23233         * expr.c: Likewise.
23234         * final.c: Likewise.
23235         * fixed-value.c: Likewise.
23236         * fold-const.c: Likewise.
23237         * function.c: Likewise.
23238         * fwprop.c: Likewise.
23239         * gcc-plugin.h: Likewise.
23240         * gcse.c: Likewise.
23241         * generic-match-head.c: Likewise.
23242         * ggc-page.c: Likewise.
23243         * gimple-builder.c: Likewise.
23244         * gimple-expr.c: Likewise.
23245         * gimple-fold.c: Likewise.
23246         * gimple-iterator.c: Likewise.
23247         * gimple-low.c: Likewise.
23248         * gimple-match-head.c: Likewise.
23249         * gimple-pretty-print.c: Likewise.
23250         * gimple-ssa-isolate-paths.c: Likewise.
23251         * gimple-ssa-strength-reduction.c: Likewise.
23252         * gimple-streamer-in.c: Likewise.
23253         * gimple-streamer-out.c: Likewise.
23254         * gimple-streamer.h: Likewise.
23255         * gimple-walk.c: Likewise.
23256         * gimple.c: Likewise.
23257         * gimplify-me.c: Likewise.
23258         * gimplify.c: Likewise.
23259         * godump.c: Likewise.
23260         * graph.c: Likewise.
23261         * graphite-blocking.c: Likewise.
23262         * graphite-dependences.c: Likewise.
23263         * graphite-interchange.c: Likewise.
23264         * graphite-isl-ast-to-gimple.c: Likewise.
23265         * graphite-optimize-isl.c: Likewise.
23266         * graphite-poly.c: Likewise.
23267         * graphite-scop-detection.c: Likewise.
23268         * graphite-sese-to-poly.c: Likewise.
23269         * graphite.c: Likewise.
23270         * haifa-sched.c: Likewise.
23271         * hooks.h: Likewise.
23272         * hw-doloop.c: Likewise.
23273         * ifcvt.c: Likewise.
23274         * incpath.c: Likewise.
23275         * init-regs.c: Likewise.
23276         * internal-fn.c: Likewise.
23277         * ipa-chkp.c: Likewise.
23278         * ipa-comdats.c: Likewise.
23279         * ipa-cp.c: Likewise.
23280         * ipa-devirt.c: Likewise.
23281         * ipa-icf-gimple.c: Likewise.
23282         * ipa-icf.c: Likewise.
23283         * ipa-inline-analysis.c: Likewise.
23284         * ipa-inline-transform.c: Likewise.
23285         * ipa-inline.c: Likewise.
23286         * ipa-polymorphic-call.c: Likewise.
23287         * ipa-profile.c: Likewise.
23288         * ipa-prop.c: Likewise.
23289         * ipa-pure-const.c: Likewise.
23290         * ipa-ref.c: Likewise.
23291         * ipa-reference.c: Likewise.
23292         * ipa-split.c: Likewise.
23293         * ipa-utils.c: Likewise.
23294         * ipa-visibility.c: Likewise.
23295         * ipa.c: Likewise.
23296         * ira-build.c: Likewise.
23297         * ira-color.c: Likewise.
23298         * ira-conflicts.c: Likewise.
23299         * ira-costs.c: Likewise.
23300         * ira-emit.c: Likewise.
23301         * ira-lives.c: Likewise.
23302         * ira.c: Likewise.
23303         * jump.c: Likewise.
23304         * langhooks.c: Likewise.
23305         * lcm.c: Likewise.
23306         * loop-doloop.c: Likewise.
23307         * loop-init.c: Likewise.
23308         * loop-invariant.c: Likewise.
23309         * loop-iv.c: Likewise.
23310         * loop-unroll.c: Likewise.
23311         * lower-subreg.c: Likewise.
23312         * lra-assigns.c: Likewise.
23313         * lra-coalesce.c: Likewise.
23314         * lra-constraints.c: Likewise.
23315         * lra-eliminations.c: Likewise.
23316         * lra-lives.c: Likewise.
23317         * lra-remat.c: Likewise.
23318         * lra-spills.c: Likewise.
23319         * lra.c: Likewise.
23320         * lto-cgraph.c: Likewise.
23321         * lto-compress.c: Likewise.
23322         * lto-opts.c: Likewise.
23323         * lto-section-in.c: Likewise.
23324         * lto-section-out.c: Likewise.
23325         * lto-streamer-in.c: Likewise.
23326         * lto-streamer-out.c: Likewise.
23327         * lto-streamer.c: Likewise.
23328         * mcf.c: Likewise.
23329         * mode-switching.c: Likewise.
23330         * modulo-sched.c: Likewise.
23331         * omega.c: Likewise.
23332         * omp-low.c: Likewise.
23333         * optabs.c: Likewise.
23334         * opts-global.c: Likewise.
23335         * passes.c: Likewise.
23336         * plugin.c: Likewise.
23337         * postreload-gcse.c: Likewise.
23338         * postreload.c: Likewise.
23339         * predict.c: Likewise.
23340         * print-rtl.c: Likewise.
23341         * print-tree.c: Likewise.
23342         * profile.c: Likewise.
23343         * real.c: Likewise.
23344         * realmpfr.c: Likewise.
23345         * realmpfr.h: Likewise.
23346         * recog.c: Likewise.
23347         * ree.c: Likewise.
23348         * reg-stack.c: Likewise.
23349         * regcprop.c: Likewise.
23350         * reginfo.c: Likewise.
23351         * regrename.c: Likewise.
23352         * regs.h: Likewise.
23353         * regstat.c: Likewise.
23354         * reload.c: Likewise.
23355         * reload1.c: Likewise.
23356         * reorg.c: Likewise.
23357         * resource.c: Likewise.
23358         * rtl-chkp.c: Likewise.
23359         * rtlanal.c: Likewise.
23360         * rtlhooks.c: Likewise.
23361         * sanopt.c: Likewise.
23362         * sched-deps.c: Likewise.
23363         * sched-ebb.c: Likewise.
23364         * sched-rgn.c: Likewise.
23365         * sched-vis.c: Likewise.
23366         * sdbout.c: Likewise.
23367         * sel-sched-dump.c: Likewise.
23368         * sel-sched-ir.c: Likewise.
23369         * sel-sched.c: Likewise.
23370         * sese.c: Likewise.
23371         * shrink-wrap.c: Likewise.
23372         * shrink-wrap.h: Likewise.
23373         * simplify-rtx.c: Likewise.
23374         * stack-ptr-mod.c: Likewise.
23375         * statistics.c: Likewise.
23376         * stmt.c: Likewise.
23377         * stor-layout.c: Likewise.
23378         * store-motion.c: Likewise.
23379         * stringpool.c: Likewise.
23380         * symtab.c: Likewise.
23381         * target-globals.c: Likewise.
23382         * targhooks.c: Likewise.
23383         * toplev.c: Likewise.
23384         * tracer.c: Likewise.
23385         * trans-mem.c: Likewise.
23386         * tree-affine.c: Likewise.
23387         * tree-affine.h: Likewise.
23388         * tree-browser.c: Likewise.
23389         * tree-call-cdce.c: Likewise.
23390         * tree-cfg.c: Likewise.
23391         * tree-cfgcleanup.c: Likewise.
23392         * tree-chkp-opt.c: Likewise.
23393         * tree-chkp.c: Likewise.
23394         * tree-chrec.c: Likewise.
23395         * tree-complex.c: Likewise.
23396         * tree-data-ref.c: Likewise.
23397         * tree-dfa.c: Likewise.
23398         * tree-diagnostic.c: Likewise.
23399         * tree-dump.c: Likewise.
23400         * tree-eh.c: Likewise.
23401         * tree-emutls.c: Likewise.
23402         * tree-if-conv.c: Likewise.
23403         * tree-inline.c: Likewise.
23404         * tree-into-ssa.c: Likewise.
23405         * tree-iterator.c: Likewise.
23406         * tree-loop-distribution.c: Likewise.
23407         * tree-nested.c: Likewise.
23408         * tree-nrv.c: Likewise.
23409         * tree-object-size.c: Likewise.
23410         * tree-outof-ssa.c: Likewise.
23411         * tree-parloops.c: Likewise.
23412         * tree-phinodes.c: Likewise.
23413         * tree-predcom.c: Likewise.
23414         * tree-pretty-print.c: Likewise.
23415         * tree-pretty-print.h: Likewise.
23416         * tree-profile.c: Likewise.
23417         * tree-scalar-evolution.c: Likewise.
23418         * tree-sra.c: Likewise.
23419         * tree-ssa-address.c: Likewise.
23420         * tree-ssa-alias.c: Likewise.
23421         * tree-ssa-ccp.c: Likewise.
23422         * tree-ssa-coalesce.c: Likewise.
23423         * tree-ssa-copy.c: Likewise.
23424         * tree-ssa-copyrename.c: Likewise.
23425         * tree-ssa-dce.c: Likewise.
23426         * tree-ssa-dom.c: Likewise.
23427         * tree-ssa-dse.c: Likewise.
23428         * tree-ssa-forwprop.c: Likewise.
23429         * tree-ssa-ifcombine.c: Likewise.
23430         * tree-ssa-live.c: Likewise.
23431         * tree-ssa-loop-ch.c: Likewise.
23432         * tree-ssa-loop-im.c: Likewise.
23433         * tree-ssa-loop-ivcanon.c: Likewise.
23434         * tree-ssa-loop-ivopts.c: Likewise.
23435         * tree-ssa-loop-manip.c: Likewise.
23436         * tree-ssa-loop-niter.c: Likewise.
23437         * tree-ssa-loop-prefetch.c: Likewise.
23438         * tree-ssa-loop-unswitch.c: Likewise.
23439         * tree-ssa-loop.c: Likewise.
23440         * tree-ssa-loop.h: Likewise.
23441         * tree-ssa-math-opts.c: Likewise.
23442         * tree-ssa-operands.c: Likewise.
23443         * tree-ssa-phiopt.c: Likewise.
23444         * tree-ssa-phiprop.c: Likewise.
23445         * tree-ssa-pre.c: Likewise.
23446         * tree-ssa-propagate.c: Likewise.
23447         * tree-ssa-reassoc.c: Likewise.
23448         * tree-ssa-sccvn.c: Likewise.
23449         * tree-ssa-scopedtables.c: Likewise.
23450         * tree-ssa-sink.c: Likewise.
23451         * tree-ssa-strlen.c: Likewise.
23452         * tree-ssa-structalias.c: Likewise.
23453         * tree-ssa-tail-merge.c: Likewise.
23454         * tree-ssa-ter.c: Likewise.
23455         * tree-ssa-threadedge.c: Likewise.
23456         * tree-ssa-threadupdate.c: Likewise.
23457         * tree-ssa-uncprop.c: Likewise.
23458         * tree-ssa-uninit.c: Likewise.
23459         * tree-ssa.c: Likewise.
23460         * tree-ssanames.c: Likewise.
23461         * tree-stdarg.c: Likewise.
23462         * tree-streamer-in.c: Likewise.
23463         * tree-streamer-out.c: Likewise.
23464         * tree-streamer.c: Likewise.
23465         * tree-switch-conversion.c: Likewise.
23466         * tree-tailcall.c: Likewise.
23467         * tree-vect-data-refs.c: Likewise.
23468         * tree-vect-generic.c: Likewise.
23469         * tree-vect-loop-manip.c: Likewise.
23470         * tree-vect-loop.c: Likewise.
23471         * tree-vect-patterns.c: Likewise.
23472         * tree-vect-slp.c: Likewise.
23473         * tree-vect-stmts.c: Likewise.
23474         * tree-vectorizer.c: Likewise.
23475         * tree-vrp.c: Likewise.
23476         * tree.c: Likewise.
23477         * tsan.c: Likewise.
23478         * ubsan.c: Likewise.
23479         * valtrack.c: Likewise.
23480         * value-prof.c: Likewise.
23481         * var-tracking.c: Likewise.
23482         * varasm.c: Likewise.
23483         * varpool.c: Likewise.
23484         * vmsdbgout.c: Likewise.
23485         * vtable-verify.c: Likewise.
23486         * web.c: Likewise.
23487         * wide-int-print.cc: Likewise.
23488         * wide-int-print.h: Likewise.
23489         * wide-int.cc: Likewise.
23490         * xcoffout.c: Likewise.
23491         * config/aarch64/aarch64-builtins.c: Likewise.
23492         * config/aarch64/aarch64.c: Likewise.
23493         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23494         * config/alpha/alpha.c: Likewise.
23495         * config/arc/arc.c: Likewise.
23496         * config/arm/aarch-common.c: Likewise.
23497         * config/arm/arm-builtins.c: Likewise.
23498         * config/arm/arm-c.c: Likewise.
23499         * config/arm/arm.c: Likewise.
23500         * config/avr/avr-c.c: Likewise.
23501         * config/avr/avr-log.c: Likewise.
23502         * config/avr/avr.c: Likewise.
23503         * config/bfin/bfin.c: Likewise.
23504         * config/c6x/c6x.c: Likewise.
23505         * config/cr16/cr16.c: Likewise.
23506         * config/cris/cris.c: Likewise.
23507         * config/darwin-c.c: Likewise.
23508         * config/darwin.c: Likewise.
23509         * config/default-c.c: Likewise.
23510         * config/epiphany/epiphany.c: Likewise.
23511         * config/epiphany/mode-switch-use.c: Likewise.
23512         * config/epiphany/resolve-sw-modes.c: Likewise.
23513         * config/fr30/fr30.c: Likewise.
23514         * config/frv/frv.c: Likewise.
23515         * config/ft32/ft32.c: Likewise.
23516         * config/glibc-c.c: Likewise.
23517         * config/h8300/h8300.c: Likewise.
23518         * config/i386/i386-c.c: Likewise.
23519         * config/i386/i386.c: Likewise.
23520         * config/i386/msformat-c.c: Likewise.
23521         * config/i386/winnt-cxx.c: Likewise.
23522         * config/i386/winnt-stubs.c: Likewise.
23523         * config/i386/winnt.c: Likewise.
23524         * config/ia64/ia64-c.c: Likewise.
23525         * config/ia64/ia64.c: Likewise.
23526         * config/iq2000/iq2000.c: Likewise.
23527         * config/lm32/lm32.c: Likewise.
23528         * config/m32c/m32c-pragma.c: Likewise.
23529         * config/m32c/m32c.c: Likewise.
23530         * config/m32r/m32r.c: Likewise.
23531         * config/m68k/m68k.c: Likewise.
23532         * config/mcore/mcore.c: Likewise.
23533         * config/mep/mep-pragma.c: Likewise.
23534         * config/mep/mep.c: Likewise.
23535         * config/microblaze/microblaze-c.c: Likewise.
23536         * config/microblaze/microblaze.c: Likewise.
23537         * config/mips/mips.c: Likewise.
23538         * config/mmix/mmix.c: Likewise.
23539         * config/mn10300/mn10300.c: Likewise.
23540         * config/moxie/moxie.c: Likewise.
23541         * config/msp430/msp430-c.c: Likewise.
23542         * config/msp430/msp430.c: Likewise.
23543         * config/nds32/nds32-cost.c: Likewise.
23544         * config/nds32/nds32-fp-as-gp.c: Likewise.
23545         * config/nds32/nds32-intrinsic.c: Likewise.
23546         * config/nds32/nds32-isr.c: Likewise.
23547         * config/nds32/nds32-md-auxiliary.c: Likewise.
23548         * config/nds32/nds32-memory-manipulation.c: Likewise.
23549         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23550         * config/nds32/nds32-predicates.c: Likewise.
23551         * config/nds32/nds32.c: Likewise.
23552         * config/nios2/nios2.c: Likewise.
23553         * config/nvptx/nvptx.c: Likewise.
23554         * config/pa/pa.c: Likewise.
23555         * config/pdp11/pdp11.c: Likewise.
23556         * config/rl78/rl78-c.c: Likewise.
23557         * config/rl78/rl78.c: Likewise.
23558         * config/rs6000/rs6000-c.c: Likewise.
23559         * config/rs6000/rs6000.c: Likewise.
23560         * config/rx/rx.c: Likewise.
23561         * config/s390/s390-c.c: Likewise.
23562         * config/s390/s390.c: Likewise.
23563         * config/sh/sh-c.c: Likewise.
23564         * config/sh/sh-mem.cc: Likewise.
23565         * config/sh/sh.c: Likewise.
23566         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23567         * config/sh/sh_treg_combine.cc: Likewise.
23568         * config/sol2-c.c: Likewise.
23569         * config/sol2-cxx.c: Likewise.
23570         * config/sol2-stubs.c: Likewise.
23571         * config/sol2.c: Likewise.
23572         * config/sparc/sparc-c.c: Likewise.
23573         * config/sparc/sparc.c: Likewise.
23574         * config/spu/spu-c.c: Likewise.
23575         * config/spu/spu.c: Likewise.
23576         * config/stormy16/stormy16.c: Likewise.
23577         * config/tilegx/mul-tables.c: Likewise.
23578         * config/tilegx/tilegx-c.c: Likewise.
23579         * config/tilegx/tilegx.c: Likewise.
23580         * config/tilepro/mul-tables.c: Likewise.
23581         * config/tilepro/tilepro-c.c: Likewise.
23582         * config/tilepro/tilepro.c: Likewise.
23583         * config/v850/v850-c.c: Likewise.
23584         * config/v850/v850.c: Likewise.
23585         * config/vax/vax.c: Likewise.
23586         * config/visium/visium.c: Likewise.
23587         * config/vms/vms-c.c: Likewise.
23588         * config/vms/vms.c: Likewise.
23589         * config/vxworks.c: Likewise.
23590         * config/winnt-c.c: Likewise.
23591         * config/xtensa/xtensa.c: Likewise.
23592         * common/config/bfin/bfin-common.c: Likewise.
23594 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
23596         * tree.h (tree_code_for_canonical_type_merging): New function.
23597         * tree.c (gimple_canonical_types_compatible_p): Use
23598         tree_code_for_canonical_type_merging..
23600 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23602         PR c++/66192
23603         PR target/66200
23604         * doc/tm.texi: Regenerate.
23605         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23606         * target.def (TARGET_RELAXED_ORDERING): Likewise.
23607         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23608         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23609         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23610         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23611         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23612         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23613         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23615 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23617         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23618         register fma steering pass.
23619         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23620         AARCH64_TUNE_FMA_STEERING.
23622 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
23624         * tree.c (verify_type_variant): Verify that type and variant is
23625         compatible.
23626         (gimple_canonical_types_compatible_p): Look for main variants.
23628 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23630         * config.gcc (powerpc*-*-*): Add support for a new configure
23631         option --with-advance-toolchain=<xxx> which overrides using the
23632         default header files, libraries and dynamic linker.
23634         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23635         specs to support the configure --with-advance-toolchain=<xxx>
23636         option.
23637         (INCLUDE_EXTRA_SPEC): Likewise.
23638         (LINK_OS_EXTRA_SPEC32): Likewise.
23639         (LINK_OK_EXTRA_SPEC64): Likewise.
23640         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23641         (DYNAMIC_LINKER_PREFIX): Likewise.
23642         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23643         toolchain support.
23644         (GLIBC_DYNAMIC_LINKER32): Likewise.
23645         (GLIBC_DYNAMIC_LINKER64): Likewise.
23646         (LINK_OS_LINUX_SPEC32): Likewise.
23647         (LINK_OS_LINUX_SPEC64): Likewise.
23649         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23650         configuration option.
23652 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
23654         PR target/66275
23655         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23656         to determine current function ABI.
23657         (ix86_function_value_regno_p): Ditto.
23659 2015-06-03  Martin Liska  <mliska@suse.cz>
23661         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23662         * bitmap.h (struct bitmap_usage): Likewise.
23663         * ggc-common.c (struct ggc_usage): Likewise.
23664         * mem-stats.h (struct mem_location): Likewise.
23665         (struct mem_usage): Likewise.
23666         * vec.c (struct vec_usage): Likewise.
23668 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
23670         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23671         -Bsymbolic.
23673 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
23675         * doc/plugins.texi (enum plugin_event): New event.
23676         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23677         and PLUGIN_FINISH_FUNCTION.
23678         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23679         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23681 2015-06-03  Richard Biener  <rguenther@suse.de>
23683         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23684         compute GROUP_GAP for the first element.
23685         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23686         on in-group gaps.
23688 2015-06-03  Nick Clifton  <nickc@redhat.com>
23690         * config/rl78/rl78-real.md: Add peepholes to avoid a register
23691         copy when calling a function.
23692         * config/rl78/rl78.c (need_to_save): Do not push the frame
23693         pointer in an interrupt handler prologue if it is never used.
23695 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23697         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23699 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23701         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23702         reference when cloning alias node.
23704 2015-06-03  Martin Liska  <mliska@suse.cz>
23706         * alloc-pool.h (struct pool_usage): Correct space padding.
23707         * ggc-page.c (ggc_print_statistics): Align columns in a report.
23708         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23709         * tree.c (dump_tree_statistics): Align columns in a report.
23711 2015-06-03  Martin Liska  <mliska@suse.cz>
23713         * alloc-pool.c (allocate_pool_descriptor): Remove.
23714         (struct pool_output_info): Likewise.
23715         (print_alloc_pool_statistics): Likewise.
23716         (dump_alloc_pool_statistics): Likewise.
23717         * alloc-pool.h (struct pool_usage): New struct.
23718         (pool_allocator::initialize): Change usage of memory statistics
23719         to a new interface.
23720         (pool_allocator::release): Likewise.
23721         (pool_allocator::allocate): Likewise.
23722         (pool_allocator::remove): Likewise.
23723         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23724         for a pool allocator.
23725         * mem-stats.h (struct mem_location): Add new ctor.
23726         (struct mem_usage): Add counter for number of
23727         instances.
23728         (mem_alloc_description::register_descriptor): New overload of
23729         * mem-stats.h (mem_location::to_string): New function.
23730         * bitmap.h (struct bitmap_usage): Use this new function.
23731         * ggc-common.c (struct ggc_usage): Likewise.
23732         the function.
23734 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23736         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23737         of GCC_INSN_FLAGS_H block.
23739 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23741         * explow.c (plus_constant): Update check after force_const_mem call
23742         to see if the value returned is not a NULL_RTX.
23744 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
23746         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23747         remove instumentation thunks calling reachable functions.
23748         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23749         * lto/lto-partition.c (privatize_symbol_name_1): New.
23750         (privatize_symbol_name): Privatize both decl and orig_decl
23751         names for instrumented functions.
23752         * cgraph.c (cgraph_node::verify_node): Add transparent
23753         alias chain check for instrumented node.
23755 2015-06-03  Marek Polacek  <polacek@redhat.com>
23757         PR c/64223
23758         PR c/29358
23759         * tree.c (attribute_value_equal): Handle attribute format.
23760         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23762 2015-06-03  Richard Biener  <rguenther@suse.de>
23764         PR tree-optimization/63916
23765         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23766         Forward-propagate non-invariant addresses by splicing their
23767         reference ops if the result isn't going to be used by PRE.
23768         (vn_reference_lookup_3): Remove pointless assert.
23770 2015-06-03  Richard Biener  <rguenther@suse.de>
23772         PR tree-optimization/66375
23773         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23774         add to the evolution before following SSA edges.
23776 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
23778         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23779         (dump_use, dump_cand, find_induction_variables): Pass new argument
23780         to dump_iv.
23781         (record_use): Preserve the ssa name information in IV.
23783 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
23785         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23786         NO_MODE_TEST.
23787         (add_mode_tests): Don't add mode tests if the predicate only
23788         accepts scalar constant integers.  Otherwise, allow the mode
23789         of "op" to be VOIDmode if the predicate does accept such integers.
23791 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
23793         PR target/66258
23794         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23795         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23796         (aarch64_secondary_reload): Likewise
23797         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23798         to !TARGET_FLOAT.
23799         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23800         Likewise.
23802 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
23803             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23805         PR target/65768
23806         * cprop.c (try_replace_reg): Check cost of constants before propagating.
23808 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23810         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23811         provide access to the IBM extended double floating point mode if
23812         long double is IEEE 128-bit floating point.
23813         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23814         point if long double is the IBM extended double type.
23816         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23817         enable adding IEEE 128-bit floating point support.
23818         (-mfloat128-software): Likewise.
23819         (-mfloat128-sw): Likewise.
23821         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23822         128-bit floating point types to occupy any register if
23823         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
23824         -mfloat128-software is enabled.
23825         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23826         support.
23827         (rs6000_option_override_internal): Add -mfloat128-* support.
23828         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23830         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23831         and float128 type nodes.
23832         (ieee128_float_type_node): Likewise.
23833         (ibm128_float_type_node): Likewise.
23835 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23837         PR target/66136
23838         * config/aarch64/geniterators.sh: Rewrite in awk.
23840 2015-06-02  Martin Liska  <mliska@suse.cz>
23842         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23843         values to avoid -Wmaybe-uninitialized errors.
23845 2015-06-02  Richard Biener  <rguenther@suse.de>
23847         PR debug/65549
23848         * dwarf2out.c (lookup_context_die): New function.
23849         (resolve_addr): Avoid forcing a full DIE for the
23850         target of a DW_TAG_GNU_call_site during late compilation.
23851         Instead create a stub DIE without a type if we have a
23852         context DIE present.
23854 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
23856         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23858 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
23860         PR tree-optimization/48052
23861         * cfgloop.h (struct control_iv): New.
23862         (struct loop): New field control_ivs.
23863         * tree-ssa-loop-niter.c : Include "stor-layout.h".
23864         (number_of_iterations_lt): Set no_overflow information.
23865         (number_of_iterations_exit): Init control iv in niter struct.
23866         (record_control_iv): New.
23867         (estimate_numbers_of_iterations_loop): Call record_control_iv.
23868         (loop_exits_before_overflow): New.  Interface factored out of
23869         scev_probably_wraps_p.
23870         (scev_probably_wraps_p): Factor loop niter related code into
23871         loop_exits_before_overflow.
23872         (free_numbers_of_iterations_estimates_loop): Free control ivs.
23873         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23875 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
23877         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23878         the target doesn't belong to the current function.
23880 2015-06-02  Marek Polacek  <polacek@redhat.com>
23882         PR middle-end/66345
23883         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23884         get_maxval_strlen does not produce an INTEGER_CST.
23886 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
23888         * config/arc/constraints.md: Use lower-case names in match_code.
23889         * config/mmix/constraints.md: Likewise.
23891 2015-06-02  Richard Biener  <rguenther@suse.de>
23893         PR tree-optimization/65961
23894         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23895         check and clarify dump message.
23896         (vect_build_slp_tree): If all children are built up from scalars
23897         build up the parent from scalars instead.
23898         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23900 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
23902         PR other/65366
23903         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
23904         instead of print ... .
23906 2015-06-02  Alan Modra  <amodra@gmail.com>
23908         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23909         2014-08-11 change.
23911 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
23913         PR tree-optimization/52563
23914         PR tree-optimization/62173
23915         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
23916         (alloc_iv, set_iv): New parameter.
23917         (determine_biv_step): Delete.
23918         (find_bivs): Inline original determine_biv_step.  Pass new
23919         argument to set_iv.
23920         (idx_find_step): Use no_overflow information for conversion.
23921         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23922         resolve_mixers handle folded_casts.
23923         (instantiate_scev_name): Change bool parameter to bool pointer.
23924         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23925         (instantiate_array_ref, instantiate_scev_not): Ditto.
23926         (instantiate_scev_3, instantiate_scev_2): Ditto.
23927         (instantiate_scev_1, instantiate_scev_r): Ditto.
23928         (instantiate_scev_convert, ): Change parameter.  Pass argument
23929         to chrec_convert_aggressive.
23930         (instantiate_scev): Change argument.
23931         (resolve_mixers): New parameter and set it.
23932         (scev_const_prop): New argument.
23933         * tree-scalar-evolution.h (resolve_mixers): New parameter.
23934         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23935         of chrec_conert_1.
23936         (chrec_convert): New parameter.  Move definition below.
23937         (chrec_convert_aggressive): New parameter and set it.  Call
23938         convert_affine_scev.
23939         * tree-chrec.h (chrec_convert): New parameter.
23940         (chrec_convert_aggressive): Ditto.
23942 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
23944         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23945         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23946         the LHS of a no-return call if its type has variable size.
23947         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23948         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23950 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
23952         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23953         * config.in: Regenerate.
23955 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
23957         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23958         consecutive accesses within outer-loop with force_vectorize
23959         for references with zero step in inner-loop.
23961 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
23963         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23964         rather than from gcc/build directory.
23966 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
23968         PR target/65697
23969         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23970         for __sync memory models, emit initial loads and final barriers as
23971         appropriate.
23973 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
23975         PR target/65697
23976         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23977         (aarch64_split_atomic_op): Check for __sync memory models, emit
23978         appropriate initial loads and final barriers.
23980 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
23982         * Makefile.in: Fix gcov dependencies that should
23983         not point to a build folder.
23985 2015-06-01  Richard Biener  <rguenther@suse.de>
23987         Revert
23988         2015-05-29  Richard Biener  <rguenther@suse.de>
23990         PR tree-optimization/66314
23991         * tree-ssa-threadupdate.c (create_block_for_threading): Add
23992         parameter that says which loop the new block belongs to.
23993         (ssa_create_duplicates): Blocks duplicated for the threaded
23994         path belong to the loop of the thread destination.
23996 2015-06-01  Martin Liska  <mliska@suse.cz>
23998         * sched-deps.c: Include pool-alloc.h before
23999         cselib.h header file is included.
24001 2015-06-01  Richard Biener  <rguenther@suse.de>
24003         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24004         functions.
24006 2015-06-01  Martin Liska  <mliska@suse.cz>
24008         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24009         a function local variable.
24011 2015-06-01  Martin Liska  <mliska@suse.cz>
24013         * alloc-pool.c (create_alloc_pool): Remove.
24014         (empty_alloc_pool): Likewise.
24015         (free_alloc_pool): Likewise.
24016         (free_alloc_pool_if_empty): Likewise.
24017         (pool_alloc): Likewise.
24018         (pool_free): Likewise.
24019         * alloc-pool.h: Remove old declarations.
24021 2015-06-01  Martin Liska  <mliska@suse.cz>
24023         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24024         (ira_create_object): Likewise.
24025         (ira_create_allocno): Likewise.
24026         (ira_create_live_range): Likewise.
24027         (copy_live_range): Likewise.
24028         (ira_finish_live_range): Likewise.
24029         (ira_free_allocno_costs): Likewise.
24030         (finish_allocno): Likewise.
24031         (finish_allocnos): Likewise.
24032         (initiate_prefs): Likewise.
24033         (ira_create_pref): Likewise.
24034         (finish_pref): Likewise.
24035         (finish_prefs): Likewise.
24036         (initiate_copies): Likewise.
24037         (ira_create_copy): Likewise.
24038         (finish_copy): Likewise.
24039         (finish_copies): Likewise.
24040         (finish_prefs): Likewise.
24042 2015-06-01  Martin Liska  <mliska@suse.cz>
24044         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24045         (allocate_and_init_ipcp_value): Likewise.
24046         (ipcp_lattice::add_value): Likewise.
24047         (merge_agg_lats_step): Likewise.
24048         (ipcp_driver): Likewise.
24049         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24050         (ipa_free_all_structures_after_iinln): Likewise.
24051         * ipa-prop.h: Likewise.
24053 2015-06-01  Martin Liska  <mliska@suse.cz>
24055         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24056         pool allocator.
24057         (set_hint_predicate): Likewise.
24058         (inline_summary_alloc): Likewise.
24059         (reset_inline_edge_summary): Likewise.
24060         (reset_inline_summary): Likewise.
24061         (set_cond_stmt_execution_predicate): Likewise.
24062         (set_switch_stmt_execution_predicate): Likewise.
24063         (compute_bb_predicates): Likewise.
24064         (estimate_function_body_sizes): Likewise.
24065         (inline_free_summary): Likewise.
24067 2015-06-01  Martin Liska  <mliska@suse.cz>
24069         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24070         (ipa_edge_duplication_hook): Likewise.
24071         (ipa_free_all_structures_after_ipa_cp): Likewise.
24072         (ipa_free_all_structures_after_iinln): Likewise.
24074 2015-06-01  Martin Liska  <mliska@suse.cz>
24076         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24077         (ipa_profile_generate_summary): Likewise.
24078         (ipa_profile_read_summary): Likewise.
24079         (ipa_profile): Likewise.
24081 2015-06-01  Martin Liska  <mliska@suse.cz>
24083         * tree-ssa-structalias.c (new_var_info): Use new type-based
24084         pool allocator.
24085         (new_constraint): Likewise.
24086         (init_alias_vars): Likewise.
24087         (delete_points_to_sets): Likewise.
24089 2015-06-01  Martin Liska  <mliska@suse.cz>
24091         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24092         (free_strinfo): Likewise.
24093         (pass_strlen::execute): Likewise.
24095 2015-06-01  Martin Liska  <mliska@suse.cz>
24097         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24098         pool allocator.
24099         (vn_reference_insert_pieces): Likewise.
24100         (vn_phi_insert): Likewise.
24101         (visit_reference_op_call): Likewise.
24102         (copy_phi): Likewise.
24103         (copy_reference): Likewise.
24104         (process_scc): Likewise.
24105         (allocate_vn_table): Likewise.
24106         (free_vn_table): Likewise.
24108 2015-06-01  Martin Liska  <mliska@suse.cz>
24110         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24111         pool allocator.
24112         (add_repeat_to_ops_vec): Likewise.
24113         (get_ops): Likewise.
24114         (maybe_optimize_range_tests): Likewise.
24115         (init_reassoc): Likewise.
24116         (fini_reassoc): Likewise.
24118 2015-06-01  Martin Liska  <mliska@suse.cz>
24120         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24121         pool allocator.
24122         (bitmap_set_new): Likewise.
24123         (get_or_alloc_expr_for_constant): Likewise.
24124         (get_or_alloc_expr_for): Likewise.
24125         (phi_translate_1): Likewise.
24126         (compute_avail): Likewise.
24127         (init_pre): Likewise.
24128         (fini_pre): Likewise.
24130 2015-06-01  Martin Liska  <mliska@suse.cz>
24132         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24133         (delete_dep_node): Likewise.
24134         (create_deps_list): Likewise.
24135         (free_deps_list): Likewise.
24136         (sched_deps_init): Likewise.
24137         (sched_deps_finish): Likewise.
24139 2015-06-01  Martin Liska  <mliska@suse.cz>
24141         * regcprop.c (free_debug_insn_changes): Use new type-based
24142         pool allocator.
24143         (replace_oldest_value_reg): Likewise.
24144         (pass_cprop_hardreg::execute): Likewise.
24146 2015-06-01  Martin Liska  <mliska@suse.cz>
24148         * ira-build.c (initiate_cost_vectors): Use new type-based
24149         pool allocator.
24150         (ira_allocate_cost_vector): Likewise.
24151         (ira_free_cost_vector): Likewise.
24152         (finish_cost_vectors): Likewise.
24154 2015-06-01  Martin Liska  <mliska@suse.cz>
24156         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24157         pool allocator.
24158         (free_sched_pools): Likewise.
24159         * sel-sched-ir.h (_list_alloc): Likewise.
24160         (_list_remove): Likewise.
24162 2015-06-01  Martin Liska  <mliska@suse.cz>
24164         * stmt.c (add_case_node): Use new type-based pool allocator.
24165         (expand_case): Likewise.
24166         (expand_sjlj_dispatch_table): Likewise.
24168 2015-06-01  Martin Liska  <mliska@suse.cz>
24170         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24171         (free_bb): Likewise.
24172         (pass_cse_reciprocals::execute): Likewise.
24174 2015-06-01  Martin Liska  <mliska@suse.cz>
24176         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24177         (sra_deinitialize) Likewise.
24178         (create_access_1) Likewise.
24179         (build_accesses_from_assign) Likewise.
24180         (create_artificial_child_access) Likewise.
24182 2015-06-01  Martin Liska  <mliska@suse.cz>
24184         * dse.c (get_group_info):Use new type-based pool allocator.
24185         (dse_step0) Likewise.
24186         (free_store_info) Likewise.
24187         (delete_dead_store_insn) Likewise.
24188         (free_read_records) Likewise.
24189         (record_store) Likewise.
24190         (replace_read) Likewise.
24191         (check_mem_read_rtx) Likewise.
24192         (scan_insn) Likewise.
24193         (dse_step1) Likewise.
24194         (dse_step7) Likewise.
24196 2015-06-01  Martin Liska  <mliska@suse.cz>
24198         * df-scan.c (struct df_scan_problem_data):Use new type-based
24199         pool allocator.
24200         (df_scan_free_internal) Likewise.
24201         (df_scan_alloc) Likewise.
24202         (df_grow_reg_info) Likewise.
24203         (df_free_ref) Likewise.
24204         (df_insn_create_insn_record) Likewise.
24205         (df_mw_hardreg_chain_delete) Likewise.
24206         (df_insn_info_delete) Likewise.
24207         (df_free_collection_rec) Likewise.
24208         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24209         (df_sort_and_compress_mws) Likewise.
24210         (df_ref_create_structure) Likewise.
24211         (df_ref_record) Likewise.
24213 2015-06-01  Martin Liska  <mliska@suse.cz>
24215         * df-problems.c (df_chain_create):Use new type-based pool allocator.
24216         (df_chain_unlink_1) Likewise.
24217         (df_chain_unlink) Likewise.
24218         (df_chain_remove_problem) Likewise.
24219         (df_chain_alloc) Likewise.
24220         (df_chain_free) Likewise.
24221         * df.h (struct dataflow) Likewise.
24223 2015-06-01  Martin Liska  <mliska@suse.cz>
24225         * cselib.c (new_elt_list):Use new type-based pool allocator.
24226         (new_elt_loc_list) Likewise.
24227         (unchain_one_elt_list) Likewise.
24228         (unchain_one_elt_loc_list) Likewise.
24229         (unchain_one_value) Likewise.
24230         (new_cselib_val) Likewise.
24231         (cselib_init) Likewise.
24232         (cselib_finish) Likewise.
24234 2015-06-01  Martin Liska  <mliska@suse.cz>
24236         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24237         (sh_reorg) Likewise.
24239 2015-06-01  Martin Liska  <mliska@suse.cz>
24241         * cfg.c (initialize_original_copy_tables):Use new type-based
24242         pool allocator.
24243         (free_original_copy_tables) Likewise.
24244         (copy_original_table_clear) Likewise.
24245         (copy_original_table_set) Likewise.
24247 2015-06-01  Martin Liska  <mliska@suse.cz>
24249         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24250         pool allocator.
24251         (asan_mem_ref_new) Likewise.
24252         (free_mem_ref_resources) Likewise.
24254 2015-06-01  Martin Liska  <mliska@suse.cz>
24256         * var-tracking.c (variable_htab_free):Use new type-based
24257         pool allocator.
24258         (attrs_list_clear) Likewise.
24259         (attrs_list_insert) Likewise.
24260         (attrs_list_copy) Likewise.
24261         (shared_hash_unshare) Likewise.
24262         (shared_hash_destroy) Likewise.
24263         (unshare_variable) Likewise.
24264         (var_reg_delete_and_set) Likewise.
24265         (var_reg_delete) Likewise.
24266         (var_regno_delete) Likewise.
24267         (drop_overlapping_mem_locs) Likewise.
24268         (variable_union) Likewise.
24269         (insert_into_intersection) Likewise.
24270         (canonicalize_values_star) Likewise.
24271         (variable_merge_over_cur) Likewise.
24272         (dataflow_set_merge) Likewise.
24273         (remove_duplicate_values) Likewise.
24274         (variable_post_merge_new_vals) Likewise.
24275         (dataflow_set_preserve_mem_locs) Likewise.
24276         (dataflow_set_remove_mem_locs) Likewise.
24277         (variable_from_dropped) Likewise.
24278         (variable_was_changed) Likewise.
24279         (set_slot_part) Likewise.
24280         (clobber_slot_part) Likewise.
24281         (delete_slot_part) Likewise.
24282         (loc_exp_insert_dep) Likewise.
24283         (notify_dependents_of_changed_value) Likewise.
24284         (emit_notes_for_differences_1) Likewise.
24285         (vt_emit_notes) Likewise.
24286         (vt_initialize) Likewise.
24287         (vt_finalize) Likewise.
24289 2015-06-01  Martin Liska  <mliska@suse.cz>
24291         * ira-color.c (init_update_cost_records):Use new type-based
24292         pool allocator.
24293         (get_update_cost_record) Likewise.
24294         (free_update_cost_record_list) Likewise.
24295         (finish_update_cost_records) Likewise.
24296         (initiate_cost_update) Likewise.
24298 2015-06-01  Martin Liska  <mliska@suse.cz>
24300         * lra.c (init_insn_regs): Use new type-based pool allocator.
24301         (new_insn_reg) Likewise.
24302         (free_insn_reg) Likewise.
24303         (free_insn_regs) Likewise.
24304         (finish_insn_regs) Likewise.
24305         (init_insn_recog_data) Likewise.
24306         (init_reg_info) Likewise.
24307         (finish_reg_info) Likewise.
24308         (lra_free_copies) Likewise.
24309         (lra_create_copy) Likewise.
24310         (invalidate_insn_data_regno_info) Likewise.
24312 2015-06-01  Martin Liska  <mliska@suse.cz>
24314         * lra-lives.c (free_live_range): Use new type-based pool allocator.
24315         (free_live_range_list) Likewise.
24316         (create_live_range) Likewise.
24317         (copy_live_range) Likewise.
24318         (lra_merge_live_ranges) Likewise.
24319         (remove_some_program_points_and_update_live_ranges) Likewise.
24320         (lra_live_ranges_init) Likewise.
24321         (lra_live_ranges_finish) Likewise.
24323 2015-06-01  Martin Liska  <mliska@suse.cz>
24325         * et-forest.c (et_new_occ): Use new type-based pool allocator.
24326         (et_new_tree): Likewise.
24327         (et_free_tree): Likewise.
24328         (et_free_tree_force): Likewise.
24329         (et_free_pools): Likewise.
24330         (et_split): Likewise.
24332 2015-06-01  Martin Liska  <mliska@suse.cz>
24334         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24335         to header file.
24336         * alloc-pool.h (pool_allocator::pool_allocator): New function.
24337         (pool_allocator::release): Likewise.
24338         (inline pool_allocator::release_if_empty): Likewise.
24339         (inline pool_allocator::~pool_allocator): Likewise.
24340         (pool_allocator::allocate): Likewise.
24341         (pool_allocator::remove): Likewise.
24343 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24345         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24346         in comment.
24348 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24350         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24351         to fusible_ops.
24352         * config/arm/arm.c (arm_print_tune_info): Likewise.
24353         (arm_macro_fusion_p): Likewise.
24354         (arm_macro_fusion_pair_p): Likewise.
24356 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
24358         * config/aarch64/aarch64-protos.h (tune_params): Rename
24359         fuseable_ops to fusible_ops.
24360         * config/aarch64/aarch64.c (generic_tunings): Rename
24361         fuseable_ops to fusible_ops.
24362         (cortexa53_tunings): Likewise.
24363         (cortexa57_tunings): Likewise.
24364         (thunderx_tunings): Likewise.
24365         (xgene1_tunings): Likewise.
24366         (aarch64_macro_fusion_p): Likewise.
24367         (aarch64_macro_fusion_pair_p): Likewise.
24369 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24371         * config/s390/driver-native.c: New file.
24372         * config/s390/x-native: New file.
24373         * config.host: Add new files for s390.
24374         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24375         and -march=native
24376         * config.gcc: Likewise.
24377         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24378         * config/s390/s390-opts.h (enum processor_type): Ditto.
24379         * config/s390/s390.c (s390_option_override): Catch unhandled
24380         PROCESSOR_NATIVE
24382 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
24384         PR target/65527
24385         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24386         redirection for instrumented calls.
24387         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24388         (append_compiler_options): Append -fcheck-pointer-bounds.
24389         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24390         (chkp_redirect_edge): New.
24391         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24392         (chkp_redirect_edge): New.
24394 2015-06-01  Richard Biener  <rguenther@suse.de>
24396         PR tree-optimization/66280
24397         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24398         def-use walking.
24400 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24402         * config/aarch64/aarch64.md
24403         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24404         logic_shift_imm.
24406 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
24408         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24409         Remove obsolete kludge.
24411 2015-06-01  Richard Biener  <rguenther@suse.de>
24413         * tree-ssa-reassoc.c (get_rank): Simplify.
24415 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
24417         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24418         * configure: Regenerated.
24420 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
24422         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24423         issue (add space between string literal and macro).
24424         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24426 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
24428         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24429         implict or explicit -fPIE or -fpie.
24431 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
24433         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24435 2015-05-28  DJ Delorie  <dj@redhat.com>
24437         * expmed.c (extract_bit_field_1): Avoid clobbering a
24438         yet-to-be-used base/index register.
24440 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
24442         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24443         (alias_stats): Add num_universal.
24444         (alias_set_subset_of): Special case pointers; be ready for NULL
24445         children.
24446         (alias_sets_conflict_p): Special case pointers; be ready for NULL
24447         children.
24448         (init_alias_set_entry): Break out from ...
24449         (record_alias_subset): ... here; propagate new fields;
24450         allocate children only when really needed.
24451         (get_alias_set): Do less generous pointer globbing.
24452         (dump_alias_stats_in_alias_c): Update statistics.
24454 2015-05-30  Alan Modra  <amodra@gmail.com>
24456         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24457         correct block for use of r12.
24458         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24460 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24462         PR target/66215
24463         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24464         with -mhotpatch=.
24466 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
24468         PR tree-optimization/66142
24469         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24470         virtual phis that feed themselves.
24472 2015-05-29  Richard Biener  <rguenther@suse.de>
24474         PR tree-optimization/66314
24475         * tree-ssa-threadupdate.c (create_block_for_threading): Add
24476         parameter that says which loop the new block belongs to.
24477         (ssa_create_duplicates): Blocks duplicated for the threaded
24478         path belong to the loop of the thread destination.
24480 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24482         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24483         to cleanup-saved-temps.
24484         * doc/sourcebuild.texi (Clean up generated test files): Expand
24485         introduction.
24486         (dg-keep-saved-temps): Document new proc.
24487         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24488         cleanup-saved-temps): Remove.
24490 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
24492         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24493         gcc_AC_CHECK_DECLS.
24494         * configure: Regenerate.
24496 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24498         * config/nios2/linux.h (CPP_SPEC): Define.
24500 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24502         * config/microblaze/linux.h (CPP_SPEC): Define.
24504 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
24506         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24507         -pthread is specified.
24509 2015-05-28  Richard Biener  <rguenther@suse.de>
24511         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24512         (vect_fixup_scalar_cycles_with_patterns): Likewise.
24513         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24514         after pattern recog.
24515         (vect_create_epilog_for_reduction): Properly handle reductions
24516         with patterns.
24517         (vectorizable_reduction): Likewise.
24518         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24519         reduction chains.
24520         (vect_get_constant_vectors): Create the correct number of
24521         initial values for reductions.
24522         (vect_schedule_slp_instance): Handle reduction chains that are
24523         type changing properly.
24524         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24526 2015-05-28  Richard Biener  <rguenther@suse.de>
24528         PR tree-optimization/66142
24529         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24530         values better in memcpy destination handling.  Handle non-aliasing
24531         we discover here.
24533 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
24535         PR target/63810
24536         * config/darwin-c.c (version_components): New global enum.
24537         (parse_version, version_as_legacy_macro)
24538         (version_as_modern_macro, macosx_version_as_macro): New functions.
24539         (version_as_macro): Remove.
24540         (darwin_cpp_builtins): Use new function.
24542 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
24544         * builtins.c (expand_builtin_acc_on_device): Mark parameters
24545         with ATTRIBUTE_UNUSED.
24547 2015-05-28  Julian Brown  <julian@codesourcery.com>
24549         PR libgomp/65742
24551         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24552         sequence for !ACCEL_COMPILER.
24554 2015-05-28  Nick Clifton  <nickc@redhat.com>
24556         * config/rx/rx.c (push_regs): New function.  Extracts code from...
24557         (rx_expand_prologue): ... here.  Use push_regs to push even small
24558         spans of registers.
24559         (pop_regs): New function.
24560         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
24561         registers.
24563 2015-05-28  Richard Biener  <rguenther@suse.de>
24565         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24566         member.
24567         (SLP_INSTANCE_BODY_COST_VEC): Remove.
24568         (vect_update_slp_costs_according_to_vf): Likewise.
24569         (vect_slp_analyze_operations): Update prototype.
24570         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24571         vect_update_slp_costs_according_to_vf, adjust.
24572         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24573         (vect_analyze_slp_cost_1): Likewise.
24574         (vect_analyze_slp_cost): Likewise.  Properly deal with
24575         widening reduction ops.  Commit body costs.
24576         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
24577         cost for loops from here.
24578         (vect_slp_analyze_operations): But do it from here when
24579         the vectorization factor is known and stmts are analyzed.
24580         (vect_bb_vectorization_profitable_p): Simplify.
24581         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24582         (vect_update_slp_costs_according_to_vf): Remove.
24584 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
24585             H.J. Lu  <hongjiu.lu@intel.com>
24587         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24588         (BUILD_CFLAGS): Likewise.
24589         (BUILD_CXXFLAGS): Likewise.
24590         (LINKER): Add @NO_PIE_FLAG@.
24591         (BUILD_LDFLAGS): Likewise.
24592         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24593         --enable-default-pie.
24594         * common.opt (fPIE): Initialize to -1.
24595         (fpie): Likewise.
24596         (no-pie): New option.
24597         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24598         * configure.ac: Add --enable-default-pie.
24599         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
24600         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
24601         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
24602         * gcc.c (NO_PIE_SPEC): New.
24603         (PIE_SPEC): Likewise.
24604         (NO_FPIE1_SPEC): Likewise.
24605         (FPIE1_SPEC): Likewise.
24606         (NO_FPIE2_SPEC): Likewise.
24607         (FPIE2_SPEC): Likewise.
24608         (NO_FPIE2_SPEC): Likewise.
24609         (FPIE_SPEC): Likewise.
24610         (NO_FPIE_SPEC): Likewise.
24611         (NO_FPIC1_SPEC): Likewise.
24612         (FPIC1_SPEC): Likewise.
24613         (NO_FPIC2_SPEC): Likewise.
24614         (FPIC2_SPEC): Likewise.
24615         (NO_FPIC2_SPEC): Likewise.
24616         (FPIC_SPEC): Likewise.
24617         (NO_FPIC_SPEC): Likewise.
24618         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24619         (FPIE1_OR_FPIC1_SPEC): Likewise.
24620         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24621         (FPIE2_OR_FPIC2_SPEC): Likewise.
24622         (NO_FPIE_AND_FPIC_SPEC): Likewise.
24623         (FPIE_OR_FPIC_SPEC): Likewise.
24624         (LD_PIE_SPEC): Likewise.
24625         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
24626         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24627         * config/darwin.h (PIE_SPEC): Renamed to ...
24628         (DARWIN_PIE_SPEC): This.
24629         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24630         * config/darwin9.h (PIE_SPEC): Renamed to ...
24631         (DARWIN_PIE_SPEC): This.
24632         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24633         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24634         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24635         FPIE2_OR_FPIC2_SPEC.
24636         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24637         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24638         * config/sol2.h (ASM_PIC_SPEC): Likewise.
24639         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24640         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24641         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24642         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24643         * config/m32r/m32r.h (ASM_SPEC): Likewise.
24644         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24645         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24646         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24647         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24648         * config/sparc/linux.h (ASM_SPEC): Likewise.
24649         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24650         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24651         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24652         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24653         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24654         * config/sparc/sparc.h (ASM_SPEC): Likewise.
24655         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24656         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24657         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24658         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24659         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24660         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24661         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24662         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24663         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24664         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24665         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24666         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24667         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24668         * config/vax/linux.h (ASM_SPEC): Likewise.
24669         * doc/install.texi: Document --enable-default-pie.
24670         * doc/invoke.texi: Document -no-pie.
24671         * config.in: Regenerated.
24672         * configure: Likewise.
24674 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24676         PR rtl-optimization/66168
24677         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24678         can_move_invariant_reg.
24680 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
24682         PR target/66148
24683         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24684         REG_EQUAL note when doing insert.
24686         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24687         instead of "%d" for 'o' operand.
24689 2015-05-27  Nathan Sidwell  <nathan@acm.org>
24691         PR c++/66270
24692         * tree.c (build_pointer_type_for_mode): Canonical type does not
24693         inherit can_alias_all.
24694         (build_reference_type_for_mode): Likewise.
24696 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24698         * expr.h (array_at_struct_end_p): Move to...
24699         (array_ref_element_size): Likewise.
24700         (component_ref_field_offset): Likewise.
24701         * tree.h (array_ref_element_size): ...here.
24702         (array_at_struct_end_p): Likewise.
24703         (component_ref_field_offset): Likewise.
24704         * expr.c (array_ref_element_size): Move to...
24705         (array_ref_low_bound): Likewise.
24706         (array_at_struct_end_p): Likewise.
24707         (array_ref_up_bound): Likewise.
24708         (component_ref_field_offset): Likewise.
24709         * tree.c (array_ref_element_size): ...here.
24710         (array_ref_low_bound): Likewise.
24711         (array_ref_up_bound): Likewise.
24712         (array_at_struct_end_p): Likewise.
24713         (component_ref_field_offset): Likewise.
24715 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24716             Szabolcs Nagy  <szabolcs.nagy@arm.com>
24718         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24720 2015-05-27  Jason Merrill  <jason@redhat.com>
24722         PR bootstrap/66304
24723         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24724         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24725         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24727 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
24729         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24730         is true.
24732         * statistics.c (statistics_fini_pass): Print pass name.
24734 2015-05-27  Richard Biener  <rguenther@suse.de>
24736         PR tree-optimization/66272
24737         Revert parts of
24738         2014-08-15  Richard Biener  <rguenther@suse.de>
24740         PR tree-optimization/62031
24741         * tree-data-ref.c (dr_analyze_indices): Do not set
24742         DR_UNCONSTRAINED_BASE.
24743         (dr_may_alias_p): All indirect accesses have to go the
24744         formerly DR_UNCONSTRAINED_BASE path.
24745         * tree-data-ref.h (struct indices): Remove
24746         unconstrained_base member.
24747         (DR_UNCONSTRAINED_BASE): Remove.
24749 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
24751         * dwarf2out.c: Remove block_map.
24752         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24753         (gen_lexical_block_die): Same.
24754         (dwarf2out_function_decl): Remove block_map use.
24755         (dwarf2out_c_finalize): Same.
24756         * tree-core.h (struct tree_block): Add die field.
24757         * tree.h (BLOCK_DIE): New.
24759 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24761         PR target/65358
24762         * expr.c (memory_load_overlap): New function.
24763         (emit_push_insn): When pushing partial args to the stack would
24764         clobber the register part load the overlapping part into a pseudo
24765         and put it into the hard reg after pushing.  Change return type
24766         to bool.  Add bool argument.
24767         * expr.h (emit_push_insn): Change return type to bool.
24768         Add bool argument.
24769         * calls.c (expand_call): Cancel sibcall optimization when encountering
24770         partial argument on targets with ARGS_GROW_DOWNWARD and
24771         !STACK_GROWS_DOWNWARD.
24772         (emit_library_call_value_1): Update callsite of emit_push_insn.
24773         (store_one_arg): Likewise.
24775 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
24777         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24779 2015-05-27  Martin Liska  <mliska@suse.cz>
24781         * Makefile.in: Add additional dependencies related to memory report
24782         enhancement.
24783         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24784         * bitmap.c (struct bitmap_descriptor_d): Remove.
24785         (struct loc): Likewise.
24786         (struct bitmap_desc_hasher): Likewise.
24787         (bitmap_desc_hasher::hash): Likewise.
24788         (bitmap_desc_hasher::equal): Likewise.
24789         (get_bitmap_descriptor): Likewise.
24790         (bitmap_register): User new memory descriptor API.
24791         (register_overhead): Likewise.
24792         (bitmap_find_bit): Register nsearches and search_iter statistics.
24793         (struct bitmap_output_info): Remove.
24794         (print_statistics): Likewise.
24795         (dump_bitmap_statistics): Use new memory descriptor.
24796         * bitmap.h (struct bitmap_usage): New class.
24797         * genmatch.c: Extend header file inclusion.
24798         * genpreds.c: Likewise.
24799         * ggc-common.c (struct ggc_usage): New class.
24800         (struct ggc_loc_desc_hasher): Remove.
24801         (ggc_loc_desc_hasher::hash): Likewise.
24802         (ggc_loc_desc_hasher::equal): Likewise.
24803         (struct ggc_ptr_hash_entry): Likewise.
24804         (struct ptr_hash_hasher): Likewise.
24805         (ptr_hash_hasher::hash): Likewise.
24806         (ptr_hash_hasher::equal): Likewise.
24807         (make_loc_descriptor): Likewise.
24808         (ggc_prune_ptr): Likewise.
24809         (dump_ggc_loc_statistics): Use new memory descriptor.
24810         (ggc_record_overhead): Likewise.
24811         (ggc_free_overhead): Likewise.
24812         (final_cmp_statistic): Remove.
24813         (cmp_statistic): Likewise.
24814         (ggc_add_statistics): Liekwise.
24815         (ggc_prune_overhead_list): Likewise.
24816         * hash-map-traits.h: New file.
24817         * hash-map.h (struct default_hashmap_traits): Move the traits to a
24818         separate header file.
24819         * hash-set.h: Pass memory statistics info to ctor.
24820         * hash-table.c (void dump_hash_table_loc_statistics): New function.
24821         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24822         (hash_table::~hash_table): Register memory release operation.
24823         (hash_table::alloc_entries): Handle memory allocation operation.
24824         (hash_table::expand): Likewise.
24825         * inchash.c (iterative_hash_hashval_t): Move implementation to header
24826         file.
24827         (iterative_hash_host_wide_int): Likewise.
24828         * inchash.h (class hash): Likewise.
24829         * mem-stats-traits.h: New file.
24830         * mem-stats.h: New file.
24831         (mem_location): Add new class.
24832         (mem_usage): Likewise.
24833         (mem_alloc_description): Likewise.
24834         * sese.c: Add new header file inclusision.
24835         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24836         and hash_set.
24837         * tree-sra.c: Add new header file inclusision.
24838         * vec.c (struct vec_descriptor): Remove.
24839         (hash_descriptor): Likewise.
24840         (struct vec_usage): Likewise.
24841         (struct ptr_hash_entry): Likewise.
24842         (hash_ptr): Likewise.
24843         (eq_ptr): Likewise.
24844         (vec_prefix::register_overhead): Use new memory descriptor API.
24845         (vec_prefix::release_overhead): Likewise.
24846         (add_statistics): Remove.
24847         (dump_vec_loc_statistics): Use new memory descriptor API.
24848         * vec.h (struct vec_prefix): Likewise.
24849         (va_heap::reserve): Likewise.
24850         (va_heap::release): Likewise.
24851         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24853 2015-05-27  Richard Biener  <rguenther@suse.de>
24855         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24856         earlier and remove ??? comment.
24857         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24858         and got called from loop analysis bail out.  Always pass the SLP
24859         node to the vectorizable_* functions.
24860         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24861         the premature SLP check here.
24862         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24863         detected SLP stmts.
24864         (vect_detect_hybrid_slp_1): Likewise.
24866 2015-05-26  Jeff Law  <law@redhat.com>
24868         * combine.c (find_split_point): Verify that the shift count is a
24869         constant when choosing (plus (ashift ...)) as a split point.
24871         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24872         No functional changes.
24874 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
24876         * ipa-polymorphic-call.c
24877         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24878         case when call target is already known.
24880 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
24882         PR target/65979
24883         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24884         take into account the case that operands[1] and operands[2]
24885         are the same register.
24887 2015-05-26  Michael Matz  <matz@suse.de>
24889         PR middle-end/66251
24891         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24892         stores.
24893         (vect_create_vectorized_demotion_stmts): Always set
24894         STMT_VINFO_VEC_STMT, also with SLP.
24895         (vectorizable_store): Handle strided group stores.
24897 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24899         PR target/66049
24900         * config/aarch64/aarch64.md
24901         (*adds_shift_imm_<mode>):  New pattern.
24902         (*subs_shift_imm_<mode>):  Likewise.
24903         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
24904         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24905         (*add_uxt<mode>_shift2): Likewise.
24906         (*add_uxtsi_shift2_uxtw): Likewise.
24907         (*sub_uxt<mode>_shift2): Likewise.
24908         (*sub_uxtsi_shift2_uxtw): Likewise.
24910 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
24912         * config/rs6000/constraints.md (Y, U): Use match_test.
24914 2015-05-26  Christian Bruel  <christian.bruel@st.com>
24916         PR target/52144
24917         * config/arm/arm.c (arm_option_check_internal)
24918         (arm_option_params_internal): Check opts->target_flags to set macros.
24919         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24920         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24921         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24922         (builtin_define): Replaced with def_or_undef_macro.
24923         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24924         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24925         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24926         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24927         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24928         (TARGET_ARM_FEATURE_LDREX_P)
24929         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24930         * config/arm/arm-c.c (def_or_undef_macro): New function.
24931         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24933 2015-05-26  Christian Bruel  <christian.bruel@st.com>
24935         * c-common.h (builtin_define_with_int_value)
24936         (builtin_define_type_sizeof): Declare.
24937         * c-cppbuiltin.c (builtin_define_with_int_value)
24938         (builtin_define_type_sizeof): Externalize.
24939         (builtin_define_std): Cleanup declaration.
24940         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24941         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24942         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24943         (builtin_define, builtin_assert): New macros.
24945 2015-05-26  Richard Biener  <rguenther@suse.de>
24947         PR tree-optimization/66142
24948         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24949         MEM_REFs for the same base address.
24951 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24953         PR ipa/66181
24954         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24956 2015-05-26  Jason Merrill  <jason@redhat.com>
24958         * configure.ac: Set CXXFLAGS for ISL test.
24959         * configure: Regenerate.
24961         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
24962         strstr and basename.
24963         * configure: Regenerate.
24965 2015-05-26  Richard Biener  <rguenther@suse.de>
24967         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24968         X % C -> X & (C - 1) for C being a power-of two to ...
24969         * match.pd: ... patterns.
24971 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
24973         * match.pd (swapped_tcc_comparison): New operator list.
24974         (-A CMP -B): New simplification.
24975         * fold-const.c (fold_comparison): Remove corresponding code.
24977 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
24979         * caller-save.c (init_caller_save): Base temporary register numbers
24980         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24981         * cfgloopanal.c (init_set_costs): Likewise.
24982         * dojump.c (prefer_and_bit_test): Likewise.
24983         * expr.c (init_expr_target): Likewise.
24984         * ira.c (setup_prohibited_mode_move_regs): Likewise.
24985         * lower-subreg.c (init_lower_subreg): Likewise.
24986         * postreload.c (reload_cse_regs_1): Likewise.
24988 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
24990         * gensupport.h (compute_test_codes): Declare.
24991         * gensupport.c (compute_predicate_codes): Rename to...
24992         (compute_test_codes): ...this.  Generalize error message.
24993         (process_define_predicate): Update accordingly.
24994         * genpreds.c (compute_maybe_allows): Delete.
24995         (add_constraint): Use compute_test_codes to determine whether
24996         something can accept a SUBREG, REG or MEM.
24998 2015-05-26  Torvald Riegel  <triegel@redhat.com>
25000         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25001         'memory model' to align with C++11; fix description of memory orders;
25002         fix a few typos.
25004 2015-05-26  Richard Biener  <rguenther@suse.de>
25006         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25007         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
25008         detect whether we apply SLP.  Remove call to
25009         vect_update_slp_costs_according_to_vf.
25010         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25011         vect_update_slp_costs_according_to_vf from here.  Dispatch
25012         to vect_slp_analyze_operations to analyze SLP stmts.
25013         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25014         unused bb_vec_info parameter, adjust assert.
25015         (vect_slp_analyze_operations): Pass in the slp instance tree
25016         instead of bb_vec_info.
25017         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25018         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25020 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
25022         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25023         Q_REGS.  Expand comment.
25024         (REG_CLASS_NAMES): Ditto.
25025         (REG_CLASS_CONTENTS): Ditto.
25027 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
25029         PR target/66274
25030         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25031         when LEGACY_INT_REGNO_P is processed.
25033 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
25035         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25037 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
25039         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25040         register if not marked dead/unused, before return.
25042 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25044         PR lto/66180
25045         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25046         is set; check for assembler name at LTO time.
25047         (type_in_anonymous_namespace): Remove hacks, check that all
25048         anonymous types are called "<anon>"
25049         (odr_type_p): Simplify; add check for "<anon>"
25050         (odr_subtypes_equivalent): Add odr_type_p check.
25051         * tree.c (need_assembler_name_p): Even anonymous namespace needs
25052         assembler name.
25054 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25056         * ipa-utils.h (method_class_type): Remove.
25057         * cgraphunit.c (walk_polymorphic_call_targets): Use
25058         TYPE_METHOD_BASETYPE.
25059         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25060         on main variants only.
25061         (method_class_type): Remove.
25062         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25063         (build_type_inheritance_graph): Likewise.
25064         * ipa-icf.c (sem_function::equals_wpa): Likewise.
25065         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25066         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25068 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
25070         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25071         is_typedef_decl, typedef_variant_p): Constify.
25072         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25073         is_typedef_decl, typedef_variant_p): Constify.
25075 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25077         * defaults.h (gen_tablejump): New function.
25078         (HAVE_tablejump): Add default value.
25079         * expr.c: Adjust.
25080         * stmt.c: Likewise.
25082 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25084         * defaults.h (gen_store_multiple): New function.
25085         (HAVE_store_multiple): Add default value.
25086         * expr.c (move_block_from_reg): Adjust.
25088 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25090         * defaults.h (gen_load_multiple): New function.
25091         (HAVE_load_multiple): Add default value.
25092         * expr.c (move_block_to_reg): Adjust.
25094 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25096         * defaults.h (gen_mem_signal_fence): New function.
25097         (HAVE_mem_signal_fence): Add default value.
25098         * optabs.c: Adjust.
25100 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25102         * defaults.h (gen_memory_barrier): New function.
25103         (HAVE_memory_barrier): Add default value.
25104         * optabs.c: Adjust.
25106 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25108         * defaults.h (gen_mem_thread_fence): New function.
25109         (HAVE_mem_thread_fence): Add default definition.
25110         * optabs.c: Adjust.
25112 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25114         * combine.c (find_split_point): Check the value of HAVE_lo_sum
25115         instead of if it is defined.
25116         (combine_simplify_rtx): Likewise.
25117         * lra-constraints.c (process_address_1): Likewise.
25118         * config/darwin.c: Adjust.
25119         * genconfig.c (main): Always define HAVE_lo_sum.
25121 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25123         * genmatch.c (parser::parse_operation): Reject expanding
25124         operator-list inside 'for'.
25126 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25128         * genmatch.c (parser::parse_for): Reject iterator if used as
25129         operator-list.
25131 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25133         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25134         after end of id-list.
25136 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
25138         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25139         we do not try to compute canonical type for type that does not need
25140         alias set.
25141         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25142         FUNCITON_TYPE.
25143         * tree.h (type_with_alias_set_p): New.
25145 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
25147         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
25148         function attributes.
25149         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25151 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
25153         * Makefile.in (check_gcc_parallelize): Delete.
25154         (lang_checks_parallelized): Update comment.
25156 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
25158         PR rtl-optimization/66237
25159         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25160         location of an "as_a" cast.
25162 2015-05-22  Jeff Law  <law@redhat.com>
25164         * config/pa/pa.md (non-canonical shift-add insns): Remove.
25165         (peepholes with non-canonical RTL sources): Remove.
25166         (peepholes for indexed stores of FP regs in integer modes): Match and
25167         generate canonical RTL.
25169 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25171         PR tree-optimization/63387
25172         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25173         ((x ord x) & (y ord y) -> (x ord y),
25174         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25175         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25176         vectors like scalars.
25178 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25180         * convert.c (convert_to_integer, convert_to_vector): Include the
25181         types in the error message.
25183 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
25185         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25186         simplifications.
25188 2015-05-22  Jeff Law  <law@redhat.com>
25190         * config/pa/pa.md (integer_indexed_store splitters): Use
25191         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
25192         insns -- adjusting the constant 2nd operand accordingly.
25194         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25195         (plus (ashift X log2) Y) if it is a split point.
25197         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25198         out of hppa_legitimize_address to handle both forms of a multiply
25199         by 2, 4 or 8.
25200         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25201         Always generate the ASHIFT variant as the result is not directly
25202         used in a MEM.  Update comments and refactor slightly to improve
25203         readability.
25205 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25207         PR target/65491
25208         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25209         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
25210         (aarch64_composite_type_p): Return false if given type and mode are
25211         for a short vector.
25213 2015-05-22  Richard Biener  <rguenther@suse.de>
25215         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25216         member.
25217         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25218         patterns when determining whether SLP is pure.
25219         (vect_is_slp_reduction): Remove check for pattern stmts.
25220         (vect_is_simple_reduction_1): Remove dead code.
25221         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25222         (vect_get_and_check_slp_defs): Pass in the stmt number.
25223         Allow the first def in a reduction to be not a pattern stmt when
25224         the rest of the stmts def are patterns.
25225         (vect_build_slp_tree_1): Allow tcc_expression codes like
25226         SAD_EXPR and DOT_PROD_EXPR.
25227         (vect_build_slp_tree): Adjust.
25228         (vect_analyze_slp): Refactor and move BB vect error message ...
25229         (vect_slp_analyze_bb_1): ... here.
25231 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
25233         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25234         for CSWTCH temporary.
25236 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25238         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25239         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
25240         unknown unspecs.
25242 2015-05-22  Richard Biener  <rguenther@suse.de>
25244         PR tree-optimization/66251
25245         * tree-vect-stmts.c (vectorizable_conversion): Properly
25246         set STMT_VINFO_VEC_STMT even for the SLP case.
25248 2015-05-22  Marek Polacek  <polacek@redhat.com>
25250         * doc/extend.texi: Use @pxref instead of @xref.
25252 2015-05-22  hiraditya  <hiraditya@msn.com>
25254         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25255         redundant if.
25257 2015-05-22  Richard Biener  <rguenther@suse.de>
25259         PR tree-optimization/65701
25260         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25261         Move peeling cost models into one place.  Peel for alignment
25262         for single loads only if an aligned load is cheaper than
25263         an unaligned load.
25265 2015-05-22  Marek Polacek  <polacek@redhat.com>
25267         PR c/47043
25268         * doc/extend.texi (Enumerator Attributes): New section.
25269         Document syntax of enumerator attributes.
25271 2015-05-22  Richard Biener  <rguenther@suse.de>
25273         * tree-vect-loop.c (get_reduction_op): New function.
25274         (vect_model_reduction_cost): Use it, add reduc_index parameter.
25275         Make ready for BB reductions.
25276         (vect_create_epilog_for_reduction): Use get_reduction_op.
25277         (vectorizable_reduction): Init reduc_index to a valid value.
25278         Adjust vect_model_reduction_cost call.
25279         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25280         operand for reduction defaults.  Add SAD_EXPR support.
25281         Assert we have a neutral op for SLP reductions.
25282         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25283         walking pattern stmt ops only recurse to SSA names.
25285 2015-05-22  Richard Biener  <rguenther@suse.de>
25287         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25288         assert with guard, remove check on detected reduction.
25289         (vect_recog_sad_pattern): Likewise.
25290         (vect_recog_widen_sum_pattern): Likewise.
25292 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25294         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25295         __always_inline__ attribute.
25296         (vaesdq_u8): Likewise.
25297         (vaesmcq_u8): Likewise.
25298         (vaesimcq_u8): Likewise.
25299         (vsha1cq_u32): Likewise.
25300         (vsha1mq_u32): Likewise.
25301         (vsha1pq_u32): Likewise.
25302         (vsha1h_u32): Likewise.
25303         (vsha1su0q_u32): Likewise.
25304         (vsha1su1q_u32): Likewise.
25305         (vsha256hq_u32): Likewise.
25306         (vsha256h2q_u32): Likewise.
25307         (vsha256su0q_u32): Likewise.
25308         (vsha256su1q_u32): Likewise.
25309         (vmull_p64): Likewise.
25310         (vmull_high_p64): Likewise.
25312 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25314         * final.c (final_scan_insn): Don't check HAVE_peephole with the
25315         preprocessor.
25316         * output.h: Likewise.
25317         * genconfig.c (main): Alwways define HAVE_peephole.
25318         * genpeep.c: Don't emit checks of HAVE_peephole.
25320 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25322         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25323         check HAVE_conditional_move with the preprocessor.
25325 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25327         * genconfig.c (main): Always define HAVE_conditional_move.
25328         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25329         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25330         is defined.
25332 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25334         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25335         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25336         and FRAME_POINTER_REGNUM with the preprocessor.
25338 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25340         * defaults.h: Add default for STACK_PUSH_CODE.
25341         * expr.c: Don't redefine STACK_PUSH_CODE.
25342         * recog.c: Likewise.
25344 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25346         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25347         sched-deps.c: Use if instead of preprocessor checks with
25348         STACK_GROWS_DOWNWARD.
25350 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25352         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25353         is defined.
25354         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25355         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25356         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25357         * doc/tm.texi: Regenerate.
25359 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
25361         PR target/66232
25362         * config/i386/constraints.md (Bg): New constraint for GOT memory
25363         operand.
25364         * config/i386/i386.md (*call_got_x32): New pattern.
25365         (*call_value_got_x32): Likewise.
25366         * config/i386/predicates.md (GOT_memory_operand): New predicate.
25368 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
25370         PR tree-optimization/66233
25371         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25372         Simplify.
25374 2015-05-21  Jeff Law  <law@redhat.com>
25376         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25377         than MULT for shadd sequences.
25379 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
25381         * alias.c (alias_stats): New static var.
25382         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25383         (dump_alias_stats_in_alias_c): New function.
25384         * alias.h (dump_alias_stats_in_alias_c): Declare.
25385         * tree-ssa-alias.c (dump_alias_stats): Call it.
25387 2015-05-08  Michael Matz  <matz@suse.de>
25389         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25390         to strided_p.
25391         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25392         (STMT_VINFO_STRIDED_P): ... this.
25393         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25394         (vect_verify_datarefs_alignment): Likewise.
25395         (vect_enhance_data_refs_alignment): Likewise.
25396         (vect_analyze_data_ref_access): Likewise.
25397         (vect_analyze_data_refs): Accept strided stores.
25398         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25399         (vect_model_load_cost): Adjust for macro rename.
25400         (vectorizable_mask_load_store): Likewise.
25401         (vectorizable_load): Likewise.
25402         (vectorizable_store): Open code strided stores.
25404 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25406         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25407         Document sqrt_insn.
25409 2015-05-21  Richard Biener  <rguenther@suse.de>
25411         PR c++/66211
25412         * match.pd: Guard pattern optimzing (int)(float)int
25413         conversions to apply only on GIMPLE.
25415 2015-05-21  Jeff Law  <law@redhat.com>
25417         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25418         multiply-accumulate/shift-add insn generation.
25420 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
25422         PR target/54236
25423         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25424         operands[1] are the same.
25426 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
25428         PR middle-end/66221
25429         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25430         build_distinct_type_copy to copy bounds.
25432 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
25434         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25435         Change to unsigned int.
25437 2015-05-20  Jeff Law  <law@redhat.com>
25439         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25440         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25441         (pa_shadd_constant_p): Allow constants for shadd insns rather
25442         than valid scaling constants for memory addresses.
25443         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25444         * config/pa/predicates.md (mem_shadd_operand): New predicate.
25445         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25446         (shift-add insns using ASHIFT): New patterns.
25448 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
25450         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25451         feasible.
25452         (fix_up_fall_thru_edges): Likewise.
25453         (fix_crossing_conditional_branches): Likewise. Promote jump targets
25454         from to rtx_insn to rtx_code_label where feasible.
25455         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25456         gen_move_insn (returned type changed to rtx_insn).
25457         * builtins.c (expand_errno_check): Fix arguments of
25458         do_compare_rtx_and_jump (now expects rtx_code_label).
25459         (expand_builtin_acc_on_device): Likewise.
25460         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25461         invert_jump (now exprects rtx_jump_insn).
25462         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25463         (construct_init_block): Use rtx_code_label.
25464         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25465         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25466         calling redirect_jump.
25467         (patch_jump_insn): Likewise.
25468         (redirect_branch_edge): Likewise.
25469         (force_nonfallthru_and_redirect): Likewise.
25470         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25471         when suitable.
25472         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25473         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25474         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25475         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25476         to store the value retured by gen_label_rtx.
25477         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25478         rtx_jump_insn.
25479         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25480         (split_branches): Fix calls of redirect_jump.
25481         * dojump.c (jumpifnot): Promote argument type from rtx to
25482         rtx_code_label.
25483         (jumpifnot_1): Likewise.
25484         (jumpif): Likewise.
25485         (jumpif_1): Likewise.
25486         (do_jump_1): Likewise.
25487         (do_jump): Likewise. Use rtx_code_label when feasible.
25488         (do_jump_by_parts_greater_rtx): Likewise.
25489         (do_jump_by_parts_zero_rtx): Likewise.
25490         (do_jump_by_parts_equality_rtx): Likewise.
25491         (do_compare_rtx_and_jump): Likewise.
25492         * dojump.h: Update function prototypes.
25493         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25494         returns rtx_insn).
25495         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25496         rtx_jump_insn.
25497         (emit_label_before): Likewise.
25498         (emit_jump_insn_after_noloc): Likewise.
25499         (emit_jump_insn_after_setloc): Likewise.
25500         (emit_jump_insn_after): Likewise
25501         (emit_jump_insn_before_setloc): Likewise.
25502         (emit_jump_insn_before): Likewise.
25503         (emit_label_before): Promote return type to rtx_code_label.
25504         (emit_label): Likewise.
25505         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25506         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25507         gen_move_insn.
25508         (emit_stack_restore): Likewise.
25509         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25510         (do_cmp_and_jump): Likewise.
25511         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25512         from rtx to rtx_code_label.
25513         (gen_move_insn_uncast): New function.
25514         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25515         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25516         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25517         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25518         invert_jump_1 and redirect_jump_1.
25519         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25520         do_compare_rtx_and_jump.
25521         (expand_addsub_overflow): Likewise.
25522         (expand_neg_overflow): Likewise.
25523         (expand_mul_overflow): Likewise.
25524         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25525         return value of gen_move_insn.
25526         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25527         * loop-doloop.c (add_test): Use rtx_code_label.
25528         (doloop_modify): Likewise.
25529         (doloop_optimize): Likewise.
25530         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25531         * lra-constraints.c (emit_spill_move): Remove cast of value returned
25532         by gen_move_insn.
25533         (inherit_reload_reg): Add cast when calling dump_insn_slim.
25534         (split_reg): Likewise.
25535         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25536         gen_move_insn.
25537         * optabs.c (expand_binop_directly): Remove casts of values returned by
25538         maybe_gen_insn.
25539         (expand_unop_direct): Likewise.
25540         (expand_abs): Likewise.
25541         (maybe_emit_unop_insn): Likewise.
25542         (maybe_gen_insn): Promote return type to rtx_insn.
25543         * optabs.h: Update prototype of maybe_gen_insn.
25544         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25545         redundant cast.
25546         * recog.c (struct peep2_insn_data): Promote type of insn field to
25547         rtx_insn.
25548         (peep2_reinit_state): Use NULL instead of NULL_RTX.
25549         (peep2_attempt): Remove casts of insn in peep2_insn_data.
25550         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25551         * recog.h (struct insn_gen_fn): Promote return types of function
25552         pointers and operator ().from rtx to rtx_insn.
25553         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25554         (fill_eager_delay_slots): Likewise.
25555         (relax_delay_slots): Likewise.
25556         (make_return_insns): Likewise.
25557         (dbr_schedule): Likewise.
25558         (optimize_skips): Likewise.
25559         (reorg_redirect_jump): Likewise.
25560         (fill_slots_from_thread): Likewise.
25561         * reorg.h: Update prototypes.
25562         * resource.c (find_dead_or_set_registers): Use dyn_cast to
25563         rtx_jump_insn instead of check.  Use it's jump_target method.
25564         * rtl.h (rtx_jump_insn::jump_label): Define new method.
25565         (rtx_jump_insn::jump_target): Define new method.
25566         (rtx_jump_insn::set_jump_target): Define new method.
25567         * rtlanal.c (tablejump_p): Promote type of one local variable.
25568         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25569         (sched_analyze_insn): Likewise.
25570         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25571         (print_insn): Likewise.
25572         * stmt.c (label_rtx): Promote return type to rtx_insn.
25573         (force_label_rtx): Likewise.
25574         (jump_target_rtx): Define new function.
25575         (expand_label): Use it, get rid of one cast.
25576         (expand_naked_return): Promote rtx to rtx_code_label.
25577         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25578         (expand_case): Use rtx_code_label instread of rtx where feasible.
25579         (expand_sjlj_dispatch_table): Likewise.
25580         (emit_case_nodes): Likewise.
25581         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
25582         * store-motion.c (insert_store): Make use of new return type of
25583         gen_move_insn and remove a cast.
25584         (replace_store_insn): Likewise.
25586 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
25588         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25589         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25591 2015-05-20  Jeff Law  <law@redhat.com>
25593         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25594         dispose of the jump thread path when the jump threading
25595         opportunity is cancelled.
25597 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25599         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25600         when printing the caret character.
25602 2015-05-20  Marek Polacek  <polacek@redhat.com>
25604         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25606 2015-05-20  Marek Polacek  <polacek@redhat.com>
25608         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25609         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25610         * gimple-fold.c (canonicalize_bool): Likewise.
25611         (same_bool_result_p): Likewise.
25612         * tree-if-conv.c (parse_predicate): Likewise.
25614 2015-05-20  Marek Polacek  <polacek@redhat.com>
25616         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25617         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25619 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25621         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25622         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25623         values.
25625 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
25627         * config/mips/mips.h (micromips_globals): Declare.
25629 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
25631         * timevar.def (TV_INITIALIZE_RTL): New.
25632         * toplev.c (initialize_rtl): Use an auto_timevar to account this
25633         function's time to TV_INITIALIZE_RTL.
25635 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
25637         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25638         gimple_build_nop calls.
25639         (chkp_find_bounds_for_elem): Likewise.
25640         (chkp_get_zero_bounds): Likewise.
25641         (chkp_get_none_bounds): Likewise.
25642         (chkp_get_bounds_by_definition): Likewise.
25643         (chkp_generate_extern_var_bounds): Likewise.
25644         (chkp_get_bounds_for_decl_addr): Likewise.
25645         (chkp_get_bounds_for_string_cst): Likewise.
25647 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
25649         PR tree-optimization/65447
25650         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25651         (dump_use, dump_uses): Support to dump sub use.
25652         (record_use): New parameters to support sub use.  Remove call to
25653         dump_use.
25654         (record_sub_use, record_group_use): New functions.
25655         (compute_max_addr_offset, split_all_small_groups): New functions.
25656         (group_address_uses, rewrite_use_address): New functions.
25657         (strip_offset): New declaration.
25658         (find_interesting_uses_address): Call record_group_use.
25659         (add_candidate): New assertion.
25660         (infinite_cost_p): Move definition forward.
25661         (add_costs): Check INFTY cost and return immediately.
25662         (get_computation_cost_at): Clear setup cost and dependent bitmap
25663         for sub uses.
25664         (determine_use_iv_cost_address): Compute cost for sub uses.
25665         (rewrite_use_address_1): Rename from old rewrite_use_address.
25666         (free_loop_data): Free sub uses.
25667         (tree_ssa_iv_optimize_loop): Call group_address_uses.
25669 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25670             Jim Wilson  <jim.wilson@linaro.org>
25672         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25673         new  fields loadv and storev.
25674         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25675         Initialize loadv and storev.
25676         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25677         (cortexa53_extra_costs): Likewise.
25678         (cortexa57_extra_costs): Likewise.
25679         (xgene1_extra_costs): Likewise.
25680         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25681         rtx_costs.
25683 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
25685         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25686          storev.
25687         (cortexa8_extra_costs): Likewise.
25688         (cortexa5_extra_costs): Likewise.
25689         (cortexa7_extra_costs): Likewise.
25690         (cortexa12_extra_costs): Likewise.
25691         (cortexa15_extra_costs): Likewise.
25692         (v7m_extra_costs): Likewise.
25694 2015-05-20  Jeff Law  <law@redhat.com>
25696         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25697         instead of open-coded version.  Also delete the jump thread created
25698         within this function.
25700 2015-05-20  Alan Modra  <amodra@gmail.com>
25702         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25703         stack adjusting insn.  Formatting.
25704         (rs6000_emit_prologue): Track stack adjusting insn, and use of
25705         r12.  If possible, emit first -fsplit-stack arg pointer insn
25706         before stack adjust.  Don't use r12 to save cr if split-stack.
25708 2015-05-20  Alan Modra  <amodra@gmail.com>
25710         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25711         Define.
25712         (rs6000_supports_split_stack): New function.
25713         * config/rs6000/rs6000.c (machine_function): Add
25714         split_stack_arg_pointer.
25715         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25716         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25717         rather than virtual_incoming_args_rtx.
25718         (rs6000_va_start): Likewise.
25719         (split_stack_arg_pointer_used_p): New function.
25720         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25721         (morestack_ref): New var.
25722         (gen_add3_const, rs6000_expand_split_stack_prologue,
25723         rs6000_internal_arg_pointer, rs6000_live_on_entry,
25724         rs6000_split_stack_space_check): New functions.
25725         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25726         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25727         (UNSPECV_SPLIT_STACK_RETURN): Define.
25728         (split_stack_prologue, load_split_stack_limit,
25729         load_split_stack_limit_di, load_split_stack_limit_si,
25730         split_stack_return, split_stack_space_check): New expands and insns.
25731         * config/rs6000/rs6000-protos.h
25732         (rs6000_expand_split_stack_prologue): Declare.
25733         (rs6000_split_stack_space_check): Declare.
25735 2015-05-20  Alan Modra  <amodra@gmail.com>
25737         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25738         (direct_return): Test vrsave_size rather than vrsave_mask.
25739         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
25740         (rs6000_emit_epilogue): Likewise.
25742 2015-05-20  Alan Modra  <amodra@gmail.com>
25744         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25745         when not saving registers.
25746         (debug_stack_info): Adjust to omit printing unused offsets,
25747         as before.
25748         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25749         expression.
25751 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25753         PR c++/65835
25754         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25755         value_type to const char *.
25757 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
25759         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25760         to build a biarch toolchain again.
25762 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25764         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25765         or implicit declarations.
25766         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25767         into it.
25768         (get_odr_type): Check type has linkage before adding bases.
25769         (register_odr_type): Check that type has linkage before adding it.
25770         (type_known_to_have_no_deriavations_p): Rename to ..
25771         (type_known_to_have_no_derivations_p): This one.
25772         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25773         (type_known_to_have_no_derivations_p): This one.
25774         * ipa-polymorphic-call.c
25775         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25776         type has linkage.
25778 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25780         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25781         (layout_type): Use RECORD_OR_UNION_TYPE_P.
25783 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25785         * config/s390/s390.c (s390_vector_bool_type_p): New function.
25786         (s390_invalid_binary_op): New function.
25787         (TARGET_INVALID_BINARY_OP): Define macro.
25789 2015-05-19  David Sherwood  <david.sherwood@arm.com>
25791         * loop-invariant.c (create_new_invariant): Don't calculate address cost
25792         if mode is not a scalar integer.
25793         (get_inv_cost): Increase computational cost for unused invariants.
25795 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25797         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
25798         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
25799         * config/s390/s390-builtin-types.def: New file.
25800         * config/s390/s390-builtins.def: New file.
25801         * config/s390/s390-builtins.h: New file.
25802         * config/s390/s390-c.c: New file.
25803         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25804         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25805         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25806         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25807         prototypes.
25808         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25809         Include.
25810         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25811         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25812         variable definitions.
25813         (s390_const_operand_ok): New function.
25814         (s390_expand_builtin): Rewrite.
25815         (s390_init_builtins): New function.
25816         (s390_handle_vectorbool_attribute): New function.
25817         (s390_attribute_table): Add s390_vector_bool attribute.
25818         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25819         (s390_branch_condition_mask): Generate masks for new modes.
25820         (s390_expand_vec_compare_cc): New function.
25821         (s390_mangle_type): Add mangling for vector bool types.
25822         (enum s390_builtin): Remove.
25823         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25824         efpc builtins.
25825         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25826         s390_cpu_cpp_builtins.
25827         (REGISTER_TARGET_PRAGMAS): New macro.
25828         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25829         (insn_cmp mode attribute): Add new CC modes.
25830         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25831         (lcbb): New pattern definition.
25832         * config/s390/s390intrin.h: Include vecintrin.h.
25833         * config/s390/t-s390: New file.
25834         * config/s390/vecintrin.h: New file.
25835         * config/s390/vector.md: Include vx-builtins.md.
25836         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25837         support.
25839 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25841         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25842         CCVFHE.
25843         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25844         (s390_select_ccmode): Likewise.
25845         (s390_canonicalize_comparison): Swap operands if necessary.
25846         (s390_expand_vec_compare_scalar): Expand DFmode compare using
25847         single element vector instructions.
25848         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25849         (s390_branch_condition_mask): Generate CC masks for the new modes.
25850         * config/s390/s390.md (v0, vf, vd): New mode attributes.
25851         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25852         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25853         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25854         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25855         (*extend<DSF:mode><BFP:mode>2): New insn definition.
25856         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25857         (extend<DSF:mode><BFP:mode>2): Turn into expander.
25858         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25859         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25860         (sqrt<mode>2): Add vector instruction.
25862 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25864         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
25865         constraints.
25866         * config/s390/predicates.md (const0_operand, constm1_operand)
25867         (constable_operand): Accept vector operands.
25868         * config/s390/s390-modes.def: Add supported vector modes.
25869         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25870         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25871         (s390_bytemask_vector_p, s390_expand_vec_strlen)
25872         (s390_expand_vec_compare, s390_expand_vcond)
25873         (s390_expand_vec_init): Add prototypes.
25874         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25875         (s390_vector_mode_supported_p): New function.
25876         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25877         (s390_contiguous_bitmask_vector_p): New function.
25878         (s390_bytemask_vector_p): New function.
25879         (s390_split_ok_p): Vector regs don't work either.
25880         (regclass_map): Add VEC_REGS.
25881         (s390_legitimate_constant_p): Handle vector constants.
25882         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25883         (legitimate_reload_vector_constant_p): New function.
25884         (s390_preferred_reload_class): Handle CONST_VECTOR.
25885         (s390_reload_symref_address):  Likewise.
25886         (s390_secondary_reload): Vector memory instructions only support
25887         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
25888         (s390_emit_ccraw_jump): New function.
25889         (s390_expand_vec_strlen): New function.
25890         (s390_expand_vec_compare): New function.
25891         (s390_expand_vcond): New function.
25892         (s390_expand_vec_init): New function.
25893         (s390_dwarf_frame_reg_mode): New function.
25894         (print_operand): Handle addresses with 'O' and 'R' constraints.
25895         (NR_C_MODES, constant_modes): Add vector modes.
25896         (s390_output_pool_entry): Handle vector constants.
25897         (s390_hard_regno_mode_ok): Handle vector registers.
25898         (s390_class_max_nregs): Likewise.
25899         (s390_cannot_change_mode_class): New function.
25900         (s390_invalid_arg_for_unprototyped_fn): New function.
25901         (s390_function_arg_vector): New function.
25902         (s390_function_arg_float): Remove size variable.
25903         (s390_pass_by_reference): Handle vector arguments.
25904         (s390_function_arg_advance): Likewise.
25905         (s390_function_arg): Likewise.
25906         (s390_return_in_memory): Vector values are returned in a VR if
25907         possible.
25908         (s390_function_and_libcall_value): Handle vector arguments.
25909         (s390_gimplify_va_arg): Likewise.
25910         (s390_call_saved_register_used): Consider the arguments named.
25911         (s390_conditional_register_usage): Disable v16-v31 for non-vec
25912         targets.
25913         (s390_preferred_simd_mode): New function.
25914         (s390_support_vector_misalignment): New function.
25915         (s390_vector_alignment): New function.
25916         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25917         (TARGET_VECTOR_MODE_SUPPORTED_P)
25918         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25919         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25920         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25921         (TARGET_VECTOR_ALIGNMENT): Define target macro.
25922         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25923         (FIRST_PSEUDO_REGISTER): Increase value.
25924         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25925         (VECTOR_REG_P): Define macros.
25926         (FIXED_REGISTERS, CALL_USED_REGISTERS)
25927         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25928         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25929         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25930         Add vector registers.
25931         (CANNOT_CHANGE_MODE_CLASS): Call C function.
25932         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25933         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25934         memory.
25935         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25936         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25937         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25938         (VR*_REGNUM): New constants.
25939         (ALL): New mode iterator.
25940         (INTALL): Remove mode iterator.
25941         Include vector.md.
25942         (movti): Implement TImode moves for VRs.
25943         Disable TImode splitter for VR targets.
25944         Implement splitting TImode GPR<->VR moves.
25945         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25946         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25947         reload<mode>_la_in, reload<mode>_la_out.
25948         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25949         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25950         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25951         (mov<mode> SF SD): Prefer lder, lde for loading.
25952         Add lrl and strl instructions.
25953         Add vector instructions.
25954         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25955         Call s390_expand_vec_strlen on z13.
25956         (*cc_to_int): Change predicate to nonimmediate_operand.
25957         (addti3): Rename to *addti3.  New expander.
25958         (subti3): Rename to *subti3.  New expander.
25959         * config/s390/vector.md: New file.
25961 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25963         * common/config/s390/s390-common.c (processor_flags_table): Add
25964         z13.
25965         * config.gcc: Add z13.
25966         * config/s390/s390-opts.h (enum processor_type): Add
25967         PROCESSOR_2964_Z13.
25968         * config/s390/s390.c (s390_adjust_priority): Check for
25969         PROCESSOR_2964_Z13.
25970         (s390_reorg): Likewise.
25971         (s390_sched_reorder): Likewise.
25972         (s390_sched_variable_issue): Likewise.
25973         (s390_loop_unroll_adjust): Likewise.
25974         (s390_option_override): Likewise. Default to -mvx when available.
25975         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25976         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25977         (TARGET_VX_ABI): Define macros.
25978         macros.
25979         (TARGET_DEFAULT): Add MASK_OPT_VX.
25980         * config/s390/s390.md ("cpu" attribute): Add z13.
25981         ("cpu_facility" attribute): Add vec.
25982         * config/s390/s390.opt (processor_type): Add z13.
25983         (mvx): New options.
25984         * doc/invoke.texi: Add z13 option for -march.
25986 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25988         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25989         mode check to make sure that only scalar integer values are
25990         accepted.
25992 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
25994         * tree.c (verify_type_variant): Fix #undef.
25995         (gimple_canonical_types_compatible_p): Move here from lto.c
25996         (verify_type): Verify TYPE_CANONICAL compatibility.
25997         * tree.h (gimple_canonical_types_compatible_p): Declare.
25999 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
26001         PR middle-end/66199
26002         * tree.h (OMP_TEAMS_COMBINED): Define.
26003         * gimplify.c (enum gimplify_omp_var_data): Add
26004         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26005         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26006         (omp_notice_variable): Accept both ORT_TEAMS
26007         and ORT_COMBINED_TEAMS.  Don't recurse if
26008         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26009         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26010         GOVD_FIRSTPRIVATE.
26011         (omp_no_lastprivate): New function.
26012         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26013         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26014         notice_outer and set appropriate bits, otherwise make
26015         sure default(none) combined constructs won't complain.
26016         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26017         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26018         omp_no_lastprivate either remove the clause or turn it
26019         into OMP_CLAUSE_PRIVATE.
26020         (gimplify_omp_for): Fix up handling of implicit
26021         lastprivate or linear iterators.
26022         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26023         ORT_COMBINED_TEAMS.
26024         * omp-low.c (lower_omp_for_lastprivate): For combined
26025         for simd use fd.loop.n2 from the for rather than simd.
26027 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26029         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26030         instead of gen_rtx_raw_REG.
26031         (cris_expand_epilogue): Likewise.
26032         * config/microblaze/microblaze.c (microblaze_classify_address):
26033         Likewise.
26034         * config/sparc/sparc.md: Likewise.
26036 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
26038         * config/alpha/alpha.c (alpha_legitimize_reload_address)
26039         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26040         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26041         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26042         Use CASE_CONST_SCALAR_INT.
26043         (print_operand) <case 'M'>: Use mode_width_operand to check the
26044         value of the constant.
26045         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26046         * config/alpha/predicates.md (input_operand): Use general_operand
26047         instead of match_code as operand check.
26048         (symbolic_operand): Use match_code with subexpression digits.
26049         * config/alpha/constraints.md (Q): Ditto.
26051 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26053         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26055 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26057         * config/s390/s390.c (s390_secondary_reload): Fix check for
26058         load/store relative.
26060 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26062         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
26063         alternative_mask to uint64_t.
26065 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
26067         PR tree-optimization/66187
26068         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26069         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
26070         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26072 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
26074         * diagnostic.c (diagnostic_report_current_module): Strengthen
26075         local "new_map" from const line_map * to
26076         const line_map_ordinary *.
26077         * genmatch.c (error_cb): Likewise for local "map".
26078         (output_line_directive): Likewise for local "map".
26079         * input.c (expand_location_1): Likewise for local "map".
26080         Pass NULL rather than &map to
26081         linemap_unwind_to_first_non_reserved_loc, since the value is never
26082         read from there, and the value written back not read from here.
26083         (is_location_from_builtin_token): Strengthen local "map" from
26084         const line_map * to const line_map_ordinary *.
26085         (dump_location_info): Strengthen locals "map" from
26086         line_map *, one to const line_map_ordinary *, the other
26087         to const line_map_macro *.
26088         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26089         const line_map * to const line_map_macro *.
26090         (maybe_unwind_expanded_macro_loc): Add a call to
26091         linemap_check_macro when writing to the "map" field of the
26092         loc_map_pair.
26093         Introduce local const line_map_ordinary * "ord_map", using it in
26094         place of "map" in the part of the function where we know we have
26095         an ordinary map.  Strengthen local "m" from const line_map * to
26096         const line_map_ordinary *.
26098 2015-05-19  Nick Clifton  <nickc@redhat.com>
26100         PR target/66156
26101         * config/msp430/msp430.md (zero_extendhisi2): Add support for
26102         separate source and destination registers.
26104 2015-05-19  Richard Biener  <rguenther@suse.de>
26106         PR tree-optimization/66165
26107         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26108         for no load permutation.
26110         PR tree-optimization/66185
26111         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26112         when building the SLP node from scalars.
26114 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
26115             Tristan Gingold  <gingold@adacore.com>
26117         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26118         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26119         (expand_stack_restore): Call record_new_stack_level.
26120         (expand_stack_save): Do not call do_pending_stack_adjust.
26121         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26122         * calls.c (expand_call): Call record_new_stack_level for alloca.
26123         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26124         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26125         (update_sjlj_context): New global function.
26126         * except.h (update_sjlj_context): Declare.
26127         * explow.c (record_new_stack_level): New global function.
26128         (allocate_dynamic_stack_space): Call record_new_stack_level.
26129         * explow.h (record_new_stack_level): Declare.
26130         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26131         * cfgrtl.c (duplicate_insn_chain): Likewise.
26133 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26135         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26136         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26137         STACK_GROWS_DOWNWARD as normal if.
26138         (expand_call): Likewise.
26140 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
26142         PR target/54236
26143         * config/sh/sh.md (*round_int_even): New insn_and_split and
26144         accompanying new unnamed split.
26146 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26148         * bitmap.c (bitmap_set_range): Handle count==1 specially.
26149         (bitmap_clear_range): Likewise.
26150         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26151         bitmap_set_range unconditionally.
26152         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26153         * df-scan.c (df_mark_reg): Likewise.
26154         * haifa-sched.c (setup_ref_regs): Likewise.
26155         * sched-rgn.c (update_live_1): Likewise.
26157 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26159         * regs.h (END_HARD_REGNO): Delete.
26160         (END_REGNO): Move to...
26161         * rtl.h: ...here.
26162         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26163         * caller-save.c (mark_set_regs): Likewise.
26164         * combine.c (move_deaths, distribute_notes): Likewise.
26165         * cse.c (invalidate, invalidate_for_call): Likewise.
26166         * df-scan.c (df_ref_record): Likewise.
26167         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26168         (record_last_reg_set_info): Likewise.
26169         * reg-stack.c (convert_regs_exit): Likewise.
26170         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26171         * resource.c (update_live_status): Likewise.
26172         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26174 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26176         * rtl.h (reg_info): Add an nregs field.
26177         (REG_NREGS): Use it.
26178         (SET_REGNO_RAW): Delete.
26179         (set_regno_raw): New function.
26180         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26181         (END_REGNO): Redefine in terms of REG_NREGS.
26182         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26183         SET_REGNO_RAW.
26184         * emit-rtl.c (set_mode_and_regno): Likewise.
26185         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26186         instead of SET_REGNO_RAW.
26188 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26190         * rtl.h (PUT_MODE_RAW): New macro.
26191         (PUT_REG_NOTE_KIND): Use it.
26192         (set_mode_and_regno): Declare.
26193         (gen_raw_REG): Change regno to "unsigned int".
26194         (gen_rtx_REG): Change "unsigned" to "unsigned int".
26195         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26196         use set_mode_and_regno to change the mode of registers.
26197         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26198         * emit-rtl.c (set_mode_and_regno): New function.
26199         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
26200         * caller-save.c (reg_save_code): Use set_mode_and_regno.
26201         * expr.c (init_expr_target): Likewise.
26202         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26203         * postreload.c (reload_cse_simplify_operands): Likewise.
26205 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26207         * caller-save.c (init_caller_save): Use word_mode and
26208         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26209         * expr.c (init_expr_target): Likewise.
26210         * ira.c (setup_prohibited_mode_move_regs): Likewise.
26211         * postreload.c (reload_cse_regs_1): Likewise.
26213 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26215         * rtl.def (REG): Change format to "r".
26216         * rtl.h (rtunion): Remove rt_reg.
26217         (reg_info): New structure.
26218         (rtx_def): Add reg field to main union.
26219         (X0REGATTR): Delete.
26220         (REG_CHECK): New macro.
26221         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26222         * rtl.c (rtx_format): Document "r".
26223         (rtx_code_size): Handle REG specially.
26224         * gengenrtl.c (special_format): Return true for formats
26225         that include 'r'.
26226         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26227         Deal with REG_ATTRS after the field loop.
26228         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26229         * expmed.c (init_expmed): Call gen_raw_REG instead of
26230         gen_rtx_raw_REG.
26231         * expr.c (init_expr_target): Likewise.
26232         * regcprop.c (maybe_mode_change): Likewise.
26233         * varasm.c (make_decl_rtl): Likewise.
26234         * final.c (leaf_renumber_regs_insn): Return early after
26235         handling REGs.
26236         * genemit.c (gen_exp): Handle 'r' fields.
26237         * genpeep.c (match_rtx): Likewise.
26238         * gensupport.c (subst_pattern_match): Likewise.
26239         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26240         (alter_constraints, subst_dup): Likewise.
26241         * read-rtl.c (read_rtx_code): Likewise.
26242         * print-rtl.c (print_rtx): Likewise.
26243         * genrecog.c (find_operand, find_matching_operand): Likewise.
26244         (validate_pattern, match_pattern_2): Likewise.
26245         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26246         (rtx_test::regno_field): New function.
26247         (operator ==, safe_to_hoist_p, transition_parameter_type)
26248         (parameter_type_string, print_parameter_value)
26249         (print_nonbool_test, print_test): Handle new enum values.
26250         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26251         * lra-constraints.c (operands_match_p): Likewise.
26253 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26255         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26256         Change type of new_regno to unsigned int.
26257         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26258         new_regno to unsigned int.
26259         (df_ref_change_reg_with_loc): Remove old_regno parameter.
26260         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
26261         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26262         (SET_REGNO_RAW): Add space after ",".
26264 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26266         * rtl.h (REG_NREGS): New macro
26267         * alias.c (record_set): Use it.
26268         * cfgcleanup.c (mark_effect): Likewise.
26269         * combine.c (likely_spilled_retval_1): Likewise.
26270         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26271         (move_deaths, distribute_notes): Likewise.
26272         * cselib.c (cselib_record_set): Likewise.
26273         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26274         * df-scan.c (df_mark_reg): Likewise.
26275         * dse.c (look_for_hardregs): Likewise.
26276         * dwarf2out.c (reg_loc_descriptor): Likewise.
26277         (multiple_reg_loc_descriptor): Likewise.
26278         * expr.c (write_complex_part, read_complex_part): Likewise.
26279         (emit_move_complex): Likewise.
26280         * haifa-sched.c (setup_ref_regs): Likewise.
26281         * ira-lives.c (mark_hard_reg_live): Likewise.
26282         * lra.c (lra_set_insn_recog_data): Likewise.
26283         * mode-switching.c (create_pre_exit): Likewise.
26284         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26285         (reload_combine_recognize_pattern): Likewise.
26286         (reload_combine_note_use, move2add_record_mode): Likewise.
26287         (reload_cse_move2add): Likewise.
26288         * reg-stack.c (subst_stack_regs_pat): Likewise.
26289         * regcprop.c (kill_value, copy_value): Likewise.
26290         (copyprop_hardreg_forward_1): Likewise.
26291         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26292         (build_def_use): Likewise.
26293         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26294         (deps_analyze_insn): Likewise.
26295         * sched-rgn.c (check_live_1, update_live_1): Likewise.
26296         * sel-sched.c (count_occurrences_equiv): Likewise.
26297         * valtrack.c (dead_debug_insert_temp): Likewise.
26299 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
26301         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26302         * dse.c (note_add_store): Likewise.
26303         * ira-lives.c (mark_hard_reg_dead): Likewise.
26304         * loop-invariant.c (mark_reg_store): Likewise.
26305         (mark_reg_death): Likewise.
26306         * postreload.c (reload_combine): Likewise.
26307         (reload_combine_note_store): Likewise.
26308         (reload_combine_note_use): Likewise.
26309         * recog.c (peep2_reg_dead_p): Likewise.
26311 2015-05-19  Alan Modra  <amodra@gmail.com>
26313         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26314         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26315         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26316         unused predicates.
26317         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26318         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
26319         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26320         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26322 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
26324         * config/mips/mips.md (JOIN_MODE): New mode iterator.
26325         (join2_load_Store<JOIN_MODE:mode>): New pattern.
26326         (join2_loadhi): Likewise.
26327         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26328         load-load and store-stores.
26329         * config/mips/mips.opt (mload-store-pairs): New option.
26330         (TARGET_LOAD_STORE_PAIRS): New macro.
26331         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26332         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26333         * config/mips/mips.c (mips_load_store_bonding_p): New function.
26335 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
26337         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26338         explicit swaps.
26339         * dojump.c (do_compare_rtx_and_jump): Likewise.
26340         * expmed.c (emit_store_flag_1): Likewise.
26341         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26342         * final.c (sprint_ul): Use std::reverse for reversing a string.
26343         * fold-const.c (extract_muldiv_1): Use std::swap.
26344         * genmodes.c (emit_mode_int_n): Likewise.
26345         * ifcvt.c (dead_or_predicable): Likewise.
26346         * ira-build.c (ira_merge_live_ranges): Likewise.
26347         (swap_allocno_copy_ends_if_necessary): Likewise.
26348         * ira.c (ira_setup_alts): Likewise.
26349         * loop-iv.c (iv_analyze_expr): Likewise.
26350         (implies_p): Likewise.
26351         (canon_condition): Likewise.
26352         * lra-constraints.c (swap_operands): Likewise.
26353         * lra-lives.c (lra_merge_live_ranges): Likewise.
26354         * omega.c (swap): Remove.
26355         (bswap): Remove.
26356         (omega_unprotect_1): Use std::swap.
26357         (omega_solve_geq): Likewise.
26358         * optabs.c (expand_binop_directly): Likewise.
26359         (expand_binop): Likewise.
26360         (emit_conditional_move): Likewise.
26361         (emit_conditional_add): Likewise.
26362         * postreload.c (reload_cse_simplify_operands): Likewise.
26363         * reg-stack.c (emit_swap_insn): Likewise.
26364         (swap_to_top): Likewise.
26365         (compare_for_stack_reg): Likewise.
26366         (subst_asm_stack_regs): Likewise.
26367         * reload.c (find_reloads): Likewise.
26368         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26369         * sel-sched.c (invoke_reorder_hooks): Likewise.
26370         (create_block_for_bookkeeping): Likewise.
26371         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26372         (lambda_matrix_right_hermite): Use std::swap.
26373         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26374         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26375         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26376         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26377         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26378         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26379         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26380         * tree-vrp.c (compare_ranges): Likewise.
26381         * var-tracking.c (add_with_sets): Likewise.
26382         (vt_find_locations): Likewise.
26384 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
26386         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26387         pie executables.
26388         (FBSD_ENDFILE_SPEC): Likewise.
26389         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26390         config/freebsd-spec.h.
26391         (ENDFILE_SPEC): Likewise.
26393 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
26394             Richard Henderson  <rth@redhat.com>
26396         PR target/57032
26397         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26398         Check for a memory location that is not a reference (using an AND)
26399         to an unaligned location here.
26400         * config/alpha/predicates.md (normal_memory_operand): Remove.
26402 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
26404         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26405         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26407 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
26409         * config/mips/mips.c (micromips_globals): New variable.
26410         (mips_set_compression_mode): Save and reinitialize target-dependent
26411         state for microMIPS.
26413 2015-05-18  Martin Liska  <mliska@suse.cz>
26415         * dbgcnt.def: Add new counter.
26416         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26418 2015-05-18  Martin Liska  <mliska@suse.cz>
26420         * dbgcnt.def: Sort counters.
26421         * opts.c (common_handle_option): Do not compile if
26422         -fdbg-cnt-list is enabled.
26424 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26426         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26427         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
26428         address operator to va_list operand.
26429         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26430         unconditionally.
26431         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26432         operand.
26433         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26434         * config/s390/s390.c (s390_gimplify_va_arg): Same.
26435         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26437 2015-05-18  Tom de Vries  <tom@codesourcery.com>
26439         * tree-ssa-tail-merge.c: Fix whitespace.
26441 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
26443         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26444         cortex-a17, and cortex-a17.cortex-a7.
26446 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
26448         PR target/54236
26449         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26451 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
26453         PR target/66174
26454         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26455         QImode inner modes for TARGET_AVX512BW.  Force mask operand
26456         to a register for AVX512F modes.
26458 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26460         * toplev.c (emit_debug_global_declarations): Do not output debug info
26461         when doing slim LTO objects.
26463 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26465         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26466         odr_types_equivalent_p): Declare.
26467         (odr_type_p): Use gcc_checking_assert.
26468         (type_in_anonymous_namespace_p) Declare.
26469         (type_with_linkage_p): Declare.
26470         * common.opt (Wlto-type-mismatch): New warning.
26471         * ipa-devirt.c (compound_type_base): New function.
26472         (odr_or_derived_type_p): New function.
26473         (odr_types_equivalent_p): New function.
26474         (add_type_duplicate): Simplify.
26475         (type_with_linkage_p): Add hack to prevent false positives on C types
26476         (type_in_anonymous_namespace_p): Likewise.
26477         * tree.c (need_assembler_name_p): Use type_with_linkage.
26478         * tree.h (type_in_anonymous_namespace_p): Remove.
26479         * doc/invoke.texi (-Wlto-type-mismatch): Document
26481 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
26483         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26484         (verify_type): Verify STRING_FLAG.
26486 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26488         PR fortran/44054
26489         * tree-pretty-print.c (percent_K_format): Replace locus pointer
26490         with accessor function.
26491         * tree-diagnostic.c (diagnostic_report_current_function): Use
26492         diagnostic_location function.
26493         (maybe_unwind_expanded_macro_loc): Likewise.
26494         (virt_loc_aware_diagnostic_finalizer): Likewise.
26495         (default_tree_printer): Replace locus pointer with accessor function.
26496         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26497         (diagnostic_set_info_translated): Initialize second location.
26498         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26499         (diagnostic_show_locus): Handle two locations. Call
26500         diagnostic_print_caret_line.
26501         (diagnostic_print_caret_line): New.
26502         (default_diagnostic_starter): Use diagnostic_location function.
26503         (diagnostic_report_diagnostic): Use diagnostic_location function.
26504         (verbatim): Do not set text.locus.
26505         * diagnostic.h (struct diagnostic_info): Remove location field.
26506         (struct diagnostic_context): Make caret_chars an array of two.
26507         (diagnostic_location): New inline.
26508         (diagnostic_expand_location): Handle two locations.
26509         (diagnostic_same_line): New inline.
26510         (diagnostic_print_caret_line): Declare.
26511         (CARET_LINE_MARGIN): New constant.
26512         * pretty-print.c (pp_printf): Do not set text.locus.
26513         (pp_verbatim): Do not set text.locus.
26514         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26515         (struct text_info): Replace locus pointer with locations
26516         array. Add accessor functions.
26518 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
26519             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26521         PR target/65768
26522         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26523         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26524          large constants in register instead of splitting them.
26526 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
26528         PR target/66140
26529         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26530         replacements in memory addresses.
26531         (get_unaligned_address): Ditto.
26533 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
26535         * config/ft32/*: New files for FT32 port.
26536         * doc/install.texi: Add FT32 information.
26537         * doc/invoke.texi: Add FT32 information.
26538         * doc/md.texi: Add FT32 information.
26539         * doc/contrib.texi: Self added.
26541 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
26543         PR tree-optimization/64454
26544         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26545         (-1 - A -> ~A): Remove unnecessary condition.
26547 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
26549         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26550         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26551         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26553 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
26555         * ipa-chkp.h (chkp_wrap_function): New.
26556         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26557         (chkp_wrap_function_name): New.
26558         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26559         to get wrapper name.
26560         * lto-cgraph.c: Include ipa-chkp.h.
26561         (input_cgraph_1): Avoid alias chain for wrappers.
26563 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
26565         PR middle-end/66134
26566         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26567         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26569 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26571         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26572         (AARCH64_FL_SLOWMUL): Delete.
26573         (AARCH64_FL_CRC): Redefine to 1<<3.
26574         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26576 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26578         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26579         casting.
26581 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
26583         * config/alpha/alpha.md (extendqidi2): Use general_operand
26584         instead of some_operand for operand[1] predicate.
26585         (extendhidi2): Ditto.
26586         (cbranchdi4): Use general_operand instead of some_operand
26587         for operand[1] and operands[2] predicates.
26588         (cstoredi4): Ditto.
26589         * config/alpha/predicates.md (some_operand): Remove unused predicate.
26590         (some_ni_operand): Ditto.
26592 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
26594         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26595         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
26596         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26597         low part of the constant using alpha_emit_set_const_1.
26598         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26600 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
26602         * varasm.c (output_constant_pool_1): Pass down alignment from
26603         constant pool entry's descriptor to output_constant_pool_2.
26604         (output_object_block): Add comment prior to call to
26605         output_constant_pool_1.
26607 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
26609         PR rtl-optimization/65862
26610         * target.def (ira_change_pseudo_allocno_class): New hook.
26611         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26612         value of the hook.
26613         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26614         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26615         hook.
26616         * ira-costs.c (find_costs_and_classes): Call the hook and change
26617         classes when it is necessary.
26618         * doc/tm.texi: Update.
26620 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
26622         * config/i386/i386.md (sibcall_memory): Check that register with
26623         callee address is not also used as one of the arguments, instead
26624         of checking that it is not live after the sibcall.
26625         (sibcall_pop_memory): Ditto.
26626         (sibcall_value_memory): Ditto.
26627         (sibcall_value_pop_memory): Ditto.
26629 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
26631         * generic-match-head.c (types_match): Handle non-types.
26632         * gimple-match-head.c (types_match): Likewise.
26633         * match.pd: Remove unnecessary TREE_TYPE for types_match.
26635 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
26637         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26638         (csneg3<mode>_insn): Enable expansion of pattern.
26640 2015-05-14  Nick Clifton  <nickc@redhat.com>
26642         * config/rl78/rl78.c (rl78_select_section): Select the correct
26643         default section based upon the category of the decl.
26645 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26647         PR rtl-optimization/30967
26648         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26649         destination mode for the cost of scc patterns.
26651 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26653         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26654         using SWIM248 mode iterator.
26655         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26656         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
26657         for operand[2] constraint.
26658         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26660 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26662         PR middle-end/66133
26663         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26664         make sure it is never noreturn, even when the task body does not
26665         return.
26666         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26667         right before GIMPLE_OMP_RETURN.
26668         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26669         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
26670         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26672 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26674         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26675         * tree-ssa-math-opts.c: Include params.h
26676         (pow_synth_sqrt_info): New struct.
26677         (representable_as_half_series_p): New function.
26678         (get_fn_chain): Likewise.
26679         (print_nested_fn): Likewise.
26680         (dump_fractional_sqrt_sequence): Likewise.
26681         (dump_integer_part): Likewise.
26682         (expand_pow_as_sqrts): Likewise.
26683         (gimple_expand_builtin_pow): Use above to attempt to expand
26684         pow as series of square roots.  Removed now unused variables.
26686 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
26688         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26689         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26690         Remove *p0 and *p1 arguments.  Rewrite function.
26691         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26692         (alpha_split_const_mov): Update calls to alpha_extract_integer and
26693         alpha_emit_set_long_const.
26694         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26695         (alpha_output_mi_thunk_osf): Ditto.
26696         * config/alpha/alpha.md (movti): Do not check operands[1]
26697         for CONST_DOUBLE.
26699 2015-05-13  Richard Biener  <rguenther@suse.de>
26701         PR tree-optimization/66129
26702         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26703         commutative.
26704         (vect_schedule_slp_instance): Fix typo.
26706 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
26708         * common.opt (fdump-internal-locations): New option.
26709         * input.c: Include diagnostic-core.h.
26710         (get_end_location): New function.
26711         (write_digit): New function.
26712         (write_digit_row): New function.
26713         (dump_location_range): New function.
26714         (dump_labelled_location_range): New function.
26715         (dump_location_info): New function.
26716         * input.h (dump_location_info): New prototype.
26717         * toplev.c (compile_file): Handle flag_dump_locations.
26719 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
26721         * gimple-expr.h (is_gimple_constant): Reorder.
26722         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26724 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
26726         * combine.c (simplify_set): When generating a CC set, if the
26727         source already is in the correct mode, do not wrap it in a
26728         compare.  Simplify the rest of that code.
26730 2015-05-13  Richard Biener  <rguenther@suse.de>
26732         PR tree-optimization/66123
26733         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26734         a taken edge.
26736 2015-05-13  Richard Biener  <rguenther@suse.de>
26738         PR middle-end/66110
26739         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26740         specially.
26741         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26743 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
26745         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26746         * aclocal.m4: Regenerated with automake-1.11.6.
26748 2015-05-13  Tom de Vries  <tom@codesourcery.com>
26750         PR tree-optimization/66010
26751         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26752         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26753         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
26754         and rval based on do_deref.
26756 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26758         PR target/65103
26759         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26760         link time constants into adress expressions and therefore set
26761         their cost to 0.
26763 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
26765         PR target/66112
26766         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26767         Use SWI248 iterator instead of SWI.
26768         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
26769         Use eq_attr "alternative" "0" instead of match_test in
26770         length_immediate attribute computation.
26771         (*mulvhi4, *mulvhi4_1): New define_insns.
26773         PR target/66112
26774         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26775         SIGNED to get precision of non-negative value.
26777 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26779         PR target/66048
26780         * function.c (diddle_return_value_1): Process bounds first.
26781         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26782         register.
26784 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26786         PR rtl-optimization/64616
26787         * loop-invariant.c (can_move_invariant_reg): New.
26788         (move_invariant_reg): Call above new function to decide whether
26789         instruction can just be moved, skipping creation of temporary
26790         register.
26792 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26794         PR target/pr66047.c
26795         * i386.c (ix86_function_sseregparm): Only return -1 if local function
26796         with implied regparm is called from -mno-sse function.
26797         (init_cumulative_args): Output error if ix86_function_sseregparm
26798         return -1 and SSE register would be needed.
26799         (function_arg_advance_32): Likewise.
26800         (function_arg_32): Likewise.
26801         * i386.h (ix86_args): Add decl field.
26803 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26805         PR ipa/65873
26806         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26807         inlines across optimization boundary.
26809 2015-05-12  Jason Merrill  <jason@redhat.com>
26811         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26812         string literal and macro name.
26814 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
26816         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26817         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26818         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26820 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
26822         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26823         (-Wmisleading-indentation): New option.
26824         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26826 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
26828         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26829         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26830         (alpha_extract_integer): Ditto.
26831         (alpha_legitimate_constant_p): Ditto.
26832         (alpha_split_tmode_pair): Ditto.
26833         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26834         (alpha_expand_mov): Ditto.
26835         (print_operand): Remove handling of 'H' modifier.
26836         <case 'm'>: Remove CONST_DOUBLE handling.
26837         (summarize_insn): Handle CONST_WIDE_INT.
26838         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26839         (anddi3): Ditto.
26840         (movti): Handle CONST_WIDE_INT.
26841         * config/alpha/constraints.md ('H'): Remove constraint definition.
26842         ('G'): Do not match MODE_FLOAT class.
26843         * config/alpha/predicates.md (const0_operand): Also match
26844         const_wide_int.
26845         (non_add_const_operand): Ditto.
26846         (non_zero_const_operand): Ditto.
26847         (some_operand): Ditto.
26848         (input_operand): Ditto.  Handle CONST_WIDE_INT.
26849         (and_operand): Do not match const_double.
26850         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26852 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
26854         PR target/65697
26855         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26856         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26857         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26858         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26859         is_mm_seq_cst, is_mm_sync): New accessor functions.
26860         * builtins.c (expand_builtin_sync_operation,
26861         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26862         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26863         (get_memmodel,  expand_builtin_atomic_compare_exchange,
26864         expand_builtin_atomic_load, expand_builtin_atomic_store,
26865         expand_builtin_atomic_clear): Use new accessor routines.
26866         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26867         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26868         (maybe_emit_sync_lock_test_and_set): Use new accessors and
26869         MEMMODEL_SYNC_ACQUIRE.
26870         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26871         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26872         expand_atomic_store): Use new accessors.
26873         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26874         * tsan.c (instrument_builtin_call): Update check for memory model beyond
26875         final enum to use MEMMODEL_LAST.
26876         * c-family/c-common.c: Use new accessor for memmodel_base.
26877         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26878         accessors.
26879         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26880         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26881         mem_thread_fence, *dmb): Likewise.
26882         * config/alpha/alpha.c (alpha_split_compare_and_swap,
26883         alpha_split_compare_and_swap_12): Likewise.
26884         * config/arm/arm.c (arm_expand_compare_and_swap,
26885         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26886         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26887         atomic_loaddi): Likewise.
26888         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26889         Likewise.
26890         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26891         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26892         use new accessors.
26893         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26894         atomic_store<mode>, atomic_compare_and_swap<mode>,
26895         atomic_exchange<mode>): Use new accessors.
26896         * config/mips/mips.c (mips_process_sync_loop): Likewise.
26897         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26898         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26899         rs6000_post_atomic_barrier): Add new cases.
26900         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26901         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26902         (atomic_load<mode>): Add new cases and use new accessors.
26903         (store_quadpti): Add new cases.
26904         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26905         accessors.
26906         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26907         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26908         model, not 8.
26910 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
26912         * ipa-devirt.c (type_with_linkage_p): New function.
26913         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26914         type has linkage.
26915         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26916         (can_be_name_hashed_p): Simplify.
26917         (hash_odr_name): Check that type has linkage before checking if it is
26918         anonymous.
26919         (types_same_for_odr): Likewise.
26920         (odr_name_hasher::equal): Likewise.
26921         (odr_subtypes_equivalent_p): Likewise.
26922         (warn_types_mismatch): Likewise.
26923         (get_odr_type): Likewise.
26924         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26925         * ipa-utils.h (odr_type_p): Move offline.
26926         * tree.c (need_assembler_name_p): Fix handling of types
26927         without linkages.
26928         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26930 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
26932         * timevar.c (timevar_enable): Delete in favor of...
26933         (g_timer): New global.
26934         (struct timevar_def): Move to timevar.h inside class timer.
26935         (struct timevar_stack_def): Likewise.
26936         (timevars): Delete global in favor of field "m_timevars" within
26937         class timer in timevar.h
26938         (stack): Likewise, in favor of field "m_stack".
26939         (unused_stack_instances): Likewise, in favor of field
26940         "m_unused_stack_instances".
26941         (start_time): Likewise, in favor of field "m_start_time".
26942         (get_time): Eliminate check for timevar_enable.
26943         (timer::timer): New function, built from part of timevar_init.
26944         (timevar_init): Rewrite idempotency test from using
26945         "timevar_enable" bool to using dynamic allocation of "g_timer".
26946         Move rest of implementation into timer's constructor.
26947         (timevar_push_1): Rename to...
26948         (timer::push): ...this, adding "m_" prefixes to variables that
26949         are now fields of timer.
26950         (timevar_pop_1): Likewise, rename to...
26951         (timer::pop): ...this, and add "m_" prefixes.
26952         (timevar_start): Replace test for "timevar_enable" with one for
26953         "g_timer", and move bulk of implementation to...
26954         (timer::start): ...here, adding "m_" prefixes.
26955         (timevar_stop): Likewise, from here...
26956         (timer::stop): ...to here.
26957         (timevar_cond_start): Likewise, from here...
26958         (timer::cond_start): ...to here.
26959         (timevar_cond_stop): Likewise, from here...
26960         (timer::cond_stop): ...to here.
26961         (validate_phases): Rename to...
26962         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
26963         locals "total" and "tv" const.
26964         (timevar_print): Rename to...
26965         (timer::print): ...this, and add "m_" prefixes.  Make locals
26966         "total" and "tv" const.  Eliminate test for timevar_enable.
26967         * timevar.h (timevar_enable): Eliminate.
26968         (g_timer): New declaration.
26969         (timevar_push_1): Eliminate.
26970         (timevar_pop_1): Eliminate.
26971         (timevar_print): Eliminate.
26972         (class timer): New class.
26973         (timevar_push): Rewrite to use g_timer.
26974         (timevar_pop): Likewise.
26975         * toplev.c (toplev::~toplev): Likewise.
26977 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
26979         * arm-protos.h (arm_sched_autopref): Delete.
26980         (tune_params): Re-organize, use enums for flag values.
26981         (FUSE_OPS): New macro.
26982         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26983         (ARM_PREFETCH_BENEFICIAL): Likewise.
26984         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26985         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26986         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26987         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26988         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26989         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
26990         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26991         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26992         format.
26993         (arm_option_override, thumb2_reorg, arm_print_tune_info)
26994         (aarch_macro_fusion_pair_p): Update uses of current_tune.
26995         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26997 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
26999         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27000         "break".
27002 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
27003             Sandra Loosemore <sandra@codesourcery.com>
27005         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27006         value.
27007         (REG_CLASS_NAMES): Add "IJMP_REGS".
27008         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27009         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27010         use new "c" register constraint.
27011         * config/nios2/constraint.md (c): New register constraint
27012         corresponding to IJMP_REGS.
27014 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27016         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27017         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27018         define_splits): Delete, revamp, transmogrify into ...
27019         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27020         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27021         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27022         New.
27024 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27026         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27027         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27029 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27031         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27032         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27033         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27034         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27035         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27036         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27037         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27038         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27039         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27040         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27041         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27042         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27043         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27044         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27045         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27046         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27047         and 30 corresponding splitters): Delete.
27049 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27051         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27052         zero_extract.
27054 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27056         * combine.c (recog_for_combine_1): New function, factored out
27057         from recog_for_combine.
27058         (change_zero_ext): New function.
27059         (recog_for_combine): If recog fails, try again with the pattern
27060         modified by change_zero_ext; if that still fails, restore the
27061         pattern.
27063 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
27065         * combine.c (get_undo_marker): New function.
27066         (undo_to_marker): New function, largely factored out from ...
27067         (undo_all): ... this.  Adjust.
27069 2015-05-12  Richard Biener  <rguenther@suse.de>
27071         PR tree-optimization/66101
27072         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27073         fixup if we turn a loop exit edge to a fallthru edge.
27075 2015-05-12  Richard Biener  <rguenther@suse.de>
27077         PR tree-optimization/37021
27078         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27079         (SLP_TREE_TWO_OPERATORS): New define.
27080         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27081         SLP_TREE_TWO_OPERATORS.
27082         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27083         SLP node.
27084         (vect_build_slp_tree): Adjust.
27085         (vect_analyze_slp_cost_1): Likewise.
27086         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27087         emitting two vector stmts and mixing the results.
27089 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27091         * call.c (print_z_candidates): Remove dead code.
27093 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27095         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27096         and zEC12_simple_fp.
27097         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27098         to 1.
27100 2015-05-12  Tom de Vries  <tom@codesourcery.com>
27102         PR tree-optimization/66010
27103         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27104         ifn_va_arg.
27105         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27106         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
27107         va_lists are passed, and remove corresponding handling.
27108         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
27109         do_deref argument to ifn_va_arg.
27110         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27111         ifn_va_arg.
27113 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27115         PR target/65955
27116         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27117         REG before taking its REGNO.
27119 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27121         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27122         rsp->sign_bit_copies and rsp->nonzero_bits into ...
27123         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
27124         present to get more accurate information about the number of sign bit
27125         copies and non zero bits.
27127 2015-05-12  Richard Biener  <rguenther@suse.de>
27129         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27130         do not allow unrolling.
27132 2015-05-11  Richard Henderson  <rth@redhat.com>
27134         * config/i386/i386-modes.def (CCP): New.
27135         * config/i386/i386.c (put_condition_code): Handle it.
27136         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27138 2015-05-11  Richard Henderson  <rth@redhat.com>
27140         * target.def (md_asm_clobbers): Replace with...
27141         (md_asm_adjust): this.
27142         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27143         (TARGET_MD_ASM_ADJUST): New.
27144         * tm.texi: Rebuild.
27145         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27146         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27147         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27149         * cfgexpand.c (check_operand_nalternatives): Accept vector of
27150         constraints instead of lists of outputs and inputs.
27151         (expand_asm_stmt): Save and restore input_location around the
27152         body of the function.  Move asm data into vectors instead of
27153         building tree lists.  Generate cleanup sequences as needed,
27154         rather than waiting til the end.  Use new md_asm_adjust hook.
27156         * config/vxworks.c: Include vec.h before target.h.
27157         * gimple.c: Likewise.
27158         * incpath.c: Likewise.
27159         * mode-switching.c: Likewise.
27161         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27162         (cris_md_asm_adjust): this.
27163         (TARGET_MD_ASM_CLOBBERS): Remove.
27164         (TARGET_MD_ASM_ADJUST): New.
27165         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27166         (ix86_md_asm_adjust): this.
27167         (TARGET_MD_ASM_CLOBBERS): Remove.
27168         (TARGET_MD_ASM_ADJUST): New.
27169         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27170         (mn10300_md_asm_adjust): this.
27171         (TARGET_MD_ASM_CLOBBERS): Remove.
27172         (TARGET_MD_ASM_ADJUST): New.
27173         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27174         (rs6000_md_asm_adjust): this.
27175         (TARGET_MD_ASM_CLOBBERS): Remove.
27176         (TARGET_MD_ASM_ADJUST): New.
27177         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27178         (visium_md_asm_adjust): this.
27179         (TARGET_MD_ASM_CLOBBERS): Remove.
27180         (TARGET_MD_ASM_ADJUST): New.
27182 2015-05-11  Richard Henderson  <rth@redhat.com>
27184         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27185         if noutputs is zero.
27186         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27188         * cfgexpand.c (expand_asm_operands): Merge into...
27189         (expand_asm_stmt): ... here.
27191         * cfgexpand.c (expand_asm_operands): Don't call
27192         resolve_asm_operand_names.
27193         * stmt.c (resolve_asm_operand_names): Clarify block comment.
27195 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
27197         * dwarf2out.c (gen_member_die): Sanity check that we access
27198         TYPE_MAIN_VARIANT for TYPE_METHODS.
27199         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27200         checking TYPE_METHODS.
27201         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27202         if non-null.
27203         (build_distinct_type_copy): Clear TYPE_METHODS.
27204         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27205         (verify_type): Allow TYPE_METHODS to be error_mark_node.
27206         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27208 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
27210         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27211         (emit_pattern_before_setloc): Likewise.
27213 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
27215         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27216         for define_peephole2s.
27217         (get_peephole2_pattern): New function.
27218         (main): Use it.  Call validate_pattern.
27220 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
27222         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27223         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27224         (Last callee saved reg is different for AVR_TINY architecture)
27226 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
27228         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27229         when looking for memory references.
27231 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
27233         PR target/65753
27234         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27235         via function pointers.
27237 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
27239         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27240         indirect call by forcing address into a pseudo with -fno-plt.
27241         * common.opt (flag_plt): New option.
27242         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27243         ([-fno-plt]): Document.
27245 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
27247         PR bootstrap/66105
27248         * config/rs6000/option-defaults.h: Add space between string literal
27249         and macro name.
27251 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27253         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27254         accross ARM targets.
27256 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27258         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27259         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27261 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
27263         PR rtl-optimization/66076
27264         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27265         Don't grow the heap array if it is already big enough from a
27266         previous iteration.
27268 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27270         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27271         (is_called_in_ARM_mode): Remove.
27272         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27273         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27274         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27275          arm_declare_function_name.
27277 2015-05-11  Christian Bruel  <christian.bruel@st.com>
27279         * config/arm/arm.c (arm_option_override): Reoganized and split into :
27280         (arm_option_params_internal); New function.
27281         (arm_option_check_internal): New function.
27282         (arm_option_override_internal): New function.
27283         (thumb_code, thumb1_code): Remove.
27284         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27285         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27286         (thumb_code, thumb1_code): Remove.
27287         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27289 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
27291         * config/alpha/alpha.c (alpha_emit_set_const_1)
27292         (alpha_emit_set_long_const, alpha_extract_integer)
27293         (alpha_legitimate_constant_p, alpha_split_const_mov)
27294         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27295         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27296         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27297         HOST_WIDE_INT_1U.
27298         * config/alpha/predicates.md (mode_mask_operand): Do not match
27299         const_double RTX.
27300         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27301         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27302         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27303         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27304         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27306 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
27308         PR target/65780
27309         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27310         default_binds_local_p_2.
27311         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27312         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27314 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27316         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27318 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27320         Patch by Richard Biener
27321         * coverage.c (coverage_obj_init): Delay building of type variant
27322         until the type is finished.
27324 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27326         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27327         mismatch between C and C++ type; compoare correctly ARG_TYPES
27328         for non-prototypes and output correctly parameter index for METHOD_TYPE.
27329         (odr_types_equivalent_p): Fix wording of warning about attributes;
27330         it is OK to match prototype and non-prototype.
27332 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27334         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27335         TYPE_ARG_TYPES list.
27336         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27337         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27339 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
27341         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27342         * tree.h (is_lang_specific): Constify.
27344 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
27346         PR tree-optimization/64454
27347         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27348         Rewrite.
27350 2015-05-08  Jason Merrill  <jason@redhat.com>
27352         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27353         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27354         config/darwin.h, config/darwin9.h, config/elfos.h,
27355         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27356         config/microblaze/microblaze.h, config/mips/mips.h,
27357         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27358         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27359         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27360         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27361         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27362         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27363         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27364         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27365         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27366         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27367         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27368         between string literal and macro name.
27370 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27372         * jump.c: Change argument types to rtx_insn *.
27373         * rtl.h: Adjust.
27375 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27377         * lra-constraints.c: Change argument type to rtx_insn *.
27379 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27381         * df-problems.c: Change argument type to rtx_insn *.
27383 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27385         * combine.c: Change argument type to rtx_insn *.
27387 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27389         * rtl.h: Adjust.
27390         * rtlanal.c: Change argument type to rtx_insn *.
27392 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27394         * sched-deps.c: Change argument types to rtx_insn *.
27395         * sched-int.h: Adjust.
27397 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27399         * dwarf2cfi.c: Change argument type to rtx_insn *.
27401 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27403         * ira.c (decrease_live_ranges_number): Changetype of local
27404         variable to rtx_insn *.
27405         * recog.c: Change argument types to rtx_insn *.
27406         * recog.h: Adjust.
27408 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27410         * reorg.c: Change argument types to rtx_insn *.
27412 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27414         * ira-color.c: Change argument types to rtx_insn *.
27415         * lra-eliminations.c: Likewise.
27416         * ira.h: Adjust.
27418 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27420         * gcse.c: Change argument types to rtx_insn *.
27422 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27424         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27426 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27428         * emit-rtl.c (emit_debug_insn_before): Change argument type to
27429         rtx_insn *.
27430         * rtl.h: Adjust.
27432 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27434         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27435         * rtl.h: Adjust.
27437 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27439         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27440         * rtl.h: Adjust.
27442 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27444         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27445         * rtl.h: Adjust.
27447 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27449         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27450         * rtl.h: Adjust.
27452 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27454         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27455         to rtx_insn *.
27456         * rtl.h: Adjust.
27458 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27460         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27461         to rtx_insn *.
27462         * rtl.h: Likewise.
27464 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27466         * except.c (can_nonlocal_goto): Change type of argument to
27467         rtx_insn *.
27468         * rtl.h: Adjust.
27470 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27472         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27473         * rtl.h: Adjust.
27475 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27477         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27478         * cfgrtl.c (can_delete_label_p): Adjust.
27479         * rtl.h: likewise.
27481 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27483         * reorg.c (stop_search_p): Change argument to rtx_insn *.
27485 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27487         * except.c (make_reg_eh_region_note): Change argument to
27488         rtx_insn *.
27489         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27490         * except.h: Adjust.
27492 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27494         * mode-switching.c (commit_mode_sets): Change type of local
27495         variable from rtx to rtx_insn *.
27497 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
27499         * doc/install.texi (--enable-languages): Add missing jit and lto info.
27500         Add ^ to grep command.
27501         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27502         arg to last gimple_simplify declaration.  Add missing gimple_build
27503         declaration for built-in function case with four tree args.
27505 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
27506             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27508         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27509         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27510         (GNU_USER_DYNAMIC_LINKERN32): Update.
27512 2015-05-08  Richard Biener  <rguenther@suse.de>
27514         PR tree-optimization/66036
27515         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27516         Handle strided group loads.
27517         (vect_verify_datarefs_alignment): Likewise.
27518         (vect_enhance_data_refs_alignment): Likewise.
27519         (vect_analyze_group_access): Likewise.
27520         (vect_analyze_data_ref_access): Likewise.
27521         (vect_analyze_data_ref_accesses): Likewise.
27522         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27523         (vectorizable_load): Likewise.
27525 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
27527         * config/rs6000/rs6000.md: Require operand inequality in one
27528         of the peepholes.
27530 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
27531             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
27533         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27534         from (set ...).
27535         * config/rx/rx.md (movdi, movdf): Likewise.
27536         Likewise for define_peephole2s.
27538 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27540         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27541         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27542         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27543         vtst_u64): Rewrite using gcc vector extensions.
27545 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27547         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27548         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27550 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
27552         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27554 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27556         * config/glibc-stdint.h (OPTION_MUSL): Define.
27557         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27558         Change the definition based on OPTION_MUSL for 64 bit targets.
27559         * config/linux.h (OPTION_MUSL): Redefine.
27560         * config/alpha/linux.h (OPTION_MUSL): Redefine.
27561         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27562         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27564 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
27565             Szabolcs Nagy  <szabolcs.nagy@arm.com>
27567         * config.gcc (LIBC_MUSL): New tm_defines macro.
27568         * config/linux.h (OPTION_MUSL): Define.
27569         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27570         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27571         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27572         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27573         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27574         * config/linux.opt (mmusl): New option.
27575         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27576         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27577         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27578         * configure: Regenerate.
27580 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
27581             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27583         PR target/48904
27584         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27585         * config/i386/knetbsd-gnu64.h: New file.
27587 2015-05-08  Marek Polacek  <polacek@redhat.com>
27589         PR c/64918
27590         * doc/invoke.texi: Document -Woverride-init-side-effects.
27592 2015-05-07  Marek Polacek  <polacek@redhat.com>
27594         PR c/65179
27595         * doc/invoke.texi: Document -Wshift-negative-value.
27597 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
27599         * gcov-tool.c (do_merge): Refactore to remove int ret.
27600         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27601         !type == FUNC to type != FUNC.
27602         * reload.h (struct target_reload): Changee to type of
27603         x_spill_indirect_levels from bool to unsigned char.
27605 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
27607         * rtl.h (always_void_p): New function.
27608         * gengenrtl.c (always_void_p): Likewise.
27609         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27610         with code foo are always VOIDmode.
27611         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27612         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27613         compare-elim.c, config/aarch64/aarch64.c,
27614         config/aarch64/aarch64.md, config/alpha/alpha.c,
27615         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27616         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27617         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27618         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27619         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27620         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27621         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27622         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27623         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27624         config/ia64/vect.md, config/iq2000/iq2000.c,
27625         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27626         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27627         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27628         config/mep/mep.c, config/microblaze/microblaze.c,
27629         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27630         config/mn10300/mn10300.c, config/msp430/msp430.c,
27631         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27632         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27633         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27634         config/rs6000/altivec.md, config/rs6000/rs6000.c,
27635         config/rs6000/rs6000.md, config/rs6000/vector.md,
27636         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27637         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27638         config/sh/sh.md, config/sh/sh_treg_combine.cc,
27639         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27640         config/spu/spu.md, config/stormy16/stormy16.c,
27641         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27642         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27643         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27644         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27645         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27646         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27647         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27648         var-tracking.c: Update calls accordingly.
27650 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
27652         PR middle-end/192
27653         PR middle-end/54303
27654         * varasm.c (function_mergeable_rodata_prefix): New function.
27655         (mergeable_string_section): Use it.
27656         (mergeable_constant_section): Use it.
27658 2015-05-07  Jeff Law  <law@redhat.com>
27660         PR target/39726
27661         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27662         simplifier to narrow arithmetic.
27663         * generic-match-head.c: (types_match, single_use): New functions.
27664         * gimple-match-head.c: (types_match, single_use): New functions.
27666 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27668         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27669         rtx type.
27671 2015-05-07  Richard Biener  <rguenther@suse.de>
27673         PR tree-optimization/66002
27674         * passes.def: Schedule another pass_merge_phi after ifcombine, right
27675         before phiopt.
27677 2015-05-07  Marek Polacek  <polacek@redhat.com>
27678             Martin Uecker  <uecker@eecs.berkeley.edu>
27680         * doc/invoke.texi: Document -fsanitize=bounds-strict.
27681         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27682         into SANITIZE_NONDEFAULT.
27683         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27685 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
27687         PR target/66015
27688         * config/alpha/alpha.c (alpha_override_options_after_change): New.
27689         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27690         (alpha_override_options): Move align_loops, align_jumps and
27691         align_functions handling into alpha_override_options_after_change.
27693 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
27694             Chris Jones  <chrisj@nvidia.com>
27695             Joshua Conner  <jconner@nvidia.com>
27697         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27698         linking of crtfastmath.o.
27699         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27701 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
27703         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27704         (cstore<mode>4_unsigned_imm): New expander.
27705         (cstore<mode>4): Remove empty constraint strings.  Use the new
27706         expanders.
27708 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
27710         PR target/64208
27711         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27712         alternatives.
27714 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27716         * config/aarch64/geniterators.sh: Use standard BRE in sed.
27718 2015-05-06  Alan Modra  <amodra@gmail.com>
27720         PR target/66033
27721         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27722         (UNSPEC_NOP): Define.
27723         (reload_vsx_from_gpr<mode>): Add missing DONE.
27724         (reload_gpr_from_vsx<mode>): Likewise.
27725         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27726         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27728 2015-05-06  Christian Bruel  <christian.bruel@st.com>
27730         PR target/66015
27731         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27732         align_jumps, align_functions into aarch64_override_options_after_change.
27734 2015-05-06  Richard Biener  <rguenther@suse.de>
27736         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27737         vect_transform_slp_perm_load to check if we support a permutation
27738         for basic-block vectorization.
27740 2015-05-06  Nick Clifton  <nickc@redhat.com>
27742         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27743         used, even if it is not being used as a frame pointer.
27745 2015-05-05  Jason Merrill  <jason@redhat.com>
27747         * dwarf2out.c (gen_member_die): Don't emit anything for an
27748         anonymous class constructor.
27750 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
27752         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27753         that it reflects the block structure.
27754         (afdo_propagate_edge): Likewise.
27755         (afdo_calculate_branch_prob): Likewise.
27756         (afdo_annotate_cfg): Likewise.
27757         * cfgcleanup.c (equal_different_set_p): Likewise.
27758         (try_crossjump_to_edge): Likewise.
27759         * cgraph.c (cgraph_node::verify_node): Likewise.
27760         * cgraphunit.c (expand_all_functions): Likewise.
27761         * config/i386/i386.c (ix86_expand_copysign): Likewise.
27762         (exact_dependency_1): Likewise.
27763         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27764         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27765         * gensupport.c (process_define_subst): Likewise.
27766         * lto-wrapper.c (merge_and_complain): Likewise.
27767         * tree-if-conv.c (if_convertible_bb_p): Likewise.
27768         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27769         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27770         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27771         * tree-vect-loop.c (vectorizable_reduction): Likewise.
27772         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27773         * tree-vect-stmts.c (vectorizable_shift): Likewise.
27774         * tree-vrp.c (vrp_finalize): Likewise.
27775         * tree.c (variably_modified_type_p): Likewise.
27777 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
27779         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27780         on darwin12 and later.
27781         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27782         file to pass -rdynamic on darwin12 and later.
27783         * config/darwin.opt (rdynamic): Add.
27785 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27787         * doc/extend.texi (C Extensions): Update menu for moved Variable
27788         Attributes and Type Attributes sections.
27790 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27792         PR target/65990
27793         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27794         if rep_8byte stringop strategy was specified for 32-bit target.
27796 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
27798         PR target/65915
27799         * config/i386/i386.md (vector convert to float spltiter): Check for
27800         xmm16+, when splitting scalar float conversion.
27801         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27803 2015-05-05  Nick Clifton  <nickc@redhat.com>
27805         * config/msp430/msp430-opts.h (enum msp430_regions): New.
27806         * config/msp430/msp430.c (msp430_override_options): Complain if
27807         -mcode-region or -mdata-region is used on a non MSP430X.
27808         (msp430_section_attr): New function.  Checks lower, upper and
27809         either attributes.
27810         (msp430_attribute_table): Add lower, upper and either.
27811         (gen_prefix): New function.  Generates a prefix for a section
27812         name.
27813         (msp430_select_section): New function - handles the choice of
27814         section for an object.  Takes into account memory region
27815         attributes and options.
27816         (msp430_function_section): Use gen_prefix.
27817         (TARGET_SECTION_TYPE_FLAGS): Define.
27818         (msp430_section_type_flags): New function.
27819         (TARGET_ASM_UNIQUE_SECTION): Define.
27820         (msp430_unique_section): New function.
27821         (msp430_output_aligned_decl_common): New function.
27822         (msp430_do_not_relax_short_jumps): New function.
27823         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27824         Define.
27825         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27826         * config/msp430/msp430-protos.h
27827         (msp430_do_not_relax_short_jumps): New prototype.
27828         (msp430_output_aligned_decl_common): New prototype.
27829         * config/msp430/msp430.md (length): New attribute.
27830         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27831         then use a long code sequence for short jumps.
27832         * config/msp430/msp430.opt (mcode-region): New.
27833         (mdata-region): New.
27834         * doc/invoke.texi: Document new options.
27835         * doc/extend.texi: Document new attributes.
27837 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
27839         * config/aarch64-protos.h (struct cpu_branch_cost): New.
27840         (tune_params): Add field branch_costs.
27841         (aarch64_branch_cost): Declare.
27842         * config/aarch64.c (generic_branch_cost): New.
27843         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27844         (cortexa53_tunings): Likewise.
27845         (cortexa57_tunings): Likewise.
27846         (thunderx_tunings): Likewise.
27847         (xgene1_tunings): Likewise.
27848         (aarch64_branch_cost): Define.
27849         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27851 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27853         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27854         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27855         * config/i386/i386.md: Ditto.
27856         * config/i386/winnt.c: Ditto.
27858 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
27860         * doc/extend.texi (__atomic Builtins): Move implementation details
27861         to the end of the description, rewrite opening paragraphs, state
27862         difference with __sync builtins, state C11/C++11 assumptions,
27863         weaken itemized descriptions, add explanation of memory model
27864         behaviour, expand description of compare-exchange, simplify text.
27866 2015-05-05  Renlin Li  <renlin.li@arm.com>
27868         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27870 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
27872         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27873         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27874         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27875         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27876         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27877         * configure: Regenerate.
27878         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27879         * doc/install.texi (aarch64*-*-*): Document new
27880         --enable-fix-cortex-a53-843419 option.
27881         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27882         and -mno-fix-cortex-a53-843419 options.
27884 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
27886         PR target/65871
27887         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27889 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
27891         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27892         fix overactive TYPE_MIN_VALUE check and add FIXME for type
27893         compatibility problems.
27895 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
27897         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27898         constraints.
27899         (cbranchsi4_reg): New.
27900         * config/microblaze/microblaze.c
27901         (microblaze_expand_conditional_branch_reg): New.
27902         * config/microblaze/microblaze-protos.h
27903         (microblaze_expand_conditional_branch_reg): New prototype.
27905 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
27907         * config/microblaze/microblaze.md (peephole2): New.
27909 2015-05-04  Jeff Law  <law@redhat.com>
27911         Revert:
27912         2015-05-04  Jeff Law  <law@redhat.com>
27914         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27915         simplifier to narrow arithmetic.
27916         * generic-match-head.c: (types_match, single_use): New functions.
27917         * gimple-match-head.c: (types_match, single_use): New functions.
27919 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
27921         PR target/65987
27922         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27923         (split_branches): Likewise.
27925 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
27927         * common.opt (fdelete-null-pointer-checks): Init to -1.
27928         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27929         override flag_delete_null_pointer_checks default.
27930         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27931         behavior re address zero.  Better document target-specific behavior.
27932         (-fisolate-errneous-paths-dereference): Mention relationship to
27933         -fdelete-null-pointer-checks.
27935 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
27937         PR tree-optimization/65984
27938         * ubsan.c: Include tree-cfg.h.
27939         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27940         stmt_could_throw_p test, rename can_throw variable to ends_bb.
27942 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
27944         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27945         to CONST_DOUBLE_P predicate.
27946         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27947         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27948         allow only operands that satisfy standard_sse_constant_p predicate.
27949         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27950         to CONST_DOUBLE_P predicate.
27952 2015-05-04  Jeff Law  <law@redhat.com>
27954         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27955         simplifier to narrow arithmetic.
27956         * generic-match-head.c: (types_match, single_use): New functions.
27957         * gimple-match-head.c: (types_match, single_use): New functions.
27959 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
27961         * config/arm/arm.c: Restore bootstrap.
27963 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
27965         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27966         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27967         as CONST_WIDE_INT, not CONST_DOUBLE.
27968         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27969         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27970         (ix86_find_base_term): Do not check for CONST_DOUBLE.
27971         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27972         (ix86_build_signbit_mask): Rewrite using wide ints.
27973         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27974         (ix86_rtx_costs): Handle CONST_WIDE_INT.
27975         (find_constant): Ditto.
27976         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27977         using gen_int_mode.
27978         * config/i386/predicates.md (x86_64_immediate_operand)
27979         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27980         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27981         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27982         (const0_operand): Also match const_wide_int.
27983         (constm1_operand): Ditto.
27984         (const1_operand): Ditto.
27986 2015-05-04  Richard Biener  <rguenther@suse.de>
27988         PR tree-optimization/65965
27989         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27990         store groups at gaps.
27992 2015-05-04  Richard Biener  <rguenther@suse.de>
27994         PR tree-optimization/65935
27995         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27996         then make sure to apply that swapping to the IL.
27998 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
28000         * Makefile.in (PATCHLEVEL_c): New variable.
28001         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28002         expand the same way as if DEVPHASE_c was non-empty.
28004 2015-05-04  Kai Tietz  <ktietz@redhat.com>
28006         PR target/65559
28007         * lto-wrapper.c (run_gcc): Open filename
28008         in binary-mode.
28010 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
28012         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
28013         sections up in file, to immediately after the Function Attributes
28014         section.
28016 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
28018         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28020 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28022         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28023         (insert_partition_copy_on_edge): Adjust.
28024         (insert_rtx_to_part_on_edge): Likewise.
28025         (insert_part_to_rtx_on_edge): Likewise.
28027 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28029         * function.c (set_return_jump_label): Change type of argument to
28030         rtx_insn *.
28031         * function.h (set_return_jump_label): Adjust.
28033 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28035         * reload.h (struct reg_equivs_t): Change type of init to
28036         rtx_insn *.
28037         * ira.c (fix_reg_equiv_init): Adjust.
28038         * reload1.c (eliminate_regs_1): Likewise.
28039         (init_eliminable_invariants): Likewise.
28041 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28043         * cselib.c (fp_setter_insn): Take a rtx_insn *.
28044         * cselib.h (fp_setter_insn): Adjust.
28046 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28048         * recog.c (struct validate_replace_src_data): Change type of
28049         insn field to rtx_insn *.
28050         (validate_replace_src_group): Change type of argument to rtx_insn *.
28051         * recog.h (validate_replace_src_group): Adjust.
28053 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28055         * haifa-sched.c: Change the type of some variables to rtx_insn *.
28056         * sched-deps.c: Likewise.
28057         * sched-int.h: Likewise.
28058         * sched-rgn.c: Likewise.
28059         * sel-sched.c: Likewise.
28061 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28063         to rtx_insn *.
28064         * config/i386/i386.c: Change the type of some arguments to
28065         rtx_insn *.
28066         * config/arm/arm.c: Likewise.
28068 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28070         * lra-constraints.c: Change type of some arguments to rtx_insn *.
28072 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28074         * regcprop.c (kill_autoinc_value): Change type of argument to
28075         rtx_insn *.
28077 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28079         * genrecog.c (print_subroutine): Adjust.
28080         * recog.c (get_bool_attr_mask_uncached): Likewise.
28081         * recog.h (struct recog_data_d): Change the type of insn to
28082         rtx_insn *.
28084 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28086         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28088 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28090         * df-problems.c (df_set_note): Change type of argument to
28091         rtx_insn *.
28093 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28095         * builtins.c (expand_builtin_trap): Change type of local
28096         variable to rtx_insn *.
28097         (add_sched_insns_for_speculation): Likewise.
28098         (ix86_emit_save_regs): Likewise.
28099         (get_scratch_register_on_entry): Likewise.
28100         (ix86_emit_restore_reg_using_pop): Likewise.
28101         (ix86_emit_leave): Likewise.
28102         (ix86_emit_restore_regs_using_mov): Likewise.
28103         (ix86_expand_epilogue): Likewise.
28104         Likewise.
28105         (rl78_alloc_physical_registers_umul): Likewise.
28106         * cselib.c (discard_useless_locs): Likewise.
28107         (cselib_invalidate_regno): Likewise.
28108         (cselib_invalidate_mem): Likewise.
28109         * function.c (expand_function_start): Likewise.
28110         (emit_use_return_register_into_block): Likewise.
28111         * gcse.c: Likewise.
28112         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28113         * ifcvt.c (noce_get_alt_condition): Likewise.
28114         * loop-doloop.c (doloop_condition_get): Likewise.
28115         * lra-constraints.c (inherit_in_ebb): Likewise.
28116         * modulo-sched.c (sms_schedule_by_order): Likewise.
28117         * recog.c (next_insn_tests_no_inequality): Likewise.
28118         * reorg.c (emit_delay_sequence): Likewise.
28119         (update_reg_dead_notes): Likewise.
28120         (fix_reg_dead_note): Likewise.
28121         (fill_slots_from_thread): Likewise.
28122         (delete_computation): Likewise.
28124 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
28126         * doc/extend.texi (Variable Attributes): Add menu and proper
28127         @nodes to subsections.  Move Microsoft Windows attributes to
28128         their own subsection.
28129         (Type Attributes): Reorganize introduction to remove duplicate
28130         list of attributes.  Add menu and proper @nodes to subsections.
28131         Alphabetize the main table of common attributes.
28133 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
28135         * match.pd: New simplification patterns.
28136         (x + (x & 1))  -> ((x + 1) & ~1)
28137         (x & ~(x & y)) -> ((x & ~y))
28138         (x | ~(x | y)) -> ((x | ~y))
28140 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28142         * target.def (attribute_table): Mention that struct attribute_spec
28143         is defined in tree-core.h rather than tree.h
28144         * doc/tm.texi: Regenerate.
28146 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
28148         * genrecog.c (test): Rename to rtx_test.  Update rest of file
28149         accordingly.
28151 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
28153         PR translation/65959
28154         * params.h (DEFPARAM): Rename msgid to nocmsgid.
28156 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28158         * config/aarch64/aarch64-protos.h (tune_params):
28159         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28160         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28161         Return value depending on target.
28162         (generic_tunings): Initialize new target settings.
28163         (cortexa53_tunings): Likewise.
28164         (cortexa57_tunings): Likewise.
28165         (thunderx_tunings): Likewise.
28166         (xgene1_tunings): Likewise.
28168 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28170         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28171         Make Cortex-A53 shift costs more accurate.
28173 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28175         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28176         UNSIGNED_FLOAT.
28178 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
28180         * config/aarch64/aarch64.c (aarch64_rtx_costs):
28181         Calculate cost of op0 and op1 in PLUS and MINUS cases.
28183 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28185         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28186         Add cost of op0 in the compare-with-fpzero case.
28188 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
28190         * builtins.c (fold_builtin_1): Remove spurious second
28191         semicolon.
28192         * cgraph.h (symtab_node::get_availability): Likewise.
28193         * opts.c (common_handle_option): Remove spurious second semicolon.
28194         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28195         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28197 2015-04-30  Caroline Tice  <cmtice@google.com>
28199         PR gcov-profile/65929
28200         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28201         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28202         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28203         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28204         * doc/tm.texi: Regenerate.
28205         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
28206         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28207         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
28208         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28210 2015-04-30  Marek Polacek  <polacek@redhat.com>
28212         * varasm.c (handle_cache_entry): Fix logic.
28214 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28216         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28217         (*extrsi5_insn_uxtw_alt): Likewise.
28218         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28219         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28220         operations.
28222 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28224         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28225         fabd in ABS case.
28227 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28229         * config/aarch64/aarch64.md
28230         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28231         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28232         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28233         appropriately.  Handle alternative EON form.
28235 2015-04-30  Renlin Li  <renlin.li@arm.com>
28237         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28238         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28240 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
28242         PR ipa/65873
28243         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28244         -fstrict-aliasing boundaries.
28246 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28248         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28249         and [SU]MNEGL patterns.
28251 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28253         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28254         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28255         combined arithmetic-shift ops.  Properly handle all shift and extend
28256         operations that can occur in combination with PLUS/MINUS.
28257         Rename maybe_fma to compound_p.
28258         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28259         arithmetic and shift operations.
28261 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28263         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28264         rather than arith_shift cost when costing ADD/MINUS of an
28265         extended value.
28267 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
28269         PR lto/65948
28270         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28271         to itself.
28273 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
28275         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28276         are for the same position.
28278 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
28280         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
28281         vectorize_loops.
28282         (vectorize_loops): Use it.
28284 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28286         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28287         for aggregate types.
28288         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28289         type to be non_ODR.
28290         * tree.c (need_assembler_name_p): Compute mangled name for
28291         non-fundamental types and integer types.
28293 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
28295         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28296         manual swaps.
28297         * expr.c (expand_expr_real_2): Likewise.
28299 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28301         * tree.c (build_common_builtin_nodes): Do not build
28302         __builtin_alloca_with_align as equivalent of library alloca.
28304 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
28306         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28307         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28308         bugus variants.
28309         * tree.c: Include print-tree.h and ipa-utils.h
28310         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28311         (free_lang_data_in_cgraph): Call verify_type.
28312         (verify_type_variant): New function.
28313         (verify_type): New function.
28314         * tree.h (verify_type): Declare.
28316 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
28318         * config/mips/mips-cpus.def: (mips4): Change default processor
28319         from PROCESSOR_R8000 to PROCESSOR_R10000.
28321 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
28323         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28324         la/jalr instead of jal.
28326 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
28328         PR target/65871
28329         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28330         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28331         (setcc+movzbl peephole2): Check also clobbered reg.
28332         (setcc+andl peephole2): Ditto.
28334 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28336         PR libgomp/65099
28337         * config/nvptx/mkoffload.c (target_ilp32): New variable.
28338         (main): Set it depending on "-foffload-abi=[...]".
28339         (compile_native, main): Use it to pass "-m32" or "-m64" to the
28340         compiler.
28342 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28344         PR target/65770
28345         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28346         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28347         Flip lane index back at assembly time for bigendian.
28349 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28351         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28352         * gimplify.c (gimplify_omp_workshare): Use it.
28354 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28356         * Makefile.in (build/genrecog.o): Depend on inchash.h.
28357         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28358         build/inchash.o
28359         * genrecog.c: Rewrite most of the code except for the third page.
28361 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28363         * inchash.h, inchash.c: Include bconfig.h for build objects.
28364         * Makefile.in (build/inchash.o): New rule.
28366 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
28368         PR target/65924
28369         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28370         number in type attribute expression.
28372 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
28374         * loop-iv.c (canon_condition): Generalize to all types of integer
28375         constant.
28377 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
28379         * gimple-walk.c: Prune duplicate or unneeded includes.
28380         (walk_gimple_asm): Only call parse_input_constraint or
28381         parse_output_constraint if their findings are used.
28382         Honour parse_input_constraint and parse_output_constraint
28383         result.
28385 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
28387         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28389 2015-04-29  Tom de Vries  <tom@codesourcery.com>
28391         PR tree-optimization/65893
28392         * passes.def (pass_all_optimizations): Move pass_stdarg to after
28393         pass_dce.
28395 2015-04-29  Richard Biener  <rguenther@suse.de>
28397         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28398         compute GROUP_SIZE for basic-block SLP.
28399         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28400         take into account gaps.
28401         (vect_get_mask_element): Properly reject references to previous
28402         vectors.
28403         (vect_transform_slp_perm_load): Likewise.
28405 2015-04-29  Christian Bruel  <christian.bruel@st.com>
28407         PR target/64835
28408         * config/i386/i386.c (ix86_default_align): New function.
28409         (ix86_override_options_after_change): Call ix86_default_align.
28410         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28411         (ix86_override_options_after_change): New function.
28413 2015-04-28  Jeff Law  <law@redhat.com>
28415         * tree-ssa-dom.c (record_equality); Fix comment typos.
28417 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28419         PR tree-optimization/65887
28420         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28422 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
28424         * doc/extend.texi (Declaring Attributes of Functions): Split into
28425         subsections by target.  Alphabetize the table of common attributes.
28426         Rewrite some of the introductory text to reflect the new structure.
28427         Update some cross-references to point to the new subsections.
28428         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
28429         duplicate copies in the discussion of function, label, and type
28430         attributes.
28432 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
28434         PR bootstrap/65910
28435         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28437 2015-04-28  Jason Merrill  <jason@redhat.com>
28439         PR c++/65734
28440         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28441         (finalize_type_size): Respect TYPE_USER_ALIGN.
28442         (layout_type) [ARRAY_TYPE]: Likewise.
28444 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
28446         * config/arm/arm.md (*arm_movt): Fix type attribute.
28447         (*cmpsi_shiftsi): Likewise.
28448         (*cmpsi_shiftsi_swp): Likewise.
28449         (*movsicc_insn): Likewise.
28450         (*cond_move): Likewise.
28451         (*if_plus_move): Likewise.
28452         (*if_move_plus): Likewise.
28453         (*if_arith_move): Likewise.
28454         (*if_move_arith): Likewise.
28455         (*if_shift_move): Likewise.
28456         (*if_move_shift): Likewise.
28457         (*arm_movtas_ze): Likewise.
28458         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28459         redundancy and type attribute.
28460         (*thumb2_movsi_insn): Fix type attribute.
28461         (*thumb2_addsi_short): Likewise.
28462         (thumb2_addsi3_compare0): Likewise.
28463         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28464         attributes accordingly.
28466 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
28468         PR other/65911
28469         * function.c (pad_to_arg_alignment): Add parentheses.
28471 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
28473         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28474         libgcc/config/frv/elf-lib.h.
28476 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28478         * tree-call-cdce.c: Fix example in header comment.
28480 2015-04-28  Richard Biener  <rguenther@suse.de>
28482         PR tree-optimization/62283
28483         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28484         fails fatally and we are vectorizing a basic-block simply
28485         cause the child to be constructed piecewise.
28486         (vect_analyze_slp_cost_1): Adjust.
28487         (vect_detect_hybrid_slp_stmts): Likewise.
28488         (vect_bb_slp_scalar_cost): Likewise.
28489         (vect_get_constant_vectors): For piecewise constructed
28490         constants place them after the last def.
28491         (vect_get_slp_defs): Adjust.
28492         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28493         externals for basic-block vectorization.
28495 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28497         PR target/63503
28498         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28499         aarch64-*-*.
28500         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28501         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28502         (AARCH64_TUNE_FMA_STEERING): Likewise.
28503         * config/aarch64/aarch64-cores.def: Set
28504         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28505         FMUL/FMADD instructions.
28506         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28507         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
28508         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28509         * config/aarch64/cortex-a57-fma-steering.h: New file.
28510         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28512 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
28514         * gensupport.c (std_preds): Add missing codes to address_operand entry.
28516 2015-04-28  Richard Biener  <rguenther@suse.de>
28518         PR tree-optimization/65851
28519         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28520         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
28521         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
28522         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28523         (ccp_visit_phi_node): Adjust.
28524         (evaluate_stmt): For simplifications to SSA names return its
28525         lattice value if that isn't VARYING.  Return immediately when
28526         simplified to a constant.
28527         (visit_assignment): Adjust.
28528         (ccp_visit_stmt): Likewise.
28530 2015-04-28  Tom de Vries  <tom@codesourcery.com>
28532         PR tree-optimization/65818
28533         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28534         evaluated.
28536 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28538         * calls.c (save_fixed_argument_area): Don't check
28539         ARGS_GROW_DOWNWARD with the preprocessor.
28540         (restore_fixed_argument_area): Likewise.
28541         (mem_overlaps_already_clobbered_arg_p): Likewise.
28542         (check_sibcall_argument_overlap): Likewise.
28543         (expand_call): Likewise.
28544         (emit_library_call_value_1): Likewise.
28545         (store_one_arg): Likewise.
28546         * function.c (assign_parms): Likewise.
28547         (locate_and_pad_parm): Likewise.
28548         (pad_to_arg_alignment): Likewise.
28549         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28551 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28553         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28554         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28555         * calls.c (save_fixed_argument_area): Don't chekc if
28556         ARGS_GROW_DOWNWARD is defined.
28557         (restore_fixed_argument_area): Likewise.
28558         (mem_overlaps_already_clobbered_arg_p): Likewise.
28559         (check_sibcall_argument_overlap): Likewise.
28560         (expand_call): Likewise.
28561         (emit_library_call_value_1): Likewise.
28562         (store_one_arg): Likewise.
28563         * function.c (assign_parms): Likewise.
28564         (locate_and_pad_parm): Likewise.
28565         (pad_to_arg_alignment): Likewise.
28566         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28568 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28570         * defaults.h (gen_epilogue): New function.
28571         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28572         defined.
28573         * cfgrtl.c (cfg_layout_finalize): Likewise.
28574         * df-scan.c: Likewise.
28575         * function.c (thread_prologue_and_epilogue_insns): Likewise.
28576         (reposition_prologue_and_epilogue_notes): Likewise.
28577         * reorg.c (find_end_label): Likewise.
28578         * toplev.c: Likewise.
28580 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28582         * bb-reorder.c (HAVE_return): Don't check if its undefined.
28583         * defaults.h (gen_simple_return): New function.
28584         (gen_simple_return): Likewise.
28585         (HAVE_return): Add default definition to false.
28586         (HAVE_simple_return): Likewise.
28587         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28588         HAVE_return and HAVE_simple_return are defined.
28589         * function.c (gen_return_pattern): Likewise.
28590         (convert_jumps_to_returns): Likewise.
28591         (thread_prologue_and_epilogue_insns): Likewise.
28592         * reorg.c (find_end_label): Likewise.
28593         (dbr_schedule): Likewise.
28594         * shrink-wrap.c: Likewise.
28595         * shrink-wrap.h: Likewise.
28597 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28599         * defaults.h (EPILOGUE_USES): Add default definition of false.
28600         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28601         * resource.c (init_resource_info): Likewise.
28603 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28605         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28606         to false.
28607         * dwarf2out.c (field_byte_offset): REmove check if
28608         PCC_BITFIELD_TYPE_MATTERS is defined.
28609         * stor-layout.c (layout_decl): Likewise.
28610         (update_alignment_for_field): Likewise.
28611         (place_field): Likewise.
28613 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28615         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28616         true.
28617         * regrename.c (check_new_reg_p): Remove check if
28618         HARD_REGNO_RENAME_OK is defined.
28619         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28621 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28623         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28624         * cse.c (fold_rtx): Likewise.
28625         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28626         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28627         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28628         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28629         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28630         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28631         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28632         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28633         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28634         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28635         * Likewise.
28636         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28637         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28638         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28639         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28640         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28641         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28642         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28643         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28644         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28645         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28646         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28647         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28648         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28649         * doc/tm.texi: Regenerate.
28650         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28651         either true or false.
28653 2015-04-27  Jeff Law  <law@redhat.com>
28655         PR tree-optimization/65217
28656         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28657         of them has a single use, make sure it is the LHS of the implied
28658         copy.
28660 2015-04-28  Alan Modra  <amodra@gmail.com>
28662         PR target/65810
28663         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28664         (offsettable_ok_by_alignment): Use minimum of decl and toc
28665         pointer alignment.  Replace dead code with assertion.
28666         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
28667         case if size exceeds toc pointer alignment.
28668         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28669         (rs6000_emit_move): Likewise.
28670         * configure.ac: Add linker toc pointer alignment check.
28671         * configure: Regenerate.
28672         * config.in: Regenerate.
28674 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
28676         * config.gcc: Add h8300-*-linux.
28677         * config/h8300/linux.h: New.
28678         * config/h8300/t-linux: New.
28679         * config/h8300/h8300.c (h8300_option_override): Normal mode
28680         is not supported for h8300-*-linux.
28681         (h8300_file_start): Target priority change.
28682         (get_shift_alg): Likewise.
28683         (h8300_shift_need_scratch_p): Likewise.
28684         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28685         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28687 2015-04-27  Caroline Tice  <cmtice@google.com>
28689         * final.c (final_scan_insn):  Output cold_function_name as function
28690         type.
28691         * varasm.c (cold_function_name):  Make global.
28692         (assemble_start_function):  Re-set cold_function_name.
28693         (assemble_end_function): Output cold partition size.
28694         * varasm.h (cold_function_name):  Declare global.
28696 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
28698         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28699         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28700         constraint.
28701         (*movxi_internal_avx512f): Ditto.
28702         (define_split): Check for xmm16+, when splitting scalar float_extend.
28703         (*extendsfdf2_mixed): Use "v" constraint.
28704         (define_split): Check for xmm16+, when splitting scalar float_truncate.
28705         (*truncdfsf_fast_sse): Use "v" constraint.
28706         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28707         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28708         (define_peephole2): Check for xmm16+, when converting scalar
28709         float_truncate.
28710         (define_peephole2): Check for xmm16+, when converting scalar
28711         float_extend.
28712         (*fop_<mode>_comm_mixed): Use "v" constraint.
28713         (*fop_<mode>_comm_sse): Ditto.
28714         (*fop_<mode>_1_mixed): Ditto.
28715         (*sqrt<mode>2_sse): Ditto.
28716         (*ieee_s<ieee_maxmin><mode>3): Ditto.
28718 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28720         * combine.c (simplify_if_then_else): Use std::swap instead
28721         of manually swapping.
28722         (known_cond): Likewise.
28723         (simplify_comparison): Likewise.
28725 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
28727         PR target/64579
28728         * config/rs6000/htm.md: Remove all define_expands.
28729         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28730         UNSPECV_HTM_TABORTWCI): Remove.
28731         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28732         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28733         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28734         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28735         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28736         tabortwci_internal): Remove define_insns.
28737         (tabort<wd>c, tabort<wd>ci): New define_insns.
28738         (tabort): Use gpc_reg_operand.
28739         (tcheck): Remove operand.
28740         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28741         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28742         expected value.
28743         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28744         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
28745         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28746         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28747         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28748         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28749         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28750         (tcheck): Remove builtin argument.
28751         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28752         not TARGET_64BIT.
28753         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
28754         tabortdc and tabortdci builtins when not in 64-bit mode.
28755         Modify code to handle the loss of the HTM define_expands.
28756         Emit code to copy the CR register to TARGET.
28757         (htm_init_builtins): Modify code to handle the loss of the HTM
28758         define_expands.
28759         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28760         (RS6000_BTC_64BIT): Likewise.
28761         (RS6000_BTC_CR): New macro.
28762         * doc/extend.texi: Update documentation for htm builtins.
28764 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28766         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28767         of manually swapping.
28768         (simplify_associative_operation): Likewise.
28769         (simplify_binary_operation): Likewise.
28770         (simplify_plus_minus): Likewise.
28771         (simplify_relational_operation): Likewise.
28772         (simplify_ternary_operation): Likewise.
28774 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28776         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28777         (xs_hi_nonmemory_operand): Remove error.
28778         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28779         general_operand rather than xs_hi_general_operand.
28781 2015-04-27  Richard Biener  <rguenther@suse.de>
28783         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28784         (record_equivalences_from_stmt): Valueize rhs.
28785         (record_equality): Canonicalize x and y order via
28786         tree_swap_operands_p.  Do not swap operands for same loop depth.
28788 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
28790         PR target/65296
28791         PR target/65895
28792         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28793         Add hint how to use own spec file.
28795 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
28797         PR tree-optimization/65875
28798         * tree-vrp.c (update_value_range): If in is_new case setting
28799         old_vr to VR_VARYING, also set new_vr to it.  Remove
28800         old_vr->type == VR_VARYING test.
28801         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28802         SSA_PROP_INTERESTING if update_value_range returned true,
28803         but new range is VR_VARYING.
28805 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28807         * combine.c (sign_extend_short_imm): New.
28808         (set_nonzero_bits_and_sign_copies): Use above new function for sign
28809         extension of src short immediate.
28810         (reg_nonzero_bits_for_combine): Likewise for tem.
28812 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28814         * stor-layout.c (self_referential_component_ref_p): New predicate.
28815         (copy_self_referential_tree_r): Use it.
28816         (self_referential_size): Punt for simple operations directly involving
28817         self-referential component references.
28818         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28820 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28822         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28824 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
28826         * vec.h (vec): Make splice arguments const.  Update definitions
28827         accordingly.
28829 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
28831         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28832         alternatives.
28834 2015-04-26  Tom de Vries  <tom@codesourcery.com>
28836         PR tree-optimization/65826
28837         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28839 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
28841         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28842         (*madd3<mode>): Ditto.
28843         (*msub4<mode>): Ditto.
28844         (*msub3<mode>): Ditto.
28845         (*nmadd4<mode>): Ditto.
28846         (*nmadd3<mode>): Ditto.
28847         (*nmadd4<mode>_fastmath): Ditto.
28848         (*nmadd3<mode>_fastmath): Ditto.
28849         (*nmsub4<mode>): Ditto.
28850         (*nmsub3<mode>): Ditto.
28851         (*nmsub4<mode>_fastmath): Ditto.
28852         (*nmsub3<mode>_fastmath): Ditto.
28854 2015-04-24  Jason Merrill  <jason@redhat.com>
28856         PR c++/50800
28857         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28858         down when building TYPE_CANONICAL.
28859         (build_pointer_type_for_mode): Likewise.
28861 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
28863         * genrecog.c (validate_pattern): Check matching constraint refers
28864         to a lower numbered operand.
28866 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28868         PR target/65849
28869         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28870         save to independent variables use the Save attribute.  This will
28871         allow these options to be modified with the #pragma/attribute
28872         target support.
28873         (-mallow-movmisalign): Likewise.
28874         (-mallow-df-permute): Likewise.
28875         (-msched-groups): Likewise.
28876         (-malways-hint): Likewise.
28877         (-malign-branch-targets): Likewise.
28878         (-mvectorize-builtins): Likewise.
28879         (-msave-toc-indirect): Likewise.
28881         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28882         can be set via the #pragma/attribute target support.
28883         (rs6000_opt_vars): Likewise.
28884         (rs6000_inner_target_options): If VSX was set, also set
28885         -mno-avoid-indexed-addresses.
28887 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28889         * config/arm/iterators.md (shiftable_ops): Rename to...
28890         (SHIFTABLE_OPS): ... This.  Update use in comments.
28891         (ior_xor): Rename to...
28892         (IOR_XOR): ... This.
28893         (vqh_ops): Rename to...
28894         (VQH_OPS): ... This.
28895         (vqhs_ops): Rename to...
28896         (VQHS_OPS): ... This.
28897         (rshifts): Rename to...
28898         (RSHIFTS): ... This.
28899         (returns): Rename to...
28900         (RETURNS): ... This.
28901         * config/arm/arm.md: Update uses of the above.
28902         * config/arm/neon.md: Likewise.
28904 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28906         * config.host (case ${host}): Add aarch64*-*-linux case.
28907         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28908         fields to all the cores.
28909         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28910         Add MCPU_MTUNE_NATIVE_SPECS.
28911         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28912         field to all extensions.
28913         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28914         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28915         Adjust definition of AARCH64_OPT_EXTENSION.
28916         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28917         (MCPU_MTUNE_NATIVE_SPECS): Define.
28918         * config/aarch64/driver-aarch64.c: New file.
28919         * config/aarch64/x-arch64: New file.
28920         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28921         -mtune and -march.
28923 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28924             Wei Mi  <wmi@google.com>
28926         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28927         * config/i386/i386.c (extract_base_offset_in_addr): New function.
28928         (ix86_operands_ok_for_move_multiple): Ditto.
28929         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28930         (movlpd/movhpd to movupd peephole2): Ditto.
28932 2015-04-24  Marek Polacek  <polacek@redhat.com>
28934         PR c/61534
28935         * input.h (from_macro_expansion_at): Define.
28937         PR c/63357
28938         * doc/invoke.texi: Update description of -Wlogical-op.
28940 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28942         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28943         ternary operator in fprintf and harmonize spacing.
28945 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28947         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28948         Mark operand1 commutative.
28950 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
28952         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28953         input operands in memory.
28954         (*vec_concatv2si_sse4_1): Ditto.
28955         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28956         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28957         register_operand.
28958         (vec_extract_hi_v32hi): Ditto.
28959         (vec_extract_hi_v64hi): Ditto.
28960         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28962 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28963             Steven Bosscher <steven@gcc.gnu.org>
28965         PR rtl-optimization/34503
28966         * cprop.c (cprop_reg_p): New.
28967         (hash_scan_set): Use above function to check if register can be
28968         propagated.
28969         (find_avail_set): Return up to two sets, one whose source is a
28970         register and one whose source is a constant.  Sets are returned in an
28971         array passed as parameter rather than as a return value.
28972         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
28973         sets returned by find_avail_set, starting with the one whose source is
28974         a constant. Use cprop_reg_p to check if register can be propagated.
28975         (do_local_cprop): Use cprop_reg_p to check if register can be
28976         propagated.
28977         (implicit_set_cond_p): Likewise.
28979 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
28981         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28982         (sem_function::equals): IGNORED_NODES parameter is now unused;
28983         update call of equals_private.
28984         (sem_function::equals_private): Do not call equals_wpa; skip
28985         gimple body matching if there is no body.
28986         (sem_function::init): Add logic to hash tthunk info.
28987         (sem_function::parse): Also parse thunks.
28988         * ipa-icf.h (equals_private): Update declaration.
28990 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28992         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28993         asterisk from name so this can be generated directly.
28994         (*altivec_stvx_<mode>_internal): Likewise.
28995         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28996         that this is never called during or after reload/lra.
28997         (rs6000_frame_related): Remove split_reg
28998         argument and logic that references it.
28999         (emit_frame_save): Remove last parameter from call to
29000         rs6000_frame_related.
29001         (rs6000_emit_prologue): Remove last parameter from eight calls to
29002         rs6000_frame_related.  Force generation of stvx instruction for
29003         Altivec register saves.  Remove split_reg handling, which is no
29004         longer needed.
29005         (rs6000_emit_epilogue):  Force generation of lvx instruction for
29006         Altivec register restores.
29008 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29010         * config/rs6000/rs6000.opt (mcrypto): Change option description to
29011         match category changes in ISA 2.07B.
29013 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29015         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29016         iterators.
29017         (cmp_op, cmp_type): New code attributes.
29018         (NEON_VCMP, NEON_VACMP): New int iterators.
29019         (cmp_op_unsp): New int attribute.
29020         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29021         (neon_vceq<mode>): Delete.
29022         (neon_vc<cmp_op><mode>_insn): New pattern.
29023         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29024         (neon_vcgeu<mode>): Delete.
29025         (neon_vcle<mode>): Likewise.
29026         (neon_vclt<mode>: Likewise.
29027         (neon_vcage<mode>): Likewise.
29028         (neon_vcagt<mode>): Likewise.
29029         (neon_vca<cmp_op><mode>): New define_expand.
29030         (neon_vca<cmp_op><mode>_insn): New pattern.
29031         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29033 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29035         * tree.h (attribute_value_equal): Declare.
29036         * tree.c (attribute_value_equal): Export.
29038 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29040         * ipa-icf.c (sem_item::compare_attributes): New function.
29041         (sem_item::compare_referenced_symbol_properties): Compare variable
29042         attributes.
29043         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29044         (sem_function::param_used_p): New function.
29045         (sem_function::equals_wpa): Fix attribute comparsion; match
29046         parameter type codes; do not compare paremter flags when
29047         they are not used; compare edge flags; compare indirect calls.
29048         (sem_item::update_hash_by_addr_refs): Hash reference type.
29049         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29050         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29051         reference use type.
29052         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29053         * ipa-icf.h (compare_attributes, param_used_p): Declare.
29055 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
29057         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29058         cleanup.
29059         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29060         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29061         (sem_item::compare_referenced_symbol_properties): New.
29062         (sem_item::hash_referenced_symbol_properties): New.
29063         (sem_item::compare_cgraph_references): Rename to ...
29064         (sem_item::compare_symbol_references): ... this one; use
29065         compare_referenced_symbol_properties.
29066         (sem_function::equals_wpa): Do not compare
29067         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29068         DECL_IS_OPERATOR_NEW; compare pointer sizes.
29069         (sem_item::update_hash_by_addr_refs): Call
29070         hash_referenced_symbol_properties.
29071         (sem_item::update_hash_by_local_refs): Cleanup.
29072         (sem_function::merge): Do not mix up symbol properties.
29073         (sem_variable::equals_wpa): Use compare_symbol_references.
29074         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29075         (sem_item::hash_referenced_symbol_properties): New.
29076         (sem_item::compare_symbol_references): New.
29077         (sem_item::compare_cgraph_references): Remove.
29079 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
29081         PR target/26702
29082         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29083         Emit size of local.
29085 2015-04-23  Nick Clifton  <nickc@redhat.com>
29087         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29088         ATTRIBUTE_UNUSED to x parameter.
29089         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29091 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29093         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29094         TARGET_CRYPTO to TARGET_P8_VECTOR>
29095         (crypto_vpermxor_<mode>): Likewise.
29096         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29097         (BU_CRYPTO_3A): Likewise.
29098         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29099         (BU_CRYPTO_OVERLOAD_3A): New #define.
29100         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29101         (VPMSUMH): Likewise.
29102         (VPMSUMW): Likewise.
29103         (VPMSUMD): Likewise.
29104         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29105         (VPERMXOR_V4SI): Likewise.
29106         (VPERMXOR_V8HI): Likewise.
29107         (VPERMXOR_V16QI): Likewise.
29108         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29109         BU_CRYPTO_OVERLOAD_2A.
29110         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29111         BU_CRYPTO_OVERLOAD_3A.
29112         * config/rs6000/rs6000.opt (mcrypto): Change description of
29113         option.
29115 2015-04-23  Richard Biener  <rguenther@suse.de>
29117         * passes.def: Remove copy propagation passes run directly after CCP.
29118         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29119         SSA names.
29120         (ccp_visit_phi_node): Rework to handle first executable edge
29121         specially.
29123 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
29125         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29126         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29127         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29128         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29129         (thumb_legimitimize_reload_address): Remove.
29130         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29131         Remove.
29132         (thumb_legimitimize_reload_address): Remove.
29134 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29136         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29138 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29140         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29141         MAX_LDM_STM_OPS.
29142         (store_multiple): Likewise.
29144 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29146         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29147         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29148         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29149         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29150         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29151         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29152         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29153         Specify issue_rate value.
29154         (arm_issue_rate): Look up issue rate from tuning structs. Remove
29155         large switch statement.
29156         (arm_marvell_pj4_tune): New struct.
29157         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29158         struct.
29160 2015-04-23  Richard Biener  <rguenther@suse.de>
29162         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29163         (vect_find_last_store_in_slp_instance): Rename to ...
29164         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29165         (vect_analyze_slp_cost_1): Use vector_load for constant defs
29166         and vec_construct for external defs when estimating prologue cost.
29167         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29168         Compute costs here only when vectorizing loops.
29169         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29170         have been determined.
29171         (vect_schedule_slp_instance): Simplify vectorized code placement
29172         and prepare for in-BB external defs.
29173         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29174         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29175         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29176         guard.
29177         (vect_model_load_cost): Likewise.
29178         (vectorizable_store): Instead add it here.
29179         (vectorizable_load): Likewise.
29180         (vect_is_simple_use): Dump def type textually.
29182 2015-04-23  Richard Biener  <rguenther@suse.de>
29184         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29185         * cfgloop.c (verify_loop_structure): Verify the root loop node.
29186         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29187         instead of get_eh_region_from_lp_number.
29188         * loop-init.c (fix_loop_structure): If we removed a loop, reset
29189         the SCEV cache.
29191 2015-04-23  Anton Blanchard  <anton@samba.org>
29193         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29194         need for -mprofile-kernel to save LR to stack.
29196 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29198         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29199         adjustments.
29200         (insn_is_swappable_p): Return 1 for a convert from double to
29201         single precision when all of its uses are splats of BE element
29202         zero.
29204 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
29206         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29208 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29210         PR target/65456
29211         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
29212         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29213         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29214         option.
29215         (rs6000_builtin_mask_for_load): Return 0 for targets with
29216         efficient unaligned VSX accesses so that the vectorizer will use
29217         direct unaligned loads.
29218         (rs6000_builtin_support_vector_misalignment): Always return true
29219         for targets with efficient unaligned VSX accesses.
29220         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29221         stores on targets with efficient unaligned VSX accesses is almost
29222         always the same as the cost of an aligned load or store, so model
29223         it that way.
29224         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29225         unaligned vectors if we have efficient unaligned VSX accesses.
29226         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29227         undocumented option.
29229 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29231         Revert:
29232         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
29234         * config.gcc (LIBC_MUSL): New tm_defines macro.
29235         * config/linux.h (OPTION_MUSL): Define.
29236         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29237         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29238         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29240         * config/linux.opt (mmusl): New option.
29241         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29242         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29244         * configure: Regenerate.
29246 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
29248         * config.gcc (LIBC_MUSL): New tm_defines macro.
29249         * config/linux.h (OPTION_MUSL): Define.
29250         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29251         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29252         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29254         * config/linux.opt (mmusl): New option.
29255         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29256         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29258         * configure: Regenerate.
29260 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
29262         * doc/invoke.texi (-fsanitize-sections): Update description.
29263         * asan.c (set_sanitized_sections): Parse incoming arg.
29264         (section_sanitized_p): Support wildcards.
29266 2015-04-22  Tom de Vries  <tom@codesourcery.com>
29268         PR tree-optimization/65823
29269         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29270         equality between ap_copy and ap.
29272 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29274         PR target/47098
29275         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29277 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29279         PR target/47122
29280         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29282 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29284         PR target/55144
29285         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29286         remove already contained t-files.
29288 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29290         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29291         Remove unneeded forward declarations.
29292         (suitable_for_tail_call_opt_p): Commentary typo fix.
29294 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29296         * varasm.c (emit_bss): Remove redundant guard.
29298 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29300         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29302 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29304         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29306 2015-04-22  Hale Wang  <hale.wang@arm.com>
29307             Terry Guo  <terry.guo@arm.com>
29309         PR rtl-optimization/64818
29310         * combine.c (can_combine_p): Don't combine user-specified
29311         register if it is in an asm input.
29313 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
29315         PR ipa/65076
29316         * passes.def (early_optimizations): Add pass_dse.
29318 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29320         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29321         * reorg.c (redundant_insn): Remove ifdef
29322         INSN_REFERENCES_ARE_DELAYED.
29323         * resource.c (mark_referenced_resources): Likewise.
29325 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29327         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29328         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29329         * resource.c (mark_set_resources): Likewise.
29331 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29333         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29334         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29335         (flow_find_head_matching_sequence): Likewise.
29336         (try_head_merge_bb): Likewise.
29337         * combine.c (can_combine_p): Likewise.
29338         (try_combine): Likewise.
29339         (distribute_notes): Likewise.
29340         * df-problems.c (can_move_insns_across): Likewise.
29341         * final.c (final): Likewise.
29342         * gcse.c (insert_insn_end_basic_block): Likewise.
29343         * ira.c (find_moveable_pseudos): Likewise.
29344         * reorg.c (try_merge_delay_insns): Likewise.
29345         (fill_simple_delay_slots): Likewise.
29346         (fill_slots_from_thread): Likewise.
29347         * sched-deps.c (sched_analyze_2): Likewise.
29349 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29351         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29352         PIC_OFFSET_TABLE_REGNUM.
29354 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29356         * alias.c (init_alias_target): Remove ifdef
29357         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29358         * df-scan.c (df_insn_refs_collect): Likewise.
29359         (df_get_regular_block_artificial_uses): Likewise.
29360         (df_get_eh_block_artificial_uses): Likewise.
29361         (df_get_entry_block_def_set): Likewise.
29362         (df_get_exit_block_use_set): Likewise.
29363         * emit-rtl.c (gen_rtx_REG): Likewise.
29364         * ira.c (ira_setup_eliminable_regset): Likewise.
29365         * reginfo.c (init_reg_sets_1): Likewise.
29366         * regrename.c (rename_chains): Likewise.
29367         * reload1.c (reload): Likewise.
29368         (eliminate_regs_in_insn): Likewise.
29369         * resource.c (mark_referenced_resources): Likewise.
29370         (init_resource_info): Likewise.
29372 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29374         * defaults.h (MASK_RETURN_ADDR): New definition.
29375         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29376         MASK_RETURN_ADDR.
29378 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29380         * defaults.h (RETURN_ADDR_OFFSET): New definition.
29381         * except.c (expand_builtin_extract_return_addr): Remove ifdef
29382         RETURN_ADDR_OFFSET.
29383         (expand_builtin_frob_return_addr): Likewise.
29385 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29387         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29388         (try_redirect_by_replacing_jump): Likewise.
29389         (rtl_tidy_fallthru_edge): Likewise.
29390         * combine.c (insn_a_feeds_b): Likewise.
29391         (find_split_point): Likewise.
29392         (simplify_set): Likewise.
29393         * cprop.c (cprop_jump): Likewise.
29394         * cse.c (cse_extended_basic_block): Likewise.
29395         * df-problems.c (can_move_insns_across): Likewise.
29396         * function.c (emit_use_return_register_into_block): Likewise.
29397         * haifa-sched.c (sched_init): Likewise.
29398         * ira.c (find_moveable_pseudos): Likewise.
29399         * loop-invariant.c (find_invariant_insn): Likewise.
29400         * lra-constraints.c (curr_insn_transform): Likewise.
29401         * postreload.c (reload_combine_recognize_const_pattern):
29402         * Likewise.
29403         * reload.c (find_reloads): Likewise.
29404         * reorg.c (delete_scheduled_jump): Likewise.
29405         (steal_delay_list_from_target): Likewise.
29406         (steal_delay_list_from_fallthrough): Likewise.
29407         (redundant_insn): Likewise.
29408         (fill_simple_delay_slots): Likewise.
29409         (fill_slots_from_thread): Likewise.
29410         (delete_computation): Likewise.
29411         * sched-rgn.c (add_branch_dependences): Likewise.
29413 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29415         * genconfig.c (main): Always define HAVE_cc0.
29416         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29417         HAVE_cc0.
29418         * cfgcleanup.c (flow_find_cross_jump): Likewise.
29419         (flow_find_head_matching_sequence): Likewise.
29420         (try_head_merge_bb): Likewise.
29421         * cfgrtl.c (rtl_merge_blocks): Likewise.
29422         (try_redirect_by_replacing_jump): Likewise.
29423         (rtl_tidy_fallthru_edge): Likewise.
29424         * combine.c (do_SUBST_MODE): Likewise.
29425         (insn_a_feeds_b): Likewise.
29426         (combine_instructions): Likewise.
29427         (can_combine_p): Likewise.
29428         (try_combine): Likewise.
29429         (find_split_point): Likewise.
29430         (subst): Likewise.
29431         (simplify_set): Likewise.
29432         (distribute_notes): Likewise.
29433         * cprop.c (cprop_jump): Likewise.
29434         * cse.c (cse_extended_basic_block): Likewise.
29435         * df-problems.c (can_move_insns_across): Likewise.
29436         * final.c (final): Likewise.
29437         (final_scan_insn): Likewise.
29438         * function.c (emit_use_return_register_into_block): Likewise.
29439         * gcse.c (insert_insn_end_basic_block): Likewise.
29440         * haifa-sched.c (sched_init): Likewise.
29441         * ira.c (find_moveable_pseudos): Likewise.
29442         * loop-invariant.c (find_invariant_insn): Likewise.
29443         * lra-constraints.c (curr_insn_transform): Likewise.
29444         * optabs.c (prepare_cmp_insn): Likewise.
29445         * postreload.c (reload_combine_recognize_const_pattern):
29446         * Likewise.
29447         * reload.c (find_reloads): Likewise.
29448         (find_reloads_address_1): Likewise.
29449         * reorg.c (delete_scheduled_jump): Likewise.
29450         (steal_delay_list_from_target): Likewise.
29451         (steal_delay_list_from_fallthrough): Likewise.
29452         (try_merge_delay_insns): Likewise.
29453         (redundant_insn): Likewise.
29454         (fill_simple_delay_slots): Likewise.
29455         (fill_slots_from_thread): Likewise.
29456         (delete_computation): Likewise.
29457         (relax_delay_slots): Likewise.
29458         * sched-deps.c (sched_analyze_2): Likewise.
29459         * sched-rgn.c (add_branch_dependences): Likewise.
29461 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29463         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29464         that is trivially ded on non cc0 targets.
29465         (simplify_set): Likewise.
29466         (mark_used_regs_combine): Likewise.
29467         * cse.c (new_basic_block): Likewise.
29468         (fold_rtx): Likewise.
29469         (cse_insn): Likewise.
29470         (cse_extended_basic_block): Likewise.
29471         (set_live_p): Likewise.
29472         * rtlanal.c (canonicalize_condition): Likewise.
29473         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29475 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29477         * conditions.h: Define macros even if HAVE_cc0 is undefined.
29478         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29479         * final.c: Likewise.
29480         * jump.c: Likewise.
29481         * recog.c: Likewise.
29482         * recog.h: Declare functions even when HAVE_cc0 is undefined.
29483         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29485 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29487         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29488         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29489         * builtins.c (expand_builtin): Remove check if
29490         EH_RETURN_DATA_REGNO is defined.
29491         * df-scan.c (df_bb_refs_collect): Likewise.
29492         (df_get_exit_block_use_set): Likewise.
29493         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29494         * ira-lives.c (process_bb_node_lives): Likewise.
29495         * lra-lives.c (process_bb_lives): Likewise.
29497 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
29499         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29500         FIRST_PSEUDO_REG): New.
29501         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29502         (ARG_POINTER_REGNUM): Define to ARGP_REG.
29503         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29504         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29505         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29506         (FIRST_INT_REG): New.
29507         (LAST_INT_REG): New.
29508         (FIRST_*_REG): Define using *_REG.
29509         (LAST_*_REG): Ditto.
29510         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29511         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29512         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29514 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29516         * expmed.c: (synth_mult): Only assume overlapping
29517         shift with previous steps in alg_sub_t_m2 case.
29519 2015-04-21  Richard Biener  <rguenther@suse.de>
29521         PR tree-optimization/65650
29522         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29523         transitions involving copies.
29524         (set_lattice_value): Adjust for copy lattice state.
29525         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29526         if that doesn't dominate the merge point.
29527         (bit_value_unop): Adjust what we treat as varying mask.
29528         (bit_value_binop): Likewise.
29529         (bit_value_assume_aligned): Likewise.
29530         (evaluate_stmt): When we simplified to a SSA name record a copy
29531         instead of dropping to varying.
29532         (visit_assignment): Simplify.
29534         * gimple-match.h (gimple_simplify): Add another callback.
29535         * gimple-fold.c (fold_stmt_1): Adjust caller.
29536         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29537         for the 2nd callback.
29538         * gimple-match-head.c (gimple_simplify): Add a callback that is
29539         used to valueize the stmt operands and use it that way.
29541 2015-04-21  Richard Biener  <rguenther@suse.de>
29543         PR tree-optimization/65788
29544         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29546 2015-04-21  Richard Biener  <rguenther@suse.de>
29548         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29549         vec_construct cost by vec_stmt_cost.
29551 2015-04-21  Richard Biener  <rguenther@suse.de>
29553         * cfghooks.h (create_basic_block): Replace with two overloads
29554         for RTL and GIMPLE.
29555         (split_block): Likewise.
29556         * cfghooks.c (split_block): Rename to ...
29557         (split_block_1): ... this.
29558         (split_block): Add two type-safe overloads for RTL and GIMPLE.
29559         (split_block_after_labels): Call split_block_1.
29560         (create_basic_block): Rename to ...
29561         (create_basic_block_1): ... this.
29562         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29563         (create_empty_bb): Call create_basic_block_1.
29564         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29565         split_block_after_labels.
29566         * omp-low.c (expand_parallel_call): Likewise.
29567         (expand_omp_target): Likewise.
29568         (simd_clone_adjust): Likewise.
29569         * tree-chkp.c (chkp_get_entry_block): Likewise.
29570         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29571         create_basic_block overload.
29572         (cgraph_node::expand_thunk): Likewise.
29573         * tree-cfg.c (make_blocks): Likewise.
29574         (handle_abnormal_edges): Likewise.
29575         * tree-inline.c (copy_bb): Likewise.
29577 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29579         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29580         New pattern.
29581         (*xor_one_cmplsidi3_ze): Likewise.
29583 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29585         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29586         use df_remove_problem rather than manually removing problems, leaving
29587         holes in df->problems_in_order[].
29589 2015-04-21  Tom de Vries  <tom@codesourcery.com>
29591         PR tree-optimization/65802
29592         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29594 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29596         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29597         Increase to 128.
29598         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29599         at '.'.  Assert that there's enough space for everything.
29601 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
29603         PR tree-optimization/64950
29604         Revert:
29605         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
29607         PR target/41089
29608         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29609         as volatile.
29611 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
29613         PR rtl-optimization/64916
29614         * cfgcleanup.c (values_equal_p): New function.
29615         (can_replace_by): Use it.
29617 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
29619         PR c++/65801
29620         * doc/invoke.texi ([-Wnarrowing]): Update.
29622 2015-04-20  Jeff Law  <law@redhat.com>
29624         PR tree-optimization/65658
29625         * tree-ssa-threadupdate.c (redirection_block_p): Remove
29626         redundant test for GIMPLE_ASSIGN in last change.
29628 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
29630         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29631         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29632         (legitimize_tls_address): Ditto.
29633         (ix86_expand_move): Ditto.
29634         (ix86_expand_binary_operator): Remove reload_in_progress checks.
29635         (ix86_expand_unary_operator): Ditto.
29636         * config/i386/predicates.md (index_register_operand): Ditto.
29638 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
29640         * reorg.c (try_merge_delay_insns): Improve correctness checking
29641         for targets with multiple delay slots.
29643 2015-04-20  Jeff Law  <law@redhat.com>
29645         PR tree-optimization/65658
29646         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29647         statements too.
29649 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29651         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29652         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29653         Delete.
29655 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
29657         PR debug/65807
29658         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29660 2015-04-20  Richard Biener  <rguenther@suse.de>
29662         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29663         * gimple-fold.c (gimple_build_valueize): New function.
29664         (gimple_build): Always use gimple_build_valueize as valueize hook.
29666 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
29668         PR target/64134
29669         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29670         and overwrite variable parts if <= 1/2 the elements are variable.
29672 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29674         PR rtl-optimization/65805
29675         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29676         Don't use difference of offset and previous offset if
29677         update_sp_offset is non-zero.
29678         (eliminate_regs_in_insn): Ditto.
29679         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29680         lra_eliminate_regs_1 call.
29681         * lra-constraints.c (get_equiv_with_elimination): Ditto.
29683 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
29685         * hash-table.h: Remove version of hash_table that stored value_type *.
29686         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29687         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29688         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29689         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29690         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29691         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29692         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29693         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29694         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29695         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29696         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29697         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29698         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29699         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29700         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29701         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29703 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29704             Jakub Jelinek  <jakub@redhat.com>
29706         PR target/65787
29707         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29708         subsequent SH_NONE operand does not overwrite an existing *special
29709         value.
29710         (adjust_extract): Handle case where a vec_extract operation is
29711         wrapped in a PARALLEL.
29713 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29715         PR target/65780
29716         * config/i386/i386.c (ix86_binds_local_p): Define only if
29717         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29719 2015-04-17  Jeff Law  <law@redhat.com>
29721         PR tree-optimization/47679
29722         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29723         * tree-ssa-scopedtables.c: New file.
29724         * tree-ssa-scopedtables.h: New file.
29725         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29726         (const_and_copies): Change name/type.
29727         (record_const_or_copy): Move into tree-ssa-scopedtables.c
29728         (record_const_or_copy_1): Similarly.
29729         (restore_vars_to_original_value): Similarly.
29730         (pass_dominator::execute): Create and destroy const_and_copies table.
29731         (thread_across_edge): Update passing of const_and_copies.
29732         (record_temporary_equivalence): Use method calls rather than
29733         manipulating const_and_copies directly.
29734         (record_equality, cprop_into_successor_phis): Similarly.
29735         (dom_opt_dom_walker::before_dom_children): Similarly.
29736         (dom_opt_dom_walker::after_dom_children): Similarly.
29737         (eliminate_redundant_computations): Similarly.
29738         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29739         (record_temporary_equivalence): Likewise.
29740         (invalidate_equivalences): Likewise.
29741         (record_temporary_equivalences_from_phis): Update due to type
29742         change of const_and_copies.  Use method calls rather than
29743         manipulating the stack directly.
29744         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29745         (thread_through_normal_block, thread_across_edge): Likewise.
29746         (thread_across_edge): Likewise.
29747         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29748         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
29749         of equiv_stack.
29750         (identify_jump_threads): Update due to type change of equiv_stack.
29751         (finalize_jump_threads): Delete the equiv_stack when complete.
29753 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
29755         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29756         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29757         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29759 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
29761         PR target/65535
29762         * config.gcc: Exit with a comment when we do not have a major version
29763         number for the FreeBSD target.
29765 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29767         PR target/65689
29768         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29769         maybe_allows_mem bitfields.
29770         (maybe_allows_none_start, maybe_allows_none_end,
29771         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29772         maybe_allows_mem_end): New variables.
29773         (compute_maybe_allows): New function.
29774         (add_constraint): Use it to initialize maybe_allows_reg and
29775         maybe_allows_mem fields.
29776         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29777         is_address constraints such that those that allow neither mem nor
29778         reg come first, then those that only allow reg but not mem, then
29779         those that only allow mem but not reg, then the rest.
29780         (write_allows_reg_mem_function): New function.
29781         (write_tm_preds_h): Call it.
29782         * stmt.c (parse_output_constraint, parse_input_constraint): Use
29783         the generated insn_extra_constraint_allows_reg_mem function
29784         instead of always setting *allows_reg = true; *allows_mem = true;
29785         for unknown extra constraints.
29787 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29789         PR target/65780
29790         * output.h (default_binds_local_p_3): New.
29791         * varasm.c (default_binds_local_p_3): Make it public.  Take an
29792         argument to indicate if common symbol may be local.  If common
29793         symbol may be local, treat non-external variable as defined
29794         locally.
29795         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29796         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29797         * config/i386/i386.c (ix86_binds_local_p): New.
29798         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29799         ix86_binds_local_p.
29801 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29803         PR debug/65771
29804         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29805         trying mem_loc_descriptor on XEXP (rtl, 0).
29807 2015-04-17  Martin Liska  <mliska@suse.cz>
29809         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29810         Release symbol_compare_collection.
29811         * ipa-reference.c: Add TODO that a vector should be released.
29813 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29815         PR target/65296
29816         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29817         to new AVR-LibC file layout (bug #44574).
29818         (*avrlibc_devicelib): Same.
29819         * config/avr/avr-mcus.def: Adjust comments.
29820         * config/avr/avr.opt (nodevicelib): Adjust help.
29822 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
29824         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29826 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
29828         PR c++/64527
29829         * gimplify.c (gimplify_init_constructor): Always emit a
29830         side-effecting constructor.
29832 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29834         PR tree-optimization/64950
29835         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29836         in cfun->curr_properties.
29837         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29838         if we generate an IFN_VA_ARG.
29839         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29840         function if PROP_gimple_lva is not set in src function.
29842 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29843             Michael Matz  <matz@suse.de>
29845         PR tree-optimization/64950
29846         * gimple-iterator.c (update_modified_stmts): Remove static.
29847         * gimple-iterator.h (update_modified_stmts): Declare.
29848         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29849         (gimplify_va_arg_internal): New function.
29850         (gimplify_va_arg_expr): Use IFN_VA_ARG.
29851         * gimplify.h (gimplify_va_arg_internal): Declare.
29852         * internal-fn.c (expand_VA_ARG): New unreachable function.
29853         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29854         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29855         (expand_ifn_va_arg): New function.
29856         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29857         (pass_stdarg::execute): Call expand_ifn_va_arg.
29858         (pass_data_lower_vaarg): New pass_data.
29859         (pass_lower_vaarg): New gimple_opt_pass.
29860         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29861         (make_pass_lower_vaarg): New function.
29862         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29863         properties_required field.
29864         * passes.def (all_passes): Add pass_lower_vaarg.
29865         * tree-pass.h (PROP_gimple_lva): Add define.
29866         (make_pass_lower_vaarg): Declare.
29868 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29870         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29871         * calls.c (call_expr_flags): Same.
29873 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29875         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29876         (pass_stdarg::execute): ... here.
29878 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29879             Michael Matz  <matz@suse.de>
29881         * tree-cfg.c (make_blocks_1): Factor out of ...
29882         (make_blocks): ... here.
29883         (make_edges_bb): Factor out of ...
29884         (make_edges): ... here.
29885         (gimple_find_sub_bbs): New function.
29886         * tree-cfg.h (gimple_find_sub_bbs): Declare.
29888 2015-04-17  Tom de Vries  <tom@codesourcery.com>
29890         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29892 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
29894         * asan.c (set_sanitized_sections): New function.
29895         (section_sanitized_p): Ditto.
29896         (asan_protect_global): Optionally sanitize user-defined
29897         sections.
29898         * asan.h (set_sanitized_sections): Declare new function.
29899         * common.opt (fsanitize-sections): New option.
29900         * doc/invoke.texi (-fsanitize-sections): Document new option.
29901         * opts-global.c (handle_common_deferred_options): Handle new
29902         option.
29904 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
29906         PR debug/65771
29907         * dwarf2out.c (loc_list_from_tree): Return NULL
29908         for DEBUG_EXPR_DECL.
29910 2015-04-17  Christian Bruel  <christian.bruel@st.com>
29912         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29913         same attributes.
29915 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29917         * ira-color.c (setup_left_conflict_sizes_p): Do not process
29918         node itself when computing left conflict subnode size.
29920 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
29922         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29923         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29924         *fop_<mode>_1_sse using enabled attribute.  Use
29925         register_mixssei387nonimm_operand operand 1 predicate. Change
29926         alternative 3 constraints from "x" to "v".
29928 2015-04-16  Richard Biener  <rguenther@suse.de>
29930         PR tree-optimization/65774
29931         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29932         bit-value tracking on.
29934 2015-04-16  Richard Biener  <rguenther@suse.de>
29936         PR tree-optimization/64277
29937         * tree-vrp.c (check_array_ref): Fix anti-range handling,
29938         simplify upper bound handling.
29939         (search_for_addr_array): Simplify.
29940         (check_array_bounds): Handle ADDR_EXPRs here.
29941         (check_all_array_refs): Simplify.
29943 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
29945         * config/i386/i386.c (print_reg): Rewrite function.
29947 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29949         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29950         Invert the condition.
29952 2015-04-16  Renlin Li  <renlin.li@arm.com>
29954         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29955         simplifications for UNSIGNED_FLOAT.
29957 2015-04-16  Nick Clifton  <nickc@redhat.com>
29959         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29960         MUL_UNINIT.
29961         (enum rl78_cpu_type): New.
29962         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29963         (umulhi3_shift_virt): Remove m constraint from operand 1.
29964         (umulqihi3_virt): Likewise.
29965         * config/rl78/rl78.c (rl78_option_override): Add code to process
29966         -mcpu and -mmul options.
29967         (rl78_alloc_physical_registers): Add code to handle divhi and
29968         divsi valloc attributes.
29969         (set_origin): Likewise.
29970         * config/rl78/rl78.h (RL78_MUL_G14): Define.
29971         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29972         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29973         __RL78_Gxx__.
29974         (ASM_SPEC): Pass -mcpu on to assembler.
29975         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29976         (mulqi3_rl78): Likewise.
29977         (mulhi3_g13): Likewise.
29978         (mulhi3): Generate the G13 or G14 versions of the insn directly.
29979         (mulsi3): Likewise.
29980         (mulhi3_g14): Add clobbers of AX and BC.
29981         (mulsi3_g14): Likewise.
29982         (mulsi3_g13): Likewise.
29983         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29984         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29985         * config/rl78/rl78.opt (mmul): Initialise value to
29986         RL78_MUL_UNINIT.
29987         (mcpu): New option.
29988         (m13, m14, mrl78): New option aliases.
29989         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29990         (MULTILIB_DIRNAMES): Add g13 and g14.
29991         * doc/invoke.texi: Document -mcpu and -mmul options.
29993 2015-04-16  Richard Biener  <rguenther@suse.de>
29995         * tree-ssa-ccp.c (likely_value): See if we have operands that
29996         are marked as never simulate again and return CONSTANT in this
29997         case.
29998         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29999         not have any operands that will be simulated again as
30000         not being simulated again.
30002 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
30004         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30005         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30006         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30007         attribute.
30008         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30009         enabled attribute.
30010         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30011         *float<SWI48:mode><MODEF:mode>2_sse.
30012         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30013         enabled attribute.
30014         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30015         enabled attribute.
30017 2015-04-15  Tom de Vries  <tom@codesourcery.com>
30019         PR other/65487
30020         * function.c (push_dummy_function): New function.
30021         (init_dummy_function_start): Use push_dummy_function.
30022         (pop_dummy_function): New function.  Factored out of ...
30023         (expand_dummy_function_end): ... here.
30024         * function.h (push_dummy_function, pop_dummy_function): Declare.
30025         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30026         pop_dummy_function.
30027         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30029 2015-04-15  Jeff Law  <law@redhat.com>
30031         PR tree-optimization/47679
30032         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30033         need for forward declaration in upcoming changes.
30034         (record_conditions, record_edge_info): Likewise.
30036         PR rtl-optimization/42522
30037         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30038         SIGN_EXTRACT as a whole object rather than simplifying
30039         its operand.
30041 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
30043         PR ipa/65765
30044         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30045         and GIMPLE_PREDICT use break instead of return true. For
30046         GIMPLE_EH_DISPATCH, compare dispatch region.
30048 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
30050         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
30051         details about the implementation.  Make clear preference for
30052         __atomic builtins.  Reduce possibility of future change.
30054 2015-04-15  Nick Clifton  <nickc@redhat.com>
30056         * config/rx/rx.opt (mallow-string-insns): New option.
30057         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30058         builtin if string instructions are denied.
30059         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30060         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30061         appropriate.
30062         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30063         * config/rx/rx.md (movstr): Enable pattern only if string
30064         instructions are allowed.
30065         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30066         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30067         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30068         (MULTILIB_DIRNAMES): Add no-strings.
30069         * doc/invoke.texi: Document -mno-allow-string-insns.
30071 2015-04-15  Alan Modra  <amodra@gmail.com>
30073         PR target/65408
30074         PR target/58744
30075         PR middle-end/36043
30076         * calls.c (load_register_parameters): Don't load past end of
30077         mem unless suitably aligned.
30079 2015-04-15  Nick Clifton  <nickc@redhat.com>
30081         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30082         decrement instruction as being frame related.
30083         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30084         based addresses.
30085         If zero extending a function address enclose the operation in
30086         %code(...).
30087         (rl78_preferred_reload_class): New function.
30088         (TARGET_PREFERRED_RELOAD_CLASS): Define.
30089         * config/rl78/rl78.md: Remove useless constraints in expanders.
30090         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30091         (mulhi3_rl78): Likewise.
30092         (mulhi3_g13): Likewise.
30093         (mulsi3_rl78): Likewise.
30094         (es_addr): Move to before the multiply patterns.
30096 2015-04-15  Alan Modra  <amodra@gmail.com>
30098         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30099         and sequence_stack.  Add seq.
30100         (seq_stack): Delete.
30101         * function.c (prepare_function_start): Don't access x_last_insn.
30102         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30103         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30104         * emit_rtl.c (start_sequence, push_topmost_sequence,
30105         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30106         sequence accessors.
30107         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30108         remove_insn): Likewise.  Simplify.
30109         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30110         and pop_topmost_sequence.
30111         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
30112         debug insns.
30113         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30115 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
30117         PR target/65729
30118         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30119         the assertiion.
30121 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
30123         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30124         (LEGACY_INT_REGNO_P): Ditto.
30125         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30126         (ANY_MASK_REG_P): Remove.
30127         (BND_REG_P): Rename from ANY_BND_REG_P.
30128         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30129         legacy integer registers.  Do not handle MMX_REG_P in a special way.
30130         Merge 64byte and 32byte SSE handling.
30132 2015-04-14  Nick Clifton  <nickc@redhat.com>
30134         * expr.c (expand_assignment): Force an address offset computation
30135         into a register before changing its mode.
30136         (expand_expr_real_1): Likewise.
30138 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
30140         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30141         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30142         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30143         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30144         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30145         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30146         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30147         and __aarch64_vget_lane_any.
30149 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
30151         PR rtl-optimization/65761
30152         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30153         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30155 2015-04-14  Richard Biener  <rguenther@suse.de>
30157         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30158         (graphite_can_represent_scev): Use POINTER_TYPE_P.
30160 2015-04-14  Richard Biener  <rguenther@suse.de>
30162         PR tree-optimization/65758
30163         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30164         against -1.
30165         (ccp_lattice_meet): Likewise.
30166         (bit_value_unop): Likewise.
30167         (bit_value_binop): Likewise.
30168         (bit_value_assume_aligned): Likewise.
30170 2015-04-14  Christian Bruel  <christian.bruel@st.com>
30172         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30173         function.
30175 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
30177         PR tree-optimization/63387
30178         * match.pd ((x unord x) | (y unord y) -> (x unord y),
30179         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30181 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
30183         * config/i386/predicates.md (any_QIreg_operand): Rename from
30184         q_regs_operand.  Do not process subregs.
30185         (QIreg_operand): Use QI_REGNO_P predicate.
30186         (ext_QIreg_operand): Ditto.
30187         (ext_register_operand): Ditto.
30188         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30189         (AND splitters): Ditto.
30190         (AND with -65536 splitter): Add SWI48 mode for operand 0.
30191         (AND with -256 splitter): Use any_QIreg_operand predicate and
30192         SWI248 mode for operand 0.
30193         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30194         mode for operand 0.
30195         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30197 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
30199         * doc/plugins.texi: Rewrite first introductory paragraph.
30201 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30203         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30204         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30206 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30208         * ipa-profie.c (ipa_profile): Check number of parameters
30209         and possible polymorphic call targets before
30210         devirtualizing.
30212 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
30214         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30215         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30217 2015-04-13  Richard Biener  <rguenther@suse.de>
30219         PR tree-optimization/65204
30220         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30221         takens for bit-CCP.
30223 2015-04-13  Richard Biener  <rguenther@suse.de>
30225         PR target/65660
30226         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30227         and cond_not_taken_branch_cost to 4 and 2.
30228         (bdver2_cost): Likewise.
30229         (bdver3_cost): Likewise.
30230         (bdver4_cost): Likewise.
30232 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30234         * hash-table.h (hash_table constructor): Add mem stats.
30235         (alloc_entries): Likewise.
30237 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30239         * ipa-cp.c (ipcp_driver): Relase prev_edge.
30240         * passes.c (execute_one_pass): Only add transform if pass has one.
30242 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
30244         * config/i386/i386.c (ix86_option_override_internal): Don't set
30245         -fprefetch-loop-arrays if optimizing for size.
30247 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
30248             Gerald Pfeifer  <gerald@pfeifer.com>
30250         * doc/contrib.texi (Contributors): Add Martin Jambor and
30251         Michael Matz.
30253 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
30255         * BASE-VER: Set to 6.0.0.
30257         PR tree-optimization/65747
30258         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30259         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30261 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
30263         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30264         sentence.  Improve grammar.
30266 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
30268         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30270 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
30272         PR ipa/65743
30273         * ipa-inline-transform.c (speculation_removed): Remove static var.
30274         (check_speculations): New function.
30275         (clone_inlined_nodes): Do not check spculations.
30276         (inline_call): Call check_speculations.
30277         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30278         consider non-invariants.
30280 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
30281             Martin Liska  <mliska@suse.cz>
30283         PR ipa/65722
30284         * ipa-icf.c (sem_item::compare_cgraph_references): function and
30285         variable can not match.
30286         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30287         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30289 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
30291         PR tree-optimization/65735
30292         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30293         Remove visited_phis argument, add visited_bbs, avoid recursing into the
30294         same bb rather than just into the same phi node.
30295         (thread_through_normal_block): Adjust caller.
30297 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
30299         * doc/contrib.texi (Contributors): Add Ira Rosen.
30301 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
30303         * gcov.c (find_source): Fix miswording in error message.
30304         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30305         (ix86_expand_sse_comi_round): Fix typo in error message.
30307 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
30309         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30311 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
30313         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30315 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
30317         PR target/65710
30318         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30319         Print bad_spills_num and insn_pseudos_num.
30321 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30323         PR target/65694
30324         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30325         when creating +1 values for SImode.
30327 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
30329         PR target/65729
30330         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30331         assert.
30333 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
30334             Iain Sandoe  <iain@codesourcery.com>
30336         PR target/65351
30337         * configure: Regenerate.
30339 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30341         PR target/65671
30342         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30344 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
30346         * doc/contrib.texi (Contributors): Add John Marino.
30348 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30350         PR tree-optimization/65709
30351         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30352         TREE_TYPE (TREE_TYPE (t)).
30354 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
30356         PR target/65710
30357         * lra-int.h (lra_bad_spill_regno_start): New.
30358         * lra.c (lra_bad_spill_regno_start): New.
30359         (lra): Set up lra_bad_spill_regno_start.  Set up
30360         lra_constraint_new_regno_start unconditionally.
30361         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30362         spill preferences.
30364 2015-04-09  Marek Polacek  <polacek@redhat.com>
30365             Jakub Jelinek  <jakub@redhat.com>
30367         PR middle-end/65554
30368         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30369         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30370         of STRIP_NOPS.
30372 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
30374         PR rtl-optimization/65693
30375         * combine.c (is_parallel_of_n_reg_sets): Move outside of
30376         #ifndef HAVE_cc0.
30378 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
30380         PR target/65296
30381         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30382         device specs file if "device-specs%s" didn't resolve to a path.
30384 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
30386         PR target/65676
30387         * config/i386/i386.c (fixup_modeless_constant): New.
30388         (ix86_expand_args_builtin): Fixup modeless constant operand.
30389         (ix86_expand_round_builtin): Ditto.
30390         (ix86_expand_special_args_builtin): Ditto.
30391         (ix86_expand_builtin): Ditto.
30393 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
30395         PR target/65693
30396         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30397         any pow2 integer in between 2 and 0x80000000U inclusive.
30399 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
30401         PR rtl-optimization/65693
30402         * combine.c (is_parallel_of_n_reg_sets): Change first argument
30403         from an rtx_insn * to an rtx.
30404         (try_combine): Adjust both callers.  Use it once more.
30406 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30408         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30409         (chkp_make_static_const_bounds): Search existing
30410         symbol by assembler name.  Use make_decl_one_only.
30411         (chkp_get_zero_bounds_var): Remove node search which
30412         is now performed in chkp_make_static_const_bounds.
30413         (chkp_get_none_bounds_var): Likewise.
30415 2015-04-08  Michael Witten  <mfwitten@gmail.com>
30417         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30418         to an example.
30420 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30422         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30424 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30426         * doc/extend.texi (__sync Builtins): Fix grammar.
30428 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30430         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30432 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
30434         * varasm.c (emit_local): Move definition of align.
30436 2015-04-08  Julian Brown  <julian@codesourcery.com>
30438         * config/nvptx/mkoffload.c (process): Support variable mapping.
30440 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
30442         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30443         alpha_links **.
30444         (alpha_write_one_linkage): Correct typo.
30446 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30448         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30450 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
30452         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30454 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
30456         * tree-chkp.h (chkp_insert_retbnd_call): New.
30457         * tree-chkp.c (chkp_insert_retbnd_call): New.
30458         * ipa-split.c (insert_bndret_call_after): Remove.
30459         (split_function): Use chkp_insert_retbnd_call.
30460         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30461         bounds for instrumented functions.
30463 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
30465         PR ipa/65540
30466         * calls.c (initialize_argument_information): When producing tail
30467         call also turn SSA_NAMES passed by references to original PARM_DECLs
30469 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
30471         PR target/65648
30472         * lra-remat.c (do_remat): Process input and non-input insn
30473         registers separately.
30475 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30477         PR debug/65678
30478         * valtrack.c (debug_lowpart_subreg): New function.
30479         (dead_debug_insert_temp): Use it.
30481         PR middle-end/65680
30482         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30483         into signed HOST_WIDE_INT the same as negative bit_offset.
30485 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
30487         * ipa-comdats.c (ipa_comdats): Visit all thunks
30488         to set proper comdat group.
30490 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30492         PR target/65489
30493         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30494         on constants for NEON VSTRUCT modes.
30496 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
30497             Iain Sandoe  <iain@codesourcery.com>
30499         PR target/65351
30500         * configure: Regenerate.
30502 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
30504         PR target/65614
30505         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30506         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30507         that LFD is used to load double constants instead of LFS.  Add
30508         defaults for all costs structures.  Add comments for missing
30509         initialization fields.
30510         (size32_cost): Likewise.
30511         (size64_cost): Likewise.
30512         (rs64a_cost): Likewise.
30513         (mpccore_cost): Likewise.
30514         (ppc403_cost): Likewise.
30515         (ppc405_cost): Likewise.
30516         (ppc440_cost): Likewise.
30517         (ppc476_cost): Likewise.
30518         (ppc601_cost): Likewise.
30519         (ppc603_cost): Likewise.
30520         (ppc604_cost): Likewise.
30521         (ppc604e_cost): Likewise.
30522         (ppc620_cost): Likewise.
30523         (ppc630_cost): Likewise.
30524         (ppccell_cost): Likewise.
30525         (ppc750_cost): Likewise.
30526         (ppc7450_cost): Likewise.
30527         (ppc8540_cost): Likewise.
30528         (ppce300c2c3_cost): Likewise.
30529         (ppce500mc_cost): Likewise.
30530         (ppce500mc64_cost): Likewise.
30531         (ppce5500_cost): Likewise.
30532         (ppce6500_cost): Likewise.
30533         (titan_cost): Likewise.
30534         (power4_cost): Likewise.
30535         (power6_cost): Likewise.
30536         (power7_cost): Likewise.
30537         (power8_cost): Likewise.
30538         (ppca2_cost): Likewise.
30539         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30541         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30542         instead of XXLOR to copy SFmode to clear out dirty bits created
30543         when SFmode denormals are generated.
30544         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30545         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30547 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
30549         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30550         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30551         * config/aarch64/aarch64-tune.md: Regenerate.
30553 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
30555         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30556         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30557         * config/arm/arm-cores.def (exynos-m1): New core.
30558         * config/arm/arm-tune.md: Regenerate.
30559         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30560         * config/arm/bpabi.h: Likewise.
30562 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
30564         * ipa-cp (set_single_call_flag): Remove too
30565         restrictive assert.
30567 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
30569         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30570         GOMP_offload_unregister from the destructor.
30572 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
30574         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30575         flags for instrumentation thunk.
30576         (chkp_produce_thunks): Likewise.
30578 2015-04-05  Martin Liska  <mliska@suse.cz>
30580         PR ipa/65665
30581         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30582         has computed data structure.
30583         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30585 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
30587         * invoke.texi (inline-unit-growth): Increase growth to 20%
30588         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30590 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
30592         PR target/65647
30593         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
30594         value checking.
30595         (lra_rematerialization_iter): New.
30596         * lra.c (lra): Initialize lra_rematerialization_iter.
30597         Stop updating lra_constraint_new_regno_start after switching of
30598         inheritance and rematerialization.
30599         * lra-remat.c (lra_rematerialization_iter): New.
30600         (lra_remat): Add printing pass iteration.  Do rematerialization
30601         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30603 2015-04-04  Richard Biener  <rguenther@suse.de>
30605         PR tree-optimization/64909
30606         PR tree-optimization/65660
30607         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30608         to take a cost vector for scalar iteration cost.
30609         (vect_get_single_scalar_iteration_cost): Likewise.
30610         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30611         Compute the scalar iteration cost into a cost vector.
30612         (vect_get_known_peeling_cost): Use the scalar cost vector to
30613         account for the cost of the peeled iterations.
30614         (vect_estimate_min_profitable_iters): Likewise.
30615         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30616         Likewise.
30618 2015-04-04  Alan Modra  <amodra@gmail.com>
30620         PR target/65576
30621         PR target/65240
30622         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30623         0.0 constant unless TARGET_VSX.
30624         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30625         alternative.
30627 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30629         PR ipa/65654
30630         * ipa-inline-transform.c (inline_call): Skip sanity check to work
30631         around the ICE
30633 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30635         PR ipa/65655
30636         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30637         speculative indirect edges to avoid ordering issue.
30639 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
30641         PR ipa/65076
30642         * ipa-inline.c (edge_badness): Add combined size to the denominator.
30644 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
30646         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30647         TYPE_ARTIFICIAL on the .omp_data* types.
30649 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30651         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30652         instrumentation thunks.
30654 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30656         * config/i386/i386.c (ix86_expand_call): Avoid nested
30657         PARALLEL in returned call value.
30659 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30661         * lto-cgraph.c (input_cgraph_1): Always link instrumented
30662         assembler name with original one.
30664 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30666         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30668 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30670         Revert parts of r216820.
30671         * config/i386/i386.md (movqi_internal): Correct type calculation
30672         for alternatives 3 and 5.
30674 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
30676         PR preprocessor/61977
30677         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30678         predefine __vector/__bool/__pixel macros nor context sensitive
30679         macros for CLK_ASM.
30680         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30682 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
30684         * config/pa/pa.c (pa_output_move_double): Directly handle register
30685         indexed memory operand.  Simplify handling of scaled register indexed
30686         memory operands.
30688 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30690         PR driver/65444
30691         * config/i386/linux-common.h (MPX_SPEC): New.
30692         (CHKP_SPEC): Add MPX_SPEC.
30693         * doc/invoke.texi (-fcheck-pointer-boudns): Document
30694         possible issues with '-z bndplt' support in linker.
30696 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
30698         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30699         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30700         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30701         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30702         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30704 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
30706         * config/i386/sync.md (UNSPEC_MOVA): Remove.
30707         (atomic_load<mode>): Change operand 0 predicate to
30708         nonimmediate_operand and fix up the destination when needed.
30709         Use UNSPEC_LDA.
30710         (atomic_loaddi_fpu): Use UNSPEC_LDA.
30711         (atomic_store<mode>): Change operand 1 predicate to
30712         nonimmendate_operand and move the source to register when needed.
30713         Use UNSPEC_STA.
30714         (atomic_store<mode>_1): Use UNSPEC_STA.
30715         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30716         Fix moves from memory operand.  Use UNSPEC_STA.
30718 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30720         * expmed.c (strict_volatile_bitfield_p): Check that the access will
30721         not cross a MODESIZE boundary.
30722         (store_bit_field, extract_bit_field): Added assertions in the
30723         strict volatile bitfields code path.
30725 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30727         PR target/65624
30728         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30729         Increase args array size by one to avoid buffer overflow.
30731 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30733         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30734         split_part.
30735         * ipa-inline.c (edge_badness): Add wrapper penalty.
30736         (sum_callers): Move up.
30737         (inline_small_functions): Set single_caller.
30738         * ipa-inline.h (inline_summary): Add single_caller.
30739         * ipa-split.c (split_function): Set split_part.
30740         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30741         * cgraph.h (cgraph_node): Add split_part.
30743 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
30745         PR target/58945
30746         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30747         Do not split operands 0 and operands 2 to halfmode.
30748         (atomic_compare_and_swap<mode>): Update for
30749         atomic_compare_and_swap<dwi>_doubleword changes.
30751 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
30753         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30754         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30755         no caching is done.
30757 2015-03-31  Martin Liska  <mliska@suse.cz>
30759         PR ipa/65557
30760         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30761         has already filled up function summary.
30762         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30764 2015-03-31  Richard Biener  <rguenther@suse.de>
30766         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30767         of types.
30769 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30771         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30772         nested functions.
30773         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30774         (s390_asm_output_function_label): Adapt to new signature of
30775         s390_function_num_hotpatch_hw
30776         Optimise the code generating assembler output.
30777         Add comments to assembler file.
30779 2015-03-31  Richard Biener  <rguenther@suse.de>
30781         PR middle-end/65626
30782         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30783         of the noreturn call so it is last and cleanup_control_flow_bb
30784         can do the CFG part.
30786 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
30788         PR target/65531
30789         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30790         same_comdat_group for external symbols.
30791         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30792         infinite same_comdat_group traversal loop.
30794 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
30796         PR plugins/61176
30797         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30798         automatically to $headers.
30800 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
30802         PR ipa/65610
30803         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30804         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30805         function.
30806         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30807         Use it.
30808         * ipa-prop.c (param_type_may_change_p): Likewise.
30809         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30810         (remove_unused_scope_block_p): Add in_ctor_dtor_block
30811         argument.  Before inlining, preserve
30812         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30813         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
30814         recursive calls.
30815         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30817 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30819         PR ipa/65076
30820         * ipa-inline.c (edge_badness): Base denominator on callee's
30821         grwoth squared.
30823 2015-03-27  Martin Jambor  <mjambor@suse.cz>
30825         PR ipa/65478
30826         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30827         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30828         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30829         node_calling_single_call.
30830         * ipa-cp.c (count_callers): New function.
30831         (set_single_call_flag): Likewise.
30832         (initialize_node_lattices): Count callers and set single_flag_call if
30833         necessary.
30834         (incorporate_penalties): New function.
30835         (good_cloning_opportunity_p): Use it, dump new flags.
30836         (propagate_constants_topo): Set node_within_scc flag if appropriate.
30837         * doc/invoke.texi (ipa-cp-recursion-penalty,
30838         ipa-cp-single-call-pentalty): Document.
30840 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30842         PR ipa/65588
30843         * symtab.c (symtab_node::get_partitioning_class): Register vars
30844         are duplicated.
30845         * varpool.c (symbol_table::output_variables) Do not assemble unefined
30846         decls for non-symbols.
30848 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
30850         PR target/65248
30851         * output.h (default_binds_local_p_2): New.
30852         * varasm.c (default_binds_local_p_2): Renamed to ...
30853         (default_binds_local_p_3): This.  Don't return true on protected
30854         data symbol if protected data may be external.
30855         (default_binds_local_p): Use default_binds_local_p_3.
30856         (default_binds_local_p_1): Likewise.
30857         (default_binds_local_p_2): New.
30858         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30859         default_binds_local_p_2 if TARGET_MACHO is undefined.
30861 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
30863         PR target/65593
30864         * config/i386/i386.c (legitimize_pic_address): If base
30865         is SYMBOL_REF or LABEL_REF using %rip addressing, force
30866         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30868 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30870         PR target/65531
30871         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30872         comdat groups.
30874 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
30876         PR ipa/65600
30877         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30878         of optimized out indirect call.
30879         (redirect_to_unreachable): Always build symbol table node for
30880         BUILT_IN_UNREACHABLE
30882 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30884         PR target/65407
30885         * ira-costs.c (record_reg_classes): Process all constraint string
30886         containing 0-9.
30888 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
30890         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30891         memory_operand.
30893         PR target/65052
30894         * config/c6x/constraints.md (S3): New constraint.
30895         * config/c6x/c6x.md (real_jump): Use it.
30897 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30899         PR middle-end/65595
30900         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30901         do redirection if the call is not optimized out.
30903 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30905         PR target/65495
30906         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30907         (fchkp-check-incomplete-type): Add LTO.
30908         (fchkp-zero-input-bounds-for-main): Likewise.
30909         (fchkp-first-field-has-own-bounds): Likewise.
30910         (fchkp-narrow-bounds): Likewise.
30911         (fchkp-narrow-to-innermost-array): Likewise.
30912         (fchkp-use-static-bounds): Likewise.
30913         (fchkp-use-static-const-bounds): Likewise.
30914         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30916 2015-03-27  Marek Polacek  <polacek@redhat.com>
30918         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30920 2015-03-27  Marek Polacek  <polacek@redhat.com>
30922         PR sanitizer/65583
30923         * ubsan.c (ubsan_create_edge): New function.
30924         (instrument_bool_enum_load): Call it.
30925         (instrument_nonnull_arg): Likewise.
30926         (instrument_nonnull_return): Likewise.
30927         (instrument_object_size): Likewise.
30929 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30931         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30932         auto_vec.
30934 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30936         PR lto/65536
30937         * lto-streamer.h (class lto_location_cache): New.
30938         (struct data_in): Add location_cache.
30939         (lto_input_location): Update prototype.
30940         (stream_input_location_now): New.
30941         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30942         pointer to location.
30943         (stream_input_location): Update.
30944         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30945         (warn_odr): Apply location cache before warning.
30946         (lto_input_location): Update prototype.
30947         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30948         Use stream_input_location_now.
30949         * lto-streamer-in.c (lto_location_cache::current_cache): New static
30950         variable.
30951         (lto_location_cache::cmp_loc): New function.
30952         (lto_location_cache::apply_location_cache): New function.
30953         (lto_location_cache::accept_location_cache): New function.
30954         (lto_location_cache::revert_location_cache): New function.
30955         (lto_location_cache::input_location): New function.
30956         (lto_input_location): Do location caching.
30957         (stream_input_location_now): New function.
30958         (input_eh_region, input_struct_function_base): Use
30959         stream_input_location_now.
30960         (lto_data_in_create): use new.
30961         (lto_data_in_delete): Use delete.
30962         * tree-streamer-in.c (unpack_ts_block_value_fields,
30963         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30964         lto_input_ts_exp_tree_pointers): Update for cached location api.
30966 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30968         PR ipa/65076
30969         * passes.def: Add pass_nothrow.
30970         * ipa-pure-const.c: (pass_data_nothrow): New.
30971         (pass_nothrow): New.
30972         (pass_nothrow::execute): New.
30973         (make_pass_nothrow): New.
30974         * tree-pass.h (make_pass_nothrow): Declare.
30976 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30978         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30979         edge to change by speculation resolution or redirection.
30980         (edge_set_predicate): Likewise.
30981         (inline_summary_t::duplicate): Likewise.
30982         (remap_edge_summaries): Likewise.
30984 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
30986         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30987         New macros.
30988         (can_inline_edge_p): Relax option matching for always inline functions.
30990 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
30992         PR target/65561
30993         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30994         Check operand 4 and operand 0 for equality.
30995         (avx512f_vextract<shuffletype>32x4_1_maskm):
30996         Check operand 6 and operand 0 for equality.
30997         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30998         for equality.
30999         (vec_extract_hi_<mode>_maskm): Ditto.
31001 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31003         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31004         dead calls back to live.
31005         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31006         cross check to ...
31007         (cgraph_node::verify_node): ... here; verify only callee edges,
31008         not caller.
31009         * cif-code.def (CILK_SPAWN): New code.
31011 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
31013         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31014         (edge_set_predicate): Use it to mark unreachable edges.
31015         (inline_summary_t::duplicate): Remove unnecesary code.
31016         (remap_edge_summaries): Likewise.
31017         (dump_inline_summary): Report contains_cilk_spawn.
31018         (compute_inline_parameters): Compute contains_cilk_spawn.
31019         (inline_read_section, inline_write_summary): Stream
31020         contains_cilk_spawn.
31021         * ipa-inline.c (can_inline_edge_p): Do not touch
31022         DECL_STRUCT_FUNCTION that may not be available;
31023         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31024         remove check for callee_fun->can_throw_non_call_exceptions and
31025         replace it by optimization attribute check; check for flag_exceptions.
31026         * ipa-inline-transform.c (inline_call): Maintain
31027         DECL_FUNCTION_PERSONALITY
31028         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31030 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
31032         PR tree-optimization/65551
31033         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31034         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31036 2015-03-26  Richard Biener  <rguenther@suse.de>
31038         PR middle-end/65555
31039         * tree-cfg.c (verify_gimple_call): Do not require a call to
31040         have no LHS if it wasn't recognized as control altering yet.
31042 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
31044         PR tree-optimization/64715
31045         * passes.def: Add another instance of pass_object_sizes before ccp1.
31046         * tree-object-size.c (pass_object_sizes::execute): In
31047         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31048         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31049         __bos result and the computed constant.  Remove redundant
31050         checks, obsoleted by gimple_call_builtin_p test.
31052         * var-tracking.c (variable_tracking_main_1): Don't track
31053         variables for targetm.no_register_allocation targets.
31055 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
31057         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31058         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31060 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
31062         PR target/65569
31063         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31064         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
31065         0.0 is correctly setup.
31066         (extenddftf2_internal): Likewise.
31068 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
31070         PR tree-optimization/65177
31071         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31072         (bb_in_bbs): New.
31073         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
31074         edges not adjacent on the path to the original code.
31076 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
31078         PR bootstrap/65537
31079         * doc/install.texi (Building a native compiler): Document new
31080         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
31081         configuration assumes that the host supports the linker plugin.
31083 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
31085         PR target/65508
31086         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31087         chain for generated call.
31089 2015-03-25  Richard Biener  <rguenther@suse.de>
31091         * passes.c (pass_manager::execute_early_local_passes): Guard
31092         execution of pass_chkp_instrumentation_passes with
31093         flag_check_pointer_bounds.
31094         (pass_chkp_instrumentation_passes::gate): Likewise.
31096 2015-03-25  Martin Liska  <mliska@suse.cz>
31098         PR tree-optimization/65538
31099         * symbol-summary.h (function_summary::~function_summary):
31100         Relese memory for allocated summaries.
31101         (function_summary::release): New function.
31103 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
31105         PR lto/65515
31106         * lto-streamer-out.c (DFS::worklist): New struct.
31107         (DFS::worklist_vec): New data member.
31108         (DFS::next_dfs_num): Remove.
31109         (DFS::DFS): Rewritten using worklist instead of recursion,
31110         using most of code from DFS::DFS_write_tree.
31111         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31112         pass it to DFS_write_tree calls.
31113         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31114         quick initial checks push it into worklist_vec and return.
31116 2015-03-25  Richard Biener  <rguenther@suse.de>
31118         PR middle-end/65519
31119         * genmatch.c (expr::gen_transform): Re-write to avoid
31120         using gimple_build.
31122 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
31124         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31126 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
31128         * config/arm/arm.opt (print_tune_info): New option.
31129         * config/arm/arm.c (arm_print_tune_info): New function.
31130         (arm_file_start): Call arm_print_tune_info.
31131         * config/arm/arm-protos.h (struct tune_params): Add comment.
31132         * doc/invoke.texi (@item -mprint-tune-info): New item.
31133         (-mtune): mention it in ARM Option Summary.
31135 2015-03-25  DJ Delorie  <dj@redhat.com>
31137         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31138         correct clause.
31140 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
31141             Martin Liska  <mliska@suse.cz>
31143         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31144         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31145         (sem_item::add_type): New function.
31146         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31147         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31148         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31149         (sem_function::equals_wpa): Fix typo.
31150         * ipa-icf.h (sem_item::add_type): New function.
31151         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31152         order.
31154 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
31156         PR tree-optimization/65533
31157         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31158         with swapped operands, call vect_free_slp_tree on
31159         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31160         vector.
31162 2015-03-24  Richard Biener  <rguenther@suse.de>
31164         PR middle-end/65517
31165         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31166         for fixup if necessary.
31168 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
31170         * doc/extend.texi (Function Attributes): Add @cindex entries
31171         for all attributes and regularize their format.  Delete text
31172         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
31173         information about "eightbit_data", "tiny_data", and "model"
31174         variable attributes to the Variable Attributes section.  Fix
31175         some obvious typos and copy-editing issues.
31176         (Variable Attributes, Type Attributes): Likewise add/fix
31177         @cindex entries for all attributes.
31179 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
31181         PR target/65523
31182         * tree-chkp.c (chkp_build_returned_bound): Ignore
31183         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31185 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
31187         PR target/65505
31188         * config/sh/predicates.md (simple_mem_operand,
31189         displacement_mem_operand): Add test for reg.
31190         (short_displacement_mem_operand): Test for displacement_mem_operand
31191         before invoking sh_disp_addr_displacement.
31192         * config/sh/constraints.md (Sdd, Sra): Simplify.
31193         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31194         Remove redundant displacement_mem_operand tests.
31196 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
31198         PR target/65296
31199         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31200         the same -mmcu=MCU more than once.
31202 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
31204         PR bootstrap/65522
31205         * ipa-devirt.c: Remove duplicate demangle.h include.
31207         PR target/65504
31208         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31209         on the pseudo.
31210         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31211         REG_POINTER on *destptr after adjusting it for prologue size.
31213         PR ipa/65521
31214         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31215         ultimate_alias_target ()->order ints instead of
31216         ultimate_alias_target () pointers.
31218 2015-03-23  Richard Biener  <rguenther@suse.de>
31220         PR tree-optimization/65518
31221         * tree-vect-stmts.c (vectorizable_load): Reject single-element
31222         interleaving cases we generate absymal code for.
31224 2015-03-23  Richard Biener  <rguenther@suse.de>
31226         PR tree-optimization/65494
31227         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31228         matches here.
31229         (vect_analyze_slp_instance): But do that here, always and once.
31231 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31233         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31234         adding T or multiplying by T+1 and subracting T.
31236 2015-03-22  Jeff Law  <law@redhat.com>
31238         PR rtl-optimization/64317
31239         * Makefile.in (OBJS): Add gcse-common.c
31240         * gcse.c: Include gcse-common.h
31241         (struct modify_pair_s): Move structure definition to gcse-common.h
31242         (compute_transp): Move function to gcse-common.c.
31243         (canon_list_insert): Similarly.
31244         (record_last_mem_set_info): Break out some code and put it into
31245         gcse-common.c.  Call into the new common code.
31246         (compute_local_properties): Pass additional arguments to compute_transp.
31247         * postreload-gcse.c: Include gcse-common.h and df.h
31248         (modify_mem_list_set, blocks_with_calls): New variables.
31249         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31250         (get_bb_avail_insn): Pass in the expression index too.
31251         (alloc_mem): Allocate memory for the new bitmaps and lists.
31252         (free_mem): Free memory for the new bitmaps and lists.
31253         (insert_expr_in_table): Record a bitmap index for each entry we
31254         add to the table.
31255         (record_last_mem_set_info): Call into common code in gcse-common.c.
31256         (get_bb_avail_insn): If no available insn was found in the requested
31257         BB.  If BB has a single predecessor, see if the expression is
31258         transparent in BB and available in that single predecessor.
31259         (compute_expr_transp): New wrapper for compute_transp.
31260         (eliminate_partially_redundant_load): Pass expression's bitmap_index
31261         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
31262         (gcse_after_reload_main): If there are elements in the hash table,
31263         then compute transparency for all the elements in the hash table.
31264         * gcse-common.h: New file.
31265         * gcse-common.c: New file.
31267 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
31269         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31270         as an adjective.
31271         (System Headers): Likewise.
31272         (Ifdef): Likewise.
31273         (Traditional macros): Likewise.
31274         (Invocation): Likewise.
31275         (Option Index): Likewise.
31276         * doc/cppopts.texi (-M): Likewise.
31277         (-finput-charset): Likewise.
31278         (--help): Likewise.
31279         * doc.invoke.texi (AVR Options): Likewise.
31280         (V850 Options): Likewise.
31282 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
31284         PR ipa/65475
31285         * ipa-devirt.c: Include demangle.h
31286         (odr_type_d): Add field rtti_broken.
31287         (odr_subtypes_equivalent_p): Do not require name to match.
31288         (compare_virtual_tables): Fix typo; if type already has ODR violation,
31289         bypass the tests; be ready for function referneces in vtables that are
31290         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31291         (warn_odr): Give up for nameless types.
31292         (warn_types_mismatch): Report mismatch in mangled names;
31293         report mismatch in anonymous namespaces; look into component types to
31294         give useful error; report when mismatch is dragged in from other ODR
31295         type.
31296         (odr_types_equivalent_p): Match types for being polymorphic; avoid
31297         duplicated diagnostics.
31298         (add_type_duplicate): Reorder checks so more informative ones come
31299         first; fix typo; do not output "the extra base is defined here" when
31300         we did not warn.
31301         (BINFO_N_BASE_BINFOS): Relax sanity check.
31303 2015-03-22  Martin Liska  <mliska@suse.cz>
31304             Jakub Jelinek  <jakub@redhat.com>
31306         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31307         masks that can potentially include a builtin.
31308         (ix86_add_new_builtins): Introduce fast filter for isa values
31309         that cannot trigger builtin inclusion.
31311 2015-03-22  Martin Liska  <mliska@suse.cz>
31313         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31314         (sem_item::update_hash_by_local_refs): Likewise.
31315         (sem_variable::get_hash): Empty line is fixed.
31316         (sem_item_optimizer::execute): Include adding of hash references.
31317         (sem_item_optimizer::update_hash_by_addr_refs): New function.
31318         (sem_item_optimizer::build_hash_based_classes): Use local hash.
31319         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31320         (sem_item::update_hash_by_local_refs): Likewise.
31322 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31324         PR ipa/65502
31325         * ipa-comdats.c (enqueue_references): Walk through thunks.
31326         (ipa_comdats): Likewise.
31327         (set_comdat_group_1): New function.
31329 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31331         PR ipa/65475
31332         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31333         non-polymorphic
31335 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
31336             Gerald Pfeifer  <gerald@pfeifer.com>
31338         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31340 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
31341             Sandra Loosemore  <sandra@codesourcery.com>
31343         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31344         function parameter declaration.
31345         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31346         Update arguments to nios2_adjust_call_address().
31347         (sibcall_internal): Rename from *sibcall.
31348         (sibcall_value_internal): Rename from *sibcall_value.
31349         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31350         (nios2_large_got_address): Add target temp reg parameter.
31351         (nios2_got_address): Adjust call to nios2_large_got_address, add
31352         force_reg around it.
31353         (nios2_load_pic_address): Add target temp reg parameter, replace call
31354         to nios2_got_address with corresponding code.
31355         (nios2_legitimize_constant_address): Update call to
31356         nios2_load_pic_address.
31357         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31358         to use temp reg for PIC loading purposes.
31359         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31360         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31361         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31363 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31365         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31366         usage of "the @option{...}".
31367         (-Wopenmp-simd): Likewise.
31368         (-fsanitize-recover): Likewise.
31369         (-fsanitize-undefined-trap-on-error): Likewise.
31370         (-flto): Likewise.
31371         (tracer-dynamic-coverage-feedback): Likewise.
31372         (reorder-block-duplicate-feedback): Likewise.
31373         (loop-unroll-jam-size): Likewise.
31374         (-B): Likewise.
31375         (-I-): Likewise.
31376         (-mabs=legacy): Likewise.
31377         (-mupper-regs-df): Likewise.
31378         (-mupper-regs-sf): Likewise.
31379         (-mpointers-to-nested-functions): Likewise.
31381 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31383         * doc/extend.texi (Cilk Plus Builtins): Add markup.
31385 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
31387         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31388         additional index entries and cross-references.
31389         (-fchkp-check-incomplete-type): Likewise.
31390         (-fchkp-first-field-has-own-bounds): Likewise.
31391         (-fchkp-narrow-to-innermost-array): Likewise.
31392         (-fchkp-use-fast-string-functions): Likewise.
31393         (-fchkp-use-nochk-string-functions): Likewise.
31394         (-fchkp-use-static-const-bounds): Likewise.
31395         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31396         (-fchkp-instrument-marked-only): Likewise.
31397         (-fchkp-use-wrappers): Likewise.
31398         (-static-libmpx): Likewise.
31399         (-static-libmpxwrappers): Likewise.
31400         * doc/extend.texi (bnd_legacy): Likewise.
31401         (bnd_instrument): Likewise.
31402         (bnd_variable_size): Likewise.
31403         (Pointer Bounds Checker builtins): Likewise.
31405 2015-03-21  Tom de Vries  <tom@codesourcery.com>
31407         PR tree-optimization/65458
31408         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31409         * cgraph.h (cgraph_node): Add parallelized_function field.
31410         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31411         (input_overwrite_node): Read parallelized_function field.
31412         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31413         parallelized_function on cgraph_node for child_fn.
31414         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31415         Remove include of gt-tree-parloops.h.
31416         (parallelized_functions): Remove static variable.
31417         (parallelized_function_p): Rewrite using parallelized_function field of
31418         cgraph_node.
31419         (create_loop_fn): Remove adding to parallelized_functions.
31420         * Makefile.in (GTFILES): Remove tree-parloops.c
31422 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
31424         PR rtl-optimization/64366
31425         * lra.c (lra_update_insn_regno_info): Consider regs in
31426         CALL_INSN_FUNCTION_USAGE memory.
31428 2015-03-20  Richard Biener  <rguenther@suse.de>
31430         PR middle-end/64715
31431         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31432         for type comparison and gcc_checking_assert.
31433         (chrec_fold_plus_poly_poly): Likewise.
31434         (chrec_fold_multiply_poly_poly): Likewise.
31435         (chrec_convert_1): Likewise.
31436         * gimplify.c (gimplify_expr): Remove premature folding of
31437         &X + CST to &MEM[&X, CST].
31439 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
31441         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31442         already is final.
31443         (ipa_inline): Recompute inline_failed codes.
31444         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31445         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31446         CIF_FINAL_ERROR.
31448 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
31450         PR rtl-optimization/60851
31451         * recog.c (constrain_operands): Accept a pseudo register before reload
31452         for LRA enabled targets.
31454 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
31456         PR target/65240
31457         * config/rs6000/predicates.md (easy_fp_constant): Remove special
31458         -ffast-math handling that kept non-0 constants live in the RTL
31459         until reload.  Remove logic testing the number of instructions it
31460         took to create a constant in a GPR that was never used, due to a
31461         test for soft-float earlier.
31462         (memory_fp_constant): Delete, no longer used.
31464         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31465         alternatives for loading non-0 constants into GPRs for hard
31466         floating point that is no longer needed due to changes in
31467         easy_fp_constant.  Add support for loading 0.0 into GPRs.
31468         (mov<mode>_hardfloat32): Likewise.
31469         (mov<mode>_hardfloat64): Likewise.
31470         (mov<mode>_64bit_dm): Likewise.
31471         (movtd_64bit_nodm): Likewise.
31472         (pre-reload move FP constant define_split): Delete define_split,
31473         since it is no longer used.
31474         (extenddftf2_internal): Remove GHF constraints that are not valid
31475         for extenddftf2.
31477 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
31479         PR rtl-optimization/63491
31480         * lra-constraints.c (check_and_process_move): Use src instead of
31481         sreg.  Remove some dead code.
31483 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
31485         PR ipa/65380
31486         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31487         (sem_variable::merge): Likewise.
31489 2015-03-19  Martin Liska  <mliska@suse.cz>
31491         PR ipa/65465
31492         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31493         all fields of cgraph_thunk_info.
31495 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31497         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31498         clone instrumented thunks.
31500 2015-03-19  Richard Biener  <rguenther@suse.de>
31502         Revert
31503         2015-03-10  Richard Biener  <rguenther@suse.de>
31505         PR middle-end/63155
31506         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31507         * tree-ssa-coalesce.c: Include timevar.h.
31508         (attempt_coalesce): Handle graph being NULL.
31509         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31510         Split out abnormal coalescing to ...
31511         (perform_abnormal_coalescing): ... this function.
31512         (coalesce_ssa_name): Perform abnormal coalescing without computing
31513         live/conflict.
31514         (verify_ssa_coalescing_worker): New function.
31515         (verify_ssa_coalescing): Likewise.
31517 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31518             Jakub Jelinek  <jakub@redhat.com>
31520         PR sanitizer/65400
31521         * tsan.c (instrument_gimple): Clear tail call flag on
31522         calls.
31524 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
31526         PR sanitizer/65400
31527         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31528         call in the return bb.
31529         (find_split_points): Add RETURN_BB argument, don't call
31530         find_return_bb.
31531         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
31532         if true append TSAN_FUNC_EXIT internal call after the call to
31533         the split off function.
31534         (execute_split_functions): Call find_return_bb here.
31535         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31536         Adjust find_split_points and split_function calls.
31538 2015-03-18  DJ Delorie  <dj@redhat.com>
31540         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31541         (iorqi3_virt): Likewise.
31543 2015-03-18  Tom de Vries  <tom@codesourcery.com>
31545         * tree-parloops.c (parallelize_loops): Make static.
31546         * tree-parloops.h (parallelize_loops): Remove extern declaration.
31548 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
31550         PR middle-end/64491
31551         Revert:
31552         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
31554         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31555         condition would be removed due to undefined behaviour.
31557 2015-03-18  Martin Liska  <mliska@suse.cz>
31559         PR ipa/65432
31560         * cgraph.c (cgraph_node::get_create): Remove unnecessary
31561         xstrdup_for_dump wrapper.
31562         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31563         sem_item::name.
31564         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31565         with xstrdup_for_dump.
31566         (sem_variable::equals): Likewise.
31567         (sem_item_optimizer::read_section): Use symtab_node::name instead of
31568         sem_item::name.
31569         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31570         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31571         symtab_node::asm_name with xstrdup_for_dump.
31572         (congruence_class::dump): Use symtab_node::name instead of
31573         sem_item::name.
31574         * ipa-icf.h (symtab_node::name): Remove.
31575         (symtab_node::asm_name): Likewise.
31577 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
31579         PR tree-optimization/65450
31580         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31581         function.
31582         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31583         it instead of duplicate_ssa_name_ptr_info.
31585         PR target/65222
31586         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31588 2015-03-18  Richard Biener  <rguenther@suse.de>
31590         * tree-data-ref.h (struct access_matrix): Remove.
31591         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31592         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31593         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31594         (am_vector_index_for_loop): Likewise.
31595         (struct data_reference): Remove access_matrix member.
31596         (DR_ACCESS_MATRIX): Remove.
31597         (lambda_vector_new): Add comment.
31598         (lambda_matrix_new): Use XOBNEWVEC.
31600 2015-03-18  Richard Biener  <rguenther@suse.de>
31602         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31603         (pass_ch::execute): Cleanup the CFG only if we did sth.
31604         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31606 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31608         * expmed.c (synth_mult): Use std::swap instead of manually
31609         swapping algorithms.
31611 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
31613         PR target/65078
31614         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31616 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
31618         PR target/65296
31619         * config/avr/avr.opt (-nodevicelib): New option.
31620         * doc/invoke.texi (AVR Options): Document it.
31621         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31622         libgcc.a, libc.a, libm.a.
31623         * config/avr/specs.h: Same.
31624         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31625         which don't (directly) depend on the device.  Print more help.
31626         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31627         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31628         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31629         case of an error.
31630         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31631         for specs file name.
31632         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31633         * config/avr/avr-mcus.def: Adjust initializers and comments.
31635 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
31637         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31638         DECL_ONE_ONLY to check if decl is one only.
31639         * ipa-split.c (consider_split): Limit splitt of one only functions.
31641 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31643         PR tree-optimization/65427
31644         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31645         functions.
31646         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31648 2015-03-16  Marek Polacek  <polacek@redhat.com>
31650         * cgraph.h (add_new_static_var): Remove declaration.
31651         * varpool.c (add_new_static_var): Remove function.
31653 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
31655         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31656         instead of vec<tree> * with vec_alloc and release for args.
31657         Adjust all users.
31659         PR middle-end/65431
31660         * omp-low.c (delete_omp_context): Only splay_tree_delete
31661         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31662         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
31664 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
31666         PR sanitizer/64820
31667         * cfgexpand.c (align_base): New function.
31668         (alloc_stack_frame_space): Call it.
31669         (expand_stack_vars): Align prev_frame to be sure
31670         data->asan_vec elements aligned properly.
31672 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
31674         PR middle-end/65409
31675         * expr.c (store_field): Do not do a direct block copy if the source is
31676         a PARALLEL with BLKmode.
31678 2015-03-16  Tom de Vries  <tom@codesourcery.com>
31680         PR middle-end/65414
31681         Revert:
31682         2015-03-12  Tom de Vries  <tom@codesourcery.com>
31684         PR rtl-optimization/64895
31685         * lra-lives.c (check_pseudos_live_through_calls): Use
31686         actual_call_used_reg_set instead of call_used_reg_set, if available.
31688 2015-03-16  Alan Modra  <amodra@gmail.com>
31690         PR target/63150
31691         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31692         Modify Z->r bswapdi splitter to use dest in place of scratch.
31693         In r->Z and Z->r bswapdi splitter rename word_high, word_low
31694         to word1, word2 and rearrange logic to suit.
31695         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31696         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
31697         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31698         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
31699         early clobber.
31701 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
31703         PR tree-optimization/65369
31704         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31705         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31706         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31708         PR tree-optimization/65418
31709         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31710         are casts in the first PLUS_EXPR operand, ensure tbias and
31711         *totallowp are in the inner type.
31713         PR rtl-optimization/65401
31714         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31715         argument.  If true, adjust_address_nv of x with big-endian
31716         correction for the mode widening to GET_MODE (y).
31717         (make_field_assignment): Don't do MEM mode widening here.
31718         Use MEM_P instead of GET_CODE == MEM.
31720 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
31722         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31723         the external decls.
31725 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31727         PR target/64600
31728         * config/arm/arm.c (arm_gen_constant, AND case): Use
31729         ARM_SIGN_EXTEND when constructing AND mask.
31731 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31733         * graph.c (print_graph_cfg): Make function names visible and append
31734         parenthesis to it.  Also make groups of basic blocks belonging to the
31735         same function visible.
31737 2015-03-12  Richard Biener  <rguenther@suse.de>
31739         PR middle-end/44563
31740         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31741         to avoid quadratic behavior with inline expansion splitting blocks.
31742         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31743         with the successor if the predecessor will be merged with it.
31744         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31745         entry block with its successor.
31747 2015-03-13  Richard Biener  <rguenther@suse.de>
31749         PR middle-end/44563
31750         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31751         (cleanup_tree_cfg_1): Do not call it.
31752         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31753         (fixup_noreturn_call): Mark the stmt as control altering.
31754         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31755         here.
31756         (pass_data_fixup_cfg): Produce a dump file.
31757         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31758         (need_noreturn_fixup): New global.
31759         (pass_dominator::execute): Fixup queued noreturn calls.
31760         (optimize_stmt): Queue calls that became noreturn for fixup.
31761         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31762         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31763         (el_to_fixup): New global.
31764         (eliminate_dom_walker::before_dom_childre): Queue calls that
31765         became noreturn for fixup.
31766         (eliminate): Fixup queued noreturn calls.
31767         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31768         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31769         (substitute_and_fold_dom_walker::before_dom_children): Queue
31770         alls that became noreturn for fixup.
31771         (substitute_and_fold): Fixup queued noreturn calls.
31773 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
31775         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31776         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31777         are building; for methods check ODR type of class they belong to if
31778         they may lead to a polymorphic call.
31779         (sem_function::compare_polymorphic_p): Be bit smarter about testing
31780         when function may lead to a polymorphic call.
31781         (sem_function::compare_type_list): Remove.
31782         (sem_variable::equals): Update use of compatible_types_p.
31783         (sem_variable::parse_tree_refs): Remove.
31784         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31785         cdtor.
31786         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31787         matching here.
31788         (func_checker::compatible_polymorphic_types_p): Break out from ...
31789         (unc_checker::compatible_types_p): ... here.
31790         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31791         Declare.
31792         (unc_checker::compatible_types_p): Update.
31793         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31794         Remove.
31796 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31798         PR rtl-optimization/65235
31799         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31800         When first element of vec_concat is const_int, calculate its size
31801         using second element.
31803 2015-03-12  Richard Biener  <rguenther@suse.de>
31805         PR middle-end/65270
31806         * fold-const.c (operand_equal_p): Fix ordering of resetting
31807         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31809 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31811         * config/s390/s390.c (s390_reorg): Move code to output nops after label
31812         to s390_reorg ().
31813         (s390_asm_output_function_label): Likewise.
31814         * config/s390/s390.c (s390_asm_output_function_label):
31815         Fix function label alignment with -mhtopatch.
31816         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31817         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31818         ("nop_2_byte"): New define_insn.
31819         ("nop_4_byte"): Likewise.
31820         ("nop_6_byte"): Likewise.
31821         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31822         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31824 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
31826         PR target/65103
31827         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31828         register.
31830 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
31832         PR target/65044
31833         * toplev.c (process_options): Restrict Pointer Bounds Checker
31834         usage with Address Sanitizer.
31836 2015-03-12  Richard Biener  <rguenther@suse.de>
31838         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31839         to split on.
31840         * omp-low.c (expand_omp_taskreg): Split block before removing
31841         the stmt.
31842         (expand_omp_target): Likewise.
31843         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31844         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31845         stmt to split_block.
31847 2015-03-12  Tom de Vries  <tom@codesourcery.com>
31849         PR rtl-optimization/64895
31850         * lra-lives.c (check_pseudos_live_through_calls): Use
31851         actual_call_used_reg_set instead of call_used_reg_set, if available.
31853 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31855         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31856         (cgraph_node::remove): Likewise.
31857         (cgraph_node::get_untransformed_body): Likewise.
31858         * varpool.c (varpool_node::remove): Likewise.
31859         (varpool_node::get_constructor): Add sanity check.
31861 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
31863         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31864         old GCC versions.
31865         (-fabi-compat-version): Likewise.
31866         (-ffriend-injection): Likewise.
31867         (-Wdeclaration-after-statement): Likewise.
31868         (-fomit-frame-pointer): Likewise.
31869         (-ftree-coalesce-inlined-vars): Likewise.
31870         (-fvisibility=): Likewise.
31871         * doc/extend.texi (Typeof): Likewise.
31872         (Zero Length): Likewise.
31873         (Escaped Newlines): Likewise.
31874         (Compound Literals): Likewise.
31875         (Function Attributes): Likewise.
31876         (Label Attributes): Likewise.
31877         (Type Attributes): Likewise.
31878         (Function Names): Likewise.
31879         (Other Builtins): Likewise.
31880         (Function Specific Option Pragmas): Likewise.
31881         (C++ Interface): Likewise.
31883 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
31885         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31887 2015-03-11  Marek Polacek  <polacek@redhat.com>
31889         PR tree-optimization/65388
31890         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31892 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
31894         PR target/65296
31895         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31896         * configure: Regenerate.
31897         * config.in: Regenerate.
31898         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31899         [-mn-flash]: Document it.
31900         [__AVR_ARCH__]: Document avrtiny.
31902         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31903         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31904         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31906 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31908         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31910 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
31912         PR target/65242
31913         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31914         allow reloads of PLUS in floating point/VSX registers.
31916 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
31918         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31919         crypto_sha256_fast.
31920         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31922 2015-03-11  Richard Biener  <rguenther@suse.de>
31924         PR tree-optimization/65310
31925         * tree-sra.c (build_ref_for_offset): Also preserve larger
31926         alignment.
31928 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
31930         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31932 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31934         PR target/65368
31935         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31936         new define_expand.
31937         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31939 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
31941         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31942         (sem_function::equals_wpa): ... here.
31944 2015-03-10  Marek Polacek  <polacek@redhat.com>
31945             Jakub Jelinek  <jakub@redhat.com>
31947         PR sanitizer/65367
31948         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31949         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
31950         separately.
31952 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
31954         PR target/65286
31955         * config/rs6000/t-linux: For powerpc64* target set
31956         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31958 2015-03-10  Richard Biener  <rguenther@suse.de>
31960         PR middle-end/44563
31961         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31962         for redirect_all_calls.
31964 2015-03-10  Marek Polacek  <polacek@redhat.com>
31966         * gdbinit.in (pcfun): Define and document.
31968 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
31970         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31971         of libgomp-plugin.h.
31972         (find_target_compiler): Support a case when the path to gcc is
31973         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31974         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31975         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31976         libgomp-plugin.h.
31977         (main): Use GCC_INSTALL_NAME as target_driver_name.
31978         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31979         define.
31980         (mkoffload.o): Remove obsolete include path and defines.
31981         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31983 2015-03-10  Richard Biener  <rguenther@suse.de>
31985         PR middle-end/63155
31986         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31987         * tree-ssa-coalesce.c: Include timevar.h.
31988         (attempt_coalesce): Handle graph being NULL.
31989         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31990         Split out abnormal coalescing to ...
31991         (perform_abnormal_coalescing): ... this function.
31992         (coalesce_ssa_name): Perform abnormal coalescing without computing
31993         live/conflict.
31994         (verify_ssa_coalescing_worker): New function.
31995         (verify_ssa_coalescing): Likewise.
31997 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
31999         PR target/65296
32000         * config.gcc (extra_options) [avr]: Remove.
32001         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32002         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32003         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32005         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32006         (-mmcu=): Add Var and MissingArgError properties.
32007         (-march=): Remove.
32008         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32009         * config/avr/t-multilib: Regenerate.
32010         * config/avr/specs.h: New file.
32011         * config/avr/driver-avr.c: New file.
32012         * config/avr/genopt.sh: Remove file.
32013         * config/avr/avr-tables.opt: Remove file.
32014         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32015         * config/avr/avr-c.c: Same.
32016         * avr-arch.h: Same.
32017         (avr_current_device): Remove proto.
32018         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32019         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32020         (EXTRA_SPEC_FUNCTIONS): Define.
32021         (avr_devicespecs_file): New specs function proto.
32022         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32023         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32024         (avr_current_device): Remove definition and usage.
32025         (avr_set_core_architecture): New static function.
32026         (avr_option_override): Use it.
32027         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32028         (mcu_name): New static array.
32029         (comparator, avr_archs_str, avr_mcus_str): New static functions.
32030         (avr_inform_devices, avr_inform_core_architectures): New functions.
32031         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32032         (avrlibc.h) [WITH_AVRLIBC]: Include.
32033         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32034         (print_mcu): Rewrite from scratch.
32035         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32036         Forward to avr-specific specs defined in device-specs file.
32037         * config/avr/t-avr (driver-avr.o): New rule.
32038         (avr-devices.o): Depend on avr-arch.h.
32039         (avr-mcus): No more depend on avr-tables.opt.
32040         (avr-tables.opt): Remove rule.
32041         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32043 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32045         * c-family/c.opt (fchkp-use-wrappers): New.
32046         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32047         (chkp_wrap_function): New.
32048         (chkp_build_instrumented_fndecl): Support wrapped
32049         functions.
32050         * doc/invoke.texi (-fcheck-pointer-bounds): New.
32051         (-fchkp-check-incomplete-type): New.
32052         (-fchkp-first-field-has-own-bounds): New.
32053         (-fchkp-narrow-bounds): New.
32054         (-fchkp-narrow-to-innermost-array): New.
32055         (-fchkp-optimize): New.
32056         (-fchkp-use-fast-string-functions): New.
32057         (-fchkp-use-nochk-string-functions): New.
32058         (-fchkp-use-static-bounds): New.
32059         (-fchkp-use-static-const-bounds): New.
32060         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32061         (-fchkp-check-read): New.
32062         (-fchkp-check-write): New.
32063         (-fchkp-store-bounds): New.
32064         (-fchkp-instrument-calls): New.
32065         (-fchkp-instrument-marked-only): New.
32066         (-fchkp-use-wrappers): New.
32067         (-static-libmpx): New.
32068         (-static-libmpxwrappers): New.
32070 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32072         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32073         (CHKP_SPEC): Add wrappers library.
32074         * c-family/c.opt (static-libmpxwrappers): New.
32076 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
32078         * config/i386/linux-common.h (LIBMPX_LIBS): New.
32079         (LIBMPX_SPEC): New.
32080         (CHKP_SPEC): New.
32081         * gcc.c (CHKP_SPEC): New.
32082         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32083         * c-family/c.opt (static-libmpx): New.
32085 2015-03-10  Richard Biener  <rguenther@suse.de>
32087         PR middle-end/44563
32088         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32089         for compare_type.
32090         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32091         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32092         (cgraph_add_edge_to_call_site_hash): Likewise.
32093         (cgraph_node::get_edge): Likewise.
32094         (cgraph_edge::set_call_stmt): Likewise.
32095         (cgraph_edge::remove_caller): Likewise.
32097 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
32099         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32100         (callee_saved_gpr_regs_size): ... this.
32101         (callee_saved_regs_first_regno): Rename to ...
32102         (callee_saved_first_gpr_regno): ... this.
32103         (callee_saved_regs_last_regno) Rename to ...
32104         (callee_saved_last_gpr_regno): ... this.
32105         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32106         variables.
32107         (nds32_initial_elimination_offset): Likewise.
32108         (nds32_expand_prologue): Likewise.
32109         (nds32_expand_epilogue): Likewise.
32110         (nds32_expand_prologue_v3push): Likewise.
32111         (nds32_expand_epilogue_v3pop): Likewise.
32112         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32113         Adjust renamed variables.
32114         (nds32_output_stack_pop): Likewise.
32116 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32118         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32119         code in comment.
32121 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
32123         PR rtl-optimization/65321
32124         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32125         than shift mode.
32126         * var-tracking.c (use_narrower_mode): Likewise.
32128 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
32130         PR tree-optimization/65355
32131         * varasm.c (notice_global_symbol): Do not produce RTL.
32132         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32133         anchor.
32134         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32135         check for section anchors.
32137 2015-03-10  Alan Modra  <amodra@gmail.com>
32139         PR target/65286
32140         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32141         to be single-arch by default.  Set cpu_is_64bit for powerpc64
32142         given --with-cpu=native.
32143         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32144         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32145         and powerpc64le.
32146         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32147         rs6000_isa_flags rather than TARGET_64BIT.
32149 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
32150             Kaz Kojima  <kkojima@gcc.gnu.org>
32152         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32154 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
32156         PR lto/65361
32157         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32158         on a TREE_BINFO, instead use BINFO_TYPE.
32160 2015-03-09  Richard Biener  <rguenther@suse.de>
32162         PR middle-end/65270
32163         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32164         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32165         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
32166         of that.  When comparing dereferences compare alignment.
32167         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32169 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
32171         * ipa-inline-analysis.c (check_callers): Check
32172         node->can_remove_if_no_direct_calls_and_refs_p.
32173         (growth_likely_positive): Reorganize to call
32174         can_remove_if_no_direct_calls_p later.
32175         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32176         will_be_removed_from_program_if_no_direct_calls_p): Add
32177         will_inline parameter.
32178         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32179         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32180         Handle inliner case correctly.
32182 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32184         PR tree-optimization/63743
32185         * cfgexpand.c (reorder_operands): Also reorder if only second operand
32186         had its definition forwarded by TER.
32188 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
32190         PR lto/65316
32191         * ipa-utils.h (types_odr_comparable): Add strict argument.
32192         * ipa-devirt.c: Fix whitespace;
32193         (odr_hasher): Remove.
32194         (odr_name_hasher, odr_vtable_hasher): New hashers.
32195         (can_be_name_hashed_p): New predicate.
32196         (hash_type_name): remove.
32197         (hash_odr_name): New.
32198         (odr_name_hasher::hash): new.
32199         (can_be_vtable_hashed_p): New.
32200         (hash_odr_vtable): New.
32201         (odr_vtable_hasher::hash): New.
32202         (types_same_for_odr): Add strict parameter.
32203         (types_odr_comparable): Likewise.
32204         (odr_name_hasher::equal): New.
32205         (odr_vtable_hasher::equal): New.
32206         (odr_name_hasher::remove): New.
32207         (odr_hash_type): Change to hash_table<odr_name_hasher>.
32208         (odr_vtable_hash_type): New.
32209         (odr_vtable_hash): New.
32210         (odr_subtypes_equivalent_p): Do strict comparsion.
32211         (add_type_duplicate): Merge type names; cleanup; avoid type
32212         duplicates.
32213         (register_odr_type): Initialize vtable hash.
32214         (build_type_inheritance_graph): Likewise
32215         (get_odr_type): Reorg to use two hashes.
32216         (dump_possible_polymorphic_call_targets): Move sanity check after debug
32217         output.
32218         (ipa_devirt): Dump type_inheritance_graph.
32219         (types_same_for_odr): Add strict mode.
32221 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32223         PR ipa/65334
32224         * cgraph.h (symtab_node): Add definition_alignment,
32225         can_increase_alignment_p and increase_alignment.
32226         * symtab.c (symtab_node::can_increase_alignment_p,
32227         increase_alignment_1, symtab_node::increase_alignment,
32228         symtab_node::definition_alignment): New.
32229         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32230         can_increase_alignment_p.
32231         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32232         * tree-vect-stmts.c (ensure_base_align): Likewise.
32233         * varasm.c (function_section_1): Use definition_alignment.
32234         (assemble_start_function): Likewise.
32235         (emit_local): likewise.
32236         (build_constant_desc): Likewsie.
32237         (output_constant_def_contents): Likewise.
32238         (place_block_symbol): Likewise.
32239         (output_object_block): Likewise.
32241 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32243         PR ipa/65316
32244         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32245         when outputting debug.
32247 2015-03-07  Marek Polacek  <polacek@redhat.com>
32248             Martin Uecker  <uecker@eecs.berkeley.edu>
32250         PR sanitizer/65280
32251         * doc/invoke.texi: Update description of -fsanitize=bounds.
32253 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
32255         * tree-ssa-phiopt.c (neg_replacement): Remove.
32256         (tree_ssa_phiopt_worker): Remove negate optimization.
32258 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32260         PR ipa/65302
32261         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32263 2015-03-06  Richard Biener  <rguenther@suse.de>
32265         PR middle-end/64928
32266         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32267         and liveout_obstack members.
32268         (calculate_live_on_exit): Remove.
32269         (calculate_live_ranges): Change declaration.
32270         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32271         (new_tree_live_info): Adjust.
32272         (calculate_live_ranges): Delete livein when not wanted.
32273         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32274         Deal with partly deleted live info.
32275         (loe_visit_block): Remove temporary bitmap by using
32276         bitmap_ior_and_compl_into.
32277         (live_worklist): Adjust accordingly.
32278         (calculate_live_on_exit): Make static.
32279         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32280         we do not need livein.
32282 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
32284         * real.c (real_from_string): Fix typo in assertion.
32286 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
32288         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32289         the patch.
32291 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
32293         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32295 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
32297         PR target/64342
32298         * lra-assigns.c (find_hard_regno_for): Rename to
32299         find_hard_regno_for_1.  Add a new parameter.
32300         (find_hard_regno_for): New function using find_hard_regno_for_1.
32302 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32304         PR rtl-optimization/65067
32305         * expmed.c (store_bit_field, extract_bit_field): Reworked the
32306         strict volatile bitfield handling.
32308 2015-03-05  Martin Liska  <mliska@suse.cz>
32310         PR ipa/65318
32311         * ipa-icf.c (sem_variable::equals): Compare variables types.
32313 2015-03-05  Richard Henderson  <rth@redhat.com>
32315         PR target/65121
32316         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32317         correctly check weak symbol binding.
32319 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
32321         PR middle-end/65315
32322         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32323         needed alignment.
32325 2015-03-05  Martin Liska  <mliska@suse.cz>
32327         * ipa-inline.c (inline_small_functions): Set default value to
32328         prevent warning during bootstrap.
32329         * tree.h: Add pragma guard that ignores false positives during
32330         bootstrap.
32332 2015-03-05  Richard Biener  <rguenther@suse.de>
32334         PR tree-optimization/65310
32335         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32336         Properly preserve alignment of the base of the access.
32338 2015-03-05  Richard Biener  <rguenther@suse.de>
32340         PR ipa/65270
32341         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32342         Compare dependence info.
32344 2015-03-05  Richard Biener  <rguenther@suse.de>
32346         PR middle-end/65233
32347         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32348         tree-into-ssa.h.
32349         (walk_ssa_copies): Revert last chage.  Instead do not walk
32350         SSA names registered for SSA update.
32352 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32354         PR ipa/65270
32355         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32356         vtable references for their containing type.
32357         (sem_function::equals_wpa): Compare TYPE_RESTRICT
32358         and type attributes.
32360 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
32362         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32363         before negating it.
32364         * stor-layout.c (finalize_record_size): Revert latest change.
32366 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
32368         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32370 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32372         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32373         for correct comdat handling.
32374         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32375         Likewise.
32376         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32377         (used_from_object_file_p_worker): Remove.
32378         (cgraph_node::only_called_directly_or_alised): Add
32379         used_from_object_file_p.
32380         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32381         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32382         can_remove_if_no_direct_calls_and_refs_p.
32384 2015-03-04  Nick Clifton  <nickc@redhat.com>
32386         * config/rl78/rl78.h (enum reg_class): Remove real registers from
32387         General register class.
32388         * config/rl78/rl78-real.md: Replace general register constraints
32389         with real+virtual register constraints.
32391 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32393         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32394         from checking for -mhtm option.
32396 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
32398         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32399         (struct ipa_sra_check_caller_data): Add has_thunk field.
32400         (ipa_sra_check_caller): Check for thunk.
32401         (ipa_sra_preliminary_function_checks): Give up on function with
32402         thunks.
32403         (ipa_early_sra): Use call_for_symbol_and_aliases.
32405 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
32407         PR target/65249
32408         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32409         called for __stack_chk_guard symbol.
32411 2015-03-03  DJ Delorie  <dj@redhat.com>
32413         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32414         inc/dec.
32415         (*addhi3_real): Likewise.
32416         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32417         pattern to match incrementing memory.
32418         * config/rl78/predicates.md (rl78_1_2_operand): New.
32419         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32420         it's the same and only mem.
32421         (rl78_alloc_physical_registers_op2): If there's effectively only
32422         one MEM, transcode it into HL.
32423         (rl78_far_p): Reject addresses that aren't legitimate.
32425 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32427         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32428         negating it.
32430         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32432 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32434         Implement call0 ABI for xtensa
32435         * config/xtensa/constraints.md ("a" constraint): Include stack
32436         pointer in case of call0 ABI.
32437         ("q" constraint): Make empty in case of call0 ABI.
32438         ("D" constraint): Include stack pointer in case of call0 ABI.
32439         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32440         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32441         prototypes.
32442         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32443         variable.
32444         (xtensa_regno_to_class): Make it a local variable in the
32445         function xtensa_regno_to_class.
32446         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32447         macro, function prototype and implementation.
32448         (reg_nonleaf_alloc_order): Make it a local variable in the
32449         function order_regs_for_local_alloc.
32450         (xtensa_conditional_register_usage): New function.
32451         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32452         (xtensa_valid_move): Allow direct moves to stack pointer
32453         register in call0 ABI.
32454         (xtensa_setup_frame_addresses): Only spill register windows in
32455         windowed ABI.
32456         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32457         call0 ABI respectively.
32458         (xtensa_function_arg_1): Only mark a7 register for copying in
32459         windowed ABI.
32460         (xtensa_call_save_reg): New function.
32461         (compute_frame_size): Add space for callee saved register
32462         storage to the frame size in call0 ABI.
32463         (xtensa_expand_prologue): Generate code to set up stack frame
32464         and save callee-saved registers in call0 ABI.
32465         (xtensa_expand_epilogue): New function.
32466         (xtensa_set_return_address): New function.
32467         (xtensa_return_addr): Calculate return address in call0 ABI.
32468         (xtensa_builtin_saveregs): Only mark a7 register for copying and
32469         emit copying code in windowed ABI.
32470         (order_regs_for_local_alloc): Add preferred register allocation
32471         order for non-leaf function in call0 ABI.
32472         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32473         (xtensa_asm_trampoline_template): Add trampoline generation for
32474         call0 ABI.
32475         (xtensa_trampoline_init): Add trampoline initialization for
32476         call0 ABI.
32477         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32478         functions.
32479         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32480         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32481         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32482         ABI call-used registers.
32483         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32484         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32485         call0 ABI.
32486         (REG_CLASS_CONTENTS): Include all registers into the preferred
32487         reload registers set, adjust the set in the
32488         xtensa_conditional_register_usage.
32489         (xtensa_regno_to_class): Drop variable declaration.
32490         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32491         function.
32492         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32493         respectively.
32494         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32495         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32496         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32497         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32498         location in call0 ABI.
32499         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32500         stack adjustment size when handling exception.
32501         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32502         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32503         definitions.
32504         ("return" pattern): Generate ret.n/ret in call0 ABI.
32505         ("epilogue" pattern): Expand epilogue.
32506         ("nonlocal_goto" pattern): Use default in call0 ABI.
32507         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32508         emit eh_set_a0_* depending on ABI.
32509         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32510         ("eh_set_a0_call0", "blockage"): New patterns.
32512 2015-03-03  Martin Liska  <mliska@suse.cz>
32514         PR ipa/65287
32515         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32517 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
32519         PR 65138/target
32520         * config/rs6000/rs6000-tables.opt: Regenerate table.
32522 2015-03-03  Renlin Li  <renlin.li@arm.com>
32524         * doc/md.texi (@item ^): Change ? into ^.
32526 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
32528         * doc/tm.texi: Regenerated.
32530 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
32532         * builtins.c (expand_builtin_return_addr): Add
32533         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32534         surrounding #ifdef.
32535         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32536         definition to 1.
32537         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32538         Likewise.
32539         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32540         undefined.
32541         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32542         paragraph.
32544 2015-03-03  Martin Jambor  <mjambor@suse.cz>
32545             Eric Botcazou  <ebotcazou@adacore.com>
32547         * tree-sra.c (ipa_sra_check_caller_data): New type.
32548         (has_caller_p): Removed.
32549         (ipa_sra_check_caller): New function.
32550         (ipa_sra_preliminary_function_checks): Use it.
32552 2015-03-03  Martin Liska  <mliska@suse.cz>
32554         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32555         instead of if branch.
32557 2015-03-03  Martin Liska  <mliska@suse.cz>
32559         PR ipa/65282
32560         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32562 2015-03-23  Jeff Law  <law@redhat.com>
32564         PR tree-optimization/65241
32565         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32566         hash table if INSERT is true.
32568 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32570         PR target/65296
32571         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32573 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32575         PR target/64331
32576         * config/avr/avr.c (context.h, tree-pass.h): Include them.
32577         (avr_pass_data_recompute_notes): New static variable.
32578         (avr_pass_recompute_notes): New class.
32579         (avr_register_passes): New static function.
32580         (avr_option_override): Call it.
32582 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
32584         Fix various problems with specs file generation.
32586         PR target/65296
32587         * config.gcc (extra_gcc_objs) [avr]: Remove.
32588         * config/avr/driver-avr.c: Remove file.
32589         * config/avr/t-avr (driver-avr.o): Remove rule.
32590         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32591         INCLUDES to build.  Depend on TM_H.
32592         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
32593         build warnings.  Fix non-matching types and non-existing %-codes.
32594         (tm.h): Include.
32595         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32596         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32597         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32598         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32599         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32600         (LIBGCC_SPEC): Remove definitions.
32602 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32604         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32605         to create a register in testing mode.
32607 2015-03-03  Martin Liska  <mliska@suse.cz>
32608             Jan Hubicka  <hubicka@ucw.cz>
32610         PR ipa/65263
32611         * cgraph.c (cgraph_node::has_thunk_p): New function.
32612         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32613         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32614         (sem_function::merge): Assert is changed.
32616 2015-03-03  Martin Liska  <mliska@suse.cz>
32617             Martin Jambor  <mjambor@suse.cz>
32619         PR ipa/65087
32620         * ipa-icf.c (sem_item_optimizer::execute): Change function
32621         return value to boolean.
32622         (sem_item_optimizer::merge_classes): Likewise.
32623         (ipa_icf_driver): Return TODO_remove_functions in case there's
32624         a merge operation processed.
32625         * ipa-icf.h: Change function return value to boolean.
32627 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32629         PR 65138/target
32630         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32631         processor type for 64-bit little endian PowerPC.
32633         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32634         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
32635         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
32636         printing built-in mask so it does not pass NULL pointers.
32638         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32639         -mcpu=powerpc64le.
32641 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
32643         PR target/58158
32644         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32645         !ISA_HAS_FP_CONDMOVE.
32647 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
32649         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32650         reload_completed.
32652 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
32654         * doc/invoke.texi (Options for Code Generation Conventions):
32655         Fix URL of DSO paper.
32657 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32659         PR ipa/65130
32660         * ipa-inline.c (check_callers): Looks for recursion.
32661         (inline_to_all_callers): Give up on uninlinable or recursive edges.
32662         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32663         summary of inline clones.
32664         (do_estimate_growth_1): Fix recursion check.
32666 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32668         PR ipa/64988
32669         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32670         comdat groups.
32672 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
32673             Aldy Hernandez  <aldyh@redhat.com>
32675         PR lto/65276
32676         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32677         when checking TYPE_BINFO.
32679 2015-03-02  Richard Biener  <rguenther@suse.de>
32681         PR ipa/65270
32682         * ipa-icf-gimple.c: Include builtins.h.
32683         (func_checker::compare_memory_operand): Compare base alignment.
32685 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32687         PR target/65184
32688         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32689         passed by reference.
32691 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
32693         PR target/65183
32694         * tree-chkp.c (chkp_check_lower): Don't check against
32695         zero bounds for already instrumented functions.
32696         (chkp_check_upper): Likewise.
32697         (chkp_fini): Clean pass local data to avoid wrong reusage.
32699 2015-02-28  Martin Liska  <mliska@suse.cz>
32700             Jan Hubicka  <hubicka@ucw.cz>
32702         * ipa-icf.c (sem_variable::equals): Improve debug output;
32703         get variable constructor.
32704         (sem_variable::parse): Do not filter out too early; give up on
32705         volatile and register vars.
32706         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32707         variables.
32708         * ipa-icf.h (sem_variable::init): Do not set ctor.
32709         (sem_variable::ctor): Remove.
32711 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
32713         PR middle-end/65233
32714         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32716 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32718         * ipa-icf.c: Include stor-layout.h
32719         (sem_function::compare_cgraph_references): Rename to ...
32720         (sem_item::compare_cgraph_references): ... this one.
32721         (sem_variable::equals_wpa): New function
32722         (sem_variable::equals): Do not check stuff already verified by
32723         equals_wpa.
32724         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32725         * ipa-icf.h (sem_item): Add compare_cgraph_references.
32726         (sem_function): Remove compare_cgraph_references.
32727         (sem_variable): Turns equals_wpa into non-inline.
32729 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32731         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32732         (sem_item::add_expr): New function.
32733         (sem_function::hash_stmt): Handle operands of most statements.
32734         (sem_variable::get_hash): Hash the actual constructor.
32735         * ipa-icf.h (sem_item): Add add_expr.
32736         (sem_function): Update prototype of hash_stmt
32738 2015-02-28  Martin Liska  <mliska@suse.cz>
32739             Jan Hubicka  <hubicka@ucw.cz>
32741         PR ipa/65245
32742         * ipa-icf-gimple.c (func_checker::compare_function_decl):
32743         Remove.
32744         (func_checker::compare_variable_decl): Skip symtab vars.
32745         (func_checker::compare_cst_or_decl): Update.
32746         * ipa-icf.c (sem_function::parse): Do not consider aliases.
32747         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32748         use correct symtab predicates.
32749         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32750         (sem_variable::parse):  Update comment.
32751         (sem_item_optimizer::build_graph): Consider ultimate aliases
32752         for references.
32754 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32756         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32757         of OBJ_TYPE_REF.
32759 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32761         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32762         (sem_variable::merge) Likewise.
32764 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32766         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32767         target; also match flag_ipa_devirt.
32769 2015-03-01  Martin Liska  <mliska@suse.cz>
32770             Jan Hubicka  <hubicka@ucw.cz>
32772         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32773         Validate variable alignment.
32774         * ipa-icf.c (sem_function::equals_private): Be more precise
32775         about non-common function attributes.
32776         (sem_variable::equals): Likewise.
32778 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32780         PR ipa/65237
32781         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32782         across COMDAT group boundary.
32784 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32786         PR ipa/65232
32787         * ipa-icf.c (clear_decl_rtl): New function.
32788         (sem_function::merge): Clear RTL before forming alias.
32789         (sem_variable::merge): Clear RTL before forming alias.
32791 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
32793         PR ipa/65236
32794         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32796 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
32798         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32799         to neon_to_gp<q>.
32801 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32803         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32804         a typo in the description.
32806 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32808         PR target/64317
32809         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32810         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32811         * lra-constraints.c: Include "params.h".
32812         (EBB_PROBABILITY_CUTOFF): Use
32813         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32814         (lra_inheritance): Use '<' instead of '<=' for
32815         EBB_PROBABILITY_CUTOFF.
32816         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32817         Document change.
32819 2015-02-27  Martin Liska  <mliska@suse.cz>
32821         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32822         vector length condition.
32824 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
32826         * doc/extend.texi (x86 transactional memory intrinsics):
32827         Reorganize discussion of _xbegin.  Clarify that the return
32828         value is a bit mask.  Expand example and move to end of section.
32830 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32831             Aldy Hernandez  <aldyh@redhat.com>
32833         PR rtl-optimization/65220
32834         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32836 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32838         PR target/65032
32839         * lra-remat.c (update_scratch_ops): New.
32840         (do_remat): Call it.
32841         * lra.c (lra_register_new_scratch_op): New. Take code from ...
32842         (remove_scratches): ... here.
32843         * lra-int.h (lra_register_new_scratch_op): New prototype.
32845 2015-02-27  Marek Polacek  <polacek@redhat.com>
32847         PR c/65040
32848         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32849         -Wformat-signedness anymore.
32851 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32853         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32854         function.
32855         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32857 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32859         * config/s390/s390.c (enum s390_builtin):
32860         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32861         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32862         (s390_init_builtins): Generate new builtin functions.
32863         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32864         (s390_sfpc, s390_efpc): New pattern definitions.
32866 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32868         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32869         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32870         (s390_builtin_decls): New array.
32871         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32872         (s390_builtin_decl): New function.
32873         (TARGET_BUILTIN_DECL): Define macro.
32875 2015-02-27  Richard Biener  <rguenther@suse.de>
32877         PR middle-end/63175
32878         * builtins.c (get_object_alignment_2): Make sure to re-apply
32879         the ANDed mask after recursing to its operand gets us a new
32880         misalignment bit position.
32882 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
32883             Martin Liska  <mliska@suse.cz>
32885         PR bootstrap/65150
32886         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32887         Use address_matters_p.
32888         (redirect_all_callers, set_addressable): New functions.
32889         (sem_function::merge): Reorganize and fix merging issues.
32890         (sem_variable::merge): Likewise.
32891         (sem_variable::compare_sections): Remove.
32892         * common.opt (fmerge-all-constants, fmerge-constants): Remove
32893         Optimization flag.
32894         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32895         redirect them.
32896         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32897         decl is used.
32898         (address_matters_1): New function.
32899         (symtab_node::address_matters_p): New function.
32900         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32901         check for merged flag.
32902         * cgraph.h (address_matters_p): Declare.
32903         (symtab_node::address_taken_from_non_vtable_p): Remove.
32904         (symtab_node::address_can_be_compared_p): New method.
32905         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32906         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32907         Remove.
32908         (comdat_can_be_unshared_p_1) Use address_matters_p.
32909         (update_vtable_references): Fix formating.
32910         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32911         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32912         * cgraphclones.c: Preserve merged and icf_merged flags.
32914 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
32916         * doc/extend.texi (Function Attributes): Fix spelling and typos.
32917         (Label Attributes): Likewise.
32918         (Cilk Plus Builtins): Likewise.
32919         (ARC SIMD Built-in Functions): Likewise.
32920         (ARM C Language Extensions (ACLE)): Likewise.
32921         (PowerPC Built-in Functions): Likewise.
32922         (PowerPC Hardware Transactional Memory Built-in Functions):
32923         Likewise.
32925 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
32927         PR tree-optimization/65216
32928         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32929         new stmt and new SSA_NAME for lhs whenever the arguments have
32930         changed and weren't just swapped.  Fix comment typo.
32932         PR tree-optimization/65215
32933         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32934         for PDP endian targets.
32935         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32936         Fix up formatting issues.
32937         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
32938         size is smaller than the original, adjust MEM_REF offset by the
32939         difference of sizes.  Use is_gimple_mem_ref_addr instead of
32940         is_gimple_min_invariant test to avoid adding address temporaries.
32942 2015-02-26  Martin Liska  <mliska@suse.cz>
32943             Jan Hubicka  <hubicka@ucw.cz>
32945         PR ipa/64693
32946         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32947         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32948         (sem_item_optimizer::process_cong_reduction): Include division by
32949         sensitive references.
32950         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32951         * ipa-ref.c (ipa_ref::address_matters_p): New function.
32952         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32954 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
32956         PR target/65192
32957         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32958         Remove.
32959         * config/avr/avr.c: Same.
32960         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32961         Refuse any constant address not in 0..0xbf.
32962         * config/avr/avr.md (*mov<mode>, *movsf): Remove
32963         tiny_valid_direct_memory_access_range from insn conditions.
32964         (mov<mode>): Don't special-case expansion of avrtiny addresses.
32966 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
32968         PR target/61142
32969         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32970         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32971         * config/sh/predicates.md (const_logical_operand): New predicate.
32972         * config/sh/sh.md: Add new peephole2 patterns.
32974 2015-02-26  Marek Polacek  <polacek@redhat.com>
32976         PR ipa/65008
32977         * ipa-inline.c (early_inliner): Recompute inline parameters.
32979 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32981         PR target/65171
32982         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32983         instructions with TImode operands are included in the analysis.
32985 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
32987         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32988         of an EDGE_FSM_THREAD.
32990 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32992         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32994 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
32996         PR debug/46102
32997         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32999 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
33001         PR tree-optimization/65048
33002         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33003         (thread_through_all_blocks): Call valid_jump_thread_path.
33004         Remove invalid FSM jump-thread paths.
33006 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
33008         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33009         (ipa_write_optimization_summaries): Likewise.
33010         * tree-streamer.h: Include data-streamer.h.
33011         (streamer_mode_table): Declare extern variable.
33012         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33013         * lto-streamer-out.c (lto_output_init_mode_table,
33014         lto_write_mode_table): New functions.
33015         (produce_asm_for_decls): Call lto_write_mode_table when streaming
33016         offloading LTO.
33017         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33018         (lto_create_simple_input_block): Add mode_table argument to the
33019         lto_input_block constructors.
33020         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33021         Likewise.
33022         * data-streamer-in.c (string_for_index): Likewise.
33023         * ipa-inline-analysis.c (inline_read_section): Likewise.
33024         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33025         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33026         * lto-streamer-in.c (lto_read_body_or_constructor,
33027         lto_input_toplevel_asms): Likewise.
33028         (lto_input_mode_table): New function.
33029         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33030         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33031         Use bp_pack_machine_mode.
33032         * real.h (struct real_format): Add name field.
33033         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33034         (class lto_input_block): Add mode_table member.
33035         (lto_input_block::lto_input_block): Add mode_table_ argument,
33036         initialize mode_table.
33037         (struct lto_file_decl_data): Add mode_table field.
33038         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33039         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33040         unpack_ts_decl_common_value_fields,
33041         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33042         * tree-streamer.c (streamer_mode_table): New variable.
33043         * real.c (ieee_single_format, mips_single_format,
33044         motorola_single_format, spu_single_format, ieee_double_format,
33045         mips_double_format, motorola_double_format,
33046         ieee_extended_motorola_format, ieee_extended_intel_96_format,
33047         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33048         ibm_extended_format, mips_extended_format, ieee_quad_format,
33049         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33050         decimal_single_format, decimal_double_format, decimal_quad_format,
33051         ieee_half_format, arm_half_format, real_internal_format): Add name
33052         field.
33053         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33055 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
33057         PR target/65161
33058         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33059         reordering for selective scheduling.
33061 2015-02-26  Terry Guo  <terry.guo@arm.com>
33063         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33064         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33065         (arm_arch_no_volatile_ce): Declare new global variable.
33066         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33067         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33068         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33069         (TARGET_NO_VOLATILE_CE): New macro.
33070         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33071         volatile memory access in IT block
33073 2015-02-25  Kai Tietz  <ktietz@redhat.com>
33075         PR tree-optimization/61917
33076         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33077         that reduc_def_stmt is null.
33079 2015-02-25  Martin Liska  <mliska@suse.cz>
33081         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33082         hard register variables.
33084 2015-02-25  Kai Tietz  <ktietz@redhat.com>
33086         PR target/64212
33087         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33088         (symtab::noninterposable_alias): Likewise.
33090 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
33092         PR target/65167
33093         * config/i386/i386.c (ix86_function_arg_regno_p): Support
33094         bounds registers.
33095         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33097 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
33099         PR target/64997
33100         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33101         as split condition; force split via '#' in output pattern.
33103 2015-02-25  Richard Biener  <rguenther@suse.de>
33104             Kai Tietz  <ktietz@redhat.com>
33106         PR tree-optimization/61917
33107         * tree-vect-loop.c (vectorizable_reduction): Allow
33108         vect_internal_def without reduction to exit graceful.
33110 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
33112         PR target/65196
33113         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33114         only with NONDEBUG_INSN_P.
33116 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
33118         Use variadic macros with avr-log.c.
33120         * config/avr/avr-protos.h (avr_vdump): New prototype.
33121         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33122         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33123         * config/avr/avr-log.c: Adjust comments.
33124         (avr_vdump): New function.
33125         (avr_vadump): Pass caller as 2nd argument instead of format string.
33126         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33127         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33129 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
33131         PR lto/64374
33132         * target.def (target_option_stream_in): New target hook.
33133         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33134         targetm.target_option.post_stream_in if non-NULL.
33135         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33136         * doc/tm.texi: Updated.
33137         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33138         function.
33139         (TARGET_OPTION_POST_STREAM_IN): Redefine.
33141 2015-02-24  Jeff Law  <law@redhat.com>
33143         PR target/65117
33144         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33145         of operand 0 and operand 2.
33146         (zero_cost_loop_end, loop_end): Similarly.
33148 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
33150         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33151         CXX_MEM_STAT_INFO.
33153 2015-02-24  DJ Delorie  <dj@redhat.com>
33155         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33156         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33157         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33158         instead of hardcoding SImode.
33160 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
33162         * omp-low.c (create_omp_child_function): Tag entrypoint
33163         functions with a special attribute.
33165 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33167         PR target/65058
33168         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33170 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
33172         PR rtl-optimization/65123
33173         * lra-remat.c (operand_to_remat): Check hard regs in insn
33174         definition too.
33176 2015-02-24  Nick Clifton  <nickc@redhat.com>
33178         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33179         to the assembler.
33181 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
33183         PR libgomp/64625
33184         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33185         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33186         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33187         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33188         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33189         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33190         (BUILT_IN_GOACC_PARALLEL): Specify as
33191         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33192         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33193         * builtin-types.def
33194         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33195         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33196         Remove function types.
33197         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33198         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33199         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33200         New function types.
33202 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
33204         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33206 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
33208         PR tree-optimization/65170
33209         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33210         if val[1] < 0, clear also val[2] and return 3.
33212 2015-02-24  Alan Modra  <amodra@gmail.com>
33214         PR target/65172
33215         * config/rs6000/rs6000.c (get_memref_parts): Only return true
33216         when *base is a reg.  Handle nested plus addresses.  Simplify
33217         pre_modify test.
33219 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
33221         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33222         use natural alignment when optimizing for size.
33224 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
33226         PR target/65153
33227         * config/sh/sh.md (movsicc_true+3): Remove peephole.
33228         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33229         * config/sh/sh.c (replace_n_hard_rtx): Remove.
33231 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
33233         PR fortran/63427
33234         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33235         too big for a wide_int.  Implement missing wrapping operation.
33237 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
33239         PR target/65163
33240         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33241         instead of const_int 4294901760.
33243 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
33245         * config/avr/t-avr: Fix typo in comment.
33247 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
33249         * doc/rtl.texi (fma): Clarify documentation.
33251 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
33253         PR debug/58123
33254         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33255         over input_location.
33257 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33259         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33260         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33261         restrict alignments to absolute_biggest_alignment.
33262         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33263         Define.
33264         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33265         * doc/tm.texi: Regenerate.
33266         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33268 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
33270         PR target/64172
33271         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33273 2015-02-20  Richard Biener  <rguenther@suse.de>
33275         PR tree-optimization/65136
33276         * tree-ssa-propagate.c: Include cfgloop.h.
33277         (replace_phi_args_in): Avoid replacing loop latch edge PHI
33278         arguments with constants.
33280 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
33281             Martin Liska  <mliska@suse.cz>
33283         PR target/63892
33284         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33285         don't try to create_thunk if stdarg_p.  If
33286         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33287         redirect_callers if possible.
33288         (sem_item_optimizer::execute): Call unregister_hooks here...
33289         (ipa_icf_driver): ... instead of here.
33291 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33293         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33294         Mark operand 0 as earlyclobber in 2nd alternative.
33295         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33296         Write negated shift amount into QI lowpart operand 0 and use it
33297         in the shift step.
33298         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33300 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33302         * cgraph.h (clone_function_name_1): Declare.
33303         * cgraphclones.c (clone_function_name_1): New function.
33304         (clone_function_name): Use it.
33305         * lto-partition.c: Include "stringpool.h".
33306         (must_not_rename, maybe_rewrite_identifier)
33307         (validize_symbol_for_target): New static functions.
33308         (privatize_symbol_name): Use must_not_rename.
33309         (promote_symbol): Call validize_symbol_for_target.
33310         (lto_promote_cross_file_statics): Likewise.
33311         (lto_promote_statics_nonwpa): Likewise.
33313 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
33315         PR target/64452
33316         * config/avr/avr.md (pushhi_insn): New insn.
33317         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33319 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
33320             Jakub Jelinek  <jakub@redhat.com>
33322         * tree-streamer.c (preload_common_nodes): Don't preload
33323         TI_VA_LIST* for offloading.
33324         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33325         in_lto_p.
33327 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
33329         * config/pa/pa.c (pa_emit_move_sequence): Always force
33330         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
33331         note on insn.
33333         * config/pa/pa.c (pa_reloc_rw_mask): New function.
33334         (TARGET_ASM_RELOC_RW_MASK): Define.
33335         (pa_cannot_force_const_mem): Revert previous change.
33337 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
33338             Jan Hubicka  <hubicka@ucw.cz>
33340         PR ipa/65028
33341         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33342         across jump functions.
33344 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
33346         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33348 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
33350         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33352 2015-02-19  Richard Henderson  <rth@redhat.com>
33354         PR middle-end/65074
33355         * varasm.c (default_binds_local_p_2): Don't test node->definition;
33356         test DECL_EXTERNAL independent of symtab_node.
33358 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
33360         PR lto/65012
33361         * varpool.c (varpool_node::get_constructor): Return early
33362         if this->lto_file_data is NULL.
33364 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33366         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33367         (rank_for_schedule_debug): Update.
33368         (ready_sort): Make static.  Move sorting logic to ...
33369         (ready_sort_debug, ready_sort_real): New static functions.
33370         (schedule_block): Sort both debug insns and real insns in preparation
33371         for ready list trimming.  Improve debug output.
33372         * sched-int.h (ready_sort): Remove global declaration.
33374 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
33376         * ipa-icf.c (sem_function::equals_private): Adjust.
33377         (sem_function::bb_dict_test): Take a vec<int> * instead of
33378         auto_vec<int>.
33379         * ipa-icf.h (bb_dict_test): Likewise.
33381 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33383         PR gcov-profile/64634
33384         * tree-eh.c (frob_into_branch_around): Fix up typos
33385         in function comment.
33386         (lower_catch): Put eh_seq resulting from EH lowering of
33387         the cleanup sequence after the cleanup rather than before it.
33389 2015-02-18  Tom de Vries  <tom@codesourcery.com>
33391         * common.opt (fstdarg-opt): New option.
33392         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33393         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33394         (@item -fstdarg-opt): New item.
33396 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
33398         PR target/65064
33399         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33400         for common symbols.
33402 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33404         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33405         insn-modes.h.
33406         (ALL_HOST_OBJS): Add mkoffload.o.
33407         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33409 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
33411         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33412         (compare_virtual_tables): Be smarter about skipping typeinfos;
33413         do sane output on virtual table table mismatch.
33414         (warn_odr): Be ready for forward declarations of enums;
33415         output sane info on base mismatch and virtual table mismatch.
33416         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33417         when only one type is polymorphic.
33418         (get_odr_type): Fix hashtable corruption.
33419         (dump_odr_type): Dump mangled names.
33421 2015-02-18  Richard Biener  <rguenther@suse.de>
33423         PR tree-optimization/65063
33424         * tree-predcom.c (determine_unroll_factor): Return 1 if we
33425         have replaced looparound PHIs.
33427 2015-02-18  Martin Liska  <mliska@suse.cz>
33429         * lto-streamer.c (lto_streamer_init): Encapsulate
33430         streamer_check_handled_ts_structures with checking macro.
33432 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
33434         PR ipa/65087
33435         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33436         section if !implicit_section.
33437         (cgraph_node::create_version_clone_with_body): Likewise.
33438         * trans-mem.c (ipa_tm_create_version): Likewise.
33440 2015-02-18  Richard Biener  <rguenther@suse.de>
33442         PR tree-optimization/62217
33443         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33444         into BIVs.
33446 2015-02-18  Marek Polacek  <polacek@redhat.com>
33448         PR sanitizer/65081
33449         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33450         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33451         is in range [-16K, -1].  Don't issue run-time error if
33452         (ptr > ptr + offset).
33454 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
33456         * doc/install.texi (nvptx-*-none): New section.
33457         * doc/invoke.texi (Nvidia PTX Options): Likewise.
33458         * config/nvptx/nvptx.opt: Update.
33460         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33461         (access_check): New functions, copied from
33462         config/i386/intelmic-mkoffload.c.
33463         (main): For non-installed testing, look in all COMPILER_PATHs for
33464         GCC_INSTALL_NAME.
33466         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33468 2015-02-18  Andrew Pinski  <apinski@cavium.com>
33469             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33471         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33472         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33474 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33476         * ipa-visibility.c (function_and_variable_visibility): Only
33477         check locality if node is not already local.
33478         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33479         call_for_symbol_and_aliases instead of
33480         call_for_symbol_thunks_and_aliases.
33481         (ipa_inline): Likewise.
33482         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33483         first walk aliases.
33484         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33485         call_for_symbol_and_aliases.
33486         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33487         (ipa_propagate_frequency_1): Use it; use opt_for_fn
33488         (ipa_propagate_frequency): Update.
33489         (ipa_profile): Add opt_for_fn gueards.
33491 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
33493         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33494         * doc/invoke.texi (SH options): Document it.
33495         * config/sh/sh.c (sh_insn_length_adjustment): Check
33496         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33498 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
33500         * common.opt (fipa-cp-alignment): New.
33501         * ipa-cp.c (ipcp_store_alignment_results): Check
33502         flag_ipa_cp_alignment.
33503         * opts.c (default_options_table): Enable -fipa-cp-alignment for
33504         -O2.
33505         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33506         * doc/invoke.texi: Document -fipa-cp-alignment.
33508 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
33510         PR target/64793
33511         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33512         to nil.  Adjust comments.
33514 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
33516         * ipa-visibility.c (function_and_variable_visibility): Only
33517         check locality if node is not already local.
33518         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33519         call_for_symbol_and_aliases instead of
33520         call_for_symbol_thunks_and_aliases.
33521         (ipa_inline): Likewise.
33522         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33523         first walk aliases.
33524         * ipa.c (symbol_table::remove_unreachable_nodes): Use
33525         call_for_symbol_and_aliases.
33526         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33527         (ipa_propagate_frequency_1): Use it; use opt_for_fn
33528         (ipa_propagate_frequency): Update.
33529         (ipa_profile): Add opt_for_fn guards.
33531 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
33533         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33534         skipping of "strange" tokens.
33536 2015-02-17  Jeff Law  <law@redhat.com>
33538         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
33539         obsolete comment.
33541 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
33543         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33544         as forcing a HARD_DEP between instructions, thereby
33545         disallowing rewriting to break dependencies.
33547 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
33549         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33550         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33551         variables in boundary that have no inlitalizer encoded and are
33552         not aliases.
33553         * varasm.c (default_binds_local_p_2): External definitions do not
33554         count as definitions here.
33556 2015-02-16  Jeff Law  <law@redhat.com>
33558         PR tree-optimization/64823
33559         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33560         statements.
33561         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33562         threading through blocks with PHIs, but no statements.
33563         (thread_through_normal_block): Distinguish between blocks where
33564         we did not process all the statements and blocks with no statements.
33566 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
33567             James Greenhalgh  <james.greenhalgh@arm.com>
33569         PR ipa/64963
33570         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33571         section if not linkonce.  Fix up formatting.
33572         (cgraph_node::create_version_clone_with_body): Copy section.
33573         * trans-mem.c (ipa_tm_create_version): Likewise.
33575 2015-02-16  Richard Biener  <rguenther@suse.de>
33577         PR tree-optimization/65077
33578         * tree-ssa-structalias.c (get_constraint_for_1): Handle
33579         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33580         (find_func_aliases): Allow float values to carry pointers again.
33582 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
33584         * doc/install.texi (Specific): Reorder targets list to put
33585         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
33586         from the top menu.
33588 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
33589             David Edelsohn  <dje.gcc@gmail.com>
33591         PR target/65058
33592         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33593         mapping class to external variable or function reference.
33594         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33595         mapping class.
33597 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
33599         PR target/53348
33600         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33601         ASM_WEAKEN_DECL if defined.
33603 2015-02-16  Richard Biener  <rguenther@suse.de>
33605         PR lto/65015
33606         * varasm.c (default_file_start): For LTO produced units
33607         emit <artificial> as file directive.
33609 2015-02-16  Richard Biener  <rguenther@suse.de>
33611         PR tree-optimization/63593
33612         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33613         stmts and releasing SSA names until...
33614         (execute_pred_commoning): ... after processing all chains.
33616 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
33618         PR ipa/65059
33619         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33620         external functions.
33622 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
33624         * doc/bugreport.texi: Adjust section titles throughout the file
33625         to use "Title Case".
33626         * doc/extend.texi: Likewise.
33627         * doc/gcov.texi: Likewise.
33628         * doc/implement-c.texi: Likewise.
33629         * doc/implement-cxx.texi: Likewise.
33630         * doc/invoke.texi: Likewise.
33631         * doc/objc.texi: Likewise.
33632         * doc/standards.texi: Likewise.
33633         * doc/trouble.texi: Likewise.
33635 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
33637         * cgraph.h (symtab_node::has_aliases_p): Simplify.
33638         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33639         * tree.c (lookup_binfo_at_offset): Make static.
33640         (get_binfo_at_offset): Do not shadow offset; add explanatory
33641         comment.
33643 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
33645         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33646         for all floading point loads and stores except those using a register
33647         index address.
33648         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33649         to a register.
33651 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33653         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33654         (do_estimate_growth_1): Record if any uninlinable edge was seen.
33655         (estimate_growth): Handle uninlinable edges correctly.
33656         (check_callers): New.
33657         (growth_likely_positive): Handle aliases correctly.
33659 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
33661         * ipa-chkp.c: Use iterate_direct_aliases.
33662         * symtab.c (resolution_used_from_other_file_p): Move inline.
33663         (symtab_node::create_reference): Fix formating.
33664         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33665         (symtab_node::iterate_reference): Move inline.
33666         (symtab_node::iterate_referring): Move inline.
33667         (symtab_node::iterate_direct_aliases): Move inline.
33668         (symtab_node::used_from_object_file_p_worker): Inline into ...
33669         (symtab_node::used_from_object_file_p): ... this one; move inline.
33670         (symtab_node::call_for_symbol_and_aliases): Move inline;
33671         use iterate_direct_aliases.
33672         (symtab_node::call_for_symbol_and_aliases_1): New method.
33673         (cgraph_node::call_for_symbol_and_aliases): Move inline;
33674         use iterate_direct_aliases.
33675         (cgraph_node::call_for_symbol_and_aliases_1): New method.
33676         (varpool_node::call_for_node_and_aliases): Rename to ...
33677         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33678         use iterate_direct_aliases.
33679         (varpool_node::call_for_symbol_and_aliases_1): New method.
33680         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33681         (ipa_discover_readonly_nonaddressable_var): Update.
33682         * ipa-devirt.c: Fix formating.
33683         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33684         Move inline.
33685         (cgraph_node::call_for_symbol_and_aliases): Move inline.
33686         (cgraph_node::call_for_symbol_and_aliases_1): New function..
33687         * cgraph.h (used_from_object_file_p_worker): Remove.
33688         (resolution_used_from_other_file_p): Move inline.
33689         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33690         (symtab_node::iterate_reference): Move inline.
33691         (symtab_node::iterate_referring): Move inline.
33692         (symtab_node::iterate_direct_aliases): Move inline.
33693         (symtab_node::used_from_object_file_p_worker): Inline into ...
33694         (symtab_node::used_from_object_file_p): Move inline.
33695         * tree-emutls.c (ipa_lower_emutls): Update.
33696         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33697         (varpool_node::call_for_node_and_aliases): Remove.
33699 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
33701         PR tree-optimization/62209
33702         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33703         op == range->exp, insert seq and gimplified code after labels
33704         instead of after the phi.
33706 2015-02-13  Jeff Law  <law@redhat.com>
33708         PR bootstrap/65060
33709         Revert my change for tree-optimization/64823.
33711 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33713         PR tree-optimization/65053
33714         * tree-ssa-phiopt.c (value_replacement): When moving assign before
33715         cond, either reset VR on lhs or set it to phi result VR.
33717 2015-02-13  Jeff Law  <law@redhat.com>
33719         PR tree-optimization/64823
33720         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33721         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33722         threading through blocks with PHIs, but no statements.
33723         (thread_through_normal_block): Distinguish between blocks where
33724         we did not process all the statements and blocks with no statements.
33726         PR rtl-optimization/47477
33727         * match.pd (convert (plus/minus (convert @0) (convert @1): New
33728         simplifier to narrow arithmetic.
33730 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
33732         PR ipa/65028
33733         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33734         polymorphic call info when type is not known to be preserved.
33736 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
33738         PR ipa/65028
33739         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33740         (inline_call): Use it.
33742 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
33744         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33745         GOMP_DEVICE_NVIDIA_PTX.
33747 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
33749         PR ipa/65034
33750         * stmt.c (emit_case_nodes): Use void_type_node instead of
33751         NULL_TREE as LABEL_DECL type.
33753 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
33755         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33756         constraints.
33757         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33758         symbolic references to data to be forced to constant memory on the
33759         SOM target.
33761 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
33763         PR tree-optimization/65002
33764         * tree-cfg.c (pass_data_fixup_cfg): Don't update
33765         SSA on start.
33766         * tree-sra.c (some_callers_have_no_vuse_p): New.
33767         (ipa_early_sra): Reject functions whose callers
33768         assume function is read only.
33770 2015-02-13  Richard Biener  <rguenther@suse.de>
33772         PR lto/65015
33773         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33774         for LTO produced CUs.
33776 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
33778         PR tree-optimization/64705
33779         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33780         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33781         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33782         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33783         expand_simple_operations.
33785 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
33786             Richard Henderson  <rth@redhat.com>
33788         PR rtl/32219
33789         * cgraphunit.c (cgraph_node::finalize_function): Set definition
33790         before notice_global_symbol.
33791         (varpool_node::finalize_decl): Likewise.
33792         * varasm.c (default_binds_local_p_2): Rename from
33793         default_binds_local_p_1, add weak_dominate argument.  Use direct
33794         returns instead of assigning to local variable.  Unify varpool and
33795         cgraph paths via symtab_node.  Reject undef weak variables before
33796         testing visibility.  Reorder tests for simplicity.
33797         (default_binds_local_p): Use default_binds_local_p_2.
33798         (default_binds_local_p_1): Likewise.
33799         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33800         via symtab_node.
33801         (default_elf_asm_output_external): Emit visibility when specified.
33803 2015-02-13  Alan Modra  <amodra@gmail.com>
33805         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33806         code setting up r11 for out-of-line fp restore.
33808 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
33810         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33811         (muser-mode): Likewise.
33813 2015-02-13  Alan Modra  <amodra@gmail.com>
33815         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33816         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33818 2015-02-12  David Howells  <dhowells@redhat.com>
33820         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33821         warning.
33822         * tree-ssa-uninit.c (dump_predicates): Likewise.
33823         * opts.c (print_filtered_help): Likewise.
33825 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
33827         * dwarf2out.c (output_die): Use "%s", name instead of name to
33828         avoid -Wformat-security warning.
33830         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33831         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33832         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33833         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33835 2015-02-12  Jason Merrill  <jason@redhat.com>
33837         * common.opt (-flifetime-dse): New.
33839 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
33841         PR sanitizer/65019
33842         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33844         PR tree-optimization/65014
33845         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33846         use original second operand of arg0 or arg1 instead of
33847         that adjusted by STRIP_NOPS.
33849 2015-02-11  Jeff Law  <law@redhat.com>
33851         PR target/63347
33852         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33853         that needs to be queued, just queue it for a single cycle.
33855 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
33857         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33858         bodies of thunks; comment on why.
33859         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33860         symbols are extern.
33862 2015-02-11  Richard Henderson  <rth@redhat.com>
33864         PR sanitize/65000
33865         * tree-eh.c (mark_reachable_handlers): Mark source and destination
33866         regions of __builtin_eh_copy_values.
33868 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
33870         PR middle-end/65003
33871         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33872         ultimate alias is MEM with SYMBOL_REF satisfying
33873         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
33874         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33876 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
33878         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33879         "diagnostic-core.h".
33880         (main): Initialize progname, and call diagnostic_initialize.
33882         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33883         instead of __OPENMP_TARGET__.
33885         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33886         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33887         hard-coding PTX_ID.
33889 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
33891         * doc/sourcebuild.texi (pie_enabled): Document.
33893 2015-02-11  Martin Liska  <mliska@suse.cz>
33895         PR ipa/64813
33896         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33897         a return value for call to a function that is noreturn.
33899 2015-02-11  Richard Biener  <rguenther@suse.de>
33901         PR lto/65015
33902         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33903         and -fresolution.
33905 2015-02-11  Andrew Pinski  <apinski@cavium.com>
33907         PR target/64893
33908         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33909         Change the first argument type to size_type_node and add another
33910         size_type_node.
33911         (aarch64_simd_expand_builtin): Handle the new argument to
33912         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33913         print an out when the first two arguments are not
33914         nonzero integer constants.
33915         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33916         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33918 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
33920         PR target/61925
33921         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33922         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33923         (ix86_set_current_function): Rewritten.
33924         (ix86_add_new_builtins): Temporarily clear current_target_pragma
33925         when creating builtin fndecls.
33927 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
33929         PR ipa/65005
33930         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33931         function.
33932         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33933         have no comdat group.
33934         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33935         (lto_output_varpool_node): Always output alias info.
33936         (output_refs): Output refs of boundary aliases, too.
33937         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33938         (output_symtab): Output call eges in thunks in boundary.
33939         (get_alias_symbol): Remove.
33940         (input_node, input_varpool_node): Do not special case weakrefs.
33941         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33942         alias and thunks targets in the boundary; do not take removed symbols
33943         from their comdat groups.
33944         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33945         (cgraph_node::global_info): Remove.
33946         (cgraph_node::rtl_info): Look through aliases and thunks.
33947         * cgrpah.h (global_info): Remove.
33948         (non_local_p): Remove.
33950 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33951             Sandra Loosemore  <sandra@codesourcery.com>
33953         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33954         to inline asm.  List dialects in proper order.
33956 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33957             Sandra Loosemore  <sandra@codesourcery.com>
33959         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33961 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
33963         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33964         modified) reference to Solaris.
33966 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
33968         * doc/extend.texi (Extended Asm): Fix typos.
33970 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
33972         PR sanitizer/65004
33973         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33975 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
33977         PR target/64661
33978         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33979         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33980         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33981         * config/sh/constraints.md (Ara, Add): New constraints.
33982         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33983         predicates.
33984         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33985         atomic_mem_operand_0.  Don't use force_reg on the memory address.
33986         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33987         Sra constraint.  Convert to insn_and_split.  Add workaround for
33988         PR 64974.
33989         (atomic_compare_and_swap<mode>_hard): Copy to
33990         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
33991         Use atomic_mem_operand_0 predicate.
33992         (atomic_compare_and_swap<mode>_soft_gusa,
33993         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33994         AraAdd constraints.
33995         (atomic_compare_and_swap<mode>_soft_tcb,
33996         atomic_compare_and_swap<mode>_soft_imask,
33997         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33998         atomic_mem_operand_0 predicate and SraSdd constraints.
33999         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34000         constraint.
34001         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34002         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
34003         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34004         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
34005         force_reg on the memory address.
34006         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34007         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34008         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34009         atomic_mem_operand_1 predicate and Sra constraint.
34010         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34011         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
34012         Use atomic_mem_operand_1 predicate.
34013         (atomic_<fetchop_name><mode>_hard): Copy to
34014         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
34015         Use atomic_mem_operand_1 predicate.
34016         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34017         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
34018         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
34019         insn_and_split.  Use atomic_mem_operand_1 predicate.
34020         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34021         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
34022         Use atomic_mem_operand_1 predicate.
34023         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34024         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
34025         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34026         in generated insn with original mem operand before emitting the insn.
34027         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34028         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34029         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34030         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34031         Use atomic_mem_operand_1 predicate and AraAdd constraints.
34032         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34033         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34034         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34035         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34036         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34037         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34038         atomic_not_fetch<mode>_soft_tcb,
34039         atomic_<fetchop_name>_fetch<mode>_soft_imask,
34040         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34041         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34042         Use atomic_mem_operand_1 predicate and SraSdd constraints.
34044 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
34046         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34047         and 3 earlyclobber operands.
34049 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34051         * common.opt (fstack-reuse): Mark as optimization.
34053 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
34055         PR ipa/64982
34056         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34058 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
34060         PR tree-optimization/64326
34061         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34063 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
34065         PR gcov-profile/61889
34066         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34068 2015-02-10  Richard Biener  <rguenther@suse.de>
34070         PR tree-optimization/64995
34071         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34072         value we use is final.
34073         (visit_reference_op_store): Always valueize op.
34074         (visit_use): Properly valueize vuses.
34076 2015-02-10  Richard Biener  <rguenther@suse.de>
34078         PR tree-optimization/64909
34079         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34080         pass a scalar-stmt count estimate to the cost model.
34081         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34083 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
34085         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34086         enabled by default together with var-tracking.
34088 2015-02-10  Nick Clifton  <nickc@redhat.com>
34090         * config/rl78/rl78.c: Remove DIV attribute code accidentally
34091         included in previous rl78 commit.
34093 2015-02-10  Richard Biener  <rguenther@suse.de>
34095         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34096         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34097         return the bitpack.
34099 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
34101         PR gcov-profile/61889
34102         * config.in: regenerate.
34103         * configure.in: Likewise.
34104         * configure.ac: Check for ftw.h.
34105         * gcov-tool.c: Check for ftw.h before using nftw.
34107 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
34109         PR lto/64076
34110         * ipa-visibility.c (update_visibility_by_resolution_info): Only
34111         assert when not in lto mode.
34113 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34115         * ira-color.c (setup_left_conflict_sizes_p): Simplify
34116         initialization/assignment of conflict_size.
34118 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
34120         PR ipa/64978
34121         * ipa-cp.c (gather_caller_stats): Skip thunks.
34122         (propagate_constants_topo): Skip aliases.
34124 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
34126         PR target/64761
34127         * config/sh/sh.c (sh_option_override): Don't change
34128         -freorder-blocks-and-partition to -freorder-blocks even when
34129         unwinding is enabled.
34130         (sh_can_follow_jump): Return false if the followee jump is
34131         a crossing jump when -freorder-blocks-and-partition is specified.
34132         * config/sh/sh.md (*jump_compact_crossing): New insn.
34134 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
34135             Kaz Kojima  <kkojima@gcc.gnu.org>
34137         PR target/64761
34138         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34139         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34140         (sh_can_redirect_branch): Rename to ...
34141         (sh_can_follow_jump): ... this.  Constify argument types.
34142         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34143         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34144         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34145         * doc/tm.texi: Regenerate.
34147 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
34149         PR sanitizer/64981
34150         * builtins.c (expand_builtin): Call targetm.expand_builtin
34151         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34153 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34155         PR ipa/61548
34156         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34158 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34160         PR ipa/63566
34161         * ipa-icf.c (set_local): New function.
34162         (sem_function::merge): Use it.
34164 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34166         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34167         (add_type_duplicate): Fix comparison of BINFOs.
34169 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34171         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34172         on getting VOID pointer.
34174 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
34176         PR target/64979
34177         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34178         va_list escapes.
34180 2015-02-09  Richard Biener  <rguenther@suse.de>
34182         * genmatch.c (replace_id): Copy expr_type.
34184 2015-02-09  Richard Biener  <rguenther@suse.de>
34186         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34187         (streamer_write_tree_bitfields): Declare.
34188         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34189         properly unpack padding.
34190         (unpack_value_fields): Inline ...
34191         (streamer_read_tree_bitfields): ... here.
34192         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34193         and properly add padding bits.
34194         (streamer_pack_tree_bitfields): Fold into ...
34195         (streamer_write_tree_bitfields): ... this new function,
34196         exposing the bitpack object.
34197         * lto-streamer-out.c (lto_write_tree_1): Call
34198         streamer_write_tree_bitfields.
34200 2015-02-09  Richard Biener  <rguenther@suse.de>
34202         PR tree-optimization/54000
34203         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34204         (struct ivopts_data): Add loop_loc member.
34205         (tree_ssa_iv_optimize_loop): Dump loop location.
34206         (create_new_ivs): Likewise, also dump number of IVs generated.
34208 2015-02-09  Martin Liska  <mliska@suse.cz>
34210         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34211         just if not yet registered.
34212         (ipa_icf_generate_summary): Register callgraph hooks.
34214 2015-02-08  Andrew Pinski  <apinski@cavium.com>
34216         * config/aarch64/aarch64.c (gty_dummy): Delete.
34218 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34220         PR ipa/63566
34221         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34222         (cgraph_node::local_p): Remove thunk related FIXME.
34224 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34226         PR ipa/63566
34227         * i386.c (ix86_function_regparm): Look through aliases to see if callee
34228         is local and optimized.
34229         (ix86_function_sseregparm): Likewise; also use target's SSE math
34230         settings; error out instead of silently generating wrong code
34231         on mismatches.
34232         (init_cumulative_args): Look through aliases.
34234 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34236         PR ipa/63566
34237         * ipa-split.c (execute_split_functions): Split if function has aliases.
34239 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
34241         PR ipa/63566
34242         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34243         aliases before trying to expand it.
34244         (cgraph_node::expand_thunk): Fix formating.
34246 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
34248         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34249         (Using Assembly Language with C): Expand introduction.
34250         (Basic Asm): Copy-edit.  Add more information about uses of
34251         basic asm.
34252         (Extended Asm): Copy-edit.  Document new escape syntax and
34253         %l[label] syntax.
34254         (Global Reg Vars): Copy-edit.
34255         (Local Reg Vars): Likewise.
34257 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
34259         PR debug/2714
34260         PR bootstrap/64256
34261         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34262         (DBX_CONTIN_CHAR): Define.
34264 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
34265             Brian Rzycki  <b.rzycki@samsung.com>
34267         PR tree-optimization/64878
34268         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34269         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34270         Stop recursion at loop phi nodes after having visited a loop phi node.
34272 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34274         * toplev.c (process_options): Change flag_ipa_ra before creating
34275         optimization_{default,current}_node.
34277         PR ipa/64896
34278         * cgraphunit.c (cgraph_node::expand_thunk): If
34279         restype is not is_gimple_reg_type nor the thunk_fndecl
34280         returns aggregate_value_p, set restmp to a temporary variable
34281         instead of resdecl.
34283 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
34285         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34287 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34289         PR target/64205
34290         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34291         add a general secondary reload handler for SDmode, unless we have
34292         both read/write support for SDmode.
34294 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34296         PR middle-end/64937
34297         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34298         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34299         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34300         1 before, push it to abstract_vec.
34301         (dwarf2out_abstract_function): Adjust caller.  Don't call
34302         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34303         DECL_ABSTRACT_P flags for all abstract_vec elts.
34305 2015-02-06  Renlin Li  <renlin.li@arm.com>
34307         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34308         complex gimple.
34309         * tree-ssa.c (execute_update_addresses_taken): Likewise.
34311 2015-02-06  Jeff Law  <law@redhat.com>
34313         PR target/64889
34314         * config/h8300/h8300.c (push): New argument "in_prologue".
34315         Pass "in_prologue" along to "F".
34316         (h8300_push_pop): Corresponding changes.
34317         (h8300_expand_prologue): Likewise.
34318         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
34320 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
34322         PR rtl-optimization/64957
34323         PR debug/64817
34324         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34325         IOR rather than for AND.
34327 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
34329         PR target/62631
34330         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34331         of shift-add and (add + shift) operations.  Rename local variable.
34333 2015-02-05  Jeff Law  <law@redhat.com>
34335         PR target/17306
34336         * config/h8300/constraints.md (U): Correctly dectect
34337         "eightbit_data" memory addresses.
34338         * config/h8300/h8300.c (eightbit_constant_address_p): Also
34339         handle (const (plus (symbol_ref (x)))) where x is declared
34340         as an 8-bit data memory address.
34341         * config/h8300/h8300.md (call, call_value): Correctly detect
34342         "funcvec" functions.
34344         PR target/43264
34345         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34346         24 to 28 bits for the H8/300.
34348 2015-02-06  Alan Modra  <amodra@gmail.com>
34350         PR target/64876
34351         * config/rs6000/rs6000.c (chain_already_loaded): New function.
34352         (rs6000_call_aix): Use it.
34354 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
34356         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34357         check.
34359 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
34361         * config/h8300/constraints.md ("U" constraint): Use strict
34362         variant of REG_OK_FOR_BASE_P after reload has started.
34364 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
34366         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34367         define to zero if !TARGET_NEON.
34368         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34370 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34371             Trevor Saunders  <tsaunders@mozilla.com>
34373         PR ipa/61548
34374         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34376 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34378         PR ipa/61548
34379         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34380         when removing varpool nodes.
34382 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34384         PR ipa/61548
34385         * varpool.c (varpool_node::remove): Fix order of variables.
34387 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34389         PR ipa/64686
34390         * ipa-inline.c (inline_small_functions): Fix ordering issue between
34391         speculation resolution and key updates.
34393 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34395         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34396         about not letting any speculative edges unupdated.
34398 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34400         PR gcov/64123
34401         * gcov-io.c (gcov_var): Export.
34403 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34405         PR middle-end/64922
34406         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34407         edges that become speculative.
34409 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34411         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34412         or DW_LANG_Fortran08.
34413         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34414         DW_LANG_Fortran08.
34415         (gen_compile_unit_die): Handle "GNU Fortran2003" and
34416         "GNU Fortran2008" language strings.
34417         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34418         * langhooks.h (lang_GNU_Fortran): New prototype.
34419         * langhooks.c (lang_GNU_Fortran): New function.
34420         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34421         lang_GNU_Fortran.
34423 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34425         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34426         (RTX_OK_FOR_OLO10_P): Likewise.
34428 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
34430         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34432 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
34434         PR middle-end/64922
34435         * gimple.c: Include gimple-ssa.h.
34436         (maybe_remove_unused_call_args): New function.
34437         * gimple.h (maybe_remove_unused_call_args): Declare.
34438         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34439         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34440         * gimple-fold.c (gimple_fold_call): Likewise.
34442 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
34444         PR rtl-optimization/64905
34445         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34446         pointer alignment if it isn't needed.
34448 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34450         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34451         cortex-a72.cortex-a53.
34452         * config/aarch64/aarch64-tune.md: Regenerate.
34453         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34455 2015-02-04  Nick Clifton  <nickc@redhat.com>
34457         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34458         inside a MEM.
34460 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
34462         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34463         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34464         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34465         of DEF_BUILTIN.
34466         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34467         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34468         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34469         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34470         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34471         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34472         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34473         * tree-core.h (enum built_in_function): In between
34474         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34475         for builtins that use DEF_BUILTIN_CHKP macro.
34477 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
34479         PR debug/64817
34480         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34481         operands for tcc_comparison exprs.  Fix typos.
34483         PR debug/64817
34484         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34485         of two XORs that have an intervening AND or IOR.
34487         PR debug/64817
34488         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34489         simplification of XOR of AND to not allocate new rtx before
34490         committing to a simplification.
34492 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34494         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34495         manual swaps in all peepholes.
34497 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34499         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34500         of manual swapping implementation.
34501         (aarch64_expand_vec_perm_const_1): Likewise.
34503 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
34505         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34506         (generic_addrcost_table): Remove NAMED_PARAM.
34507         (cortexa57_addrcost_table): Likewise.
34508         (xgene1_addrcost_table): Likewise.
34509         (generic_regmove_table): Likewise.
34510         (cortexa53_regmove_table): Likewise.
34511         (xgene1_regmove_table): Likewise.
34512         (generic_vector_table): Likewise.
34513         (cortexa57_vector_table): Likewise.
34514         (xgene1_vector_table): Likewise.
34515         (generic_tunings): Likewise.
34516         (cortexa53_tunings): Likewise.
34517         (cortexa57_tunings): Likewise.
34518         (xgene1_tunings): Likewise.
34520 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
34522         * config/arm/arm-cores.def: Add cortex-a72 and
34523         cortex-a72.cortex-a53.
34524         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34525         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34526         * config/arm/arm-tune.md: Regenerate.
34527         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34528         "cortex-a72.cortex-a53".
34529         * doc/invoke.texi (ARM Options/-mtune): Likewise.
34531 2015-02-04  Nick Clifton  <nickc@redhat.com>
34533         PR target/64408
34534         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34535         of accepted codes.
34536         (nonimmediate_di_operand): Likewise.
34538         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34539         prefixes of known F5 using MSP430 MCUs.
34541 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34543         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34544         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34545         instead of __builtin_sqrt.
34547 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
34549         * varasm.c (do_assemble_alias): Follow transparent alias
34550         chain for target.
34551         (default_assemble_visibility): Follow transparent alias
34552         chain for decl name.
34554 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34556         PR middle-end/62103
34557         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34558         to compute size of referenced value in the constant case.
34560 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34562         PR rtl-optimization/64756
34563         * cse.c (invalidate_dest): New function.
34564         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
34565         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34566         invalidate and do not record it.
34568 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34570         PR target/64660
34571         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34572         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34573         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34574         atomic_nand<mode>_soft_tcb): New insns.
34575         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34576         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34577         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34578         Split into atomic_not_fetchsi_hard if operands[0] is unused.
34579         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34580         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34581         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
34582         atomic_not<mode>_hard if operands[0] is unused.
34583         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34584         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34585         if operands[0] is unused.
34586         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
34587         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34588         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34589         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34590         unused.
34591         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
34592         into atomic_not<mode>_soft_tcb if operands[0] is unused.
34593         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34594         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34595         if operands[0] is unused.
34596         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
34597         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34598         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
34599         atomic_nand_fetchsi_hard if operands[0] is unused.
34600         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
34601         atomic_nand<mode>_hard if operands[0] is unused.
34602         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
34603         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34604         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
34605         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34606         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
34607         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34608         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34609         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34610         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
34611         atomic_not<mode>_hard if operands[0] is unused.
34612         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34613         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34614         unused.
34615         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
34616         into atomic_not<mode>_soft_tcb if operands[0] is unused.
34617         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
34618         atomic_nand<mode>_hard if operands[0] is unused.
34619         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
34620         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34622 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
34624         PR jit/64810
34625         * Makefile.in (GCC_OBJS): Add gcc-main.o.
34626         * gcc-main.c: New file, containing "main" taken from gcc.c.
34627         * gcc.c (do_self_spec): Free decoded_options.
34628         (class driver): Move declaration to gcc.h.
34629         (main): Move declaration and implementation to new file
34630         gcc-main.c.
34631         (driver_get_configure_time_options): New function.
34632         * gcc.h (class driver): Move this declaration here, from
34633         gcc.c.
34634         (driver_get_configure_time_options): New declaration.
34636 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
34638         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34639         cross-module inlining.
34640         * cgraph.h (cgraph_node): Add flag merged.
34641         * ipa-icf.c (sem_function::merge): Maintain it.
34643 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
34645         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34646         instead of OBJECT_P.
34648 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
34650         PR target/62631
34651         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34652         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34653         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34654         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34656 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
34658         PR other/63504
34659         * combine.c (reg_n_sets_max): New variable.
34660         (can_change_dest_mode, reg_nonzero_bits_for_combine,
34661         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34662         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34663         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34664         (rest_of_handle_combine): Initialize reg_n_sets_max.
34666 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
34668         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34669         if some always_inline was inlined, apply changes before inlining
34670         heuristically.
34672 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
34674         PR jit/64810
34675         * config/arm/arm.c (arm_option_override): Set
34676         arm_selected_arch/cpu/tune to NULL on entry.
34678 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
34679             Andrew Pinski  <pinskia@gcc.gnu.org>
34680             Jakub Jelinek  <jakub@gcc.gnu.org>
34682         PR target/64231
34683         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34684         integer typing for small model. Use IN_RANGE.
34686 2015-02-02  Richard Biener  <rguenther@suse.de>
34688         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34689         * tree-vrp.c (vrp_valueize_1): Likewise.
34691 2015-02-02  Alan Modra  <amodra@gmail.com>
34693         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34694         than mem for toc_restore.
34695         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34696         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34697         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34699 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
34701         PR target/64047
34702         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34703         explicit default options.
34705 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
34707         PR ipa/64872
34708         * ipa-utils.c (ipa_merge_profiles): Add release argument.
34709         * ipa-icf.c (sem_function::merge): Do not release body when merging.
34710         * ipa-utils.h (ipa_merge_profiles): Update prototype.
34712 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
34714         PR debug/64817
34715         * cfgexpand.c (deep_ter_debug_map): New variable.
34716         (avoid_deep_ter_for_debug): New function.
34717         (expand_debug_expr): If TERed SSA_NAME is in
34718         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34719         instead of trying to expand SSA_NAME's def stmt.
34720         (expand_debug_locations): When expanding debug bind
34721         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34722         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34723         value.
34724         (pass_expand::execute): Call avoid_deep_ter_for_debug on
34725         all debug bind stmts.  Delete deep_ter_debug_map after
34726         expand_debug_location if non-NULL and clear it.
34728 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
34730         PR target/64851
34731         * config/sh/sync.md (atomic_fetch_notsi_hard,
34732         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34733         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34734         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34735         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34736         atomic_not_fetch<mode>_soft_imask): New insns.
34738 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
34740         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34741         (rank_for_schedule_debug): Split from ...
34742         (rank_for_schedule): ... this.
34743         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34744         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34746 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34748         * doc/md.texi (Machine Constraints): Alphabetize table by target.
34749         * doc/extend.texi (x86 Variable Attributes): Move section to
34750         correct alphabetization after renaming.
34751         (x86 Type Attributes): Likewise.
34752         (Target Builtins): Re-alphabetize menu.
34753         (x86 Built-in Functions): Move section to correct alphabetization
34754         after renaming.
34755         (x86 transactional memory intrinsics): Likewise.
34756         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34757         and x86 Windows Options in table and menu.
34758         (x86 Options): Move section to correct alphabetization after
34759         renaming.
34760         (x86 Windows Options): Likewise.
34762 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
34764         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34765         preferred names of the architecture and its 32- and 64-bit
34766         variants.
34767         * doc/invoke.texi: Likewise.
34768         * doc/md.texi: Likewise.
34770 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34772         PR target/64882
34773         * config/i386/predicates.md (address_no_seg_operand): Reject
34774         non-CONST_INT_P operands in invalid mode.
34776 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
34778         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34779         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
34780         * config/i386/predicates.md (address_no_seg_operand): Call
34781         address_operand with VOIDmode.
34782         (vsib_address_operand): Ditto.
34783         (address_mpx_no_base_operand): Ditto.
34784         (address_mpx_no_index_operand): Ditto.
34786 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34788         PR target/64688
34789         * lra-constraints.c (original_subreg_reg_mode): New.
34790         (simplify_operand_subreg): Try to simplify subreg of const.  Use
34791         original_subreg_reg_mode for it.
34792         (swap_operands): Update original_subreg_reg_mode.
34793         (curr_insn_transform): Set up original_subreg_reg_mode.
34795 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34797         PR target/64617
34798         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34799         function.
34800         (process_alt_operands): Use it.
34801         (curr_insn_transform): Check the optional reload pseudo class is
34802         ok for the mode.
34804 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
34806         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34807         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34808         prototype.
34809         * toplev.h (init_asm_output): Update comment on use of
34810         UNKNOWN_LOCATION with fatal_error.
34811         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34812         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34813         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34814         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34815         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34816         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34817         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34818         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34819         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34820         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34821         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34822         fatal_error changed to pass input_location as first argument.
34824 2015-01-30  Martin Liska  <mliska@suse.cz>
34826         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34827         in #pragma GCC diagnostic guards.
34829 2015-01-30  Richard Biener  <rguenther@suse.de>
34831         PR tree-optimization/64829
34832         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34833         not add a widening conversion pattern but hand off extra
34834         widenings to callers.
34835         (vect_recog_widen_mult_pattern): Handle extra widening produced
34836         by vect_handle_widen_op_by_const.
34837         (vect_recog_widen_shift_pattern): Likewise.
34838         (vect_pattern_recog_1): Remove excess vertical space in dumping.
34839         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34840         (vect_init_vector_1): Likewise.
34841         (vect_get_vec_def_for_operand): Likewise.
34842         (vect_finish_stmt_generation): Likewise.
34843         (vectorizable_load): Likewise.
34844         (vect_analyze_stmt): Likewise.
34845         (vect_is_simple_use): Likewise.
34847 2015-01-29  Jeff Law  <law@redhat.com>
34849         * combine.c (try_combine): Fix typo in comment.
34851 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
34853         PR target/64580
34854         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34855         (rs6000_stack_info): Add assert.
34856         (rs6000_output_savres_externs): New function, split off from...
34857         (rs6000_output_function_prologue): ... here.  Do not call it for
34858         thunks.
34860 2015-01-29  Jeff Law  <law@redhat.com>
34862         PR target/15184
34863         * combine.c (try_combine): If I0 is a memory load and I3 a store
34864         to a related address, increase the "goodness" of doing a 4-insn
34865         combination with I0-I3.
34866         (make_field_assignment): Handle SUBREGs in the ior+and case.
34868 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
34870         PR tree-optimization/64746
34871         * tree-if-conv.c (mask_exists): New function.
34872         (predicate_mem_writes): Save created mask with given size for further
34873         use.
34874         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34875         (ifcvt_repair_bool_pattern): Collect all statements that are root
34876         of bool pattern and use iterative algorithm to remove multiple uses
34877         of predicates, display number of required iterations.
34879 2015-01-29  Richard Biener  <rguenther@suse.de>
34881         PR tree-optimization/64853
34882         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34883         stmt will get simulated again.
34884         * tree-ssa-ccp.c (valueize_op_1): Likewise.
34886 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34888         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34889         return_in_pc.  Remove redundant assignments.
34890         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34891         (arm_expand_epilogue): Don't compare boolean with true in if condition.
34893 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
34895         * config/i386/i386.c (ix86_mode_after): Make static.
34897 2015-01-29  Richard Biener  <rguenther@suse.de>
34899         PR tree-optimization/64844
34900         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34901         dump cost model analysis.
34902         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34903         Do not register adjusted load/store costs here.
34905 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
34906             Uros Bizjak  <ubizjak@gmail.com>
34908         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34909         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34910         using x86_use_pseudo_pic_reg.
34911         * config/i386/i386.c (ix86_conditional_register_usage): Remove
34912         support for fixed PIC register.
34913         (ix86_use_pseudo_pic_reg): Not static any more.
34915 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
34917         PR middle-end/64805
34918         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34919         to avoid error in cgraph node verification.
34921 2015-01-29  Marek Polacek  <polacek@redhat.com>
34923         * doc/standards.texi: Reflect that the default for C is gnu11.
34925 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
34927         PR target/64761
34928         * reorg.c (switch_text_sections_between_p): New function.
34929         (relax_delay_slots): Call it when testing if the jump insn
34930         is removable.  Use targetm.can_follow_jump when testing if
34931         the conditional branch can follow an unconditional jump.
34933 2015-01-27  Caroline Tice  <cmtice@google.com>
34935         Committing VTV Cywin/Ming patch for Patrick Wollgast
34936         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34937         if -fvtable-verify=preinit/std is used.
34938         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34939         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34940         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34941         if -fvtable-verify=preinit/std is used.
34942         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34943         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34944         if -fvtable-verify=preinit/std is used.
34945         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34946         * config/i386/mingw32.h (LIB_SPEC): Likewise.
34947         * varasm.c (assemble_variable): Add code to properly set the comdat
34948         section and name for the .vtable_map_vars section in case the
34949         target is PE or COFF.
34951 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
34953         PR ipa/64801
34954         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34955         make sane BB profile.
34956         (cgraph_node::expand_thunk): Make sane BB profile.
34957         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34958         * cgraph.h (init_lowered_empty_function): Update prototype.
34959         * config/i386/i386.c (make_resolver_func): Update call.
34960         * predict.c (gate): Disable branch prediction pass if
34961         profile is already there.
34963 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
34965         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34966         * opth-gen.awk: Likewise.
34967         * common.opt: Mark flag_fp_contract_mode as Optimization.
34969 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34971         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34972         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34974 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
34976         PR target/64659
34977         * config/sh/predicates.md (atomic_arith_operand,
34978         atomic_logical_operand): Remove.
34979         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34980         (atomic_arith_operand_0): New predicate.
34981         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34982         Use atomic_arith_operand_0 for input values.
34983         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34984         atomic_compare_and_swap<mode>_soft_gusa,
34985         atomic_compare_and_swap<mode>_soft_tcb,
34986         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34987         arith_reg_operand instead of register_operand.
34988         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
34989         atomic_arith_operand_0 for newval input.
34990         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34991         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34992         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34993         arith_reg_operand instead of register_operand.
34994         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34995         fetchop_predicate_1, fetchop_constraint_1_llcs,
34996         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34997         fetchop_constraint_1_imask): New code iterator attributes.
34998         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34999         register_operand.  Use fetchop_predicate_1.
35000         (atomic_fetch_<fetchop_name>si_hard,
35001         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35002         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35003         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35004         and arith_reg_operand instead of register_operand.  Use
35005         fetchop_predicate_1, fetchop_constraint_1_gusa.
35006         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35007         and arith_reg_operand instead of register_operand.  Use
35008         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
35009         to allow R0 usage.
35010         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35011         and arith_reg_operand instead of register_operand.  Use
35012         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
35013         to allow R0 usage.
35014         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35015         register_operand.  Use atomic_logical_operand_1.
35016         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35017         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35018         arith_reg_operand instead of register_operand.
35019         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35020         Use arith_reg_dest and arith_reg_operand instead of register_operand.
35021         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
35022         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35023         register_operand.  Use fetchop_predicate_1.
35024         (atomic_<fetchop_name>_fetchsi_hard,
35025         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35026         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35027         fetchop_constraint_1_llcs.
35028         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35029         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35030         fetchop_constraint_1_gusa.
35031         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35032         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35033         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
35034         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35035         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
35036         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
35037         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35038         register_operand.  Use atomic_logical_operand_1.
35039         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35040         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35041         arith_reg_operand instead of register_operand.
35042         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35043         arith_reg_operand instead of register_operand.  Use logical_operand
35044         and K08.  Adjust asm sequence to allow R0 usage.
35045         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35046         arith_reg_operand instead of register_operand.  Use logical_operand
35047         and K08.
35049 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
35051         PR other/63504
35052         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35053         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35054         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35055         only get_full_len HOST_WIDE_INTs from get_val () array rather than
35056         all bits in *val_wide.
35058 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
35060         * varpool.c (tls_model_names): Fix names.
35061         (varpool_node::dump): Dump tls- prefix for tls models.
35063 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
35064             Bernd Schmidt  <bernds@codesourcery.com>
35065             Nathan Sidwell  <nathan@codesourcery.com>
35067         * config/nvptx/mkoffload.c: New file.
35068         * config/nvptx/t-nvptx: Add build rules for it.
35069         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35070         (extra_programs): Add mkoffload.
35071         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35072         function.
35073         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35075 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
35077         PR middle-end/64809
35078         * cfgexpand.c (reorder_operands): Skip debug gimples.
35080 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
35082         PR tree-optimization/64277
35083         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35084         range info when possible to refine estimation.
35086 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35088         PR tree-optimization/64718
35089         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35090         be a 16bit unsigned integer when n->range is 16.
35091         (bswap_replace): Convert src to that type if necessary for all bswap
35092         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
35093         set in pass_optimize_bswap::execute ().
35095 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
35097         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35098         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35099         integer and floating point variants.
35100         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35102 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
35104         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35105         for all vector modes.
35107 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
35109         PR bootstrap/64612
35110         * doc/sourcebuild.texi (comdat_group): Document.
35112 2015-01-28  Terry Guo  <terry.guo@arm.com>
35114         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35116 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
35118         * toplev.c (print_version): Add param "show_global_state", and
35119         only print GGC and plugin information if it is true.
35120         (init_asm_output): Pass in "true" for the new param when calling
35121         print_version.
35122         (process_options): Likewise.
35123         (toplev::main): Likewise.
35124         * toplev.h (print_version): Add new param to decl.
35126 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
35128         PR ipa/60871
35129         PR ipa/64139
35130         * tree.c (lookup_binfo_at_offset): New function.
35131         (get_binfo_at_offset): Use it.
35133 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
35135         PR ipa/64282
35136         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35137         on vtable being vtable.
35139 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35141         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35142         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35143         -mhotpatch= option.
35144         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35145         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
35146         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35147         Renamed.
35148         (s390_hotpatch_trampoline_halfwords_max): Renamed.
35149         (s390_hotpatch_hw_max): New name.
35150         (s390_hotpatch_trampoline_halfwords): Renamed.
35151         (s390_hotpatch_hw_before_label): New name.
35152         (get_hotpatch_attribute): Removed.
35153         (s390_hotpatch_hw_after_label): New name.
35154         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35155         attribute.
35156         (s390_attribute_table): Ditto.
35157         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35158         (s390_function_num_hotpatch_hw): New name.
35159         Remove special handling of inline functions and hotpatching.
35160         Return number of nops before and after the function label.
35161         (s390_can_inline_p): Removed.
35162         (s390_asm_output_function_label): Emit a configurable number of nops
35163         after the function label.
35164         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35165         (TARGET_CAN_INLINE_P) Removed.
35166         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35168 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35169             Jiong Wang  <jiong.wang@arm.com>
35171         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35172         of scratch reg.
35173         (cb<optab><mode>1): Likewise.
35174         * config/aarch64/iterators.md (bcond): New define_code_attr.
35176 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35178         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35179         memory accesses.
35181 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35183         * config/s390/s390.c (s390_register_move_cost): Increase costs for
35184         FPR->GPR moves.
35186 2015-01-27  Richard Biener  <rguenther@suse.de>
35188         * tree-vrp.c (update_value_range): Intersect the range with
35189         old recorded SSA name range information.
35191 2015-01-27  Nick Clifton  <nickc@redhat.com>
35193         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35194         BC, DE and HL registers directly, not via AX.
35195         When decrementing the stack pointer by a large amount, transfer SP
35196         into AX and perform the subtraction there.
35197         (rl78_expand_epilogue): Perform the inverse of the above
35198         enhancements.
35200 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35202         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35204 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35205             Yury Gribov  <y.gribov@samsung.com>
35207         PR ubsan/64741
35208         * ubsan.c (ubsan_source_location): Refactor code.
35209         (ubsan_type_descriptor): Update type size. Refactor code.
35211 2015-01-27  Richard Biener  <rguenther@suse.de>
35213         PR tree-optimization/56273
35214         PR tree-optimization/59124
35215         PR tree-optimization/64277
35216         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35217         from the first VRP pass.
35219 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35221         PR ipa/64776
35222         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35223         handle the first argument in the same loop as all the other arguments.
35225         PR rtl-optimization/61058
35226         * jump.c (cleanup_barriers): Update basic block boundaries
35227         if BLOCK_FOR_INSN is non-NULL on PREV.
35229 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35231         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35232         bounds narrowing, already instrumented calls and calls to
35233         not instrumentable functions.
35235 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
35237         PR tree-optimization/64807
35238         * wide-int.cc (wi::divmod_internal): Clear
35239         b_dividend[dividend_blocks_needed].
35241 2015-01-26  DJ Delorie  <dj@redhat.com>
35243         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35244         volatile memory references.
35246 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
35248         PR target/49263
35249         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35250         remove_insn.
35251         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35252         shifts if it already fits into K08.
35254 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
35256         PR ipa/64730
35257         * ipa-inline.c (inline_small_functions): Print "unknown" even
35258         if edge->call_stmt is non-NULL, but has builtins or unknown
35259         location.
35261         PR middle-end/64421
35262         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35263         with asterisk, skip the first character.
35265 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
35267         PR target/64806
35268         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35269         order change.
35271 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
35273         PR target/64795
35274         * config/i386/i386.md (*movdi_internal): Also check operand 0
35275         to determine TYPE_LEA operand.
35276         (*movsi_internal): Ditto.
35278 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
35280         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35281         OPTION_MASK_QUAD_MEMORY_ATOMIC.
35283 2015-01-26  Renlin Li  <renlin.li@arm.com>
35285         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35286         the comment.
35287         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35288         for higher part.
35290 2015-01-26  Richard Biener  <rguenther@suse.de>
35292         PR middle-end/64764
35293         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35294         combining two BIT_AND_EXPR predicates.
35296 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
35298         PR bootstrap/64754
35299         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35301 2015-01-26  Terry Guo  <terry.guo@arm.com>
35303         * config/arm/arm.c (arm_file_start): Update the assignment of
35304         Tag_ABI_HardFP_use.
35306 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
35308         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35309         pipeline model.
35310         config/arm/arm.md: Include the new Cortex-A57 model.
35311         (generic_sched): Don't use generic_sched when tuning for
35312         Cortex-A57.
35314 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
35315             Uros Bizjak  <ubizjak@gmail.com>
35317         * config/i386/i386.c (get_builtin_code_for_version): Add
35318         support for BMI and BMI2 multiversion functions.
35320 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35322         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35323         (extract_bit_field): Likewise.
35324         (extract_low_bits): Likewise.
35325         (expand_mult): Likewise.
35326         (expand_mult_highpart_adjust): Likewise.
35328 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
35330         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35331         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35332         * config/i386/i386.c (processor_model): Add
35333         M_INTEL_COREI7_BROADWELL.
35334         (arch_names_table): Add "broadwell".
35336 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
35338         PR target/49263
35339         PR target/53987
35340         PR target/64345
35341         PR target/59533
35342         PR target/52933
35343         PR target/54236
35344         PR target/51244
35345         * config/sh/sh-protos.h
35346         (sh_extending_set_of_reg::can_use_as_unextended_reg,
35347         sh_extending_set_of_reg::use_as_unextended_reg,
35348         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35349         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35350         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35351         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35352         (sh_treg_insns): New class.
35353         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35354         (scope_counter): New class.
35355         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35356         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35357         sh_extending_set_of_reg::can_use_as_unextended_reg,
35358         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35359         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35360         sh_split_treg_set_expr): New functions.
35361         (addsubcosts): Handle treg_set_expr.
35362         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35363         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35364         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35365         (sh_insn_operands_modified_between_p): Make non-static.
35366         * config/sh/predicates.md (zero_extend_movu_operand): Allow
35367         simple_mem_operand in addition to displacement_mem_operand.
35368         (zero_extend_operand): Don't allow zero_extend_movu_operand.
35369         (treg_set_expr, treg_set_expr_not_const01,
35370         arith_reg_or_treg_set_expr): New predicates.
35371         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35372         arith_or_int_operand instead of logical_operand.  Convert to
35373         insn_and_split.  Try to optimize constant operand in splitter.
35374         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
35375         (*tstqi_t_zero): Delete.
35376         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35377         (tstsi_t_and_not): Delete.
35378         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35379         Convert to insn_and_split.
35380         (unnamed split, tstsi_t_zero_extract_xor,
35381         tstsi_t_zero_extract_subreg_xor_little,
35382         tstsi_t_zero_extract_subreg_xor_big): Delete.
35383         (*tstsi_t_shift_mask): New insn_and_split.
35384         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35385         to recombine with surrounding insns when splitting.
35386         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35387         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35388         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35389         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35390         (*cbranch_div0s: Delete.
35391         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35392         Try to recombine with surrounding insns when splitting.  Add operand
35393         order variants.
35394         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35395         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35396         *addc_r_r_msb, *addc_2r_msb): Delete.
35397         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
35398         order variant.
35399         (*addc_negreg_t): New insn_and_split.
35400         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
35401         Try to recombine with surrounding insns when splitting.
35402         Add operand order variants.
35403         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35404         insn_and_split patterns.
35405         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
35406         surrounding insns when splitting.
35407         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35408         (*rotcl): Likewise.  Add zero_extract variant.
35409         (*ashrsi2_31): New insn_and_split.
35410         (*negc): Convert to insn_and_split.  Use treg_set_expr.
35411         (*zero_extend<mode>si2_disp_mem): Update comment.
35412         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35413         condition.
35414         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
35415         with surrounding insns when splitting.
35416         (any_treg_expr_to_reg): New insn_and_split.
35417         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35418         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35419         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35420         *zero_extract_2): New single bit zero extract patterns.
35421         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35422         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35423         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35424         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35425         set destination.
35426         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35427         register_operand for set source.
35429 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
35431         * i386.opt (prefetch_sse): New targetsave.
35432         * i386.c (ix86_function_specific_save): Save prefetch_sse.
35433         (ix86_function_specific_restore): Restore prefetch_sse and initialize
35434         ix86_cost/ix86_tune_cost.
35436 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35438         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35439         Support the JIT by using 0 as the language type.
35441 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
35443         PR target/64317
35444         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
35445         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35446         (mark_regno_live, process_bb_lives): Pass new parameter value to
35447         make_hard_regno_born.
35449 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35451         PR rtl-optimization/63637
35452         PR rtl-optimization/60663
35453         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35454         if elt->cost is MAX_COST for ASM_OPERANDS.
35455         (find_sets_in_insn): Fix up comment typo.
35456         (cse_insn): Don't set src_volatile for all non-volatile
35457         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35458         or with "memory" clobber.  Set elt->cost to MAX_COST
35459         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
35460         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35462 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35464         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35465         alternative 1.
35467 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
35469         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35470         libgcc/config/i386/elf-lib.h.
35472 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35474         PR driver/64737
35475         * gcc.c (print_configuration): Don't print a blank line at the end
35476         here...
35477         (run_attempt): ... but here unstead.
35479         PR middle-end/64734
35480         * omp-low.c (scan_sharing_clauses): Don't ignore
35481         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35482         on target data/update constructs.
35484 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35486         PR target/50928
35487         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35488         (DEBUG_RELOAD): Removed define.
35489         (m32c_limit_reload_class): Enable traces with if DEBUG0.
35490         (m32c_function_arg): Added a type cast.
35491         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35492         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35493         * config/m32c/bitops.md (andqi3_16): Likewise.
35494         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35495         (push_a01_l): Likewise.
35497 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35499         PR jit/64721
35500         * main.c (main): Construct toplev instances with init_signals=true.
35501         * toplev.c (general_init): Add param "init_signals", and use it to
35502         conditionalize the calls to signal and host_hooks.extra_signals.
35503         (toplev::toplev): Add param "init_signals".
35504         (toplev::main): When invoking general_init, pass m_init_signals
35505         to control whether signal-handlers are installed.
35506         * toplev.h (toplev::toplev): Add param "init_signals".
35507         (toplev::m_init_signals): New field.
35509 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
35511         PR jit/64722
35512         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35513         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35514         latter may be affected by the former (e.g. on i686).
35516 2015-01-23  Martin Liska  <mliska@suse.cz>
35518         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35519         false positive during profiledbootstrap.
35521 2015-01-23  Tom de Vries  <tom@codesourcery.com>
35523         PR libgomp/64672
35524         * lto-opts.c (lto_write_options): Output non-explicit conservative
35525         -fno-openacc.
35526         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35527         (append_compiler_options): Pass -fopenacc through.
35529 2015-01-23  Tom de Vries  <tom@codesourcery.com>
35531         PR libgomp/64707
35532         * lto-opts.c (lto_write_options): Output non-explicit conservative
35533         -fno-openmp.
35534         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35535         (append_compiler_options): Pass -fopenmp through.
35537 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
35539         PR debug/64511
35540         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35541         GTY markup.
35543         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35544         * diagnostic.def (DK_ICE_NOBT): New kind.
35545         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35546         like DK_ICE, but never print backtrace.
35547         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35548         (internal_error_no_backtrace): New function.
35549         * gcc.c (execute): Use internal_error_no_backtrace instead of
35550         internal_error.
35552 2015-01-22  Jeff Law  <law@redhat.com>
35554         PR target/52076
35555         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35556         improve code density for small immediate to memory case.
35557         (insv): Better handle bitfield assignments when the field is
35558         being set to all ones.
35559         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35560         operand predicate.
35562 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35563             Jakub Jelinek  <jakub@redhat.com>
35565         PR middle-end/64729
35566         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35567         for !TARGET_LIBC_PROVIDES_SSP version and
35568         -fstack-protector-{all,strong,explicit} otherwise.
35569         * config/freebsd.h (LINK_SSP_SPEC): Handle
35570         -fstack-protector-{strong,explicit}.
35572 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
35573             H.J. Lu  <hongjiu.lu@intel.com>
35575         PR ipa/64694
35576         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35577         heap.
35579 2015-01-22  Wei Mi  <wmi@google.com>
35581         PR rtl-optimization/64557
35582         * dse.c (record_store): Call get_addr for mem_addr.
35583         (check_mem_read_rtx): Likewise.
35585 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
35587         * fold-const.c (const_binop): Add early return for non-tcc_binary.
35589 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
35591         * toplev.c (init_local_tick): Process the failure when read
35592         fails for random_seed.
35594         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35595         'pretty_name' to avoid memory overflow.
35597 2015-01-22  Richard Biener  <rguenther@suse.de>
35599         PR middle-end/64728
35600         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35601         abnormal coalescing on undefined SSA names.
35603 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
35605         PR target/64688
35606         PR target/64477
35607         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35608         for alternative 3.
35609         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35611 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
35613         PR middle-end/63325
35614         * fold-const.c (fold_checksum_tree): Don't include value of
35615         expr->decl_with_vis.symtab_node in the checksum.
35617 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35619         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35621 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35623         PR driver/64690
35624         * gcc.c (insert_comments): New function.
35625         (try_generate_repro): Call it.
35626         (append_text): Removed.
35628 2015-01-22  Richard Biener  <rguenther@suse.de>
35630         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35631         with IL incompatible options.  Properly honor user optimize
35632         attributes.
35634 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
35636         PR rtl-optimization/64682
35637         * combine.c (distribute_notes): When moving a death note for
35638         a register that is set in the new I2, make sure to put it
35639         before that new I2.
35641 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
35643         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35644         not TARGET_DEFAULT.
35646 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
35648         PR debug/64511
35649         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35650         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35651         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35653         PR sanitizer/64706
35654         * doc/invoke.texi (-fsanitize=vptr): Document.
35656         PR rtl-optimization/62078
35657         * dse.c: Include cfgcleanup.h.
35658         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35659         anything call purge_all_dead_edges and cleanup_cfg at the end
35660         of the pass.
35662 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
35664         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35665         edges.
35667 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35669         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35670         decl attribute.
35672 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35673             Tejas Belagod <Tejas.Belagod@arm.com>
35675         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35676         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35677         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35678         Removed.
35680 2015-01-21  David Sherwood  <david.sherwood@arm.com>
35681             Tejas Belagod <Tejas.Belagod@arm.com>
35683         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35684         (aarch64_reverse_mask): New decls.
35685         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35686         (insn_count): New mode_attr.
35687         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35688         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35689         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35690         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35691         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35692         (aarch64_simd_st4): New patterns.
35693         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35694         (aarch64_reverse_mask): New functions.
35696 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35698         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35699         Declare.
35700         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35701         addressing modes for BE.
35702         (aarch64_print_operand): Add 'R' specifier.
35703         (aarch64_simd_disambiguate_copy): Delete.
35704         (aarch64_simd_emit_reg_reg_move): New function.
35705         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35706         in define_splits for structural moves.
35707         (mov<mode>): Use less restrictive predicates.
35708         (*aarch64_mov<mode>): Simplify and only allow for LE.
35709         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35711 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
35713         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35715 2015-01-21  Richard Henderson  <rth@redhat.com>
35717         PR target/64669
35718         * ccmp.c (used_in_cond_stmt_p): Remove.
35719         (expand_ccmp_expr): Don't use it.
35721 2015-01-21  Nick Clifton  <nickc@redhat.com>
35723         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35724         PARALLELs.
35726 2015-01-21  Richard Biener  <rguenther@suse.de>
35728         PR middle-end/64313
35729         * tree-core.h (builtin_info, builtin_info_type): Turn from
35730         an object with two arrays into an array of an object with
35731         decl and two flags, implicit_p and declared_p.
35732         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35733         set_builtin_decl, set_builtin_decl_implicit_p,
35734         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35735         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35736         * builtins.c (builtin_info): Adjust.
35737         * gimplify.c (gimplify_addr_expr): References to builtins
35738         that have been declared by the user makes them eligible for
35739         use by the compiler.  Call set_builtin_decl_implicit_p on them.
35741 2015-01-20  Jeff Law  <law@redhat.com>
35743         PR target/59946
35744         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35745         allow pc-relative addresses in operand predicates or constraints.
35747 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
35749         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35750         neon on aarch32 processors for stringops.
35752 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35754         PR ipa/63576
35755         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35757 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35759         PR lto/45375
35760         * ipa-inline.c: Include lto-streamer.h
35761         (report_inline_failed_reason): Output source file differences and
35762         flags on optimization/target node mismatch.
35763         (can_inline_edge_p): Consider caller to be the outer inline function;
35764         be less restrictive about matching opimize and optimize_size attributes.
35765         (inline_account_function_p): Break out from ...
35766         (inline_small_functions): ... here.
35767         * ipa-inline-transform.c (clone_inlined_nodes): Use
35768         inline_account_function_p.
35769         (inline_call): Use optimize attribution; use inline_account_function_p.
35770         (inline_transform): Use opt_for_fn.
35771         * ipa-inline.h (inline_account_function_p): Declare.
35773 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
35775         PR debug/64663
35776         * dwarf2out.c (decl_piece_node): Don't put bitsize into
35777         mode if bitsize <= 0.
35778         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35779         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35780         sizes and positions.
35782 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
35784         * config/nios2/nios2.c (nios2_asm_file_end): Implement
35785         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35786         needed.
35787         (TARGET_ASM_FILE_END): Define.
35789 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
35791         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35792         (struct tune_params): Use the enum.
35793         * arm.c (arm_*_tune): Update.
35794         (arm_option_override): Update.
35796 2015-01-20  Richard Biener  <rguenther@suse.de>
35798         PR ipa/64684
35799         * ipa-reference.c (add_static_var): Inline ...
35800         (analyze_function): ... here after splitting out from ...
35801         (is_proper_for_analysis): ... this.
35803 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
35805         PR target/64149
35806         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35807         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35808         replace the conditional with it's true branch.
35809         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35810         (arm_lra_p): Remove.
35812 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35814         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35816 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35818         * config/tilegx/mul-tables.c: Move symtab.h include after
35819         coretypes.h include.
35820         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35821         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35822         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35823         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35824         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35826 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
35828         PR bootstrap/64676
35829         Revert:
35830         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35832         PR rtl-optimization/64081
35833         * loop-iv.c (def_pred_latch_p): New function.
35834         (latch_dominating_def): Allow specific cases with non-single
35835         definitions.
35836         (iv_get_reaching_def): Likewise.
35837         (check_complex_exit_p): New function.
35838         (check_simple_exit): Use check_complex_exit_p to allow certain cases
35839         with exits not executing on any iteration.
35841 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35843         PR lto/45375
35844         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35845         to set branch cost.
35847 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35849         PR lto/45375
35850         * i386.c (gate): Check flag_expensive_optimizations and
35851         optimize_size.
35852         (ix86_option_override_internal): Drop optimize_size condition
35853         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35854         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35855         MASK_PREFER_AVX128.
35856         (ix86_avx256_split_vector_move_misalign,
35857         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35858         * sse.md (all uses of TARGET_PREFER_AVX128): Add
35859         optimize_insn_for_speed_p check.
35861 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
35863         * config/mips/mips.h (FP_ASM_SPEC): New define.
35864         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
35865         instead.
35867 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
35869         PR target/53988
35870         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35871         nullptr for insn when reaching the first insn.
35872         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35873         (sh_insn_operands_modified_between_p): Add nullptr check.
35874         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
35875         sign extending mem load if the insn contains any UNSPEC or
35876         UNSPEC_VOLATILE.
35878 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35880         * params.def (inline-unit-growth): Drop to 15%.
35881         * invoke.texi (inline-unit-growth): Document change.
35883 2015-01-19  Martin Liska  <mliska@suse.cz>
35885         PR ipa/64668
35886         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35887         function for second argument of OBJ_TYPE_REF.
35889 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35891         PR ipa/64218
35892         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35893         whether function is an alias.
35895 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
35897         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35898         cases.
35900 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
35902         PR rtl-optimization/64671
35903         * lra-remat.c (operand_to_remat): Don't consider jump and call
35904         insns.
35906 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
35908         PR target/59828
35909         * config/rs6000/default64.h: Include rs6000-cpus.def.
35910         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35911         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35912         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35913         and POWER8.
35914         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35915         POWER8.
35916         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35917         pseudo-op to specify assembler dialect.
35919 2015-01-19  Martin Liska  <mliska@suse.cz>
35921         PR ipa/64664
35922         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35923         Handle safe potentially removed nodes during filtering.
35925 2015-01-19  Martin Liska  <mliska@suse.cz>
35927         * doc/extend.texi (no_icf): Add new attribute description.
35928         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35929         where the pass attempts to merge a function with no_icf attribute.
35931 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35933         PR target/64532
35934         * doc/md.texi (ARM Options): Document register constraints.
35936 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
35937             Andrew Pinski  <apinski@cavium.com>
35939         PR target/64304
35940         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35941         (ashl<mode>3): Don't expand if operands[2] is not constant.
35943 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35945         PR target/64448
35946         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35947         Match xor-and-xor RTL pattern.
35949 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
35951         PR rtl-optimization/64081
35952         * loop-iv.c (def_pred_latch_p): New function.
35953         (latch_dominating_def): Allow specific cases with non-single
35954         definitions.
35955         (iv_get_reaching_def): Likewise.
35956         (check_complex_exit_p): New function.
35957         (check_simple_exit): Use check_complex_exit_p to allow certain cases
35958         with exits not executing on any iteration.
35960 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
35962         * common.opt (fgraphite): Fix a typo.
35964 2015-01-19  Felix Yang  <felix.yang@huawei.com>
35966         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35967         pattern.
35968         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35969         uminp, smax_nanp, smin_nanp): New builtins.
35970         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35971         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35972         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35973         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35974         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35975         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35976         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35977         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35978         vpminnms_f32): Rewrite using builtin functions.
35980 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
35982         PR libgomp/64625
35983         * omp-low.c (offload_symbol_decl): Remove variable.
35984         (get_offload_symbol_decl): Remove function.
35985         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35986         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35987         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35988         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35989         BUILT_IN_GOACC_UPDATE don't pass it at all.
35991 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35993         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35994         callers.
35996 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35998         * ipa-chkp.c (chkp_produce_thunks): Add early param
35999         to split thunks production into two passes.  Keep
36000         'always_inline' function bodies after the first pass.
36001         (pass_data_ipa_chkp_early_produce_thunks): New.
36002         (pass_ipa_chkp_early_produce_thunks): New.
36003         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36004         chkp_produce_thunks signature.
36005         (make_pass_ipa_chkp_early_produce_thunks): New.
36006         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36007         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36008         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36010 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36012         * cgraph.c (cgraph_node::dump): Dump profile flags.
36014 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
36016         PR target/64652
36017         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36018         reg appear first in the parallel.
36020 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36022         * ipa-reference.c (set_reference_optimization_summary,
36023         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36024         disabled.
36025         (ignore_module_statics): New static var.
36026         (propagate_bits): If ipa-reference is disabled, do not look into local
36027         properties.
36028         (analyze_function): Disable analysis when ipa_reference is disabled.
36029         (generate_summary): Do not dump when reference is disabled;
36030         collect vars accessed from functions with ipa-reference disabled.
36031         (get_read_write_all_from_node): When ipa-reference is disabled, use the
36032         node flags.
36033         (gate): Enable for LTO.
36034         (ignore_edge_p): New function.
36035         (propagate): Skip functions w/o ipa-reference analysis.
36036         * optc-save-gen.awk: Handle optimize_debug correctly.
36037         * opth-gen.awk: Likewise.
36038         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36039         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36040         fira-share-save-slots, fira-share-spill-slots,
36041         fmodulo-sched-allow-regmoves, fpartial-inlining,
36042         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36043         ftracer, ftree-parallelize-loops, fassociative-math,
36044         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36045         Optimization
36046         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36047         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36048         Optimization.
36049         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36050         Fix for IPA.
36052 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
36054         PR ipa/64378
36055         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36056         flag correctly.
36057         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36059 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
36061         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36062         Remove duplicate option listings.
36064 2015-01-18  Felix Yang  <felix.yang@huawei.com>
36066         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36067         (autofdo_source_profile::get_callsite_total_count,
36068         function_instance::get_function_instance_by_decl,
36069         string_table::get_index, string_table::get_index_by_decl,
36070         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36071         Fix comment typos. Reformatting and minor code rearrangement.
36073 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36075         * config/rs6000/rs6000.md (probe_stack): Delete.
36076         (probe_stack_address): New.
36078 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36080         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36081         to test for 32-bit ABIs, not !TARGET_POWERPC64.
36083 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
36085         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36086         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
36087         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
36088         snafu.
36089         (rs6000_libcall_value): Use the new function.
36091 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
36093         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36095 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
36097         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36098         implement a more precise life analysis for it during backward scan.
36100 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
36102         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36104 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
36106         PR rtl-optimization/52773
36107         * calls.c (emit_library_call_value): When pushing arguments use
36108         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36109         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
36110         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36112 2015-01-17  Jeff Law  <law@redhat.com>
36114         PR rtl-optimization/32790
36115         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36116         not ZERO_EXTEND in SET_DESTs.
36118 2015-01-17  Alan Modra  <amodra@gmail.com>
36120         * cprop.c (do_local_cprop): Revert last change.
36122 2015-01-16  DJ Delorie  <dj@redhat.com>
36123             Nick Clifton  <nickc@redhat.com>
36125         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36126         (addhi3_real): Likewise.  Fix [HL+0] syntax.
36127         (subqi3_real): Likewise.
36128         (subhi3_real): Likewise.
36129         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
36130         (cbranchhi4_real): Likewise.
36131         (cbranchhi4_real_inverted): Likewise.
36132         (cbranchsi4_real_lt): Likewise.
36133         (cbranchsi4_real_ge): Likewise.
36134         (cbranchsi4_real_ge): Likewise.
36135         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36136         (sub<mode>3_virt): Likewise.
36137         (cbranchqi4_virt): Likewise.
36138         (cbranchhi4_virt): Likewise.
36139         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36140         always use '[reg+imm]' even when imm is zero.
36141         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36142         (rl78_general_operand): New.
36143         (rl78_nonimmediate_operand): New.
36144         (rl78_nonfar_operand): Use them.
36145         (rl78_nonfar_nonimm_operand): Likewise.
36146         (rl78_stack_based_mem): Fix.
36147         * config/rl78/constraints.md (Ibqi): New.
36148         (IBqi): New.
36149         (Wsa): New.
36150         (Wsf): New.
36151         (Cs1): Fix.
36152         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36153         (iorqi3): Likewise.
36154         (xorqi3): Likewise.
36155         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36157         * config/rl78/constrains (Qs8): New constraint.
36158         * config/rl78/rl78.c (rl78_flags_already_set): New function.
36159         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36160         * config/rl78/rl78-real.md (update_Z): New attribute.
36161         Update patterns to set it.
36162         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36163         shorter compare and branch sequence can be used.
36164         (cbranchhi4_real): Likewise.
36165         (cbranchhi4_real_inverted): Likewise.
36167         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36168         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36169         address space.
36170         * config/rl78/rl78.c (rl78_get_name_encoding): New.
36171         (rl78_option_override): Allow -mes0 only if C.
36172         (characterize_address): Support subregs of symbol_refs.
36173         (rl78_addr_space_address_mode): Move.  Add __near.
36174         (rl78_far_p): Likewise.
36175         (rl78_addr_space_pointer_mode): Likewise.
36176         (rl78_as_legitimate_address): Likewise.
36177         (rl78_addr_space_subset_p): Likewise.
36178         (rl78_addr_space_convert): Likewise.
36179         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36180         symbols with -mes0.
36181         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
36182         addressing.
36183         (rl78_alloc_physical_registers_op1): Change logic to prefer
36184         symbol[BC] addressing.
36185         (frodata_section): New.
36186         (rl78_asm_init_sections): Initialize it.
36187         (rl78_select_section): Put __far readonly symbols in .frodata.
36188         (rl78_make_type_far): New.
36189         (rl78_insert_attributes): Force all readonly symbols to be
36190         __far when -mes0.
36191         (rl78_asm_out_integer): New.
36192         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36193         * config/rl78/rl78.opt (-mes0): New.
36195         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36196         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36197         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36198         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36199         (rl78_saddr_p): New.
36200         (rl78_output_aligned_common): New.
36201         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36202         (rl78_handle_saddr_attribute): New.
36203         (rl78_handle_naked_attribute): New.
36204         (rl78_attribute_table): Add saddr.
36205         (rl78_print_operand_1): Don't print '!' on saddr operands.
36206         (rl78_print_operand_1): Strip encodings.
36207         (rl78_sfr_p): New.
36208         (rl78_strip_name_encoding): New.
36209         (rl78_attrlist_to_encoding): New.
36210         (rl78_encode_section_info): New.
36211         (rl78_asm_init_sections): New.
36212         (rl78_select_section): New.
36213         (rl78_output_labelref): New.
36214         (rl78_output_aligned_common): New.
36215         (rl78_asm_out_integer): New.
36216         (rl78_asm_ctor_dtor): New.
36217         (rl78_asm_constructor): New.
36218         (rl78_asm_destructor): New.
36220         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36221         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36222         (transcode_memory_rtx): Update.
36223         (rl78_expand_epilogue): Use A_REG instead of 0.
36225 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36227         * config/arm/arm-protos.h (struct tune_params): New field
36228         sched_autopref_queue_depth.
36229         * config/arm/arm.c (sched-int.h): Include header.
36230         (arm_first_cycle_multipass_dfa_lookahead_guard,)
36231         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36232         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36233         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36234         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36235         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36236         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36237         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36238         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
36239         * config/arm/t-arm (arm.o): Update.
36240         * haifa-sched.c (update_insn_after_change): Update.
36241         (rank_for_schedule): Use auto-prefetcher model, if requested.
36242         (autopref_multipass_init): New static function.
36243         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36244         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36245         variable for debug dumps.
36246         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36247         (autopref_multipass_dfa_lookahead_guard): New global function that
36248         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36249         (init_h_i_d): Update.
36250         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36251         * sched-int.h (enum autopref_multipass_data_status): New const enum.
36252         (autopref_multipass_data_): Structure for auto-prefetcher data.
36253         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36254         (struct _haifa_insn_data:autopref_multipass_data): New field.
36255         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36256         (autopref_multipass_dfa_lookahead_guard): Declare.
36258 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36260         * rtlanal.c (get_base_term): Handle SCRATCH.
36262 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36264         * config/aarch64/aarch64.c
36265         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36266         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36267         * config/arm/arm.c
36268         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36269         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36271 2015-01-17  Alan Modra  <amodra@gmail.com>
36273         * cprop.c (do_local_cprop): Disallow replacement of fixed
36274         hard registers.
36276 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36278         PR target/62066
36279         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36280         early return 0.
36282 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36284         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36285         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36287 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36289         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36290         * config/arm/thumb1.md: ... Here.
36292 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36294         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36295         TImode for TARGET_32BIT.
36297 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36299         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36300         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36301         as ...
36302         (rs6000_abi_word_mode): New function.
36304 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36306         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36307         instead of UNITS_PER_WORD to describe the size of stack slots.
36309 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36311         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36312         as rs6000_promote_function_mode.  Move comment to there.
36313         (rs6000_promote_function_mode): New function.
36315 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
36317         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36318         -mpowerpc64 is active.
36320 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36322         PR middle-end/64353
36323         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36324         virtuals on start.
36326 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36328         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36329         introduced in revision 219724.
36331 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36332             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36334         PR target/64263
36335         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36336         destination is not a GP reg.
36337         (*movdi_aarch64): Likewise.
36339 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
36341         PR target/64623
36342         * config/rs6000/default64.h: Revert ISA change.
36344 2015-01-16  Richard Biener  <rguenther@suse.de>
36346         PR middle-end/64614
36347         * tree-ssa-uninit.c: Include tree-cfg.h.
36348         (MAX_SWITCH_CASES): New define.
36349         (convert_control_dep_chain_into_preds): Handle switch statements.
36350         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36351         (normalize_one_pred_1): Do not split bit-manipulations.
36352         Record (x & CST).
36354 2015-01-16  Richard Biener  <rguenther@suse.de>
36356         PR tree-optimization/64568
36357         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36358         complex load rewriting for TARGET_MEM_REFs.
36360 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
36362         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36364 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
36366         PR target/64149
36367         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36368         variable.
36369         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36370         (aarch64_lra_p): Remove.
36372 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
36374         PR target/64363
36375         * ipa-chkp.h (chkp_instrumentable_p): New.
36376         * ipa-chkp.c: Include tree-inline.h.
36377         (chkp_instrumentable_p): New.
36378         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36379         Fix processing of not instrumentable functions.
36380         (chkp_versioning): Use chkp_instrumentable_p. Warn about
36381         not instrumentable functions.
36382         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36383         chkp_instrumentable_p.
36384         * tree-inline.h (copy_forbidden): New.
36385         * tree-inline.c (copy_forbidden): Not static anymore.
36387 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36389         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36390         ptr1, ptr2 unused.
36392 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36394         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36395         type OP_OUT to OP_INOUT.
36397 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
36399         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36400         (high x) y) to y if x and y have the same base.
36402 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
36404         * config/arm/cortex-a57.md: New.
36405         * config/aarch64/aarch64.md: Include it.
36406         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36407         * config/aarch64/aarch64-tune.md: Regenerate.
36409 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
36411         PR target/64015
36412         * ccmp.c (expand_ccmp_next): New function.
36413         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36414         and compare insn sequence.
36415         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36416         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36417         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36418         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36419         (*ccmp_ior): Changed to ccmp_ior<mode>.
36420         (cmp<mode>): New pattern.
36421         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36422         parameters.
36423         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36425 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
36427         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36428         _mm256_bsrli_epi128): New.
36429         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36431 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36433         * expmed.c (store_bit_field_using_insv): Improve warning message.
36434         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36436 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
36438         PR rtl-optimization/64011
36439         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36440         there is partial overflow.
36442 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36444         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36445         prototype.
36446         (nds32_expand_epilogue_v3pop): Likewise.
36447         * config/nds32/nds32.md (sibcall): Define this for sibling call
36448         optimization.
36449         (sibcall_register): Likewise.
36450         (sibcall_immediate): Likewise.
36451         (sibcall_value): Likewise.
36452         (sibcall_value_register): Likewise.
36453         (sibcall_value_immediate): Likewise.
36454         (sibcall_epilogue): Likewise.
36455         (epilogue): Pass false to indicate this is not a sibcall epilogue.
36456         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36457         (nds32_expand_epilogue_v3pop): Likewise.
36459 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36461         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36462         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36463         (return_internal): New.
36464         (return): Define this named pattern.
36465         (simple_return): Define this named pattern.
36466         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36467         pattern instead of unspec_volatile_func_return.
36468         (nds32_expand_epilogue_v3pop): Likewise.
36469         (nds32_can_use_return_insn): New function.
36471 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36473         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36474         * config/nds32/nds32.md (pop25return): New.
36475         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36476         pop25return pattern.
36478 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36480         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36481         -mforbid-fp-as-gp, and -mex9 options.
36483 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
36485         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36486         remove -mgp-direct option.
36488 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36490         * doc/invoke.texi (--param early-inlining-insns): Update default value.
36491         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36493 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36495         * ipa-inline.c (inline_small_functions): Work around hints
36496         cache issue.
36498 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
36500         PR target/59710
36501         * doc/invoke.texi (Option Summary): Document new Nios II
36502         -mgpopt= syntax.
36503         (Nios II Options): Likewise.
36504         * config/nios2/nios2.opt: Add -mgpopt= option support.
36505         Modify existing -mgpopt and -mno-gpopt options to be aliases.
36506         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36507         * config/nios2/nios2.c (nios2_option_override): Adjust
36508         -mgpopt defaulting.
36509         (nios2_in_small_data_p): Return true for explicit small data
36510         sections even with -G0.
36511         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36512         option choices.
36514 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36516         PR ipa/64612
36517         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36518         of comdat locals.
36519         (inline_call): Fix removal of aliases.
36521 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
36523         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36524         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36525         * opts.c (common_handle_option): Add -fsanitize=vptr.
36526         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36527         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36528         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36529         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36530         (ubsan_expand_vptr_ifn): New prototype.
36531         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36532         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36533         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36534         expand_LOOP_VECTORIZED): Make argument nameless, remove
36535         ATTRIBUTE_UNUSED.
36536         (expand_UBSAN_VPTR): New function.
36537         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36538         in fn spec.
36539         (UBSAN_VPTR): New internal function.
36540         * sanopt.c (tree_map_traits): Renamed to ...
36541         (sanopt_tree_map_traits): ... this.
36542         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36543         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36544         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
36545         (maybe_optimize_ubsan_vptr_ifn): New function.
36546         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36547         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
36548         -fsanitize=vptr.
36549         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36550         internal calls like pure functions for aliasing, even when they
36551         have other side-effects that prevent making them ECF_PURE.
36552         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36553         (ubsan_expand_vptr_ifn): New function.
36555 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
36557         PR rtl-optimization/64110
36558         * stmt.c (parse_output_constraint): Process '^' and '$'.
36559         (parse_input_constraint): Ditto.
36560         * lra-constraints.c (process_alt_operands): Process the new
36561         constraints.
36562         * ira-costs.c (record_reg_classes): Process the new constraint
36563         '^'.
36564         * genoutput.c (indep_constraints): Add '^' and '$'.
36565         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36566         * doc/md.texi: Add description of the new constraints.
36568 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
36569             Bernd Schmidt  <bernds@codesourcery.com>
36570             Cesar Philippidis  <cesar@codesourcery.com>
36571             James Norris  <jnorris@codesourcery.com>
36572             Tom de Vries  <tom@codesourcery.com>
36573             Ilmir Usmanov  <i.usmanov@samsung.com>
36574             Dmitry Bocharnikov  <dmitry.b@samsung.com>
36575             Evgeny Gavrin  <e.gavrin@samsung.com>
36576             Jakub Jelinek  <jakub@redhat.com>
36578         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36579         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36580         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36581         New function types.
36582         * builtins.c: Include "gomp-constants.h".
36583         (expand_builtin_acc_on_device): New function.
36584         (expand_builtin, is_inexpensive_builtin): Handle
36585         BUILT_IN_ACC_ON_DEVICE.
36586         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36587         New macros.
36588         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36589         flag_openmp.
36590         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36591         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36592         i386/intelmic-offload.h.
36593         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36594         to libgomp and its dependencies.
36595         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36596         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36597         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36598         * config/ia64/hpux.h (LIB_SPEC): Likewise.
36599         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36600         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36601         * doc/generic.texi: Update for OpenACC changes.
36602         * doc/gimple.texi: Likewise.
36603         * doc/invoke.texi: Likewise.
36604         * doc/sourcebuild.texi: Likewise.
36605         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36606         GF_OMP_FOR_KIND_OACC_LOOP.
36607         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36608         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36609         GF_OMP_TARGET_KIND_OACC_UPDATE,
36610         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36611         Dump more data.
36612         * gimple.c: Update comments for OpenACC changes.
36613         * gimple.def: Likewise.
36614         * gimple.h: Likewise.
36615         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36616         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36617         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36618         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36619         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36620         appropriate place.
36621         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36622         * gimplify.c: Include "gomp-constants.h".
36623         Update comments for OpenACC changes.
36624         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36625         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36626         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36627         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36628         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36629         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36630         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36631         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36632         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36633         OMP_CLAUSE_SEQ.
36634         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36635         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36636         OMP_CLAUSE_SET_MAP_KIND.
36637         (gimplify_oacc_cache): New function.
36638         (gimplify_omp_for): Handle OACC_LOOP.
36639         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36640         OACC_DATA.
36641         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36642         OACC_EXIT_DATA, OACC_UPDATE.
36643         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36644         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36645         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36646         (gimplify_body): Consider flag_openacc next to flag_openmp.
36647         * lto-streamer-out.c: Include "gomp-constants.h".
36648         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36649         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36650         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36651         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36652         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36653         (BUILT_IN_ACC_ON_DEVICE): New builtins.
36654         * omp-low.c: Include "gomp-constants.h".
36655         Update comments for OpenACC changes.
36656         (struct omp_context): Add reduction_map, gwv_below, gwv_this
36657         members.
36658         (extract_omp_for_data, use_pointer_for_field, install_var_field)
36659         (new_omp_context, delete_omp_context, scan_sharing_clauses)
36660         (create_omp_child_function, scan_omp_for, scan_omp_target)
36661         (check_omp_nesting_restrictions, lower_reduction_clauses)
36662         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36663         Update for OpenACC changes.
36664         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36665         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36666         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36667         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36668         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36669         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
36670         OMP_CLAUSE_MAP_*.
36671         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36672         Handle GF_OMP_FOR_KIND_OACC_LOOP.
36673         (expand_omp_target, lower_omp_target): Handle
36674         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36675         GF_OMP_TARGET_KIND_OACC_UPDATE,
36676         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36677         GF_OMP_TARGET_KIND_OACC_DATA.
36678         (pass_expand_omp::execute, execute_lower_omp)
36679         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36680         flag_openmp.
36681         (offload_symbol_decl): New variable.
36682         (oacc_get_reduction_array_id, oacc_max_threads)
36683         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36684         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36685         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36686         (oacc_gimple_assign, oacc_initialize_reduction_data)
36687         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36688         functions.
36689         (is_targetreg_ctx): Remove function.
36690         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36691         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36692         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36693         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36694         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36695         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36696         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36697         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36698         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36699         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36700         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36701         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36702         * tree-core.h: Update comments for OpenACC changes.
36703         (enum omp_clause_map_kind): Remove.
36704         (struct tree_omp_clause): Change type of map_kind member from enum
36705         omp_clause_map_kind to unsigned char.
36706         * tree-inline.c: Update comments for OpenACC changes.
36707         * tree-nested.c: Likewise.  Include "gomp-constants.h".
36708         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36709         (convert_tramp_reference_stmt, convert_gimple_call): Update for
36710         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
36711         OMP_CLAUSE_SET_MAP_KIND.
36712         * tree-pretty-print.c: Include "gomp-constants.h".
36713         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36714         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36715         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36716         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36717         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36718         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
36719         instead of OMP_CLAUSE_MAP_*.
36720         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36721         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36722         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36723         * tree-streamer-in.c: Include "gomp-constants.h".
36724         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36725         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
36726         * tree-streamer-out.c: Include "gomp-constants.h".
36727         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36728         OMP_CLAUSE_MAP_*.
36729         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36730         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36731         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36732         * tree.c (omp_clause_num_ops): Update accordingly.
36733         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36734         Likewise.
36735         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36736         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36737         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36738         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36739         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36740         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36741         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36742         (OMP_CLAUSE_SET_MAP_KIND): New macro.
36743         * varpool.c (varpool_node::get_create): Consider flag_openacc next
36744         to flag_openmp.
36745         * config/i386/intelmic-offload.h: New file.
36746         * config/nvptx/offload.h: Likewise.
36748 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36750         * explow.h: Remove duplicate contents.
36751         * dojump.h: Likewise.
36753 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
36755         * arm.c (arm_xgene_tune): Add default initializer for instruction
36756         fusion.
36758 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
36760         PR ipa/64068
36761         PR ipa/64559
36762         * ipa.c (symbol_table::remove_unreachable_nodes):
36763         Do not put abstract origins into boundary.
36765 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
36767         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36768         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36770 2015-01-15  Steve Ellcey  <sellcey@mips.com>
36772         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36773         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36774         builtins.def, and chkp-builtins.def.
36776 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
36778         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36779         ISA 2.7 (POWER8).
36781 2015-01-15  Richard Biener  <rguenther@suse.de>
36783         PR tree-optimization/61743
36784         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36785         information on PHIs for some simple cases.
36787 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36789         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36790         Include xgene1.md.
36791         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36792         * config/arm/arm-cores.def (xgene1): New entry.
36793         * config/arm/arm-tables.opt: Regenerate.
36794         * config/arm/arm-tune.md: Regenerate.
36795         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36797 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
36799         * tree-if-conv.c: Include hash-map.h.
36800         (aggressive_if_conv): New variable.
36801         (fold_build_cond_expr): Add simplification of non-zero condition.
36802         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36803         destination block is not always executed.
36804         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36805         than two predecessors if AGGRESSIVE_IF_CONV is true.
36806         (if_convertible_stmt_p): Fix commentary.
36807         (all_preds_critical_p): New function.
36808         (has_pred_critical_p): New function.
36809         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36810         BB can have more than two predecessors and all incoming edges can be
36811         critical.
36812         (predicate_bbs): Skip predication for loop exit block, use build2_loc
36813         to compute predicate for true edge.
36814         (find_phi_replacement_condition): Delete this function.
36815         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36816         Allow interchange PHI arguments if EXTENDED is false.
36817         Change check that block containing reduction statement candidate
36818         is predecessor of phi-block since phi may have more than two arguments.
36819         (phi_args_hash_traits): New helper structure.
36820         (struct phi_args_hash_traits): New type.
36821         (phi_args_hash_traits::hash): New function.
36822         (phi_args_hash_traits::equal_keys): New function.
36823         (gen_phi_arg_condition): New function.
36824         (predicate_scalar_phi): Add handling of phi nodes with more than two
36825         arguments, delete COND and TRUE_BB arguments, insert body of
36826         find_phi_replacement_condition to predicate ordinary phi nodes.
36827         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36828         delete call of find_phi_replacement_condition and invoke
36829         predicate_scalar_phi with two arguments.
36830         (insert_gimplified_predicates): Add assert that non-predicated block
36831         don't have statements to insert.
36832         (ifcvt_split_critical_edges): New function.
36833         (ifcvt_split_def_stmt): Likewise.
36834         (ifcvt_walk_pattern_tree): Likewise.
36835         (stmt_is_root_of_bool_pattern): Likewise.
36836         (ifcvt_repair_bool_pattern): Likewise.
36837         (ifcvt_local_dce): Likewise.
36838         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36839         is copy of inner or outer loop force_vectorize field, invoke
36840         ifcvt_split_critical_edges, ifcvt_local_dce and
36841         ifcvt_repair_bool_pattern for aggressive if-conversion.
36843 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
36845         * config/aarch64/aarch64.md: Include xgene1.md.
36846         * config/aarch64/xgene1.md: New file.
36848 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
36850         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36851         xgene1 (APM XGene-1) core definition.
36852         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36853         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36854         * doc/invoke.texi: Document -mcpu=xgene1.
36856 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
36858         * dojump.h: New header file.
36859         * explow.h: Likewise.
36860         * expr.h: Remove includes.
36861         Move expmed.c prototypes to expmed.h.
36862         Move dojump.c prototypes to dojump.h.
36863         Move alias.c prototypes to alias.h.
36864         Move explow.c prototypes to explow.h.
36865         Move calls.c prototypes to calls.h.
36866         Move emit-rtl.c prototypes to emit-rtl.h.
36867         Move varasm.c prototypes to varasm.h.
36868         Move stmt.c prototypes to stmt.h.
36869         (saved_pending_stack_adjust): Move to dojump.h.
36870         (adjust_address): Move to explow.h.
36871         (adjust_address_nv): Move to emit-rtl.h.
36872         (adjust_bitfield_address): Likewise.
36873         (adjust_bitfield_address_size): Likewise.
36874         (adjust_bitfield_address_nv): Likewise.
36875         (adjust_automodify_address_nv): Likewise.
36876         * explow.c (expr_size): Move to expr.c.
36877         (int_expr_size): Likewise.
36878         (tree_expr_size): Likewise.
36879         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36880         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36881         * genemit.c (main): Generate includes statistics.h, real.h,
36882         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36883         stmt.h.
36884         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36885         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36886         explow.h, emit-rtl.h, stmt.h.
36887         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36888         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36889         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36890         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36891         emit-rtl.h, varasm.h, stmt.h.
36892         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36893         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36894         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36895         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36896         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36897         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36898         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36899         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36900         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36901         tm.h tree.h varasm.h vec.h wide-int.h.
36902         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36903         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36904         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36905         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36906         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36907         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36908         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36909         * loop-iv.c: Likewise.
36910         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36911         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36912         statistics.h stmt.h tree.h varasm.h wide-int.h.
36913         * lra-constraints.c: Likewise.
36914         * lra-eliminations.c: Likewise.
36915         * lra-lives.c: Likewise.
36916         * lra-remat.c: Likewise.
36917         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36918         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36919         statistics.h stmt.h tree.h varasm.h wide-int.h.
36920         * hw-doloop.c: Likewise.
36921         * ira-color.c: Likewise.
36922         * ira-emit.c: Likewise.
36923         * loop-doloop.c: Likewise.
36924         * loop-invariant.c: Likewise.
36925         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36926         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36927         statistics.h stmt.h tree.h varasm.h wide-int.h.
36928         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36929         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36930         statistics.h stmt.h tree.h varasm.h wide-int.h.
36931         * combine-stack-adj.c: Likewise.
36932         * cse.c: Likewise.
36933         * ddg.c: Likewise.
36934         * ifcvt.c: Likewise.
36935         * ira-costs.c: Likewise.
36936         * jump.c: Likewise.
36937         * lra-coalesce.c: Likewise.
36938         * lra-spills.c: Likewise.
36939         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36940         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36941         stmt.h varasm.h wide-int.h.
36942         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36943         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36944         varasm.h.
36945         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36946         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36947         statistics.h stmt.h varasm.h wide-int.h.
36948         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36949         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36950         varasm.h wide-int.h.
36951         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36952         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36953         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36954         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36955         statistics.h stmt.h.
36956         * config/tilepro/tilepro.c: Likewise.
36957         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36958         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36959         * config/pdp11/pdp11.c: Likewise.
36960         * config/xtensa/xtensa.c: Likewise.
36961         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36962         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36963         varasm.h.
36964         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36965         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36966         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36967         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36968         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36969         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36970         * rtl-chkp.c: Likewise.
36971         * tree-chkp-opt.c: Likewise.
36972         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36973         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36974         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36975         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36976         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36977         statistics.h stmt.h.
36978         * tree-vect-data-refs.c: Likewise.
36979         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36980         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36981         rtl.h statistics.h stmt.h varasm.h.
36982         * internal-fn.c: Likewise.
36983         * ipa-icf-gimple.c: Likewise.
36984         * lto-section-out.c: Likewise.
36985         * tree-data-ref.c: Likewise.
36986         * tree-nested.c: Likewise.
36987         * tree-outof-ssa.c: Likewise.
36988         * tree-predcom.c: Likewise.
36989         * tree-pretty-print.c: Likewise.
36990         * tree-scalar-evolution.c: Likewise.
36991         * tree-ssa-strlen.c: Likewise.
36992         * tree-vect-loop.c: Likewise.
36993         * tree-vect-patterns.c: Likewise.
36994         * tree-vect-slp.c: Likewise.
36995         * tree-vect-stmts.c: Likewise.
36996         * tsan.c: Likewise.
36997         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36998         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36999         stmt.h.
37000         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37001         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37002         statistics.h stmt.h varasm.h.
37003         * loop-unroll.c: Likewise.
37004         * ubsan.c: Likewise.
37005         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37006         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37007         stmt.h varasm.h.
37008         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37009         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37010         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37011         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37012         statistics.h stmt.h.
37013         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37014         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37015         statistics.h stmt.h varasm.h.
37016         * gimple-match-head.c: Likewise.
37017         * lto-cgraph.c: Likewise.
37018         * lto-section-in.c: Likewise.
37019         * lto-streamer-in.c: Likewise.
37020         * lto-streamer-out.c: Likewise.
37021         * tree-affine.c: Likewise.
37022         * tree-cfg.c: Likewise.
37023         * tree-cfgcleanup.c: Likewise.
37024         * tree-if-conv.c: Likewise.
37025         * tree-into-ssa.c: Likewise.
37026         * tree-ssa-alias.c: Likewise.
37027         * tree-ssa-copyrename.c: Likewise.
37028         * tree-ssa-dse.c: Likewise.
37029         * tree-ssa-forwprop.c: Likewise.
37030         * tree-ssa-live.c: Likewise.
37031         * tree-ssa-math-opts.c: Likewise.
37032         * tree-ssa-pre.c: Likewise.
37033         * tree-ssa-sccvn.c: Likewise.
37034         * tree-tailcall.c: Likewise.
37035         * tree-vect-generic.c: Likewise.
37036         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37037         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37038         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37039         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37040         * varasm.c: Likewise.
37041         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37042         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37043         varasm.h.
37044         * init-regs.c: Likewise.
37045         * ira.c: Likewise.
37046         * omp-low.c: Likewise.
37047         * stack-ptr-mod.c: Likewise.
37048         * tree-ssa-reassoc.c: Likewise.
37049         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37050         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37051         varasm.h.
37052         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37053         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37054         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37055         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37056         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37057         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37058         * tree-ssa-phiopt.c: Likewise.
37059         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37060         fixed-value.h hashtab.h real.h statistics.h stmt.h.
37061         * config/fr30/fr30.c: Likewise.
37062         * config/frv/frv.c: Likewise.
37063         * expr.c: Likewise.
37064         * final.c: Likewise.
37065         * optabs.c: Likewise.
37066         * passes.c: Likewise.
37067         * simplify-rtx.c: Likewise.
37068         * stmt.c: Likewise.
37069         * toplev.c: Likewise.
37070         * var-tracking.c: Likewise.
37071         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37072         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37073         * lower-subreg.c: Likewise.
37074         * postreload-gcse.c: Likewise.
37075         * ree.c: Likewise.
37076         * reginfo.c: Likewise.
37077         * store-motion.c: Likewise.
37078         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37079         fixed-value.h hashtab.h real.h stmt.h varasm.h.
37080         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37081         fixed-value.h hashtab.h statistics.h stmt.h.
37082         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37083         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37084         * except.c: Likewise.
37085         * explow.c: Likewise.
37086         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37087         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37088         varasm.h.
37089         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37090         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37091         * tree-ssa-structalias.c: Likewise.
37092         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37093         fixed-value.h insn-config.h real.h statistics.h.
37094         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37095         fixed-value.h insn-config.h real.h statistics.h stmt.h.
37096         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37097         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37098         * cfgbuild.c: Likewise.
37099         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37100         fixed-value.h real.h rtl.h statistics.h stmt.h.
37101         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37102         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37103         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37104         fixed-value.h real.h statistics.h stmt.h.
37105         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37106         fixed-value.h real.h statistics.h stmt.h varasm.h.
37107         * cprop.c: Likewise.
37108         * modulo-sched.c: Likewise.
37109         * postreload.c: Likewise.
37110         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37111         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37112         statistics.h stmt.h varasm.h.
37113         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37114         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37115         rtl.h statistics.h stmt.h varasm.h.
37116         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37117         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37118         varasm.h.
37119         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37120         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37121         varasm.h.
37122         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37123         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37124         varasm.h.
37125         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37126         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37127         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37128         function.h real.h statistics.h stmt.h varasm.h.
37129         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37130         insn-config.h real.h statistics.h stmt.h.
37131         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37132         statistics.h stmt.h.
37133         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37134         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37135         statistics.h stmt.h varasm.h.
37136         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37137         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37138         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37139         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37140         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37141         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37142         statistics.h stmt.h varasm.h.
37143         * ipa-polymorphic-call.c: Likewise.
37144         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37145         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37146         statistics.h stmt.h.
37147         * config/c6x/c6x.c: Likewise.
37148         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37149         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37150         statistics.h stmt.h varasm.h.
37151         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37152         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37153         stmt.h varasm.h.
37154         * ipa-split.c: Likewise.
37155         * tree-eh.c: Likewise.
37156         * tree-ssa-dce.c: Likewise.
37157         * tree-ssa-loop-niter.c: Likewise.
37158         * tree-vrp.c: Likewise.
37159         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37160         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37161         stmt.h.
37162         * config/nds32/nds32-fp-as-gp.c: Likewise.
37163         * config/nds32/nds32-intrinsic.c: Likewise.
37164         * config/nds32/nds32-isr.c: Likewise.
37165         * config/nds32/nds32-md-auxiliary.c: Likewise.
37166         * config/nds32/nds32-memory-manipulation.c: Likewise.
37167         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37168         * config/nds32/nds32-predicates.c: Likewise.
37169         * config/nds32/nds32.c: Likewise.
37170         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37171         fixed-value.h hashtab.h real.h statistics.h.
37172         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37173         fixed-value.h hashtab.h real.h statistics.h stmt.h.
37174         * config/arm/arm.c: Likewise.
37175         * config/avr/avr.c: Likewise.
37176         * config/bfin/bfin.c: Likewise.
37177         * config/h8300/h8300.c: Likewise.
37178         * config/i386/i386.c: Likewise.
37179         * config/ia64/ia64.c: Likewise.
37180         * config/iq2000/iq2000.c: Likewise.
37181         * config/m32c/m32c.c: Likewise.
37182         * config/m32r/m32r.c: Likewise.
37183         * config/m68k/m68k.c: Likewise.
37184         * config/mcore/mcore.c: Likewise.
37185         * config/mep/mep.c: Likewise.
37186         * config/mips/mips.c: Likewise.
37187         * config/mn10300/mn10300.c: Likewise.
37188         * config/moxie/moxie.c: Likewise.
37189         * config/pa/pa.c: Likewise.
37190         * config/rl78/rl78.c: Likewise.
37191         * config/rx/rx.c: Likewise.
37192         * config/s390/s390.c: Likewise.
37193         * config/sh/sh.c: Likewise.
37194         * config/sparc/sparc.c: Likewise.
37195         * config/spu/spu.c: Likewise.
37196         * config/stormy16/stormy16.c: Likewise.
37197         * config/v850/v850.c: Likewise.
37198         * config/vax/vax.c: Likewise.
37199         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37200         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37201         * config/msp430/msp430.c: Likewise.
37202         * predict.c: Likewise.
37203         * value-prof.c: Likewise.
37204         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37205         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37206         * config/microblaze/microblaze.c: Likewise.
37207         * config/nios2/nios2.c: Likewise.
37208         * config/rs6000/rs6000.c: Likewise.
37209         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37210         insn-config.h real.h rtl.h statistics.h stmt.h.
37211         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37212         insn-config.h real.h statistics.h stmt.h.
37213         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37214         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37215         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37216         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37217         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37218         fixed-value.h real.h statistics.h stmt.h.
37219         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37220         fixed-value.h statistics.h stmt.h.
37221         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37222         stmt.h.
37224 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
37226         * gengtype.c (create_user_defined_type): Workaround
37227         -Wmaybe-uninitialized false positives.
37228         * cse.c (fold_rtx): Likewise.
37229         * loop-invariant.c (gain_for_invariant): Likewise.
37231 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37233         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37234         set the memory attributes in all cases but clear MEM_EXPR if need be.
37236 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
37238         PR tree-optimization/64434
37239         * cfgexpand.c (reorder_operands): New function.
37240         (expand_gimple_basic_block): Insert call of reorder_operands if
37241         optimized is true.
37243 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
37245         * config/mips/micromips.md (*swp): Remove explicit parallel.
37246         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37247         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37248         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37249         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37250         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37251         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37252         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37253         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37254         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37255         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37256         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37257         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37258         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37259         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37260         (mips_wrdsp): Likewise.
37261         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37262         parallel.
37263         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37264         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37265         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37266         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37267         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37268         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37269         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37270         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37271         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37273 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37275         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37276         (mips_print_operand): Support 'y' to print exact log2 in decimal
37277         of a const_int.
37278         * config/mips/mips.h (ISA_HAS_LSA): New define.
37279         (ISA_HAS_DLSA): Likewise.
37280         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37281         * config/mips/predicates.md (const_immlsa_operand): New predicate.
37283 2015-01-15  Martin Liska  <mliska@suse.cz>
37285         PR target/64377
37286         * optc-save-gen.awk: Add support for array types.
37288 2015-01-15  Richard Biener  <rguenther@suse.de>
37290         PR middle-end/64365
37291         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37292         for MEM_REF access functions with the same base can never partially
37293         overlap.
37295 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
37297         * common.opt: New option -fstack-protector-explicit.
37298         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37299         (stack_protect_decl_phase): Handle stack_protect attribute for
37300         explicit stack protection requests.
37301         (expand_used_vars): Similarly.
37302         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37303         * doc/extend.texi: Add documentation for "stack_protect" attribute.
37304         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37306 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
37308         PR target/53988
37309         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37310         reg-reg copies.
37311         (sh_extending_set_of_reg): New struct.
37312         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37313         sh_remove_reg_dead_or_unused_notes): New Declarations.
37314         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37315         sh_find_extending_set_of_reg, sh_split_tst_subregs,
37316         sh_extending_set_of_reg::use_as_extended_reg): New functions.
37317         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37318         convert to insn_and_split and use new function sh_split_tst_subregs.
37320 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
37322         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37323         option.
37324         (Optimization Options): Move -fuse-ld documentation to...
37325         (Link Options): ...here.
37327 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37329         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37330         offsets.
37331         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37332         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37333         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37334         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37335         instead of ZR for the memory operand of LL/SC.
37336         (compare_and_swap_12, sync_add<mode>): Likewise.
37337         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37338         (sync_new_<optab>_12, sync_nand_12): Likewise.
37339         (sync_old_nand_12, sync_new_nand_12): Likewise.
37340         (sync_sub<mode>, sync_old_add<mode>): Likewise.
37341         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37342         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37343         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37344         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37345         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37346         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37347         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37348         * doc/md.texi (ZC): Update description.
37350 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37352         * builtins.c (expand_builtin_atomic_exchange): Remove error when
37353         memory model is CONSUME.
37354         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37355         expand_builtin_atomic_store): Change invalid memory model errors to
37356         warnings.
37357         (expand_builtin_atomic_clear): Change invalid model errors to warnings
37358         and issue warning for CONSUME.
37360 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
37362         * lto-cgraph: Update function comments for
37363         lto_symtab_encoder_encode_*.
37365 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37367         * Makefile.in (site.exp): Do not set ENABLE_LTO.
37369 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
37371         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37372         * lto-cgraph.c (select_what_to_stream): Remove argument, use
37373         lto_stream_offload_p instead.
37374         * lto-streamer.h (select_what_to_stream): Remove argument.
37375         * passes.c (ipa_write_summaries): Likewise.
37376         * tree-pass.h (ipa_write_summaries): Likewise.
37378 2015-01-14  Richard Biener  <rguenther@suse.de>
37380         PR tree-optimization/59354
37381         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37382         groups larger than the slp group size as having gaps.
37384 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
37386         PR middle-end/59448
37387         * builtins.c (get_memmodel): Promote consume to acquire always.
37389 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37391         PR target/64386
37392         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37393         V32HImode.
37395 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37397         PR target/64393
37398         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37399         Enable AVX512BW.
37400         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37401         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37402         AVX512VBMI, as it implies AVX512BW.
37404 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
37406         PR target/64387
37407         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37408         (vec_unpacks_hi_v16sf): Ditto.
37410 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37412         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37413         is not available.
37415 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37417         * doc/invoke.texi (mapcs): Mention deprecation.
37418         (mapcs-frame): Likewise.
37420 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37422         PR target/64453
37423         * config/arm/arm.c (callee_saved_reg_p): Define.
37424         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37425         register is callee saved instead of !call_used_regs[reg].
37426         (thumb1_compute_save_reg_mask): Likewise.
37428 2015-01-14  Hale Wang  <hale.wang@arm.com>
37430         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37431         Cortex-M7.
37433 2015-01-14  Richard Biener  <rguenther@suse.de>
37435         PR lto/64415
37436         * tree-inline.c (insert_debug_decl_map): Check destination
37437         function MAY_HAVE_DEBUG_STMTS.
37438         (insert_init_debug_bind): Likewise.
37439         (insert_init_stmt): Remove redundant check.
37440         (remap_gimple_stmt): Drop debug stmts if the destination
37441         function has var-tracking assignments disabled.
37443 2015-01-14  Martin Liska  <mliska@suse.cz>
37445         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37446         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37448 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37450         PR target/64460
37451         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37452         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37454 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
37456         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37457         level from an ARCH; do not inject the default.
37458         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37459         MIPS_ISA_LEVEL_SPEC.
37460         (MIPS_ISA_NAN2008_SPEC): Update comment.
37461         (BASE_DRIVER_SELF_SPECS): Likewise.
37462         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37463         MIPS_DEFAULT_ISA_LEVEL_SPEC.
37464         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37465         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37466         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37468 2015-01-14  Richard Biener  <rguenther@suse.de>
37470         PR tree-optimization/64493
37471         PR tree-optimization/64495
37472         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37473         assign the proper vectorized PHI to the inner loop exit PHIs.
37475 2015-01-14  Joey Ye  <joey.ye@arm.com>
37477         * config/arm/arm.c (arm_compute_save_reg_mask):
37478         Do not save lr in case of tail call.
37479         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37481 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
37483         * tree-vrp.c (check_array_ref): Emit more warnings
37484         for warn_array_bounds >= 2.
37485         * common.opt: New option -Warray-bounds=.
37486         * doc/invoke.texi: Document -Warray-bounds=.
37488 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
37490         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37491         (mforbid-fp-as-gp): Remove.
37492         (mex9): Remove.
37493         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37494         (nds32_symbol_load_store_p): Remove.
37495         (nds32_fp_as_gp_check_available): Clean up implementation.
37496         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37497         cases.
37498         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37499         fp-as-gp and ex9 cases.
37501 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37503         * tree-profile.c (init_ic_make_global_vars): Drop workaround
37504         for bintuils bug 14342.
37505         (init_ic_make_global_vars): Likewise.
37506         (gimple_init_edge_profiler): Likewise.
37507         (gimple_gen_ic_func_profiler): Likewise.
37509 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37511         * ipa-inline.c (inline_small_functions): Swap the operands in
37512         enum.
37514 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37516         PR ipa/64481
37517         * ipa-inline-analysis.c (node_growth_cache): Remove.
37518         (initialize_growth_caches): Do not initialize it.
37519         (free_growth_caches): Do not free it.
37520         (do_estimate_growth): Rename to ...
37521         (estimate_growth): ... this one; drop growth cache code.
37522         (growth_likely_positive): Always go the heuristics way.
37523         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37524         (reset_edge_caches): Do not reset node growth.
37525         (heap_edge_removal_hook): Do not maintain cache.
37526         (inline_small_functions): Likewise; strenghten sanity check.
37527         (ipa_inline): Do not maintain caches.
37528         * ipa-inline.h (node_growth_cache): Remove.
37529         (do_estimate_growth): Remove to ...
37530         (estimate_growth): this one; remove inline version.
37531         (reset_node_growth_cache): Remove.
37533 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
37535         PR ipa/64565
37536         * ipa-inline.c (inline_small_functions): Update callee keys after
37537         resolving speculation
37538         (inline_small_functions): Always check monotonicity of the queue.
37540 2015-01-13  Marek Polacek  <polacek@redhat.com>
37542         PR middle-end/64391
37543         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37545 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
37547         PR rtl-optimization/64286
37548         * ree.c (combine_reaching_defs): Move part of comment earlier,
37549         remove !SCALAR_INT_MODE_P check.
37550         (add_removable_extension): Don't add vector mode
37551         extensions if all uses of the source register aren't the same
37552         vector extensions.
37554 2015-01-13  Renlin Li  <renlin.li@arm.com>
37556         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37557         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37559 2015-01-13  Martin Liska  <mliska@suse.cz>
37561         * ipa-icf.c (sem_function::equals_private): Call new functions
37562         cl_target_option_print_diff and cl_optimization_print_diff.
37563         * optc-save-gen.awk (cl_target_option_print_diff): New function.
37564         (cl_optimization_print_diff): Likewise.
37565         * opth-gen.awk: Likewise.
37567 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
37569         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37570         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37571         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37572         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37573         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37574         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37576 2015-01-13  Andrew Pinski  <apinski@cavium.com>
37578         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37579         instead of src mode.
37581 2015-01-13  Richard Biener  <rguenther@suse.de>
37583         PR lto/64373
37584         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37585         DECL_CONTEXT.
37587 2015-01-13  Andrew Pinski  <apinski@cavium.com>
37589         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37590         volatile mems.
37591         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37593 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
37595         PR middle-end/63974
37596         * cfgexpand.c (expand_computed_goto): Don't call
37597         convert_memory_address here.
37599 2015-01-13  Richard Biener  <rguenther@suse.de>
37601         PR tree-optimization/64406
37602         * tree-loop-distibution.c (pass_loop_distribution::execute):
37603         Reset the SCEV hashtable if we distributed anything.
37605 2015-01-13  Richard Biener  <rguenther@suse.de>
37607         PR tree-optimization/64404
37608         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37609         SLP types for CSEd loads.
37611 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37613         PR tree-optimization/64436
37614         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37615         merge of two symbolic numbers for a bitwise OR to ...
37616         (perform_symbolic_merge): This. Also fix computation of the range and
37617         end of the symbolic number corresponding to the result of a bitwise OR.
37619 2015-01-13  Richard Biener  <rguenther@suse.de>
37621         PR tree-optimization/64568
37622         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37623         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37625 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37627         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37628         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37630 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37632         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37633         target-specific symbol_ref flag.
37634         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37635         resides in rodata section.
37636         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37637         (nds32_encode_section_info): New function.
37639 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37641         * config/nds32/nds32.md (call): Use pseudo instruction bal which
37642         clobbers TA_REGNUM if large code model is specified.
37643         (call_register): Likewise.
37644         (call_immediate): Likewise.
37645         (call_value): Likewise.
37646         (call_value_register): Likewise.
37647         (call_value_immediate): Likewise.
37649 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37651         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37652         (TARGET_CMODEL_MEDIUM): New macro.
37653         (TARGET_CMODEL_LARGE): New macro.
37654         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37655         code model setting in assembly code.
37657 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37659         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37660         Remove MASK_GP_DIRECT flag.
37661         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37662         one of the multilib default options.
37663         * config/nds32/nds32.opt (mgp-direct): Remove.
37664         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37665         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
37667 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
37669         * config/nds32/nds32.opt (mcmodel): Add new option.
37670         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37671         to describe code model.
37673 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
37675         PR target/64479
37676         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37678 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
37680         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37681         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37682         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37683         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37684         __builtin_sh_set_fpscr.
37686 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37688         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37689         after a funtion name just to indicate it is a function.
37690         ([-fsanitize-undefined-trap-on-error]): Likewise.
37691         ([-fdbg-cnt=]): Likewise.
37692         ([-mmemcpy]): Likewise.
37693         ([-mflush-func]): Likewise.
37694         ([-msynci]): Likewise.
37696 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
37698         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37699         example.
37701 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
37703         PR tree-optimization/64563
37704         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37705         instead of != VR_VARYING.
37707         PR target/64513
37708         * config/i386/i386.c (ix86_expand_prologue): Add
37709         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37711         PR tree-optimization/64454
37712         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37713         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37714         for signed or [0, op1 - 1] for unsigned modulo.
37715         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37716         even if op1 does not satisfy integer_pow2p.
37718         PR other/64370
37719         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37721 2015-01-12  Jeff Law  <law@redhat.com>
37723         PR target/64461
37724         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37725         (trunchiqi2, truncsihi2): Similarly.
37727         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37728         rather than calling F.
37730 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37732         * tsan.c (instrument_expr): Use force_gimple_operand.
37733         Use may_be_nonaddressable_p instead of is_gimple_addressable.
37735 2015-01-12  Richard Biener  <rguenther@suse.de>
37737         PR tree-optimization/64530
37738         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37739         back dr1.
37741 2015-01-12  Richard Biener  <rguenther@suse.de>
37743         PR middle-end/64357
37744         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37745         latches properly.
37747 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37749         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37750         Cortex-A17 tuning parameters.
37751         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37753 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37755         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37756         * config/arm/arm.c (arm_macro_fusion_p): New function.
37757         (arm_macro_fusion_pair_p): Likewise.
37758         (TARGET_SCHED_MACRO_FUSION_P): Define.
37759         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37760         (ARM_FUSE_NOTHING): Likewise.
37761         (ARM_FUSE_MOVW_MOVT): Likewise.
37762         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37763         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37764         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37765         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37766         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37767         arm_cortex_a5_tune): Specify fuseable_ops value.
37769 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
37771         PR bootstrap/64561
37772         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37773         test for PIE with copy reloc.
37774         * configure: Regenerated.
37776 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37778         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37779         in gen_rtx_REG.
37780         (arm_tls_descseq_addr): Likewise.
37781         (arm_gen_movmemqi): Likewise.
37782         (arm_expand_epilogue_apcs_frame): Likewise.
37783         (arm_expand_epilogue): Likewise.
37784         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
37785         in gen_rtx_REG.
37787 2015-01-12  Martin Liska  <mliska@suse.cz>
37789         PR ipa/64550
37790         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37791         volatility for correct operands.
37793 2015-01-12  Martin Liska  <mliska@suse.cz>
37795         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37796         indication that a function is not leaf.
37797         (sem_function::compare_polymorphic_p): Likewise.
37799 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
37801         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37802         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37803         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37804         fold-const.h, tree-check.h.
37806 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
37808         PR ipa/63967
37809         PR ipa/64425
37810         * ipa-inline.c (compute_uninlined_call_time,
37811         compute_inlined_call_time): Use counts for extra precision when
37812         needed possible.
37813         (big_speedup_p): Fix formating.
37814         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37815         (relative_time_benefit): Remove.
37816         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37817         merge guessed and read profile paths.
37818         (inline_small_functions): Count only !optimize_size functions into
37819         initial size; be more lax about sanity check when profile is used;
37820         be sure to update inlined function profile when profile is read.
37822 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
37824         PR ipa/63470
37825         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37826         cost when edge becomes direct.
37827         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37828         is resolved or when introducing new speculation.
37830 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
37832         PR ipa/64551
37833         PR ipa/64552
37834         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37835         '||' to fix typo issue.
37837         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37838         accept and return NULL.
37840 2015-01-12  Martin Liska  <mliska@suse.cz>
37842         * cgraph.c (cgraph_edge::remove_callee): Move function to header
37843         file for being inlined.
37844         (cgraph_set_edge_callee): Delete.
37845         (cgraph_edge::redirect_callee): Move function to header file
37846         for being inlined.
37847         (cgraph_edge::make_direct): Use new function.
37848         (cgraph_edge::dump_edge_flags): New function created from
37849         static dump_edge_flags function.
37850         (cgraph_node::dump): Use new function.
37851         (cgraph_edge::verify_count_and_frequency): New function created
37852         from verify_edge_count_and_frequency.
37853         (cgraph_edge::verify_corresponds_to_fndecl): New function created
37854         from verify_edge_corresponds_to_fndecl.
37855         (verify_edge_corresponds_to_fndecl): Delete.
37856         (cgraph_node::verify_node): Use new function.
37857         * cgraph.h (cgraph_edge::set_callee): New function.
37858         (cgraph_edge::dump_edge_flags): Likewise.
37859         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37861 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
37863         * ipa-utils.c (estimate_function_body_sizes): Do not
37864         free node params when called late with early=true.
37866 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
37868         * doc/md.texi (Instruction Patterns): Rewrite text for
37869         clarity.
37870         (Example): Likewise.
37872 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
37874         * doc/invoke.texi (Option Summary): Break long lines.
37875         [(-fdiagnostics-color)]: Put long literal in @smallexample
37876         instead of inline.
37877         [(-fsanitize-recover)]: Likewise.
37878         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37879         [(-ffast-math)]: Likewise.
37880         [(--param max-inline-insns-recursive)]: Likewise.
37881         [(--param max-inline-recursive-depth)]: Likewise.
37882         [(-mno-text-section-literals)]: Likewise.
37884 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
37886         * doc/install.texi: Update for libgomp being renamed from "GNU
37887         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37888         Runtime Library".
37889         * doc/sourcebuild.texi: Likewise.
37891 2015-01-10  Anthony Green  <green@moxielogic.com>
37893         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37894         mul.x availability for moxiebox configuration.
37896 2015-01-09  Anthony Green  <green@moxielogic.com>
37898         * config/moxie/moxie.md: Tabify assembly output.
37900 2015-01-09  Anthony Green  <green@moxielogic.com>
37902         * config/moxie/moxie.md (CC_REG): Correct register definition.
37904 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
37906         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37907         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
37908         of log files.
37910 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37912         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37914 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
37915             Jakub Jelinek  <jakub@redhat.com>
37917         PR middle-end/64412
37918         * lto-streamer.h (lto_stream_offload_p): New declaration.
37919         * lto-streamer.c (lto_stream_offload_p): New variable.
37920         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37921         at the same time as section_name_prefix.
37922         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37923         if lto_stream_offload_p.
37924         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37925         stream TREE_TARGET_OPTION if lto_stream_offload_p.
37926         (write_ts_function_decl_tree_pointers): Don't
37927         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37928         * tree-streamer-in.c (unpack_value_fields): Don't stream
37929         TREE_TARGET_OPTION in if ACCEL_COMPILER.
37930         (lto_input_ts_function_decl_tree_pointers): Don't stream
37931         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37932         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37933         instead of section_name_prefix string comparisons.
37935 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
37937         PR rtl-optimization/64536
37938         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37939         tablejumps.
37941 2015-01-09  Michael Collison  <michael.collison@linaro.org>
37943         PR tree-optimization/64322
37944         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37945         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37947 2015-01-09  Tom de Vries  <tom@codesourcery.com>
37949         PR rtl-optimization/64539
37950         * regcprop.c (kill_clobbered_values): Factor out of ...
37951         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
37952         instead of note_stores with kill_clobbered_value.
37954 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37956          * ginclude/unwind-arm-common.h: Revert previous commit.
37958 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
37960         * config.gcc (arm*-*-freebsd*): New configuration.
37961         * config/arm/freebsd.h: New file.
37962         * config.host: Add extra components for arm*-*-freebsd*.
37963         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37964         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37966 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37968         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37969         for -mcpu=e6500.
37970         * config/rs6000/t-rtems: Add e6500 multilibs.
37972 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37974         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37975         MPC8540.
37977 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37979         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37980         MULTILIB_EXCEPTIONS.
37982 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37984         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37985         MULTILIB_EXCEPTIONS.
37987 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
37989         * config/arm/t-rtems-eabi: Rename to...
37990         * config/arm/t-rtems: ...this.
37991         * config/arm/rtems-eabi.h: Rename to...
37992         * config/arm/rtems.h: ...this.
37993         * config.gcc (arm*-*-rtems*): Reflect changes above.
37995 2015-01-09  Richard Biener  <rguenther@suse.de>
37997         PR tree-optimization/64410
37998         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37999         on the LHS.
38000         (execute_update_addresses_taken): Deal with that.
38001         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38002         loads/stores for complex variables.
38004 2015-01-09  Martin Liska  <mliska@suse.cz>
38006         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38007         name comparison.
38008         (func_checker::compare_memory_operand): New function.
38009         (func_checker::compare_operand): Split case to newly
38010         added functions.
38011         (func_checker::compare_cst_or_decl): New function.
38012         (func_checker::compare_gimple_call): Identify
38013         memory operands.
38014         (func_checker::compare_gimple_assign): Likewise.
38015         * ipa-icf-gimple.h: New function.
38017 2015-01-09  Martin Liska  <mliska@suse.cz>
38019         PR ipa/64503
38020         * sreal.c (sreal::dump): Change unsigned format to signed for
38021         m_exp value.
38022         (sreal::to_double): Replace exp2 with scalbln.
38024 2015-01-09  Martin Liska  <mliska@suse.cz>
38026         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38027         * ipa-icf.c (sem_function::equals_private): Add support for target and
38028         (sem_item_optimizer::merge_classes): Remove redundant function
38029         optimization flags comparison.
38030         * tree.h (target_opts_for_fn): New function.
38032 2015-01-09  Tom de Vries  <tom@codesourcery.com>
38034         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38036 2015-01-09  Kito Cheng  <kito@0xlab.org>
38038         PR rtl-optimization/64348
38039         * lra-constraints.c (split_reg): Fix caller-save store/restore
38040         instruction generation.
38042 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
38044         PR gcov-profile/61790
38045         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38046         long long.  Fallback to int64_t if host doesn't have long long and
38047         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
38049 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38051         PR tree-optimization/63989
38052         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38053         from 1000 to 10000.
38054         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38055         (get_stridx): If we don't have a record for certain SSA_NAME,
38056         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38057         constant offset, call get_stridx_plus_constant.
38058         (get_stridx_plus_constant): New function.
38059         (zero_length_string): Don't use get_stridx here.
38061         PR target/55023
38062         PR middle-end/64388
38063         * dse.c (struct insn_info): Mention frame_read set also
38064         before reload for tail calls on some targets.
38065         (scan_insn): Revert 2014-12-22 change.  Set frame_read
38066         also before reload for tail calls if
38067         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
38068         instead of add_non_frame_wild_read for non-const/memset
38069         tail calls after reload.
38071 2015-01-08  Jason Merrill  <jason@redhat.com>
38073         * ubsan.c (do_ubsan_in_current_function): New.
38074         (pass_ubsan::gate): Use it.
38075         * ubsan.h: Declare it.
38076         * convert.c (convert_to_integer): Use it.
38078 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38080         PR target/64338
38081         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38082         compare_code when it is unconditionally overwritten afterwards.
38083         Use ix86_reverse_condition instead of reverse_condition.  Don't
38084         change code if *reverse_condition* returned UNKNOWN and don't
38085         swap ct/cf and negate diff in that case.
38087 2015-01-08  Mike Stump  <mikestump@comcast.net>
38089         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38090         (pass_tsan_O0::gate): Likewise.
38091         * extend.texi (Function Attributes): Add no_sanitize_thread
38092         documentation.
38094 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
38096         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38097         for registering builtins.
38098         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38099         add -fopenmp to the argv_obstack used when invoking
38100         compile_for_target.
38102         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38103         add "-m32" or "-m64" to argv_obstack.
38104         (generate_host_descr_file): Likewise, when invoking host_compiler.
38105         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38106         ld.
38108 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
38110         * config/sh/sh-mem.cc: Use constant as second operand when emitting
38111         tstsi_t insns.
38113 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
38115         PR target/55212
38116         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38117         constant load if constant operand fits into I08.
38119 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
38121         PR sanitizer/64336
38122         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38123         and TREE_THIS_VOLATILE for MEM_REFs.
38124         (build5_stat): Fix up initialization of TREE_READONLY and
38125         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38127 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
38129         PR target/64533
38130         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38131         of r for the second alternative of the destination operand.
38133 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
38135         PR target/36557
38136         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38138 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
38140         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38141         keywords.
38142         ([-fivar-visibility], [-fvisibility]): Likewise.
38144 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
38146         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38147         the file where @code, @command, etc is more appropriate.
38149 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
38151         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38152         of -mrecip= documentation.
38154 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
38156         PR target/64505
38157         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38158         correct reload handler if -m32 -mpowerpc64 is used.
38160 2015-01-06  Tom de Vries  <tom@codesourcery.com>
38162         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38164 2015-01-08  Christian Bruel  <christian.bruel@st.com>
38166         PR target/64507
38167         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38169 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38171         PR tree-optimization/63259
38172         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38173         if optab exists for 16bit byteswap.
38175 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
38177         * opts.c (common_handle_option): Add support for
38178         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38179         * doc/invoke.texi: Document -fno-sanitize=all,
38180         -f{,no-}sanitize-recover=all.  Document that
38181         -fsanitize=float-cast-overflow is not enabled
38182         by -fsanitize=undefined.  Fix up documentation
38183         of -f{,no-}sanitize-recover.
38185 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
38187         * config.gcc: Add Visium support.
38188         * configure.ac: Likewise.
38189         * configure: Regenerate.
38190         * doc/extend.texi (interrupt attribute): Add Visium.
38191         * doc/invoke.texi: Document Visium options.
38192         * doc/install.texi: Document Visium target.
38193         * doc/md.texi: Document Visium constraints.
38194         * common/config/visium: New directory.
38195         * config/visium: Likewise.
38197 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
38199         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38200         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38202 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
38204         * combine.c (combine_validate_cost): Do not count the cost of a
38205         split I2 twice.  Do not display it twice in the dump, either.
38207 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
38209         Revert parts of r219199.
38210         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38211         <inttypes.h>.
38212         ([-Wtraditional]): Restore markup on <limits.h>.
38214 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
38216         PR c++/31397
38217         * doc/invoke.texi: Document -Wsuggest-override.
38219 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
38221         PR rtl-optimization/64287
38222         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38223         (process_options): Disable flag_ipa_ra if profiling.
38225 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38227         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38229 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
38231         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38232         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38233         put under #if TARGET_LOOPS guard.
38235 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
38237         * config/i386/i386.c (output_387_binary_op): Use std::swap.
38239 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
38241         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38242         * rtl.h (refers_to_regno_p): Add overload.
38243         * cse.c: Use it.
38244         * bt-load.c: Likewise.
38245         * combine.c: Likewise.
38246         * df-scan.c: Likewise.
38247         * sched-deps.c: Likewise.
38248         * config/s390/s390.c: Likewise.
38249         * config/m32r/m32r.c: Likewise.
38250         * config/rs6000/spe.md: Likewise.
38251         * config/rs6000/rs6000.c: Likewise.
38252         * config/pa/pa.c: Likewise.
38253         * config/stormy16/stormy16.c: Likewise.
38254         * config/cris/cris.c: Likewise.
38255         * config/arc/arc.md: Likewise.
38256         * config/arc/arc.c: Likewise.
38257         * config/sh/sh.md: Likewise.
38258         * config/sh/sh.c: Likewise.
38259         * config/frv/frv.c: Likewise.
38261 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38263         PR sanitizer/64265
38264         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38265         call as cleanup of the whole body.
38266         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38267         * tsan.c (replace_func_exit): New function.
38268         (instrument_func_exit): Moved earlier.
38269         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38270         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38271         been found.
38272         (tsan_pass): Don't call instrument_func_exit.
38273         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38274         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38275         inlining.
38277         PR sanitizer/64344
38278         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38279         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38280         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
38281         if the result is integer_zerop, return NULL_TREE.
38282         * convert.c (convert_to_integer): Pass expr as ARG.
38284         PR tree-optimization/64465
38285         * tree-inline.c (redirect_all_calls): During inlining
38286         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38287         changed the stmt to a non-throwing call.
38289 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
38291         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38292         etc markup throughout the file.
38294 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38296         Enable experimental TSAN support for Ada.
38297         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38299 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38301         PR tree-optimization/64494
38302         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38303         clear SSA_NAME_ANTI_RANGE_P flag.
38305 2015-01-05  Marek Polacek  <polacek@redhat.com>
38307         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38309 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
38311         Update copyright years.
38313         * gcc.c (process_command): Update copyright notice dates.
38314         * gcov-dump.c: Ditto.
38315         * gcov.c: Ditto.
38316         * doc/cpp.texi: Bump @copying's copyright year.
38317         * doc/cppinternals.texi: Ditto.
38318         * doc/gcc.texi: Ditto.
38319         * doc/gccint.texi: Ditto.
38320         * doc/gcov.texi: Ditto.
38321         * doc/install.texi: Ditto.
38322         * doc/invoke.texi: Ditto.
38324         * auto-profile.c, auto-profile.h: Fix up Copyright line.
38326 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
38328         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38329         verb tense, etc.
38330         ([-fvtable-verify], [-fvtv-debug]): Likewise.
38331         ([-Wabi]): Likewise.
38332         ([-fmessage-length]): Likewise.
38333         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38334         ([-Wno-discarded-qualifiers]): Likewise.
38335         ([-Wnodiscarded-array-qualifiers]): Likewise.
38336         ([-Wno-virtual-move-assign]): Likewise.
38337         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38338         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38339         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38340         ([-fsanitize-undefined-trap-on-error]): Likewise.
38341         ([-floop-interchange]): Likewise.
38342         ([-ftree-coalesce-inlined-vars]): Likewise.
38343         ([-fvect-cost-model]): Likewise.
38344         ([-flto]): Likewise.
38345         ([--param]): Likewise.
38346         (Spec Files): Likewise.
38347         ([-mstrict-align]): Likewise.
38348         ([-mfix-cortex-a53-835769]): Likewise.
38349         ([-march], [-mtune]): Likewise.
38350         ([-mpic-register]): Likewise.
38351         ([-munaligned-access]): Likewise.
38352         ([-msp8]): Likewise.
38353         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38354         (AVR Built-in Macros): Likewise.
38355         ([-mpreferred-stack-boundary]): Likewise.
38356         ([-mtune-crtl]): Likewise.
38357         ([-mashf]): Likewise.
38358         ([-mmcu=]): Likewise.
38359         ([-minrt]): Likewise.
38360         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38361         ([-mupper-regs]): Likewise.
38362         ([-matomic-model]): Likewise.
38363         ([-mdiv]): Likewise.
38364         ([-mzdcbranch]): Likewise.
38365         ([-mdisable-callt]): Likewise.
38366         ([-msoft-float]): Likewise.
38367         ([-m8byte-align]): Likewise.
38368         ([-fstack-reuse]): Likewise.
38370 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38372         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38373         Fix markup, light copy-editing.
38374         ([-fauto-profile]): Rewrite to fix formatting and content
38375         problems.
38377 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38379         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38380         Copy-edit description.
38381         ([-fisolate-erroneous-paths-attribute]): Likewise.
38382         * common.opt (fisolate-erroneous-paths-dereference):
38383         Copy-edit description.
38384         (fisolate-erroneous-paths-attribute): Likewise.
38386 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38388         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38389         tidy grammar.
38391 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
38393         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38394         ([-fvtv-debug]): Likewise.
38395         ([-Wc++-compat]): Likewise.
38396         ([-Wc++11-compat]): Likewise.
38397         ([-Wc++14-compat]): Likewise.
38398         ([-Wno-sized-deallocation]): Likewise.
38399         ([-femit-class-debug-always]): Likewise.
38400         ([-femit-struct-debug-detailed]): Likewise.
38401         ([-fno-keep-inline-dllexport]): Likewise.
38402         ([-fira-algorithm]): Likewise.
38403         ([-fira-region]): Likewise.
38404         ([-flra-remat]): Likewise.
38405         ([-fipa-ra]): Likewise.
38406         ([-fhoist-adjacent-loads]): Likewise.
38407         ([-fisolate-erroneous-paths-dereference]): Likewise.
38408         ([-fisolate-erroneous-paths-attribute]): Likewise.
38409         ([-ftree-switch-conversion]): Likewise.
38410         ([-ftree-tail-merge]): Likewise.
38411         ([-ftree-loop-if-convert]): Likewise.
38412         ([-ftree-loop-if-convert-stores]): Likewise.
38413         ([-ftree-loop-distribution]): Likewise.
38414         ([-ftree-loop-distribute-patterns]): Likewise.
38415         ([-flto-compression-level]): Likewise.
38416         ([-flto-report]): Likewise.
38417         ([-flto-report-wpa]): Likewise.
38418         ([-fuse-linker-plugin]): Likewise.
38419         ([-mfix-cortex-a53-835769]): Likewise.
38420         ([-mno-fix-cortex-a53-835769]): Likewise.
38421         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38422         explicit listing; add a note to the discussion indicating they
38423         exist.  Reorder table to group similar options.  Add missing
38424         @opindex entries.  Add @need commands throughout the table to
38425         allow it to be split across multiple pages.
38426         ([-m8bit-idiv]): Fix @opindex.
38427         ([-mavx256-split-unaligned-load]): Likewise.
38428         ([-mavx256-split-unaligned-store]): Likewise.
38429         ([-mstack-protector-guard]): Likewise.
38430         ([-mcpu=]): Likewise.
38431         ([-mcpu]): Likewise.
38432         ([-mpointer-size=]): Likewise.
38434 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
38436         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38437         instead of `m' constraint.  Likewise for unnamed movb comparison
38438         patterns using reg_before_reload_operand predicate.
38439         * config/pa/predicates.md (reg_before_reload_operand): Tighten
38440         predicate to reject register index and LO_SUM DLT memory forms
38441         after reload.
38443 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38445         * doc/invoke.texi (Option Summary): Fix spelling of
38446         -fdevirtualize-at-ltrans.
38447         ([-fdevirtualize]): Fix markup.
38448         ([-fdevirtualize-speculatively]): Fix typo.
38449         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
38450         implementor-speaky.
38451         * common.opt (fdevirtualize-at-ltrans): Likewise.
38452         * ipa-devirt.c: Fix typos in comments throughout the file.
38453         (ipa_devirt): Fix typos in format strings for dump output.
38455 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
38457         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38458         discussion of defaults, light copy-editing.
38460 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38462         * tsan.c (instrument_expr): corrected previous checkin.
38464 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38466         Instrument bit field and unaligned accesses for TSAN.
38467         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38468         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38469         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38470         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38471         unaligned memory regions.
38473 2015-01-01  Anthony Green  <green@moxielogic.com>
38475         * config/moxie/predicates.md (moxie_general_movsrc_operand):
38476         Restrict move source register offsets to 16 bits.
38478 Copyright (C) 2015 Free Software Foundation, Inc.
38480 Copying and distribution of this file, with or without modification,
38481 are permitted in any medium without royalty provided the copyright
38482 notice and this notice are preserved.