1 2015-11-13 Martin Liska <mliska@suse.cz>
4 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
5 Replace ctor with auto_vec and initialization in a loop.
7 2015-11-13 Richard Biener <rguenther@suse.de>
9 PR tree-optimization/68306
10 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
11 loop related checks ...
12 (vect_verify_datarefs_alignment): ... here.
13 (vect_slp_analyze_and_verify_node_alignment): Compute and
14 verify alignment of the single DR that it matters.
15 * tree-vect-stmts.c (vectorizable_store): Add an assert.
16 (vectorizable_load): Add a comment.
17 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
18 for determining load cost.
20 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
22 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
23 mix of boolean and integer vectors in a single statement.
24 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
25 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
26 determine constant type.
27 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
30 2015-11-13 Alan Hayward <alan.hayward@arm.com>
32 PR tree-optimization/66558
33 * tree-vect-loop.c (is_integer_induction):Add.
34 (vectorizable_reduction): Add integer induction checks.
36 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
38 Revert [ARM] Remove neon-testgen.ml and generated tests.
40 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
42 [ARM] Remove neon-testgen.ml and generated tests.
44 * config/arm/neon-testgen.ml: Remove.
46 2015-11-13 Richard Biener <rguenther@suse.de>
48 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
49 Signal fatal failure if early checks fail.
50 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
51 do not bother testing further vector sizes.
53 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
55 * config/i386/predicates.md (misaligned_operand): Return true if
56 operand is aligned to less than its natural alignmnet.
58 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
60 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
61 (vec_cmpu@var{m}@var{n}): New item.
62 (vcond@var{m}@var{n}): Specify comparison is signed.
63 (vcondu@var{m}@var{n}): New item.
64 (vcond_mask_@var{m}@var{n}): New item.
65 (maskload@var{m}@var{n}): New item.
66 (maskstore@var{m}@var{n}): New item.
68 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
70 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
71 types of stored value and storage are compatible.
73 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
75 * gcc.c (POST_LINK_SPEC): Define if not already defined.
76 (LINK_COMMAND_SPEC): Use post_link.
77 (post_link_spec): New, initialize to POST_LINK_SPEC.
78 (post_link): Initialize new static spec.
79 * doc/tm.texi.in (POST_LINK_SPEC): Document.
80 * doc/tm.texi: Regenerated.
82 2015-11-13 David Malcolm <dmalcolm@redhat.com>
85 * Makefile.in (GCC_OBJS): Add spellcheck.o.
86 (OBJS): Add spellcheck-tree.o.
87 * gcc.c: Include "spellcheck.h".
88 (suggest_option): New function.
89 (driver::handle_unrecognized_options): Call suggest_option to
90 provide a hint about misspelled options.
91 * spellcheck.c: Update file comment.
92 (levenshtein_distance): Convert 4-param implementation from static
93 to extern scope. Remove note about unit tests from leading
94 comment for const char * implementation. Move tree
96 * spellcheck-tree.c: New file.
97 * spellcheck.h (levenshtein_distance): Add 4-param decl.
99 2015-11-13 David Malcolm <dmalcolm@redhat.com>
101 * Makefile.in (OBJS): Add spellcheck.o.
102 * spellcheck.c: New file.
103 * spellcheck.h: New file.
105 2015-11-13 James Bowman <james.bowman@ftdichip.com>
107 * config/ft32/ft32.md (*sne): New insn pattern.
109 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
111 * gcc/cprop.c (is_too_expensive): Remove.
113 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
115 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
116 * gcc/gcse.c (is_too_expensive): Rename to ...
117 (gcse_or_cprop_is_too_expensive): ... this.
118 Expand warning to add required size of max-gcse-memory.
119 (one_pre_gcse_pass): Use it.
120 (one_code_hoisting_pass): Use it.
121 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
123 2015-11-12 James Norris <jnorris@codesourcery.com>
124 Joseph Myers <joseph@codesourcery.com>
126 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
127 GF_OMP_TARGET_KIND_OACC_DECLARE.
128 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
129 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
130 * gimplify.c (oacc_declare_returns): New.
131 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
132 (device_resident_p): New function.
133 (oacc_default_clause): Handle device_resident clause.
134 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
135 (gimplify_expr): Handle OACC_DECLARE.
136 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
137 * omp-low.c (expand_omp_target): Handle
138 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
139 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
140 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
141 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
142 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
143 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
144 GOMP_MAP_DEVICE_RESIDENT.
146 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
148 [ARM] Remove neon-testgen.ml and generated tests.
150 * config/arm/neon-testgen.ml: Remove.
152 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
154 * config/aarch64/aarch64-cores.def (qdf24xx): New.
155 * config/aarch64/aarch64-tune.md: Regenerated.
156 * config/arm/arm-cores.def (qdf24xx): New.
157 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
158 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
159 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
160 (ARM Options/-mtune); Likewise.
162 2015-11-12 Martin Liska <mliska@suse.cz>
164 * config/i386/i386.c (ix86_valid_target_attribute_p):
165 Finalize options at the of the function.
166 * gcc.c (driver_get_configure_time_options): Call newly
167 introduced init_opts_obstack.
168 * lto-wrapper.c (main): Likewise.
169 * opts.c (init_opts_obstack): New function.
170 (init_options_struct): Call newly
171 introduced init_opts_obstack.
172 * opts.h (init_options_struct): Declare.
174 2015-11-12 Martin Liska <mliska@suse.cz>
177 * ipa-icf.c (void sem_item::set_hash): New function.
178 (sem_function::get_hash): Use renamed m_hash member variable.
179 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
180 (sem_item::update_hash_by_local_refs): Likewise.
181 (sem_variable::get_hash): Use renamed m_hash member variable.
182 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
183 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
184 (sem_item_optimizer::build_graph): As the hash value of an item
185 is lazy initialized, force the calculation.
186 * ipa-icf.h (set_hash): Declare new function and rename hash member
189 2015-11-12 Richard Biener <rguenther@suse.de>
191 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
192 Rename to vect_slp_analyze_instance_dependence.
193 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
194 Remove WAR special-case.
195 (vect_slp_analyze_node_dependences): Instead add more specific
196 code here, not relying on other instances being vectorized.
197 (vect_slp_analyze_instance_dependence): Adjust accordingly.
198 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
199 vertical space in dump files.
200 (vect_print_slp_tree): Likewise.
201 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
202 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
203 not vectorized stmts until after dependence analysis removed
204 instances. Merge alignment and dependence checks.
205 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
208 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
210 * config/aarch64/aarch64-protos.h (tune_params): Add new members
211 "max_case_values" and "cache_line_size".
212 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
214 (aarch64_override_options_internal): Tune heuristics based on new
215 members in "tune_params".
216 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
218 2015-11-12 Richard Biener <rguenther@suse.de>
220 PR tree-optimization/68306
221 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
222 relevant and vectorizable checks here.
223 (vect_verify_datarefs_alignment): Add relevant check here.
225 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
227 * gimplify.c (oacc_default_clause): New.
228 (omp_notice_variable): Call it.
230 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
232 PR tree-optimization/68305
233 * tree-vect-slp.c (vect_get_constant_vectors): Support
234 COND_EXPR with SSA_NAME as a condition.
236 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
238 * config/visium/visium-protos.h (notice_update_cc): Delete.
239 (print_operand): Likewise.
240 (print_operand_address): Likewise.
242 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
244 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
245 FUNCTION_VALUE_REGNO_P): Remove.
246 * config/alpha/alpha-protos.h (function_value): Remove.
247 * config/alpha/alpha.c (function_value): Rename to...
248 (alpha_function_value_1): ... this. Make static.
249 (alpha_function_value, alpha_libcall_value,
250 alpha_function_value_regno_p): New functions.
251 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
252 TARGET_FUNCTION_VALUE_REGNO_P): Define.
254 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
256 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
257 * config/alpha/alpha.c (alpha_memory_latency): Make static.
258 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
259 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
261 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
264 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
265 assertion on the CFA register.
267 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
269 * expr.c (do_store_flag): Expand vector comparison as
270 VEC_COND_EXPR if vector comparison is not supported
273 2015-11-12 Renlin Li <renlin.li@arm.com>
275 * config/arm/arm.md (addsi3_compare_op2): Make the order of
276 assembly pattern consistent with constraint order.
278 2015-11-12 Tom de Vries <tom@codesourcery.com>
280 * gen-pass-instances.awk (handle_line): Simplify match regexp.
282 2015-11-12 Tom de Vries <tom@codesourcery.com>
284 * gen-pass-instances.awk (handle_line): Simplify init of
287 2015-11-12 Tom de Vries <tom@codesourcery.com>
289 * gen-pass-instances.awk (handle_line): Rename var where to
292 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
294 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
295 do not expand to rtl.
297 2015-11-12 Richard Biener <rguenther@suse.de>
299 PR tree-optimization/58497
300 * tree-vect-generic.c: Include gimplify.h.
301 (tree_vec_extract): Lookup constant/constructor DEFs.
302 (do_cond): Unshare cond.
304 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
306 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
307 combined insn if the alignment of vector mode memory operand
308 is less than ssememalign.
310 2015-11-12 Tom de Vries <tom@codesourcery.com>
312 * gen-pass-instances.awk (handle_line): Print parentheses and
313 pass_name explicitly.
315 2015-11-12 Tom de Vries <tom@codesourcery.com>
317 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
320 2015-11-12 Tom de Vries <tom@codesourcery.com>
322 * gen-pass-instances.awk (handle_line): Add comments.
324 2015-11-12 Tom de Vries <tom@codesourcery.com>
326 * gen-pass-instances.awk (handle_line): Rename len_of_end to
329 2015-11-12 Tom de Vries <tom@codesourcery.com>
331 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
333 2015-11-12 Tom de Vries <tom@codesourcery.com>
335 * gen-pass-instances.awk (handle_line): Restructure using early-out.
337 2015-11-12 Tom de Vries <tom@codesourcery.com>
339 * gen-pass-instances.awk (handle_line): Unify semicolon use.
341 2015-11-12 Tom de Vries <tom@codesourcery.com>
343 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
345 2015-11-12 Tom de Vries <tom@codesourcery.com>
347 * gen-pass-instances.awk: Add emacs indent setting.
349 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
351 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
353 Move Convert A/(B/C) to (A/B)*C to match.pd.
354 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
355 Move Optimize (X & (-A)) / A where A is a power of 2, to
356 X >> log2(A) to match.pd.
358 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
359 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
360 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
362 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
364 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
366 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
368 (neon_vst2_lane<mode>): Likewise.
369 (neon_vld3_lane<mode>): Likewise.
370 (neon_vst3_lane<mode>): Likewise.
371 (neon_vld4_lane<mode>): Likewise.
372 (neon_vst4_lane<mode>): Likewise.
374 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
375 Sebastian Pop <s.pop@samsung.com>
377 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
378 New member codegen_error
379 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
381 (translate_isl_ast_node_user): Early return in case of error.
382 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
383 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
384 (add_parameters_to_ivs_params): Remove macro.
385 (graphite_regenerate_ast_isl): Add if_region pointer to region.
386 * graphite-poly.c (new_poly_dr): Remove macro.
388 (new_gimple_poly_bb): Same.
389 (free_gimple_poly_bb): Same.
390 (print_scop_params): Same.
391 * graphite-poly.h (struct poly_dr): Same.
392 (struct poly_bb): Add new_bb.
393 (gbb_from_bb): Remove dead code.
395 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
396 (parameter_index_in_region): Same.
397 (find_scop_parameters): Same.
398 (build_cross_bb_scalars_def): New.
399 (build_cross_bb_scalars_use): New.
400 (graphite_find_cross_bb_scalar_vars): New
401 (try_generate_gimple_bb): Reads and Writes.
402 (build_alias_set): Move.
403 (gather_bbs::before_dom_children): Gather bbs visited.
404 (build_scops): call build_alias_set.
405 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
406 (remove_simple_copy_phi): Delete.
407 (remove_invariant_phi): Delete.
408 (simple_copy_phi_p): Delete.
409 (reduction_phi_p): Delete.
410 (isl_id_for_dr): Remove unused param.
411 (parameter_index_in_region_1): Remove macro usage.
412 (set_scop_parameter_dim): Same.
413 (add_param_constraints): Same.
414 (add_conditions_to_constraints): Same
415 (build_scop_iteration_domain): Same.
416 (pdr_add_alias_set): Comment.
417 (add_scalar_version_numbers): New.
418 (build_poly_dr): ISL id.
419 (build_scop_drs): Move.
420 (build_poly_sr_1): Same.
421 (insert_stmts): Remove.
422 (build_poly_sr): New.
423 (new_pbb_from_pbb): Delete.
424 (insert_out_of_ssa_copy_on_edge): Delete.
425 (create_zero_dim_array): Delete.
426 (scalar_close_phi_node_p): Delete.
427 (propagate_expr_outside_region): Delete.
428 (rewrite_close_phi_out_of_ssa): Delete.
429 (rewrite_phi_out_of_ssa): Delete.
430 (rewrite_degenerate_phi): Delete.
431 (rewrite_reductions_out_of_ssa): Delete.
432 (rewrite_cross_bb_scalar_dependence): Delete.
433 (handle_scalar_deps_crossing_scop_limits):
434 (rewrite_cross_bb_scalar_deps): Delete.
435 (build_poly_scop): Remove calls to out-of-ssa functions.
436 * graphite.c (graphite_transform_loops): Early return in case of
438 * sese.c (debug_rename_map_1): Delete.
439 (debug_rename_map): Delete.
440 (sese_record_loop): Remove macro.
441 (build_sese_loop_nests): Same.
442 (new_sese_info): Same.
443 (free_sese_info): Same.
444 (sese_insert_phis_for_liveouts):
445 (is_loop_closed_ssa_use): New.
446 (number_of_phi_nodes): New.
447 (bb_contains_loop_close_phi_nodes): New.
448 (bb_contains_loop_phi_nodes): New.
449 (phi_uses_name): New.
451 (get_rename): Add old_bb and loop_phi for more precise matching of
453 (set_rename): Pass region.
454 (later_of_the_two): New.
455 (gsi_insert_earliest): New.
456 (collect_all_ssa_names): New.
457 (substitute_ssa_name): New.
458 (rename_all_uses): New.
459 (get_rename_from_scev): New.
460 (rename_uses): Pass old_bb for more precise matching of exprs.
461 (get_def_bb_for_const): New.
465 (copy_loop_phi_args): New.
466 (copy_loop_phi_nodes): New.
467 (get_loop_init_value): New.
468 (find_init_value): New.
469 (find_init_value_close_phi): New.
470 (copy_loop_close_phi_args): New.
471 (copy_loop_close_phi_nodes): New.
472 (add_phi_arg_for_new_expr): New.
473 (copy_cond_phi_args): New.
474 (copy_cond_phi_nodes): New.
475 (copy_phi_nodes): New.
476 (should_copy_to_new_region): New.
477 (set_rename_for_each_def): New.
478 (graphite_copy_stmts_from_block): Early return in case of error.
479 (copy_bb_and_scalar_dependences): Same.
480 * sese.h (vec_find): New.
481 (SESE_PARAMS): Delete.
482 (SESE_LOOPS): Delete.
483 (SESE_LOOP_NEST): Delete.
484 (sese_contains_loop): Remove macro usage.
485 (sese_nb_params): Same.
486 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
488 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
490 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
491 isl_union_map_add_map on every pbb->schedule.
493 2015-11-11 Tom de Vries <tom@codesourcery.com>
495 * tree-parloops.c (create_parallel_loop): Return void.
497 2015-11-11 Tom de Vries <tom@codesourcery.com>
499 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
500 block only when needed.
502 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
504 * config/alpha/alpha-protos.h (print_operand): Remove.
505 (print_operand_address): Remove.
506 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
507 (PRINT_OPERAND_ADDRESS): Remove.
508 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
509 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
510 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
511 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
512 (print_operand_address): Rename to...
513 (alpha_print_operand_address): ...this and make static.
514 (print_operand): Rename to...
515 (alpha_print_operand): ...this and make static.
516 (alpha_print_operand_punct_valid_p): New static function.
518 2015-11-11 Richard Biener <rguenther@suse.de>
520 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
522 (vect_analyze_data_refs_alignment): Make loop vect specific.
523 (vect_verify_datarefs_alignment): Likewise.
524 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
525 Add missing continue.
526 (vect_compute_data_ref_alignment): Export.
527 (vect_compute_data_refs_alignment): Merge into...
528 (vect_analyze_data_refs_alignment): ... this.
529 (verify_data_ref_alignment): Split out from ...
530 (vect_verify_datarefs_alignment): ... here.
531 (vect_slp_analyze_and_verify_node_alignment): New function.
532 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
533 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
534 misplaced checks on alignment.
535 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
536 alignment analysis after SLP discovery and do it per instance.
537 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
538 bother to re-try using different vector sizes.
540 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
541 Cesar Philippidis <cesar@codesourcery.com>
543 * gimplify.c (enum omp_region_type): Add ORT_ACC,
544 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
545 (gimple_add_tmp_var): Add ORT_ACC checks.
546 (gimplify_var_or_parm_decl): Likewise.
547 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
549 (omp_add_variable): Look in outer contexts for openacc and allow
550 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
552 (omp_notice_variable, omp_is_private, omp_check_private): Add
554 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
555 Permit private openacc reductions.
556 (gimplify_oacc_cache): Specify ORT_ACC.
557 (gimplify_omp_workshare): Adjust OpenACC region types.
558 (gimplify_omp_target_update): Likewise.
559 * omp-low.c (scan_sharing_clauses): Remove Openacc
561 (lower-rec_input_clauses): Don't handle openacc firstprivate
563 (lower_omp_target): Emit initializers for openacc firstprivate vars.
565 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
568 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
569 frame pointer for stack checking if non-call exceptions aren't used.
570 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
572 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
574 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
577 2015-11-11 Martin Liska <mliska@suse.cz>
578 Richard Biener <rguenther@suse.de>
580 PR rtl-optimization/68287
581 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
584 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
586 * config/mips/mips.c (mips_breakable_sequence_p): New function.
587 (mips_break_sequence): New function.
588 (mips_reorg_process_insns): Use them. Use compact branches in selected
591 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
593 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
595 2015-11-11 Jiong Wang <jiong.wang@arm.com>
596 Jim Wilson <wilson@gcc.gnu.org>
599 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
600 be true and eliminable registers mentioned.
602 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
604 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
606 * config/arc/arc-opts.h: Add ARCv2 CPUs.
607 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
608 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
609 situation, and store instructions with large offsets.
610 (arc_secondary_reload_conv): New function.
611 (arc_init): Add ARCv2 options.
612 (arc_conditional_register_usage): Select the proper register usage
613 for ARCv2 processors.
614 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
616 (arc_compute_function_type): Likewise.
617 (arc_print_operand): Handle new ARCv2 punctuation characters.
618 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
620 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
622 (arc_reorg, arc_hazard): Use it.
623 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
625 (ASM_SPEC): Add ARCv2 options.
626 (TARGET_NORM): ARC HS has norm instructions by default.
627 (TARGET_OPTFPE): Use optimized floating point emulation for ARC
629 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
630 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
632 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
634 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
635 (TARGET_LP_WR_INTERLOCK): Likewise.
637 (commutative_binary_mult_comparison_result_used, movsicc_insn)
638 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
639 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
640 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
642 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
643 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
644 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
645 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
646 (extzvsi): New pattern.
647 * config/arc/arc.opt: New ARCv2 options.
648 * config/arc/arcEM.md: New file.
649 * config/arc/arcHS.md: Likewise.
650 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
652 (Cm2): A signed 9-bit integer constant constraint.
653 (C62): An unsigned 6-bit integer constant constraint.
654 (C16): A signed 16-bit integer constant constraint.
655 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
656 (short_const_int_operand): New predicate.
657 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
658 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
659 -mcode-density and -mdiv-rem.
661 2015-11-11 Julia Koval <julia.koval@intel.com>
663 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
665 2015-11-11 Julia Koval <julia.koval@intel.com>
667 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
669 2015-11-11 Martin Liska <mliska@suse.cz>
671 * gimple-ssa-strength-reduction.c (create_phi_basis):
673 * passes.c (release_dump_file_name): New function.
674 (pass_init_dump_file): Used from this function.
675 (pass_fini_dump_file): Likewise.
676 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
677 * var-tracking.c (vt_initialize): Use pool_allocator.
679 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
680 Jiong Wang <jiong.wang@arm.com>
682 PR tree-optimization/68234
683 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
684 node which estimiated to be VR_VARYING initially.
686 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
688 * regname.c (scan_rtx_reg): Check the matching number of consecutive
689 registers when tying chains.
690 (build_def_use): Move terminated_this_insn earlier in the function.
692 2015-11-10 Mike Frysinger <vapier@gentoo.org>
694 * configure.ac: Use = with test and not ==.
695 * configure: Regenerated.
697 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
699 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
700 machine asserts. Update defines for 64 bit.
702 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
705 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
707 (neon_vst1_lane<mode>): Likewise.
708 (neon_vld2_lane<mode>): Likewise.
709 (neon_vst2_lane<mode>): Likewise.
710 (neon_vld3_lane<mode>): Likewise.
711 (neon_vst3_lane<mode>): Likewise.
712 (neon_vld4_lane<mode>): Likewise.
713 (neon_vst4_lane<mode>): Likewise.
715 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
718 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
719 qualifier_struct_load_store_lane_index.
720 (arm_storestruct_lane_qualifiers) Likewise.
721 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
723 (neon_vst1_lane<mode>) Likewise.
724 (neon_vld2_lane<mode>) Likewise.
725 (neon_vst2_lane<mode>) Likewise.
726 (neon_vld3_lane<mode>) Likewise.
727 (neon_vst3_lane<mode>) Likewise.
728 (neon_vld4_lane<mode>) Likewise.
729 (neon_vst4_lane<mode>) Likewise.
731 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
734 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
735 qualifier_struct_load_store_lane_index.
736 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
737 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
739 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
740 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
742 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
744 * config/nvptx/nvptx.opt (moptimize): New flag.
745 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
747 (nvptx_optimize_inner): New.
748 (nvptx_process_pars): Call it when optimizing.
749 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
751 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
753 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
754 Remove redundant code.
756 2015-11-10 Jeff Law <law@redhat.com>
758 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
759 call to output_address.
760 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
761 Add unnamed machine_mode argument.
763 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
765 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
768 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
770 * config/i386/i386.md (*movabs<mode>_1): Add explicit
771 size directives for -masm=intel.
772 (*movabs<mode>_2): Ditto.
774 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
776 * config/i386/i386.c (ix86_print_operand): Remove dead code that
777 tried to avoid (%rip) for call operands.
779 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
781 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
782 argument. Do not use RIP relative addressing when no_rip is set.
783 (ix86_print_operand): Update call to ix86_print_operand_address_as.
784 (ix86_print_operand_address): Ditto.
785 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
786 absolute movabs operand 0. Add square braces for -masm=intel.
787 (*movabs<mode>_2): Ditto for operand 1.
789 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
791 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
792 combine_vcvtf2i pattern.
794 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
796 * config/arm/arm.c (neon_valid_immediate): Remove integer
797 CONST_DOUBLE handling. It should never occur.
799 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
801 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
802 (ATOMIC_LDOP): Likewise.
803 (atomic_ldop): Likewise.
804 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
805 (ATOMIC_LDOP): Likewise.
806 (atomic_ldop): Likewise.
808 2015-11-10 Martin Liska <mliska@suse.cz>
810 * alloc-pool.h (allocate_raw): New function.
811 (operator new (size_t, object_allocator<T> &a)): Use the
812 function instead of object_allocator::allocate).
814 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
816 * config/i386/sse.md (HALFMASKMODE): New attribute.
817 (DOUBLEMASKMODE): New attribute.
818 (vec_pack_trunc_qi): New.
819 (vec_pack_trunc_<mode>): New.
820 (vec_unpacks_lo_hi): New.
821 (vec_unpacks_lo_si): New.
822 (vec_unpacks_lo_di): New.
823 (vec_unpacks_hi_hi): New.
824 (vec_unpacks_hi_<mode>): New.
826 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
828 * optabs.c (expand_binop_directly): Allow scalar mode for
829 vec_pack_trunc_optab.
830 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
831 boolean vector producers from pattern sequence when computing VF.
832 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
833 vect_recog_mask_conversion_pattern.
834 (search_type_for_mask): Choose the smallest
835 type if different size types are mixed.
836 (build_mask_conversion): New.
837 (vect_recog_mask_conversion_pattern): New.
838 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
839 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
841 (vectorizable_conversion): Support boolean vectors.
842 (free_stmt_vec_info): Allow patterns for statements with no lhs.
843 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
845 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
847 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
848 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
849 Cast mask to FP mode if required.
850 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
851 (vcond_mask_<mode><avx512fmaskmodelower>): New.
852 (vcond_mask_<mode><sseintvecmodelower>): New.
853 (vcond_mask_<mode><sseintvecmodelower>): New.
854 (vcond_mask_v2div2di): New.
855 (vcond_mask_<mode><sseintvecmodelower>): New.
856 (vcond_mask_<mode><sseintvecmodelower>): New.
858 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
860 * optabs-query.h (get_vcond_mask_icode): New.
861 * optabs-tree.c (expand_vec_cond_expr_p): Use
862 get_vcond_mask_icode for VEC_COND_EXPR with mask.
863 * optabs.c (expand_vec_cond_mask_expr): New.
864 (expand_vec_cond_expr): Use get_vcond_mask_icode
866 * optabs.def (vcond_mask_optab): New.
867 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
868 generate redundant comparison for COND_EXPR.
869 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
871 (vectorizable_condition): Likewise.
872 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
873 cond_exp with no embedded comparison.
874 (vect_build_slp_tree_1): Likewise.
876 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
878 * config/i386/sse.md (maskload<mode>): Rename to ...
879 (maskload<mode><sseintvecmodelower>): ... this.
880 (maskstore<mode>): Rename to ...
881 (maskstore<mode><sseintvecmodelower>): ... this.
882 (maskload<mode><avx512fmaskmodelower>): New.
883 (maskstore<mode><avx512fmaskmodelower>): New.
885 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
887 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
888 (expand_MASK_STORE): Adjust to maskstore optab changes.
889 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
890 Adjust to maskload, maskstore optab changes.
891 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
892 * optabs.def (maskload_optab): Transform into convert optab.
893 (maskstore_optab): Likewise.
894 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
895 can_vec_mask_load_store_p signature change.
896 (predicate_mem_writes): Use boolean mask.
897 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
898 can_vec_mask_load_store_p signature change. Allow invariant masks.
899 (vectorizable_operation): Ignore type precision for boolean vectors.
901 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
903 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
904 (const_vector_mask_from_tree): New.
905 (const_vector_from_tree): Use const_vector_mask_from_tree
907 * optabs-query.h (get_vec_cmp_icode): New.
908 * optabs-tree.c (expand_vec_cmp_expr_p): New.
909 * optabs-tree.h (expand_vec_cmp_expr_p): New.
910 * optabs.c (vector_compare_rtx): Add OPNO arg.
911 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
912 (expand_vec_cmp_expr): New.
913 * optabs.def (vec_cmp_optab): New.
914 (vec_cmpu_optab): New.
915 * optabs.h (expand_vec_cmp_expr): New.
916 * tree-vect-generic.c (expand_vector_comparison): Add vector
917 comparison optabs check.
918 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
919 operations for VF. Add mask type computation.
920 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
921 (vectorizable_comparison): New.
922 (vect_analyze_stmt): Add vectorizable_comparison.
923 (vect_transform_stmt): Likewise.
924 (vect_init_vector): Support boolean vector invariants.
925 (vect_get_vec_def_for_operand): Add VECTYPE arg.
926 (vectorizable_condition): Directly provide vectype for invariants
928 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
929 (enum vect_var_kind): Add vect_mask_var.
930 (enum stmt_vec_info_type): Add comparison_vec_info_type.
931 (vectorizable_comparison): New.
932 (vect_get_vec_def_for_operand): Add VECTYPE arg.
933 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
934 (vect_create_destination_var): Likewise.
935 * tree-vect-patterns.c (check_bool_pattern): Check fails
936 if we can vectorize comparison directly.
937 (search_type_for_mask): New.
938 (vect_recog_bool_pattern): Support cases when bool pattern
940 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
941 comparison statements.
942 (vect_get_constant_vectors): Support boolean vector
944 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
945 (ix86_expand_int_vec_cmp): New.
946 (ix86_expand_fp_vec_cmp): New.
947 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
948 op_true and op_false.
949 (ix86_int_cmp_code_to_pcmp_immediate): New.
950 (ix86_fp_cmp_code_to_pcmp_immediate): New.
951 (ix86_cmp_code_to_pcmp_immediate): New.
952 (ix86_expand_mask_vec_cmp): New.
953 (ix86_expand_fp_vec_cmp): New.
954 (ix86_expand_int_sse_cmp): New.
955 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
956 (ix86_expand_int_vec_cmp): New.
957 (ix86_get_mask_mode): New.
958 (TARGET_VECTORIZE_GET_MASK_MODE): New.
959 * config/i386/sse.md (avx512fmaskmodelower): New.
960 (vec_cmp<mode><avx512fmaskmodelower>): New.
961 (vec_cmp<mode><sseintvecmodelower>): New.
962 (vec_cmpv2div2di): New.
963 (vec_cmpu<mode><avx512fmaskmodelower>): New.
964 (vec_cmpu<mode><sseintvecmodelower>): New.
965 (vec_cmpuv2div2di): New.
967 2015-11-10 Richard Biener <rguenther@suse.de>
969 PR tree-optimization/68240
970 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
972 (visit_phi): For PHIs with just a single executable edge
973 take its value directly.
974 (expressions_equal_p): Handle VN_TOP properly.
976 2015-11-10 Richard Biener <rguenther@suse.de>
978 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
979 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
982 2015-11-10 Richard Biener <rguenther@suse.de>
984 PR tree-optimization/56118
985 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
986 cost favor vectorized version.
988 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
990 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
991 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
992 (neg_not_op): New code attribute.
994 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
996 * ifcvt.c (noce_try_inverse_constants): New function.
997 (noce_process_if_block): Call it.
998 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
999 * optabs.def (negcc_optab, notcc_optab): Declare.
1000 * optabs.c (emit_conditional_neg_or_complement): New function.
1001 * doc/tm.texi (Standard Names): Document negcc, notcc names.
1003 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1005 PR rtl-optimization/68236
1006 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
1007 if insn_queue doesn't exist.
1008 (haifa_sched_finish): Reset insn_queue to NULL.
1010 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
1012 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
1013 (build_def_use): Initialize terminated_this_insn.
1014 (find_best_rename_reg): Pick and check register from the tied chain.
1015 (regrename_do_replace): Mark head as renamed.
1016 (struct du_head *terminated_this_insn). New static variable.
1017 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
1018 * regrename.h (struct du_head): Add tied_chain, renamed members.
1020 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1023 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
1026 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1029 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
1030 not promote the mode for aggregate types.
1032 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1034 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
1035 * omp-low.c (build_oacc_routine_dims): New.
1037 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1039 * config/rs6000/constraints.md (wF constraint): New constraints
1040 for power9/toc fusion.
1041 (wG constraint): Likewise.
1043 * config/rs6000/predicates.md (u6bit_cint_operand): New
1044 predicate, recognize 0..63.
1045 (upper16_cint_operand): New predicate for power9 and toc fusion.
1046 (fpr_reg_operand): Likewise.
1047 (toc_fusion_or_p9_reg_operand): Likewise.
1048 (toc_fusion_mem_raw): Likewise.
1049 (toc_fusion_mem_wrapped): Likewise.
1050 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
1052 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
1054 (fusion_addis_mem_combo_load): Add support for power9 fusion of
1055 floating point loads, floating point stores, and gpr stores.
1056 (fusion_addis_mem_combo_store): Likewise.
1057 (fusion_offsettable_mem_operand): Likewise.
1059 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
1061 (emit_fusion_load_store): Likewise.
1062 (fusion_p9_p): Likewise.
1063 (expand_fusion_p9_load): Likewise.
1064 (expand_fusion_p9_store): Likewise.
1065 (emit_fusion_p9_load): Likewise.
1066 (emit_fusion_p9_store): Likewise.
1067 (fusion_wrap_memory_address): Likewise.
1069 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
1070 elements for power9 fusion.
1071 (rs6000_debug_print_mode): Rework debug information to print more
1072 information about fusion.
1073 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
1075 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
1076 offsettable memory address.
1077 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
1078 (emit_fusion_gpr_load): Move most of the code from
1079 emit_fusion_gpr_load into emit_fusion-addis that handles both
1080 power8 and power9 fusion.
1081 (emit_fusion_addis): Likewise.
1082 (emit_fusion_load_store): Likewise.
1083 (fusion_wrap_memory_address): Add support for TOC fusion.
1084 (fusion_split_address): Likewise.
1085 (fusion_p9_p): Add support for power9 fusion.
1086 (expand_fusion_p9_load): Likewise.
1087 (expand_fusion_p9_store): Likewise.
1088 (emit_fusion_p9_load): Likewise.
1089 (emit_fusion_p9_store): Likewise.
1091 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
1092 new instructions in ISA 3.0.
1093 (TARGET_CTZ): Likewise.
1094 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
1095 (TARGET_TOC_FUSION_FP): Likewise.
1097 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
1099 (UNSPEC_FUSION_ADDIS): Likewise.
1100 (QHSI mode iterator): New iterator for power9 fusion.
1101 (GPR_FUSION): Likewise.
1102 (FPR_FUSION): Likewise.
1103 (mod<mode>3): Add support for ISA 3.0
1104 modulus instructions.
1105 (umod<mode>3): Likewise.
1106 (divmod peephole): Likewise.
1107 (udivmod peephole): Likewise.
1108 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
1110 (ctz<mode>2_h): Likewise.
1111 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
1112 (ashdi3_extswsli_dot): Likewise.
1113 (ashdi3_extswsli_dot2): Likewise.
1114 (power9 fusion splitter): New power9/toc fusion support.
1115 (toc_fusionload_<mode>): Likewise.
1116 (toc_fusionload_di): Likewise.
1117 (fusion_gpr_load_<mode>): Update predicate function.
1118 (power9 fusion peephole2s): New power9/toc fusion support.
1119 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1120 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
1121 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1122 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1123 (fusion_p9_<mode>_constant): Likewise.
1125 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
1127 * optabs.c (prepare_libcall_arg): New function.
1128 (expand_fixed_convert): Add call to prepare_libcall_arg.
1130 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
1132 * sched-int.h (dump_rgn_dependencies_dot): Declare
1133 * sched-rgn.c (dump_rgn_dependencies_dot): New function
1134 * print-rtl.h (print_insn): Add prototype
1136 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
1137 * common.opt (-fsched-verbose): Set default value to 1.
1138 * invoke.texi (-fsched-verbose): Update the option's description.
1140 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1142 * config/visium/visium.h (PRINT_OPERAND): Delete.
1143 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1144 (PRINT_OPERAND_ADDRESS): Likewise.
1145 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
1147 (visium_print_operand_punct_valid_p): ...this. New function.
1148 (TARGET_PRINT_OPERAND): Define to...
1149 (print_operand): Rename to...
1150 (visium_print_operand): ...this.
1151 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
1152 (visium_output_address): Rename to...
1153 (visium_print_operand_address): ...this.
1154 (print_operand_address): Delete.
1156 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1159 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1160 Check that the type of the first operand is an aggregate type.
1162 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1164 * omp-low.c: Fix some OpenACC comment typos.
1165 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1166 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1167 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1169 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
1171 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1173 2015-11-09 Jeff Law <law@redhat.com>
1175 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1176 being in gimple/ssa form. Remove redundant check for SSA_NAME.
1179 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1180 Peter Bergner <bergner@vnet.ibm.com>
1182 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1184 (-mpower9-vector): Likewise.
1185 (-mpower9-dform): Likewise.
1186 (-mpower9-minmax): Likewise.
1187 (-mtoc-fusion): Likewise.
1188 (-mmodulo): Likewise.
1189 (-mfloat128-hardware): Likewise.
1191 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1192 mask for ISA 3.0 (power9).
1193 (POWERPC_MASKS): Add new ISA 3.0 switches.
1194 (power9 cpu): Add power9 cpu.
1196 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
1198 (ASM_CPU_SPEC): Likewise.
1199 (EXTRA_SPECS): Likewise.
1201 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1204 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
1206 (rs6000_debug_reg_global): Add support for power9 fusion.
1207 (rs6000_setup_reg_addr_masks): Cache mode size.
1208 (rs6000_option_override_internal): Until real power9 tuning is
1209 added, use -mtune=power8 for -mcpu=power9.
1210 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1211 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1212 of Altivec registers.
1213 (rs6000_option_override_internal): Add support for ISA 3.0
1215 (rs6000_loop_align): Add support for power9 cpu.
1216 (rs6000_file_start): Likewise.
1217 (rs6000_adjust_cost): Likewise.
1218 (rs6000_issue_rate): Likewise.
1219 (insn_must_be_first_in_group): Likewise.
1220 (insn_must_be_last_in_group): Likewise.
1221 (force_new_group): Likewise.
1222 (rs6000_register_move_cost): Likewise.
1223 (rs6000_opt_masks): Likewise.
1225 * config/rs6000/rs6000.md (cpu attribute): Add power9.
1226 * config/rs6000/rs6000-tables.opt: Regenerate.
1228 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1229 _ARCH_PWR9 if power9 support is available.
1231 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1232 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1234 * configure.ac: Determine if the assembler supports the ISA 3.0
1236 * config.in (HAVE_AS_POWER9): Likewise.
1237 * configure: Regenerate.
1239 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1242 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1244 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1245 Remove integer CONST_DOUBLE handling. It should never occur.
1247 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1250 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1251 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1252 Delete VOIDmode case. Assert that mode is not VOIDmode.
1253 * config/aarch64/predicates.md (const0_operand): Remove const_double
1256 2015-11-09 Martin Liska <mliska@suse.cz>
1258 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1259 body_info release function.
1260 * ipa-prop.c (ipa_release_body_info): New function.
1261 (ipa_analyze_node): Call the function.
1262 (ipa_node_params::~ipa_node_params): Release known_csts.
1263 * ipa-prop.h (ipa_release_body_info): Declare.
1265 2015-11-09 Martin Liska <mliska@suse.cz>
1267 * gcc.c (record_temp_file): Release name string.
1268 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1270 * lra-lives.c (free_live_range_list): Utilize
1271 lra_live_range_pool for allocation and deallocation.
1272 (create_live_range): Likewise.
1273 (copy_live_range): Likewise.
1274 (lra_merge_live_ranges): Likewise.
1275 (remove_some_program_points_and_update_live_ranges): Likewise.
1276 (lra_create_live_ranges_1): Release point_freq_vec that can
1277 be not freed from previous iteration of the function.
1278 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1280 * tree-sra.c (sra_deinitialize): Release all vectors in
1282 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1283 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1284 Release edge_info for a removed edge.
1285 (thread_through_all_blocks): Free region vector.
1286 * tree-ssa.h (free_dom_edge_info): Declare function extern.
1288 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
1290 * optabs.c (expand_vec_cond_expr): Always get sign from type.
1291 * tree.c (wide_int_to_tree): Support negative values for boolean.
1292 (build_nonstandard_boolean_type): Use signed type for booleans.
1294 2015-11-09 Richard Biener <rguenther@suse.de>
1296 PR tree-optimization/68248
1297 * tree-vect-generic.c (expand_vector_operations_1): Handle
1300 2015-11-09 Richard Biener <rguenther@suse.de>
1302 PR tree-optimization/56118
1303 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1304 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1305 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1307 (vect_slp_analyze_data_ref_dependences): Instead of computing
1308 all dependences of the region DRs just analyze the code motions
1309 SLP vectorization will perform. Remove SLP instances that
1310 cannot have their store/load motions applied.
1311 (vect_analyze_data_refs): Allow DRs without a vectype
1312 in BB vectorization.
1314 2015-11-09 Julian Brown <julian@codesourcery.com>
1316 * final.c (output_asm_insn): Pass VOIDmode to output_address.
1317 (output_address): Add MODE argument. Pass to print_operand_address
1319 * targhooks.c (default_print_operand_address): Add MODE argument.
1320 * targhooks.h (default_print_operand_address): Update prototype.
1321 * output.h (output_address): Update prototype.
1322 * target.def (print_operand_address): Add MODE argument.
1323 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1325 (print_operand): Pass access mode to output_address.
1326 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1328 (mcore_print_operand): Update calls to mcore_print_operand_address.
1329 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1331 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1333 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1335 (tilegx_print_operand): Don't set above global. Update calls to
1337 (tilegx_print_operand_address): Add MODE argument. Use instead of
1338 output_memory_reference_mode global.
1339 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1340 (frv_print_operand): Pass mode to frv_print_operand_address calls.
1341 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1343 * config/cris/cris.c (cris_print_operand_address): Add MODE
1345 (cris_print_operand): Pass mode to output_address calls.
1346 * config/spu/spu.c (print_operand): Pass mode to output_address
1348 * config/aarch64/aarch64.h (aarch64_print_operand)
1349 (aarch64_print_operand_address): Remove prototypes.
1350 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1352 (aarch64_print_operand): Make static. Update calls to
1354 (aarch64_print_operand_address): Add MODE argument. Use instead of
1355 aarch64_memory_reference_mode global.
1356 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1358 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1359 Delete macro definitions.
1360 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1362 * config/xtensa/xtensa.c (print_operand): Pass mode in
1363 output_address calls.
1364 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1366 (h83000_print_operand): Update calls to h8300_print_operand_address
1368 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1370 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1372 (tilepro_print_operand): Pass mode to output_address.
1373 (tilepro_print_operand_address): Add MODE argument. Use instead of
1374 output_memory_reference_mode.
1375 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1376 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1377 to output_address calls.
1378 (nvptx_print_operand_address): Add MODE argument.
1379 * config/alpha/alpha.c (print_operand): Pass mode argument in
1380 output_address calls.
1381 * config/m68k/m68k.c (print_operand): Pass mode argument in
1382 output_address call.
1383 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1384 (avr_print_operand): Update calls to avr_print_operand_address.
1385 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1386 argument. Update calls to output_address.
1387 (sparc_print_operand): Pass mode to output_address.
1388 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1390 (iq2000_print_operand): Pass mode in output_address calls.
1391 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1393 (xstormy16_print_operand): Pass mode to
1394 xstormy16_print_operand_address calls.
1395 * config/mips/mips.c (mips_print_operand): Update calls to
1397 (mips_print_operand_address): Add MODE argument.
1398 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1400 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1401 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1403 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1404 (rx_print_operand): Update calls to output_address,
1405 rx_print_operand_address.
1406 * config/nds32/nds32.c (nds32_print_operand): Update calls to
1408 (nds32_print_operand_address): Add MODE argument.
1409 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1410 output_address calls.
1411 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1412 output_address call.
1413 (c6x_print_address_operand): Update calls to output_address.
1414 (c6x_print_operand_address): Pass mode to above.
1415 * config/v850/v850.c (v850_print_operand_address): Add MODE
1417 (v850_print_operand): Pass mode to v850_print_operand_address,
1419 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1421 (mmix_print_operand): Pass mode in output_address calls.
1422 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1423 (sh_print_operand): Pass mem mode to output_address,
1424 sh_print_operand_address.
1425 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1427 (cr16_print_operand): Pass mode to output_address,
1428 cr16_print_operand_address.
1429 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1431 * config/microblaze/microblaze.c (print_operand): Pass mode to
1433 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1435 (nios2_print_operand_address): Add MODE argument. Update call to
1436 nios2_print_operand_address.
1437 * config/s390/s390.c (print_operand): Pass mode to output_address.
1438 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1440 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1442 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1443 Use instead of output_memory_reference_mode.
1444 (output_memory_reference_mode): Delete global.
1445 (arm_print_operand): Pass mem mode to output_address.
1446 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1448 (m32r_print_operand): Pass mode to output_address.
1449 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1451 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1452 * config/i386/i386.c (ix86_print_operand): Pass mode to
1453 output_address calls.
1454 (ix86_print_operand_address): Add MODE argument.
1456 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1459 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1460 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1461 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1462 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1464 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1466 PR rtl-optimization/67749
1467 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1468 case before emitting the two blocks. Instead modify the register
1469 in the corresponding final insn of the basic block.
1471 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1473 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1476 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1478 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1479 HAVE_INITFINI_ARRAY_SUPPORT.
1480 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1483 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1484 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1485 Don't check HAVE_AS_SPARC_NOBITS.
1486 Heed SECTION_NOTYPE.
1488 * configure: Regenerate.
1489 * config.in: Regenerate.
1491 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1494 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1496 2015-11-09 Richard Henderson <rth@redhat.com>
1498 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1499 __SEG_GS, __SEG_TLS.
1500 (ix86_register_pragmas): Register address spaces __seg_fs,
1501 __seg_gs, __seg_tls.
1502 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1503 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1504 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1505 * config/i386/i386.c (ix86_decompose_address): Likewise.
1506 (ix86_legitimate_address_p): Likewise.
1507 (memory_address_length): Likewise. Check mem address space too.
1508 (ix86_print_operand): Use ix86_print_operand_address_as.
1509 (ix86_print_operand_address_as): Rename from
1510 ix86_print_operand_address, add new addr_space_t parameter.
1511 Validate that either the parameter or the ix86_address segment
1512 is default address space. Handle ADDR_SPACE_SEG_TLS.
1513 (ix86_print_operand_address): New.
1514 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1515 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1516 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1517 (ix86_addr_space_zero_address_valid): New.
1518 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1519 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1520 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1521 * config/i386/predicates.md (address_no_seg_operand): Likewise.
1522 (vsib_address_operand): Likewise.
1523 (address_mpx_no_base_operand): Likewise.
1524 (address_mpx_no_index_operand): Likewise.
1525 * doc/extend.texi (x86 Named Address Spaces): New section.
1527 * config/i386/i386.c (ix86_check_no_addr_space): New.
1528 (decide_alg): Add have_as parameter.
1529 (alg_usable_p): Likewise; disable rep algorithms if set.
1530 (ix86_expand_set_or_movmem): Notice if either MEM has a
1531 non-default address space.
1532 (ix86_expand_strlen): Likewise.
1533 * config/i386/i386.md (strmov, strset): Likewise.
1534 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1535 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1536 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1537 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1538 *cmpstrnqi_1, *strlenqi_1): Likewise.
1540 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1541 (*movabs<mode>_2): Likewise.
1543 * dwarf2out.c (modified_type_die): Pass the address space number
1544 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1545 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1546 * targhooks.c (default_addr_space_debug): New.
1547 * targhooks.h (default_addr_space_debug): Declare.
1548 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1549 * doc/tm.texi: Rebuild.
1551 * gimple.c (check_loadstore): Return false when 0 is a valid address.
1552 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1553 null when 0 is valid in the source address space.
1554 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1555 * targhooks.c (default_addr_space_zero_address_valid): New.
1556 * targhooks.h (default_addr_space_zero_address_valid): Declare.
1557 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1558 * doc/tm.texi: Rebuild.
1560 * cselib.c (add_mem_for_addr): Compare address spaces when
1562 (cselib_lookup_mem): Likewise.
1563 * fold-const.c (operand_equal_p): Check address spaces of
1564 pointer types before checking integer constants.
1567 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1568 the correct type for the base.
1570 2015-11-09 Jeff Law <law@redhat.com>
1572 * tree-into-ssa.c (names_to_release): No longer static.
1573 * tree-into-ssa.h (names_to_release): Declare.
1574 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1575 (release_free_names_and_compact_live_names): New function extracted
1576 from pass_release_ssa_names::execute.
1577 (pass_release_ssa_names::execute): Use it.
1579 2015-11-09 Alan Modra <amodra@gmail.com>
1581 * gensupport.c (add_mnemonic_string): Make len param a size_t.
1582 (gen_mnemonic_setattr): Make "size" var a size_t. Use
1583 obstack_blank_fast to shrink obstack. Cast obstack_next_free
1586 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1588 PR rtl-optimization/68182
1589 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1590 branch with only one successor just like unconditional branches.
1592 2015-11-08 Jeff Law <law@redhat.com>
1594 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1595 non-FSM path has no edges marked with EDGE_DFS_BACK.
1596 (ssa_redirect_edges): No longer call mark_loop_for_removal.
1597 (thread_single_edge, def_split_header_continue_p): Remove.
1598 (bb_ends_with_multiway_branch): Likewise.
1599 (thread_through_loop_header): Remove cases of threading from
1600 latch through the header. Simplify knowing we won't thread
1602 (thread_through_all_blocks): Simplify knowing that only the FSM
1603 threader needs to handle backedges.
1605 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1607 * doc/extend.texi (type attributes): Document scalar_storage_order.
1608 (Structure-Packing Pragmas): Rename into...
1609 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
1610 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1611 (Warnings): Document -Wno-scalar-storage-order.
1612 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1613 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1614 extract_bit_field and store_bit_field.
1615 (initialize_argument_information): Adjust call to store_expr.
1616 (load_register_parameters): Adjust call to extract_bit_field.
1617 * expmed.c (check_reverse_storage_order_support): New function.
1618 (check_reverse_float_storage_order_support): Likewise.
1619 (flip_storage_order): Likewise.
1620 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
1621 of the value if it is true. Pass REVERSE to recursive call after
1622 adjusting the target offset.
1623 Do not use extraction or movstrict instruction if REVERSE is true.
1624 Pass REVERSE to store_fixed_bit_field.
1625 (store_bit_field): Add REVERSE parameter and pass to it to above.
1626 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1627 store_split_bit_field and store_fixed_bit_field_1.
1628 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1629 order of the value if it is true and adjust the target offset.
1630 (store_split_bit_field): Add REVERSE parameter and pass it to
1631 store_fixed_bit_field. Adjust the target offset if it is true.
1632 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
1633 of the value if it is true. Pass REVERSE to recursive call after
1634 adjusting the target offset.
1635 Do not use extraction or subreg instruction if REVERSE is true.
1636 Pass REVERSE to extract_fixed_bit_field.
1637 (extract_bit_field): Add REVERSE parameter and pass to it to above.
1638 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1639 extract_split_bit_field and extract_fixed_bit_field_1.
1640 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1641 order of the value if it is true and adjust the target offset.
1642 (extract_split_bit_field): Add REVERSE parameter and pass it to
1643 extract_fixed_bit_field. Adjust the target offset if it is true.
1644 * expmed.h (flip_storage_order): Declare.
1645 (store_bit_field): Adjust prototype.
1646 (extract_bit_field): Likewise.
1647 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1648 (emit_group_store): Adjust call to store_bit_field.
1649 (copy_blkmode_from_reg): Likewise.
1650 (copy_blkmode_to_reg): Likewise.
1651 (write_complex_part): Likewise.
1652 (read_complex_part): Likewise.
1653 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
1654 that it isn't true if the target is a register.
1655 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1656 and flip the storage order of the value.
1657 <BIT_IOR_EXPR>: Flip the storage order of the value.
1658 (get_bit_range): Adjust call to get_inner_reference.
1659 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1660 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
1661 with reverse storage order.
1662 (store_expr_with_bounds): Add REVERSE parameter and pass it to
1663 recursive calls and call to store_bit_field. Force the value into a
1664 register if it is true and then flip the storage order of the value.
1665 (store_expr): Add REVERSE parameter and pass it to above.
1666 (categorize_ctor_elements_1): Adjust call to
1667 initializer_constant_valid_p.
1668 (store_constructor_field): Add REVERSE parameter and pass it to
1669 recursive calls and call to store_field.
1670 (store_constructor): Add REVERSE parameter and pass it to calls to
1671 store_constructor_field and store_expr. Set it to true for an
1672 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1673 (store_field): Add REVERSE parameter and pass it to recursive calls
1674 and calls to store_expr and store_bit_field. Temporarily flip the
1675 storage order of the value with record type and integral mode and
1676 adjust the shift if it is true.
1677 (get_inner_reference): Add PREVERSEP parameter and set it to true
1678 upon encoutering a reference with reverse storage order.
1679 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1680 (expand_constructor): Adjust call to store_constructor.
1681 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1682 of the union type to store_expr in the MEM case and assert that it
1683 isn't set in the REG case. Adjust call to store_field.
1684 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1685 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1686 get_inner_reference and extract_bit_field. Temporarily flip the
1687 storage order of the value with record type and integral mode and
1688 adjust the shift if it is true. Flip the storage order of the value
1689 at the end if it is true.
1690 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1691 get_inner_reference. Do not fetch an inner reference if it is true.
1692 * expr.h (store_expr_with_bounds): Ajust prototype.
1693 (store_expr): Likewise.
1694 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1695 REF_REVERSE_STORAGE_ORDER on the reference according to it.
1696 (optimize_bit_field_compare): Deal with reverse storage order.
1697 Adjust calls to get_inner_reference and make_bit_field_ref.
1698 (decode_field_reference): Add PREVERSEP parameter and adjust call to
1699 get_inner_reference.
1700 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
1701 to decode_field_reference and make_bit_field_ref.
1702 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1703 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1704 (fold_comparison): Adjust call to get_inner_reference.
1705 (split_address_to_core_and_offset): Adjust call to
1706 get_inner_reference.
1707 * gimple-expr.c (useless_type_conversion_p): Return false for array
1708 types with different TYPE_REVERSE_STORAGE_ORDER flag.
1709 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1710 REF_REVERSE_STORAGE_ORDER flag.
1711 * lto-streamer-out.c (hash_tree): Deal with
1712 TYPE_REVERSE_STORAGE_ORDER.
1713 * output.h (assemble_real): Adjust prototype.
1714 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1715 * stor-layout.c (finish_record_layout): Propagate the
1716 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1717 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1718 (TYPE_SATURATING): Adjust.
1719 (REF_REVERSE_STORAGE_ORDER): Document.
1720 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1721 set it to true upon encoutering a reference with reverse storage
1723 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1724 * tree-inline.c (remap_gimple_op_r): Propagate the
1725 REF_REVERSE_STORAGE_ORDER flag.
1726 (copy_tree_body_r): Likewise.
1727 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1729 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1730 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1731 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1732 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1733 REF_REVERSE_STORAGE_ORDER flag.
1734 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1735 (gimple_canonical_types_compatible_p): Likewise.
1736 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1737 (TYPE_SATURATING): Adjust.
1738 (REF_REVERSE_STORAGE_ORDER): New flag.
1739 (reverse_storage_order_for_component_p): New inline predicate.
1740 (storage_order_barrier_p): Likewise.
1741 (get_inner_reference): Adjust prototype.
1742 * varasm.c: Include expmed.h.
1743 (assemble_variable_contents): Adjust call to output_constant.
1744 (assemble_real): Add REVERSE parameter. Flip the storage
1745 order of the value if REVERSE is true.
1746 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1747 (assemble_constant_contents): Adjust call to output_constant.
1748 (output_constant_pool_2): Adjust call to assemble_real.
1749 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1750 TYPE_REVERSE_STORAGE_ORDER.
1751 (initializer_constant_valid_p): Add REVERSE parameter.
1752 (output_constant): Add REVERSE parameter.
1753 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1754 <REAL_TYPE>: Adjust call to assemble_real.
1755 <COMPLEX_TYPE>: Pass it to recursive calls.
1756 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
1757 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
1758 (struct oc_local_state): Add REVERSE field.
1759 (output_constructor_array_range): Adjust calls to output_constant.
1760 (output_constructor_regular_field): Likewise.
1761 (output_constructor_bitfield): Adjust call to output_constructor.
1762 Flip the storage order of the value if REVERSE is true.
1763 (output_constructor): Add REVERSE parameter. Set it to true for an
1764 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
1765 output_constructor_bitfield.
1766 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1767 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1768 * builtins.c (get_object_alignment_2): Likewise.
1769 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1770 and get_ref_base_and_extent.
1771 * dbxout.c (dbxout_expand_expr): Likewise.
1772 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1773 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1774 (loc_list_from_tree): Likewise.
1775 (fortran_common): Likewise.
1776 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1777 get_ref_base_and_extent.
1778 (get_base_constructor): Likewise.
1779 (fold_const_aggregate_ref_1): Likewise.
1780 * gimple-laddress.c (pass_laddress::execute): Adjust call to
1781 get_inner_reference.
1782 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1783 get_inner_reference and bail out on reverse storage order.
1784 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1785 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1786 build_ref_for_offset.
1787 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1788 get_ref_base_and_extent.
1789 (ipa_polymorphic_call_context): Likewise.
1790 (extr_type_from_vtbl_ptr_store): Likewise.
1791 (check_stmt_for_type_change): Likewise.
1792 (get_dynamic_type): Likewise.
1793 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1794 get_ref_base_and_extent.
1795 (compute_complex_assign_jump_func): Likewise.
1796 (get_ancestor_addr_info): Likewise.
1797 (compute_known_type_jump_func): Likewise.
1798 (determine_known_aggregate_parts): Likewise.
1799 (ipa_get_adjustment_candidate): Likewise.
1800 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1802 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1803 (build_ref_for_offset): Adjust prototype.
1804 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1805 get_inner_reference.
1806 * tree-affine.c (tree_to_aff_combination): Adjust call to
1807 get_inner_reference.
1808 (get_inner_reference_aff): Likewise.
1809 * tree-data-ref.c (split_constant_offset_1): Likewise.
1810 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
1811 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1812 get_inner_reference.
1813 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1814 (dump_access): Print new fields.
1815 (create_access): Adjust call to get_ref_base_and_extent and set the
1816 REVERSE flag according to the result.
1817 (completely_scalarize_record): Set the REVERSE flag.
1818 (scalarize_elem): Add REVERSE parameter.
1819 (build_access_from_expr_1): Preserve storage order barriers.
1820 (build_accesses_from_assign): Likewise.
1821 (build_ref_for_offset): Add REVERSE parameter and set the
1822 REF_REVERSE_STORAGE_ORDER flag accordingly.
1823 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1824 the REF_REVERSE_STORAGE_ORDER flag if there are components.
1825 (analyze_access_subtree): Likewise.
1826 (create_artificial_child_access): Set the REVERSE flag.
1827 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1828 (turn_representatives_into_adjustments): Propagate REVERSE flag.
1829 (ipa_sra_check_caller): Adjust call to get_inner_reference.
1830 * tree-ssa-alias.c (ao_ref_base): Adjust call to
1831 get_ref_base_and_extent.
1832 (aliasing_component_refs_p): Likewise.
1833 (stmt_kills_ref_p_1): Likewise.
1834 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1835 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1836 Return true if reverse storage order.
1837 <BIT_FIELD_REF>: Likewise.
1838 <COMPONENT_REF>: Likewise.
1839 <ARRAY_REF>: Likewise.
1840 <ARRAY_RANGE_REF>: Likewise.
1841 (split_address_cost): Likewise. Bail out if reverse storage order.
1842 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1843 get_inner_reference. Bail out if reverse storage order.
1844 (bswap_replace): Adjust call to get_inner_reference.
1845 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1846 the REF_REVERSE_STORAGE_ORDER flag.
1847 <BIT_FIELD_REF>: Likewise.
1848 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1850 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1851 to the REF_REVERSE_STORAGE_ORDER flag.
1852 <BIT_FIELD_REF>: Likewise.
1853 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1854 (contains_storage_order_barrier_p): New predicate.
1855 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1856 Punt on storage order barriers if necessary.
1857 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1858 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1859 call to get_ref_base_and_extent.
1860 (do_structure_copy): Likewise.
1861 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1862 get_inner_reference.
1863 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
1865 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1866 * ubsan.c (instrument_bool_enum_load): Likewise.
1867 (instrument_object_size): Likewise.
1868 * var-tracking.c (track_expr_p): Adjust call to
1869 get_ref_base_and_extent
1870 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1871 get_inner_reference.
1872 * config/s390/s390.c (s390_expand_atomic): Adjust call to
1874 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1876 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1878 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
1880 * config/sparc/sparc.opt (mfix-at697f): Add final period.
1882 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1884 PR rtl-optimization/67864
1885 * common/config/i386/i386-common.c (ix86_option_optimization_table)
1886 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1889 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1891 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1894 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1896 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1897 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1899 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1901 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1902 * internal-fn.c: Don't undef it here.
1903 * tree-core.h: Likewise.
1905 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1907 * builtins.c (fold_builtin_nan): Delete.
1908 (fold_builtin_memcmp): Remove case where both arguments are constant.
1909 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1910 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1911 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1912 * fold-const-call.c: Include fold-const.h.
1913 (host_size_t_cst_p): New function.
1914 (build_cmp_result, fold_const_builtin_nan): Likewise.
1915 (fold_const_call_1): New function, split out from...
1916 (fold_const_call): ...here (for all three interfaces). Handle
1917 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1919 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1921 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1922 (fold_builtin_1): Don't call them.
1923 * fold-const-call.c: Include tm.h.
1924 (fold_const_call_ss): New variant for integer-to-integer folds.
1925 (fold_const_call): Call it.
1927 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1929 * builtins.c (fold_builtin_classify): Move constant cases to...
1930 * fold-const-call.c (fold_const_call_ss): ...here.
1932 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1934 * builtins.h (c_getstr): Move to...
1935 * fold-const.h (c_getstr): ...here.
1936 * builtins.c (c_getstr): Move to...
1937 * fold-const.c (c_getstr): ...here.
1939 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1941 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1942 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1944 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1946 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1947 the dominance info; free it if we can't.
1948 (pass_call_cdce::execute): Don't free the dominance info here.
1950 2015-11-06 Jeff Law <law@redhat.com>
1952 * tree-ssa-threadedge.c (dummy_simplify): Remove.
1953 (thread_around_empty_blocks): Remove backedge_seen_p argument.
1954 If we thread to a backedge, then return false. Update recursive
1955 call to eliminate backedge_seen_p argument.
1956 (thread_through_normal_block): Remove backedge_seen_p argument.
1957 Remove backedge_seen_p argument from calls to
1958 thread_around_empty_blocks. Remove checks on backedge_seen_p.
1959 If we thread to a backedge, then return 0.
1960 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
1961 pass it to thread_through_normal_block or thread_through_empty_blocks.
1962 For joiner handling, if we see a backedge, do not try normal
1965 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1967 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1968 * graphite-poly.c (new_scop): Initialize original_schedule.
1969 (free_scop): Free original_schedule.
1970 * graphite-poly.h (struct scop): Add field original_schedule.
1971 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1972 (build_poly_scop): Call build_scop_original_schedule.
1974 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1976 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1977 (build_pbb_minimal_scattering_polyhedrons): New.
1978 (build_scop_scattering): Remove.
1979 (build_scop_minimal_scattering): New.
1980 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1981 (build_poly_scop): Call build_scop_minimal_scattering.
1983 2015-11-06 Jeff Law <law@redhat.com>
1985 * cfg-flags.def (IGNORE): New edge flag.
1986 * tree-vrp.c (identify_jump_threads): Mark and clear edges
1987 scheduled for removal with EDGE_IGNORE around call into
1988 jump threader. Do no thread across edges with EDGE_IGNORE,
1989 but do allow threading across those with EDGE_DFS_BACK.
1991 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
1993 * doc/md.texi (multi-alternative constraints): Don't document
1994 alternatives inherently tied to reload for the user documentation.
1996 2015-11-06 Michael Collison <michael.collison@linaro.org
1997 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2000 2015-08-01 Michael Collison <michael.collison@linaro.org
2001 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2003 * config/arm/arm.md (*arm_smin_cmp): New pattern.
2004 (*arm_umin_cmp): Likewise.
2006 2015-11-06 Jakub Jelinek <jakub@redhat.com>
2008 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
2010 * omp-low.c (check_omp_nesting_restrictions): Update for the
2011 various new OpenMP 4.5 nesting restrictions, clarified
2012 nesting glossary, closely nested region relationship clarified
2013 to mean explicit or implicit parallel regions (target/teams),
2014 use %</%> or %qs where appropriate.
2016 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2017 Sebastian Pop <s.pop@samsung.com>
2019 * graphite-scop-detection.c (loop_is_valid_scop): Call
2020 optimize_loop_nest_for_speed_p.
2022 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2023 Sebastian Pop <s.pop@samsung.com>
2025 * graphite-optimize-isl.c (optimize_isl): Call
2026 isl_options_set_schedule_maximize_band_depth.
2028 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2029 Sebastian Pop <s.pop@samsung.com>
2031 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
2032 and exit edges should not be a part of irreducible loop.
2033 (scop_detection::can_represent_loop_1): Loops should not be
2035 (scop_detection::harmful_stmt_in_region): All the basic block
2036 should belong to reducible loops.
2038 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
2040 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2041 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
2042 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
2043 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
2044 (aarch64_tbx4v8qi): Rename to...
2045 aarch64_tbx4<mode>): ... this.
2046 (aarch64_qtbl3<mode>): New pattern.
2047 (aarch64_qtbx3<mode>): New pattern.
2048 (aarch64_qtbl4<mode>): New pattern.
2049 (aarch64_qtbx4<mode>): New pattern.
2050 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
2051 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
2052 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
2053 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
2054 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
2055 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
2056 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
2057 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
2060 2015-11-06 Mike Stump <mikestump@comcast.net>
2063 * dwarf2out.c (get_full_len): Return a value based upon the actual
2064 precision needed for the value.
2065 (add_const_value_attribute): Use a maximal wide-int for
2066 CONST_WIDE_INTs, not VOIDmode.
2067 (output_die): Don't ever output NULL with printf.
2069 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
2070 BLKmode nor VOIDmode values.
2072 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2074 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
2076 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
2077 * diagnostic-core.h (warning_at_rich_loc): New declaration.
2078 (error_at_rich_loc): New declaration.
2079 (permerror_at_rich_loc): New declaration.
2080 (inform_at_rich_loc): New declaration.
2081 * diagnostic-show-locus.c (adjust_line): Delete.
2082 (struct point_state): New struct.
2083 (class colorizer): New class.
2084 (class layout_point): New class.
2085 (class layout_range): New class.
2086 (struct line_bounds): New.
2087 (class layout): New class.
2088 (colorizer::colorizer): New ctor.
2089 (colorizer::~colorizer): New dtor.
2090 (layout::layout): New ctor.
2091 (layout::print_source_line): New method.
2092 (layout::print_annotation_line): New method.
2093 (layout::get_state_at_point): New method.
2094 (layout::get_x_bound_for_row): New method.
2095 (diagnostic_show_locus): Reimplement in terms of class layout.
2096 (diagnostic_print_caret_line): Delete.
2097 * diagnostic.c (diagnostic_initialize): Replace
2098 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
2099 (diagnostic_set_info_translated): Convert param from location_t
2100 to rich_location *. Eliminate calls to set_location on the
2101 message in favor of storing the rich_location ptr there.
2102 (diagnostic_set_info): Convert param from location_t to
2104 (diagnostic_build_prefix): Break out array into...
2105 (diagnostic_kind_color): New variable.
2106 (diagnostic_get_color_for_kind): New function.
2107 (diagnostic_report_diagnostic): Colorize the option_text
2108 using the color for the severity.
2109 (diagnostic_append_note): Update for change in signature of
2110 diagnostic_set_info.
2111 (diagnostic_append_note_at_rich_loc): New function.
2112 (emit_diagnostic): Update for change in signature of
2113 diagnostic_set_info.
2115 (inform_at_rich_loc): New function.
2116 (inform_n): Update for change in signature of diagnostic_set_info.
2117 (warning): Likewise.
2118 (warning_at): Likewise.
2119 (warning_at_rich_loc): New function.
2120 (warning_n): Update for change in signature of diagnostic_set_info.
2121 (pedwarn): Likewise.
2122 (permerror): Likewise.
2123 (permerror_at_rich_loc): New function.
2124 (error): Update for change in signature of diagnostic_set_info.
2125 (error_n): Likewise.
2126 (error_at): Likewise.
2127 (error_at_rich_loc): New function.
2128 (sorry): Update for change in signature of diagnostic_set_info.
2129 (fatal_error): Likewise.
2130 (internal_error): Likewise.
2131 (internal_error_no_backtrace): Likewise.
2132 (source_range::debug): New function.
2133 * diagnostic.h (struct diagnostic_info): Eliminate field
2134 "override_column". Add field "richloc".
2135 (struct diagnostic_context): Add field "colorize_source_p".
2136 (diagnostic_override_column): Delete.
2137 (diagnostic_set_info): Convert param from location_t to
2139 (diagnostic_set_info_translated): Likewise.
2140 (diagnostic_append_note_at_rich_loc): New function.
2141 (diagnostic_num_locations): New function.
2142 (diagnostic_expand_location): Get the location from the
2144 (diagnostic_print_caret_line): Delete.
2145 (diagnostic_get_color_for_kind): New declaration.
2146 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
2147 (error_cb): Update for change in signature of "error" callback.
2148 (fatal_at): Likewise.
2149 (warning_at): Likewise.
2150 * input.c (linemap_client_expand_location_to_spelling_point): New.
2151 * pretty-print.c (text_info::set_range): New method.
2152 (text_info::get_location): New method.
2153 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2154 (struct text_info): Eliminate "locations" array in favor of
2155 "m_richloc", a rich_location *.
2156 (textinfo::set_location): Add a "caret_p" param, and reimplement
2157 in terms of a call to set_range.
2158 (textinfo::get_location): Eliminate inline implementation in favor of
2159 an out-of-line reimplementation.
2160 (textinfo::set_range): New method.
2161 * rtl-error.c (diagnostic_for_asm): Update for change in signature
2162 of diagnostic_set_info.
2163 * tree-diagnostic.c (default_tree_printer): Update for new
2164 "caret_p" param for textinfo::set_location.
2165 * tree-pretty-print.c (percent_K_format): Likewise.
2167 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2170 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2171 * config/aarch64/aarch64.c
2172 (aarch64_can_use_per_function_literal_pools_p): New.
2173 (aarch64_use_blocks_for_constant_p): Adjust declaration
2174 and use aarch64_can_use_function_literal_pools_p.
2175 (aarch64_select_rtx_section): Update.
2177 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2179 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2180 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2181 (arm_output_multireg_pop): Likewise.
2182 (output_move_double): Likewise.
2183 (output_move_quad): Likewise.
2184 (output_return_instruction): Likewise.
2185 (arm_print_operand): Remove support for %( and %. print modifiers.
2186 (arm_output_shift): Make unified asm.
2187 (arm_declare_function_name): Likewise.
2188 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2189 (ASM_APP_OFF): Adjust.
2190 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2191 (ASM_OUTPUT_REG_POP): Likewise.
2192 * config/arm/arm.md: Adjust uses of %., %(, %)
2193 * config/arm/sync.md: Likewise.
2194 * config/arm/thumb2.md: Likewise.
2195 * config/arm/ldmstm.md: Regenerate.
2196 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2197 * doc/invoke.texi (masm-unified-syntax): Update documentation.
2199 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2201 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2203 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2205 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2206 add OEP_MATCH_SIDE_EFFECTS.
2207 * fold-const.c (operand_equal_p): Update documentation; handle
2208 OEP_MATCH_SIDE_EFFECTS.
2209 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2210 OEP_MATCH_SIDE_EFFECTS.
2212 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
2213 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2215 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2216 * config/aarch64/aarch64-protos.h: Declare.
2217 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2219 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2220 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2221 code when applicable.
2222 * config/aarch64/aarch64.md: Added enum entries.
2223 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2224 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
2225 macros for assembly checks.
2226 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
2227 frsqrts and frsqrte are not emitted.
2228 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
2229 frsqrts and frsqrte are emitted.
2230 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
2232 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2236 * ipa-polymorphic-call.c
2237 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2238 issue when offset is out of range.
2239 (contains_type_p): Fix out of range check, clear dynamic flag.
2241 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
2243 * config.gcc (e6500): Fix cpu_is_64bit typo.
2245 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
2247 * tree-sra.c (completely_scalarize): Properly handle negative array
2248 indices using offset_int.
2250 2015-11-06 Richard Biener <rguenther@suse.de>
2252 * alloc-pool.h (object_allocator::allocate): Default-initialize
2255 2015-11-06 Richard Biener <rguenther@suse.de>
2257 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2258 * lra.c (init_reg_info): Truncate copy_vec instead of
2259 re-allocating a new one and leaking the old.
2260 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2262 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2263 * postreload-gcse.c (free_mem): Free modify_mem_list and
2264 canon_modify_mem_list.
2266 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
2268 PR tree-optimization/68145
2269 * tree-vect-stmts.c (vectorizable_operation): Fix
2270 determination for booleans.
2272 2015-11-06 Tom de Vries <tom@codesourcery.com>
2274 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2275 cond_jump, instead of split after last nondebug insn before cond_jump.
2276 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2279 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2282 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2283 subregs from accumulator and make sure it's a register.
2285 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
2287 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2289 (reduc_uplus_<mode>): Remove.
2290 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2291 loongson_extract_lo_<mode>.
2292 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2293 reduc_smax_<mode>, reduc_smax_<mode>, use vec
2294 loongson_extract_lo_<mode>.
2295 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2297 2015-11-06 Richard Biener <rguenther@suse.de>
2299 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2301 (vect_stmt_in_region_p): Declare.
2302 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2303 (destroy_bb_vec_info): Likewise.
2304 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2305 (vect_get_and_check_slp_defs): Likewise.
2306 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2307 (vect_slp_bb): Likewise.
2308 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2309 in terms of vect_stmt_in_region_p.
2310 (vect_pattern_recog): Iterate over the BB region.
2311 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2312 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2313 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2314 * config/i386/i386.c: Include gimple-iterator.h.
2315 * config/aarch64/aarch64.c: Likewise.
2317 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
2319 PR rtl-optimization/67753
2320 PR rtl-optimization/64164
2321 * function.c (assign_parm_setup_block): Avoid allocating a
2322 stack slot if we don't have an ABI-reserved one. Emit the
2323 copy to target_reg in the conversion seq if the copy from
2324 entry_parm is in it too. Don't use the conversion seq to copy
2325 a PARALLEL to a REG or a CONCAT.
2327 2015-11-06 Richard Biener <rguenther@suse.de>
2329 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2332 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2333 Thomas Schwinge <thomas@codesourcery.com>
2334 James Norris <jnorris@codesourcery.com>
2337 * gimplify.c (gimplify_scan_omp_clauses): Add support for
2338 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
2339 (gimplify_adjust_omp_clauses): Likewise.
2340 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2341 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2342 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2343 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2344 (omp_clause_code_name): Likewise.
2345 (walk_tree_1): Handle OMP_CLAUSE_TILE.
2346 * tree.h (OMP_TILE_LIST): New macro.
2348 2015-11-05 Martin Sebor <msebor@redhat.com>
2351 * doc/invoke.texi (-Wplacement-new): Document new option.
2353 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
2355 PR tree-optimization/65963
2356 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2357 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2359 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
2361 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2362 (noce_convert_multiple_sets): Likewise.
2363 (noce_process_if_block): Call them.
2365 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2367 * gimple-fold.c: Include omp-low.h.
2368 (fold_internal_goacc_dim): New.
2369 (gimple_fold_call): Call it.
2371 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2372 Ilya Verbin <ilya.verbin@intel.com>
2375 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2376 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2377 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2378 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2379 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2380 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2381 (struct cgraph_simd_clone_arg): Adjust comment.
2382 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2383 to GOMP_target_ext. Add num_teams and thread_limit arguments.
2384 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2385 to GOMP_target_data_ext.
2386 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2387 to GOMP_target_update_ext.
2388 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2389 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2390 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2391 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2392 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2393 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2394 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2395 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2396 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2397 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2398 * tree-core.h (enum omp_clause_schedule_kind): Add
2399 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2400 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2401 OMP_CLAUSE_SCHEDULE_LAST value.
2402 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2403 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2404 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2405 OMP_FOR_CHECK. Remove comment.
2406 * tree-pretty-print.c (dump_omp_clause): Handle
2407 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2408 Simplify. Print schedule clause modifiers.
2409 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2410 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2412 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2413 (omp_default_clause): Tweak for
2414 private/firstprivate/is_device_ptr variables on target
2415 construct and use_device_ptr on target data.
2416 (omp_check_private): Likewise.
2417 (omp_notice_variable): For references check whether what it refers
2418 to has mappable type, rather than the reference itself.
2419 (omp_is_private): Diagnose linear iteration variables on non-simd
2421 (omp_no_lastprivate): Return true only for Fortran.
2422 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2423 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2424 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2425 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2426 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
2427 lastprivate and linear when combined with distribute. Gimplify
2428 variable low-bound for array reduction. Look through
2429 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2431 (gimplify_adjust_omp_clauses_1): For implicit references to
2432 variables with reference type and when not ref to scalar or
2433 ref to pointer, map what they refer to using tofrom and
2434 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2435 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2436 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2437 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
2438 Diagnose the same var on both firstprivate and lastprivate on
2439 distribute construct.
2440 (gimplify_omp_for): Fix up handling of predetermined
2441 lastprivate or linear iter vars when combined with distribute.
2442 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2444 (gimplify_omp_workshare): Call optimize_target_teams.
2445 * omp-low.c (struct omp_region): Add sched_modifiers field.
2446 (struct omp_for_data): Likewise.
2447 (omp_any_child_fn_dumped): New variable.
2448 (extract_omp_for_data): Fill in sched_modifiers, and mask out
2449 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2451 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2452 bits of OMP_CLAUSE_SCHED_KIND.
2453 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2454 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
2455 for array section reductions.
2456 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2457 for distribute parallel for, if there are lastprivate clauses on the
2459 (lower_rec_input_clauses): Handle non-zero low-bound on array
2461 (lower_reduction_clauses): Likewise.
2462 (lower_send_clauses): Look through POINTER_PLUS_EXPR
2463 for array section reductions.
2464 (expand_parallel_call): Use nonmonotonic entrypoints for
2465 nonmonotonic: dynamic/guided.
2466 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2467 child_fn if current_function_decl has assembler name set, but child_fn
2468 does not. Dump the header and IL of the child function when not in SSA
2470 (expand_omp_target): Likewise. Pass num_teams and thread_limit
2471 arguments to BUILT_IN_GOMP_TARGET.
2472 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2473 Initialize the extra _looptemp_ clause to fd->loop.n2.
2474 (expand_omp_for): Use nonmonotonic entrypoints for
2475 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
2476 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
2477 again if we have dumped any child functions.
2478 (lower_omp_for_lastprivate): Determine the right count variable
2479 for distribute simd, or distribute parallel for{, simd}.
2480 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2481 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
2483 (simd_clone_clauses_extract): Handle variable step
2484 for references and arguments passed by reference.
2485 (simd_clone_mangle): Mangle ref/uval/val variable steps.
2486 (simd_clone_adjust_argument_types): Handle
2487 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2488 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2489 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2490 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2491 (simd_clone_linear_addend): New function.
2492 (simd_clone_adjust): Handle variable step like similarly
2493 to constant step, use simd_clone_linear_addend to determine
2494 the actual step at runtime.
2496 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2498 * target.def (goacc.dim_limit): New hook.
2499 * targhooks.h (default_goacc_dim_limit): Declare.
2500 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2501 * doc/tm.texi: Rebuilt.
2502 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2503 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2504 (default_goacc_dim_limit): New.
2505 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2506 (nvptx_goacc_dim_limit) New.
2507 (TARGET_GOACC_DIM_LIMIT): Override.
2508 * tree-vrp.c: Include omp-low.h, target.h.
2509 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2512 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2514 * tree-vect-generic.c (do_compare): Use -1 for true
2515 result instead of 1.
2517 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2519 * config/aarch64/aarch64.c
2520 (aarch64_can_use_per_function_literal_pools_p): New.
2521 (aarch64_use_blocks_for_constant_p): Adjust declaration
2522 and use aarch64_can_use_function_literal_pools_p.
2523 (aarch64_select_rtx_section): Update.
2525 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2527 * targhooks.c (default_get_mask_mode): Use BLKmode in
2528 case target doesn't support required vector mode.
2529 * stor-layout.c (layout_type); Check for BLKmode.
2531 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2532 Sebastian Pop <s.pop@samsung.com>
2534 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2535 Remove use of parameter_rename_map.
2537 (copy_internal_parameters): Remove.
2538 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2539 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2540 (free_sese_info): Do not free parameter_rename_map.
2541 (set_rename): Do not use parameter_rename_map.
2542 (rename_uses): Update call to set_rename.
2543 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2544 * sese.h (parameter_rename_map_t): Remove.
2545 (struct sese_info_t): Remove field parameter_rename_map.
2547 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2548 Sebastian Pop <s.pop@samsung.com>
2550 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2551 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2552 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2553 anonymous namespace.
2554 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2555 (isl_id_for_pbb): Use a buffer of size 10.
2556 (isl_id_for_ssa_name): Same.
2557 * sese.c (set_rename): Add more dumps.
2559 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2561 * omp-low.c (struct omp_context): Remove reduction_map field.
2562 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2563 (new_omp_context, delete_omp_context, scan_omp_target): Remove
2564 reduction_map handling.
2565 (lower_omp_target): Remove obsolete openacc reduction handling.
2567 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2569 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2571 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2572 Cesar Philippidis <cesar@codesourcery.com>
2574 * config/nvptx/nvptx.c: Include gimple headers.
2575 (worker_red_size, worker_red_align, worker_red_name,
2576 worker_red_sym): New.
2577 (nvptx_option_override): Initialize worker reduction buffer.
2578 (nvptx_file_end): Write out worker reduction buffer var.
2579 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2580 nvptx_expand_cmp_swap): New builtin expanders.
2581 (enum nvptx_builtins): New.
2582 (nvptx_builtin_decls): New.
2583 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2584 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2585 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2586 nvptx_lockless_update): New helpers.
2587 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2588 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2589 (nvptx_goacc_reduction): New.
2590 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2591 TARGET_BUILTIN_DECL): Override.
2592 (TARGET_GOACC_REDUCTION): Override.
2594 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2595 Cesar Philippidis <cesar@codesourcery.com>
2597 * internal-fn.def (GOACC_REDUCTION): New.
2598 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2599 * internal-fn.c (expand_GOACC_REDUCTION): New.
2600 * target.def (goacc.reduction): New OpenACC hook.
2601 * targhooks.h (default_goacc_reduction): Declare.
2602 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2603 * doc/tm.texi: Rebuilt.
2604 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2605 scan_sharing_clauses): Remove oacc reduction handling here.
2606 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2607 (oacc_lower_reduction_var_helper): Delete.
2608 (lower_oacc_reductions): New.
2609 (lower_reduction_clauses): Don't handle OpenACC reductions here.
2610 (lower_oacc_head_tail): Call lower_oacc_reductions.
2611 (oacc_gimple_assign, oacc_init_reduction_array,
2612 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2613 oacc_process_reduction_data): Delete.
2614 (lower_omp_target): Remove old OpenACC reduction handling. Insert
2615 dummy OpenACC gang reduction for reductions at outer level.
2616 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2617 (default_goacc_reduction): New.
2618 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2620 2015-11-04 Martin Liska <mliska@suse.cz>
2622 * cgraphunit.c (cgraph_node::expand_thunk): Call
2623 allocate_struct_function before init_function_start.
2624 (cgraph_node::expand): Use push_cfun and pop_cfun.
2625 * config/i386/i386.c (ix86_code_end): Call
2626 allocate_struct_function before init_function_start.
2627 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2628 * function.c (init_function_start): Move preamble to all
2630 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2631 (execute_one_pass): Handle newly added TODO_discard_function.
2632 (execute_pass_list_1): Terminate if cfun equals to NULL.
2633 (execute_pass_list): Do not push and pop cfun, expect that
2635 * tree-pass.h (TODO_discard_function): Define.
2637 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2639 * cfganal.c (inverted_post_order_compute): Remove conditional
2640 compilation, use flag_checking.
2641 * config.in: Regenerate.
2642 * configure: Regenerate.
2643 * configure.ac: Remove ENABLE_CHECKING.
2644 * genconditions.c: Do not #undef ENABLE_CHECKING.
2645 * sese.h (bb_in_region): Comment out broken check.
2646 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2647 conditional compilation, use flag_checking.
2649 2015-11-04 Tom de Vries <tom@codesourcery.com>
2651 PR tree-optimization/67742
2652 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2654 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2655 (create_variable_info_for_1): Add and handle handle_param parameter.
2656 Add restrict handling.
2657 (create_variable_info_for): Call create_variable_info_for_1 with extra
2659 (make_param_constraints): Drop restrict_name parameter. Ignore
2660 vi->only_restrict_pointers.
2661 (intra_create_variable_infos): Call create_variable_info_for_1 with
2662 extra arg. Remove restrict handling. Call make_param_constraints with
2665 2015-11-04 Tom de Vries <tom@codesourcery.com>
2667 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2670 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2672 * config/arm/coff.h: Remove.
2674 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2676 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2677 check for aggregate types and beef up comment for mode check.
2679 2015-11-03 Richard Biener <rguenther@suse.de>
2681 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2682 data references here.
2683 * tree-vect-loop.c: Include cgraph.h.
2684 (vect_analyze_loop_2): Collect data references here.
2685 * tree-vect-slp.c (find_bb_location): Inline ...
2686 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
2687 Factor in vect_slp_transform_bb.
2688 (vect_slp_transform_bb): Removed.
2689 (vect_slp_analyze_bb_1): Collect data references here.
2690 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2692 * tree-vectorizer.h (vect_slp_bb): Declare.
2693 (vect_slp_analyze_bb): Remove.
2694 (vect_slp_transform_bb): Remove.
2695 (find_bb_location): Remove.
2696 (vect_analyze_data_refs): Remove stmt count reference parameter.
2698 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
2700 * multiple_target.c (create_dispatcher_calls): Add target check
2702 (create_target_clone): Change assembler name for versioned declarations.
2704 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2705 Chung-Lin Tang <cltang@codesourcery.com>
2707 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2708 * omp-low.c (check_omp_nesting_restrictions): Allow
2709 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2712 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
2714 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2715 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2716 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2718 (vmulxq_f32): Likewise.
2720 (vmulxq_f64): Rewrite to call fmulx builtin.
2721 (vmulxs_f32): Likewise.
2722 (vmulxd_f64): Likewise.
2723 (vmulx_lane_f32): Remove.
2724 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2726 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
2728 * config/aarch64/aarch64.md (*movhf_aarch64): Use
2729 aarch64_reg_or_fp_zero for second operand.
2731 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
2733 * gimple-expr.c: Include hash-set.h and rtl.h.
2734 (mark_addressable_queue): New var.
2735 (mark_addressable): Factor actual marking into...
2736 (mark_addressable_1): ... this. Queue it up during expand.
2737 (mark_addressable_2): New.
2738 (flush_mark_addressable_queue): New.
2739 * gimple-expr.h (flush_mark_addressable_queue): Declare.
2740 * cfgexpand.c: Include gimple-expr.h.
2741 (pass_expand::execute): Flush mark_addressable queue.
2743 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
2745 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2746 bb_no_side_effects_p tests...
2747 (tree_ssa_ifcombine_bb): ... here.
2749 PR tree-optimization/68083
2750 * tree-ssa-ifcombine.c: Include tree-ssa.h.
2751 (bb_no_side_effects_p): Test for undefined uses too.
2752 * tree-ssa.c (gimple_uses_undefined_value_p): New.
2753 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2755 2015-11-02 Jeff Law <law@redhat.com>
2757 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2758 cases where the loop latch edge is in the middle of an FSM path.
2760 2015-11-03 Tom de Vries <tom@codesourcery.com>
2762 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2763 (make_param_constraints): ... this. Add and handle restrict_name
2764 parameter. Handle is_full_var case.
2765 (intra_create_variable_infos): Use make_param_constraints.
2767 2015-11-03 Tom de Vries <tom@codesourcery.com>
2769 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2770 make_copy_constraint call with make_constraint_from call.
2772 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
2774 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2777 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
2779 * builtins.h (fold_fma): Move to fold-const-call.h.
2780 * builtins.c: Include fold-const-call.h.
2781 (mathfn_built_in_2): New function, split out from...
2782 (mathfn_built_in_1): ...here.
2783 (do_real_to_int_conversion, fold_const_builtin_pow)
2784 (fold_const_builtin_logb, fold_const_builtin_significand)
2785 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2786 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2787 (fold_builtin_sincos): Use fold_const_call to handle constants.
2788 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2789 checks for ERROR_MARK. Use fold_const_call to handle constant
2790 folds for math functions.
2791 (fold_fma): Move to fold-const-call.c.
2792 * fold-const.c: Include fold-const-call.h.
2793 * Makefile.in (OBJS): Add fold-const-call.o.
2794 (PLUGIN_HEADERS): Add fold-const-call.h.
2795 * realmpfr.h (real_from_mpfr): Allow the format to be specified
2797 * realmpfr.c (real_from_mpfr): Likewise.
2798 * fold-const-call.h, fold-const-call.c: New files.
2800 2015-11-02 Julian Brown <julian@codesourcery.com>
2802 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2803 brackets and semicolon.
2805 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
2808 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2810 PR tree-optimization/65963
2811 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2812 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2814 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
2817 * fold-const.c: Include "md5.h".
2819 2015-11-01 Jeff Law <law@redhat.com>
2821 * vmsdbgout.c: Revert unused header file reduction patch.
2823 * config/mcore/mcore.c: Include regs.h.
2825 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2827 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2829 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2831 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2832 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2833 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2835 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
2837 * ggc-common.c: Restore needed header for checking=release.
2839 2015-10-31 Tom de Vries <tom@codesourcery.com>
2841 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2843 2015-10-31 Tom de Vries <tom@codesourcery.com>
2845 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2846 existing varinfo for arguments.
2848 2015-10-31 Tom de Vries <tom@codesourcery.com>
2850 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2851 create_function_info_for. Dump constraints generated during
2852 create_function_info_for. Move intra_create_variable_infos call and
2853 function-return-values-escape bit to ...
2854 (create_function_info_for): ... here, and merge
2855 intra_create_variable_infos call with argument loop. Add and handle
2856 nonlocal_p parameter.
2858 2015-10-31 Tom de Vries <tom@codesourcery.com>
2860 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2861 updating is alap, and seperated from preceding code. Make sure
2862 insert_vi_for_tree is seperated from surrounding code.
2864 2015-10-31 Tom de Vries <tom@codesourcery.com>
2866 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2868 2015-10-30 Jeff Law <law@redhat.com>
2869 Nathan Sidwell <nathan@acm.org>
2871 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2873 (MOVE_MAX): Set to 8.
2875 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
2877 * cgraph.c: Include context.h for offloading.
2878 * varpool.c: Include context.h and omp-low.h.
2880 2015-10-30 Anatoly Sokolov <aesok@post.ru>
2882 * rtl.h (contains_symbol_ref_p): Declare.
2883 (SYMBOL_REF_P): Define.
2884 * rtlanal.c (contains_symbol_ref_p: New function.
2885 * lra-constraints.c (contains_symbol_ref_p): Remove.
2886 * var-tracking.c (contains_symbol_ref): Remove.
2887 (track_expr_p): Use contains_symbol_ref_p instead of
2888 contains_symbol_ref.
2890 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2892 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2893 * fold-const.c (get_array_ctor_element_at_index): New.
2894 (fold): Remove binary-search through CONSTRUCTOR, call previous.
2896 * fold-const.h (get_array_ctor_element_at_index): New.
2898 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2900 * Makefile.in (OBJS): Add multiple_target.o.
2901 * attrib.c (make_attribute): Moved from config/i386/i386.c
2902 * config/i386/i386.c (make_attribute): Deleted.
2903 * multiple_target.c (create_dispatcher_calls): New.
2904 (get_attr_len): Ditto.
2905 (get_attr_str): Ditto.
2906 (separate_attrs): Ditto.
2907 (is_valid_asm_symbol): Ditto.
2908 (create_new_asm_name): Ditto.
2909 (create_target_clone): Ditto.
2910 (expand_target_clones): Ditto.
2911 (ipa_target_clone): Ditto.
2912 (ipa_dispatcher_calls): Ditto.
2913 * passes.def (pass_target_clone): Two new ipa passes.
2914 * tree-pass.h (make_pass_target_clone): Ditto.
2915 * doc/extend.texi (target_clones): New attribute description.
2917 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
2919 PR rtl-optimization/68106
2920 * lra-remat.c (input_regno_present_p): Process hard regs
2921 explicitly present in machine description insns.
2922 (call_used_input_regno_present_p): Ditto.
2923 (calculate_gen_cands): Ditto.
2926 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
2928 * config/arm/neon-testgen.ml: Fix comment typo.
2930 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2932 * rtlanal.c (reg_set_p): Expand function comment.
2934 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
2936 * alias.c: Remove unused headers.
2938 * attribs.c: Likewise.
2939 * auto-inc-dec.c: Likewise.
2940 * auto-profile.c: Likewise.
2941 * bb-reorder.c: Likewise.
2942 * bitmap.c: Likewise.
2943 * bt-load.c: Likewise.
2944 * builtins.c: Likewise.
2945 * caller-save.c: Likewise.
2946 * calls.c: Likewise.
2949 * cfganal.c: Likewise.
2950 * cfgbuild.c: Likewise.
2951 * cfgcleanup.c: Likewise.
2952 * cfgexpand.c: Likewise.
2953 * cfghooks.c: Likewise.
2954 * cfgloop.c: Likewise.
2955 * cfgloopanal.c: Likewise.
2956 * cfgloopmanip.c: Likewise.
2957 * cfgrtl.c: Likewise.
2958 * cgraph.c: Likewise.
2959 * cgraphbuild.c: Likewise.
2960 * cgraphclones.c: Likewise.
2961 * cgraphunit.c: Likewise.
2962 * cilk-common.c: Likewise.
2963 * combine-stack-adj.c: Likewise.
2964 * combine.c: Likewise.
2965 * compare-elim.c: Likewise.
2966 * convert.c: Likewise.
2967 * coverage.c: Likewise.
2968 * cppbuiltin.c: Likewise.
2969 * cprop.c: Likewise.
2971 * cselib.c: Likewise.
2972 * data-streamer-in.c: Likewise.
2973 * data-streamer-out.c: Likewise.
2974 * data-streamer.c: Likewise.
2975 * dbxout.c: Likewise.
2978 * debug.c: Likewise.
2979 * df-core.c: Likewise.
2980 * df-problems.c: Likewise.
2981 * df-scan.c: Likewise.
2983 * dojump.c: Likewise.
2984 * dominance.c: Likewise.
2985 * domwalk.c: Likewise.
2986 * double-int.c: Likewise.
2988 * dumpfile.c: Likewise.
2989 * dwarf2asm.c: Likewise.
2990 * dwarf2cfi.c: Likewise.
2991 * dwarf2out.c: Likewise.
2992 * emit-rtl.c: Likewise.
2993 * except.c: Likewise.
2994 * explow.c: Likewise.
2995 * expmed.c: Likewise.
2997 * final.c: Likewise.
2998 * fixed-value.c: Likewise.
2999 * fold-const.c: Likewise.
3000 * function.c: Likewise.
3001 * fwprop.c: Likewise.
3003 * generic-match-head.c: Likewise.
3004 * ggc-common.c: Likewise.
3005 * gimple-builder.c: Likewise.
3006 * gimple-expr.c: Likewise.
3007 * gimple-fold.c: Likewise.
3008 * gimple-iterator.c: Likewise.
3009 * gimple-low.c: Likewise.
3010 * gimple-match-head.c: Likewise.
3011 * gimple-pretty-print.c: Likewise.
3012 * gimple-ssa-isolate-paths.c: Likewise.
3013 * gimple-ssa-strength-reduction.c: Likewise.
3014 * gimple-streamer-in.c: Likewise.
3015 * gimple-streamer-out.c: Likewise.
3016 * gimple-walk.c: Likewise.
3017 * gimple.c: Likewise.
3018 * gimplify-me.c: Likewise.
3019 * gimplify.c: Likewise.
3020 * godump.c: Likewise.
3021 * graph.c: Likewise.
3022 * graphds.c: Likewise.
3023 * haifa-sched.c: Likewise.
3024 * hw-doloop.c: Likewise.
3025 * ifcvt.c: Likewise.
3026 * init-regs.c: Likewise.
3027 * internal-fn.c: Likewise.
3028 * ipa-chkp.c: Likewise.
3029 * ipa-comdats.c: Likewise.
3030 * ipa-cp.c: Likewise.
3031 * ipa-devirt.c: Likewise.
3032 * ipa-icf-gimple.c: Likewise.
3033 * ipa-icf.c: Likewise.
3034 * ipa-inline-analysis.c: Likewise.
3035 * ipa-inline-transform.c: Likewise.
3036 * ipa-inline.c: Likewise.
3037 * ipa-polymorphic-call.c: Likewise.
3038 * ipa-profile.c: Likewise.
3039 * ipa-prop.c: Likewise.
3040 * ipa-pure-const.c: Likewise.
3041 * ipa-ref.c: Likewise.
3042 * ipa-reference.c: Likewise.
3043 * ipa-split.c: Likewise.
3044 * ipa-utils.c: Likewise.
3045 * ipa-visibility.c: Likewise.
3047 * ira-build.c: Likewise.
3048 * ira-color.c: Likewise.
3049 * ira-conflicts.c: Likewise.
3050 * ira-costs.c: Likewise.
3051 * ira-emit.c: Likewise.
3052 * ira-lives.c: Likewise.
3055 * langhooks.c: Likewise.
3057 * lists.c: Likewise.
3058 * loop-doloop.c: Likewise.
3059 * loop-init.c: Likewise.
3060 * loop-invariant.c: Likewise.
3061 * loop-iv.c: Likewise.
3062 * loop-unroll.c: Likewise.
3063 * lower-subreg.c: Likewise.
3064 * lra-assigns.c: Likewise.
3065 * lra-coalesce.c: Likewise.
3066 * lra-constraints.c: Likewise.
3067 * lra-eliminations.c: Likewise.
3068 * lra-lives.c: Likewise.
3069 * lra-remat.c: Likewise.
3070 * lra-spills.c: Likewise.
3072 * lto-cgraph.c: Likewise.
3073 * lto-compress.c: Likewise.
3074 * lto-opts.c: Likewise.
3075 * lto-section-in.c: Likewise.
3076 * lto-section-out.c: Likewise.
3077 * lto-streamer-in.c: Likewise.
3078 * lto-streamer-out.c: Likewise.
3079 * lto-streamer.c: Likewise.
3081 * mode-switching.c: Likewise.
3082 * modulo-sched.c: Likewise.
3083 * optabs.c: Likewise.
3084 * opts-global.c: Likewise.
3085 * passes.c: Likewise.
3086 * plugin.c: Likewise.
3087 * postreload-gcse.c: Likewise.
3088 * postreload.c: Likewise.
3089 * predict.c: Likewise.
3090 * print-tree.c: Likewise.
3091 * profile.c: Likewise.
3093 * realmpfr.c: Likewise.
3094 * recog.c: Likewise.
3096 * reg-stack.c: Likewise.
3097 * regcprop.c: Likewise.
3098 * reginfo.c: Likewise.
3099 * regrename.c: Likewise.
3100 * regstat.c: Likewise.
3101 * reload.c: Likewise.
3102 * reload1.c: Likewise.
3103 * reorg.c: Likewise.
3104 * resource.c: Likewise.
3105 * rtl-chkp.c: Likewise.
3106 * rtl-error.c: Likewise.
3107 * rtlanal.c: Likewise.
3108 * rtlhooks.c: Likewise.
3109 * sanopt.c: Likewise.
3110 * sched-deps.c: Likewise.
3111 * sched-ebb.c: Likewise.
3112 * sched-rgn.c: Likewise.
3113 * sdbout.c: Likewise.
3114 * sel-sched-dump.c: Likewise.
3115 * sel-sched-ir.c: Likewise.
3116 * sel-sched.c: Likewise.
3118 * shrink-wrap.c: Likewise.
3119 * simplify-rtx.c: Likewise.
3120 * stack-ptr-mod.c: Likewise.
3121 * statistics.c: Likewise.
3123 * stor-layout.c: Likewise.
3124 * store-motion.c: Likewise.
3125 * stringpool.c: Likewise.
3126 * symtab.c: Likewise.
3127 * target-globals.c: Likewise.
3128 * targhooks.c: Likewise.
3129 * toplev.c: Likewise.
3130 * tracer.c: Likewise.
3131 * trans-mem.c: Likewise.
3132 * tree-affine.c: Likewise.
3133 * tree-call-cdce.c: Likewise.
3134 * tree-cfg.c: Likewise.
3135 * tree-cfgcleanup.c: Likewise.
3136 * tree-chkp-opt.c: Likewise.
3137 * tree-chkp.c: Likewise.
3138 * tree-chrec.c: Likewise.
3139 * tree-complex.c: Likewise.
3140 * tree-data-ref.c: Likewise.
3141 * tree-dfa.c: Likewise.
3142 * tree-diagnostic.c: Likewise.
3143 * tree-dump.c: Likewise.
3144 * tree-eh.c: Likewise.
3145 * tree-emutls.c: Likewise.
3146 * tree-if-conv.c: Likewise.
3147 * tree-inline.c: Likewise.
3148 * tree-into-ssa.c: Likewise.
3149 * tree-iterator.c: Likewise.
3150 * tree-loop-distribution.c: Likewise.
3151 * tree-nested.c: Likewise.
3152 * tree-nrv.c: Likewise.
3153 * tree-object-size.c: Likewise.
3154 * tree-outof-ssa.c: Likewise.
3155 * tree-parloops.c: Likewise.
3156 * tree-phinodes.c: Likewise.
3157 * tree-predcom.c: Likewise.
3158 * tree-pretty-print.c: Likewise.
3159 * tree-profile.c: Likewise.
3160 * tree-scalar-evolution.c: Likewise.
3161 * tree-sra.c: Likewise.
3162 * tree-ssa-address.c: Likewise.
3163 * tree-ssa-alias.c: Likewise.
3164 * tree-ssa-ccp.c: Likewise.
3165 * tree-ssa-coalesce.c: Likewise.
3166 * tree-ssa-copy.c: Likewise.
3167 * tree-ssa-dce.c: Likewise.
3168 * tree-ssa-dse.c: Likewise.
3169 * tree-ssa-forwprop.c: Likewise.
3170 * tree-ssa-ifcombine.c: Likewise.
3171 * tree-ssa-live.c: Likewise.
3172 * tree-ssa-loop-ch.c: Likewise.
3173 * tree-ssa-loop-im.c: Likewise.
3174 * tree-ssa-loop-ivcanon.c: Likewise.
3175 * tree-ssa-loop-ivopts.c: Likewise.
3176 * tree-ssa-loop-manip.c: Likewise.
3177 * tree-ssa-loop-niter.c: Likewise.
3178 * tree-ssa-loop-prefetch.c: Likewise.
3179 * tree-ssa-loop-unswitch.c: Likewise.
3180 * tree-ssa-loop.c: Likewise.
3181 * tree-ssa-math-opts.c: Likewise.
3182 * tree-ssa-operands.c: Likewise.
3183 * tree-ssa-phiopt.c: Likewise.
3184 * tree-ssa-phiprop.c: Likewise.
3185 * tree-ssa-pre.c: Likewise.
3186 * tree-ssa-propagate.c: Likewise.
3187 * tree-ssa-reassoc.c: Likewise.
3188 * tree-ssa-scopedtables.c: Likewise.
3189 * tree-ssa-sink.c: Likewise.
3190 * tree-ssa-strlen.c: Likewise.
3191 * tree-ssa-structalias.c: Likewise.
3192 * tree-ssa-tail-merge.c: Likewise.
3193 * tree-ssa-ter.c: Likewise.
3194 * tree-ssa-threadupdate.c: Likewise.
3195 * tree-ssa-uncprop.c: Likewise.
3196 * tree-ssa-uninit.c: Likewise.
3197 * tree-ssa.c: Likewise.
3198 * tree-ssanames.c: Likewise.
3199 * tree-stdarg.c: Likewise.
3200 * tree-streamer-in.c: Likewise.
3201 * tree-streamer-out.c: Likewise.
3202 * tree-streamer.c: Likewise.
3203 * tree-switch-conversion.c: Likewise.
3204 * tree-tailcall.c: Likewise.
3205 * tree-vect-data-refs.c: Likewise.
3206 * tree-vect-generic.c: Likewise.
3207 * tree-vect-loop-manip.c: Likewise.
3208 * tree-vect-loop.c: Likewise.
3209 * tree-vect-patterns.c: Likewise.
3210 * tree-vect-slp.c: Likewise.
3211 * tree-vect-stmts.c: Likewise.
3212 * tree-vectorizer.c: Likewise.
3213 * tree-vrp.c: Likewise.
3216 * ubsan.c: Likewise.
3217 * value-prof.c: Likewise.
3218 * var-tracking.c: Likewise.
3219 * varasm.c: Likewise.
3220 * varpool.c: Likewise.
3221 * vmsdbgout.c: Likewise.
3222 * vtable-verify.c: Likewise.
3224 * wide-int-print.cc: Likewise.
3225 * wide-int.cc: Likewise.
3226 * xcoffout.c: Likewise.
3228 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
3230 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3231 between pass numbering and execution order.
3233 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3235 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3236 check for dependencies.
3238 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3240 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3243 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3245 * real.h (format_helper): New.
3246 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3247 (real_from_target, real_nan, real_2expN, real_value_truncate)
3248 (significand_size, real_from_string2, exact_real_inverse)
3249 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3250 (real_round, real_isinteger, real_from_integer): Replace
3251 machine_mode arguments with format_helper arguments.
3252 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3253 (real_from_integer, real_nan, real_2expN, real_convert)
3254 (real_value_truncate, exact_real_truncate, real_to_target)
3255 (real_from_target, significand_size, real_powi, real_trunc)
3256 (real_floor, real_ceil, real_round, real_isinteger): Replace
3257 machine_mode arguments with format_helper arguments.
3258 (real_to_target_fmt, real_from_target_fmt): Delete.
3259 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3260 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3261 argument with real_format.
3262 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3264 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3266 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3267 (fixed_to_decimal, fixed_convert_from_real)
3268 (real_convert_from_fixed): Fix mode arguments to real_2expN.
3270 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3272 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3273 SCALAR_FLOAT_MODE_P.
3275 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3277 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3278 (completely_scalarize): Comment zero-length arrays.
3279 (get_access_replacement): Correct comment re. precondition.
3281 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3283 * config/i386/i386.c (get_builtin_code_for_version): Set priority
3284 for PROCESSOR_ZNVER1.
3285 (enum processor_model): Add M_AMDFAM17H_znver1.
3286 (struct arch_names_table): Likewise.
3287 * doc/extend.texi: ADD znver1.
3289 2015-10-30 Richard Biener <rguenther@suse.de>
3291 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3292 fold () on single RHSs. Allow CONSTRUCTORS with trailing
3293 zeros to be folded to VECTOR_CSTs.
3294 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3295 * fold-const.c (fold): Use build_vector_from_ctor.
3297 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
3299 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3300 "mov %0.h[0], %1.h[0] to "neon_move".
3301 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3302 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3304 (*cmovsi_insn_uxtw): Likewise.
3306 2015-10-30 Tom de Vries <tom@codesourcery.com>
3308 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3309 unsigned, and initialize, and use initial value instead of hardcoded
3310 constant. Add generic constraints dumping section. Don't dump global
3311 initializers constraints dumping section if empty. Don't update
3312 variable from if unused.
3314 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3316 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3317 flag_checking and/or CHECKING_P to eliminate conditional compilation
3319 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3320 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3321 * config/i386/i386.c (ix86_print_operand_address): Likewise.
3322 (output_387_binary_op): Likewise.
3323 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3324 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3325 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3327 * config/rs6000/rs6000.h: Likewise.
3328 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3330 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
3332 * config/sh/sh.opt (mfdpic): Add missing period.
3334 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3336 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3337 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3338 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3339 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3340 mcore_base_register_rtx_p, mcore_legitimate_index_p,
3341 mcore_legitimate_address_p): New functions.
3342 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3344 2015-10-29 Jeff Law <law@redhat.com>
3346 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3348 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3349 * tree-ssa-threadedge.c
3350 (record_temporary_equivalences_from_stmts_at_dest): Remove
3351 backedge_seen argument and associated code which invalidated
3352 equivalences based on the value of that argument.
3353 (thread_through_normal_block): Corresponding changes.
3355 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3357 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3358 function earlier in the file.
3359 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3360 df_regs_ever_live_p.
3362 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3364 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3367 2015-10-29 Richard Henderson <rth@redhat.com>
3371 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3372 sse check to the exact conditions of PR 67609.
3374 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3376 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3377 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3378 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3379 of the traditional names that TFmode uses for handling IEEE
3380 extended double. If -mfloat128, add KFmode functions for all of
3381 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3382 make TFmode use the same emulation functions as KFmode.
3383 (init_float128_ibm): Likewise.
3384 (init_float128_ieee): Likewise.
3385 (rs6000_generate_compare): For IEEE 128-bit floating point
3386 comparisons, call the unordered comparison function instead of the
3387 ordered comparison function.
3388 (rs6000_expand_float128_convert): Deal with operands that are
3389 memory operands. Restructure the code to use a switch statement on
3390 the mode. Add support for TFmode defaulting to either IBM extended
3391 double or IEEE 128-bit floating point. If the underlying types are
3392 the same, use a move instead of a conversion function.
3393 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3394 use for IEEE 128-bit floating point constants with -mfloat128.
3395 (rs6000_c_mode_for_suffix): Likewise.
3396 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3397 128-bit floating point with IBM extended double floating point.
3398 (rs6000_invalid_binary_op): Likewise.
3399 (rs6000_gen_le_vsx_permute): On little endian systems generate a
3400 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3401 types that can go in vector registers.
3402 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3403 point types that can go in vector registers on little endian
3405 (mark_swaps_for_removal): Likewise.
3406 (rs6000_analyze_swaps): Likewise.
3407 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3409 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3410 rework IEEE 128-bit floating point insns to deal with TFmode being
3411 either IBM extended double or IEEE 128-bit floating point.
3413 (IBM128): Update iterator to add condition that the mode is IBM
3415 (IEEE128): New iterator for IEEE 128-bit floating point.
3416 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3417 (FLOAT128): Likewise.
3418 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3420 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3421 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3422 instead of hard coding TFmode or KFmode.
3423 (negtf2_internal): Likewise.
3424 (neg<mode>2_internal): Likewise.
3425 (abs<mode>2): Likewise.
3426 (abstf2_internal): Likewise.
3427 (abs<mode>2_internal): Likewise.
3428 (ieee_128bit_neg<mode>2): Likewise.
3429 (ieee_128bit_neg<mode>2_internal): Likewise.
3430 (ieee_128bit_abs<mode>2): Likewise.
3431 (ieee_128bit_abs<mode>2_internal): Likewise.
3432 (ieee_128bit_nabs<mode>2): Likewise.
3433 (ieee_128bit_nabs<mode>2_internal): Likewise.
3434 (extendiftf2): Add explicit conversions between 128-bit floating
3435 point types. Drop the old conversions that had become unwieldy.
3436 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3437 (extendifkf2): Likewise.
3438 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3439 (extendtfkf2): Likewise.
3440 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3441 (trunciftf2): Likewise.
3442 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3443 (truncifkf2): Likewise.
3444 (float<SDI:mode><IFKF:mode>2): Likewise.
3445 (trunckftf2): Likewise.
3446 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3447 (trunctfif2): Likewise.
3448 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3449 (extenddftf2): Rework 128-bit floating point conversions to
3450 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3451 KFmode expanders into one function.
3452 (extenddf<mode>2): Likewise.
3453 (extenddftf2_fprs): Likewise.
3454 (extenddf<mode>2_fprs): Likewise.
3455 (extenddftf2_vsx): Likewise.
3456 (extenddf<mode>2_vsx): Likewise.
3457 (extendsftf2): Likewise.
3458 (extendsf<mode>2): Likewise.
3459 (trunctfdf2): Likewise.
3460 (trunc<mode>df2): Likewise.
3461 (trunctfdf2_internal1): Likewise.
3462 (trunc<mode>df2_internal1): Likewise.
3463 (trunctfdf2_internal2): Likewise.
3464 (trunc<mode>df2_internal2): Likewise.
3465 (trunctfsf2): Likewise.
3466 (trunc<mode>sf2): Likewise.
3467 (trunctfsf2_fprs): Likewise.
3468 (trunc<mode>sf2_fprs): Likewise.
3469 (floatsit2f): Likewise.
3470 (floatsi<mode>2): Likewise.
3471 (fix_trunc_helper): Likewise.
3472 (fix_trunc_helper<mode>): Likewise.
3473 (fix_trunctfsi2): Likewise.
3474 (fix_trunc<mode>si2): Likewise.
3475 (fix_trunctfsi2_fprs): Likewise.
3476 (fix_trunc<mode>si2_fprs): Likewise.
3477 (fix_trunctfsi2_internal): Likewise.
3478 (fix_trunc<mode>si2_internal): Likewise.
3479 (fix_trunctfdi2): Likewise.
3480 (fix_trunc<mode>di2): Likewise.
3481 (fixuns_trunctf<mode>2): Likewise.
3482 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3483 (floatditf2): Likewise.
3484 (floatdi<mode>2): Likewise.
3485 (floatuns<mode>tf2): Likewise.
3486 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3487 (cmptf_internal1): Use a mode iterator to add support for both
3488 types (IFmode, TFmode) that support IBM extended double.
3489 (cmp<mode>_internal1): Likewise.
3490 (cmptf_internal2): Likewise.
3491 (cmp<mode>_internal2): Likewise.
3493 * doc/extend.texi (Floating Types): Document __ibm128 and
3494 __float128 on PowerPC.
3496 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3497 -mfloat128 and -mno-float128.
3499 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3501 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3502 floating point modes that can go in vector registers.
3503 (MODES_TIEABLE_P): Move tests for vector modes before tests for
3504 scalar floating point, so that IEEE 128-bit floating point that
3505 can go in vector registers bind with vectors and not FP.
3506 (struct rs6000_args): Add libcall field.
3508 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3509 and -mfloat128-software switches. Replace them with a binary
3511 (-mfloat128): Likewise.
3513 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3514 128-bit floating point types in GPRs, even if the appropriate
3515 option enabling the type was not used.
3516 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3518 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3519 pre-decrement on IEEE 128-bit floating point values.
3520 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3521 is IEEE 128-bit floating point.
3522 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3523 128-bit floating point types that can go in vector registers.
3524 (rs6000_option_override_internal): Change -mfloat128-none and
3525 -mfloat128-software to -mfloat128, and move code to be near other
3526 VSX option handling.
3527 (rs6000_option_override_internal): Disable -mfloat128 if we don't
3528 have the Altivec ABI.
3529 (rs6000_init_builtins): Don't make TFmode use either IFmode or
3530 KFmode floating point nodes. Instead, have three separate nodes.
3531 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3532 eventually moving the long double default to IEEE 128-bit floating
3534 (rs6000_opt_masks): Add -mfloat128.
3535 (struct rs6000_opt_var): Fix typo in comment.
3536 (init_cumulative_args): Initialize libcall field in
3538 (rs6000_function_arg): Treat library functions as if they had
3539 prototypes to prevent IEEE 128-bit support functions from passing
3540 arguments in both GPRs and vector registers.
3541 (rs6000_arg_partial_bytes): Likewise.
3543 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3544 an option that can be turned on via -mcpu=<xxx>.
3546 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3549 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3550 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3551 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3552 double is IBM extended double.
3554 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3557 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3559 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3560 * genconditions.c: Define CHECKING_P in the generated code.
3561 * genextract.c: Use flag_checking in insn_extract.
3562 * gengtype.c (main): Remove conditional compilation.
3563 * gengtype.h: Likewise.
3565 2015-10-29 Jeff Law <law@redhat.com>
3567 PR tree-optimization/67892
3568 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3570 (thread_through_normal_block): If we have seen a backedge, then
3571 do nothing. No longer call find_jump_threads_backwards here.
3572 (thread_across_edge): Use find_jump_threads_backwards to find
3573 jump threads if the old style threader was not successful.
3574 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3575 gsi_last_nondebug_bb. Return NULL if the block does not end
3576 with a control statement.
3577 (find_jump_threads_backwards): Setup code moved here from
3578 tree-ssa-threadedge.c::thread_through_normal_block. Accept
3579 single edge argument instead of name & block.
3580 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3583 2015-10-29 Tom de Vries <tom@codesourcery.com>
3585 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3588 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3590 * omp-low.c (lower_omp_target): Remove unreachable code & merge
3593 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
3595 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3597 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3599 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3600 guard_bb0 and use guard_bb throughout.
3602 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3604 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3607 2015-10-29 Richard Biener <rguenther@suse.de>
3610 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3613 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3615 * alias.c: Reorder #include statements and remove duplicates.
3617 * attribs.c: Likewise.
3618 * auto-inc-dec.c: Likewise.
3619 * auto-profile.c: Likewise.
3620 * bb-reorder.c: Likewise.
3621 * bt-load.c: Likewise.
3622 * builtins.c: Likewise.
3623 * caller-save.c: Likewise.
3624 * calls.c: Likewise.
3627 * cfganal.c: Likewise.
3628 * cfgbuild.c: Likewise.
3629 * cfgcleanup.c: Likewise.
3630 * cfgexpand.c: Likewise.
3631 * cfghooks.c: Likewise.
3632 * cfgloop.c: Likewise.
3633 * cfgloopanal.c: Likewise.
3634 * cfgloopmanip.c: Likewise.
3635 * cfgrtl.c: Likewise.
3636 * cgraph.c: Likewise.
3637 * cgraphbuild.c: Likewise.
3638 * cgraphclones.c: Likewise.
3639 * cgraphunit.c: Likewise.
3640 * cilk-common.c: Likewise.
3641 * combine-stack-adj.c: Likewise.
3642 * combine.c: Likewise.
3643 * compare-elim.c: Likewise.
3644 * convert.c: Likewise.
3645 * coverage.c: Likewise.
3646 * cppbuiltin.c: Likewise.
3647 * cprop.c: Likewise.
3649 * cselib.c: Likewise.
3650 * data-streamer-in.c: Likewise.
3651 * data-streamer-out.c: Likewise.
3652 * data-streamer.c: Likewise.
3653 * dbxout.c: Likewise.
3656 * debug.c: Likewise.
3657 * df-core.c: Likewise.
3658 * df-problems.c: Likewise.
3659 * df-scan.c: Likewise.
3661 * dojump.c: Likewise.
3662 * dominance.c: Likewise.
3663 * double-int.c: Likewise.
3665 * dumpfile.c: Likewise.
3666 * dwarf2asm.c: Likewise.
3667 * dwarf2cfi.c: Likewise.
3668 * dwarf2out.c: Likewise.
3669 * emit-rtl.c: Likewise.
3670 * except.c: Likewise.
3671 * explow.c: Likewise.
3672 * expmed.c: Likewise.
3674 * final.c: Likewise.
3675 * fixed-value.c: Likewise.
3676 * fold-const.c: Likewise.
3677 * function.c: Likewise.
3678 * fwprop.c: Likewise.
3680 * generic-match-head.c: Likewise.
3681 * ggc-common.c: Likewise.
3682 * gimple-builder.c: Likewise.
3683 * gimple-expr.c: Likewise.
3684 * gimple-fold.c: Likewise.
3685 * gimple-iterator.c: Likewise.
3686 * gimple-low.c: Likewise.
3687 * gimple-match-head.c: Likewise.
3688 * gimple-pretty-print.c: Likewise.
3689 * gimple-ssa-isolate-paths.c: Likewise.
3690 * gimple-ssa-strength-reduction.c: Likewise.
3691 * gimple-streamer-in.c: Likewise.
3692 * gimple-streamer-out.c: Likewise.
3693 * gimple-walk.c: Likewise.
3694 * gimple.c: Likewise.
3695 * gimplify-me.c: Likewise.
3696 * gimplify.c: Likewise.
3697 * godump.c: Likewise.
3698 * graph.c: Likewise.
3699 * graphite-poly.c: Likewise.
3700 * haifa-sched.c: Likewise.
3701 * hw-doloop.c: Likewise.
3702 * ifcvt.c: Likewise.
3703 * incpath.c: Likewise.
3704 * init-regs.c: Likewise.
3705 * internal-fn.c: Likewise.
3706 * ipa-chkp.c: Likewise.
3707 * ipa-comdats.c: Likewise.
3708 * ipa-cp.c: Likewise.
3709 * ipa-devirt.c: Likewise.
3710 * ipa-icf-gimple.c: Likewise.
3711 * ipa-icf.c: Likewise.
3712 * ipa-inline-analysis.c: Likewise.
3713 * ipa-inline-transform.c: Likewise.
3714 * ipa-inline.c: Likewise.
3715 * ipa-polymorphic-call.c: Likewise.
3716 * ipa-profile.c: Likewise.
3717 * ipa-prop.c: Likewise.
3718 * ipa-pure-const.c: Likewise.
3719 * ipa-ref.c: Likewise.
3720 * ipa-reference.c: Likewise.
3721 * ipa-split.c: Likewise.
3722 * ipa-utils.c: Likewise.
3723 * ipa-visibility.c: Likewise.
3725 * ira-build.c: Likewise.
3726 * ira-color.c: Likewise.
3727 * ira-conflicts.c: Likewise.
3728 * ira-costs.c: Likewise.
3729 * ira-emit.c: Likewise.
3730 * ira-lives.c: Likewise.
3733 * langhooks.c: Likewise.
3735 * lists.c: Likewise.
3736 * loop-doloop.c: Likewise.
3737 * loop-init.c: Likewise.
3738 * loop-invariant.c: Likewise.
3739 * loop-iv.c: Likewise.
3740 * loop-unroll.c: Likewise.
3741 * lower-subreg.c: Likewise.
3742 * lra-assigns.c: Likewise.
3743 * lra-coalesce.c: Likewise.
3744 * lra-constraints.c: Likewise.
3745 * lra-eliminations.c: Likewise.
3746 * lra-lives.c: Likewise.
3747 * lra-remat.c: Likewise.
3748 * lra-spills.c: Likewise.
3750 * lto-cgraph.c: Likewise.
3751 * lto-compress.c: Likewise.
3752 * lto-opts.c: Likewise.
3753 * lto-section-in.c: Likewise.
3754 * lto-section-out.c: Likewise.
3755 * lto-streamer-in.c: Likewise.
3756 * lto-streamer-out.c: Likewise.
3757 * lto-streamer.c: Likewise.
3758 * mode-switching.c: Likewise.
3759 * modulo-sched.c: Likewise.
3760 * omp-low.c: Likewise.
3761 * optabs.c: Likewise.
3762 * opts-global.c: Likewise.
3763 * passes.c: Likewise.
3764 * plugin.c: Likewise.
3765 * postreload-gcse.c: Likewise.
3766 * postreload.c: Likewise.
3767 * predict.c: Likewise.
3768 * print-tree.c: Likewise.
3769 * profile.c: Likewise.
3771 * realmpfr.c: Likewise.
3772 * recog.c: Likewise.
3774 * reg-stack.c: Likewise.
3775 * regcprop.c: Likewise.
3776 * reginfo.c: Likewise.
3777 * regrename.c: Likewise.
3778 * regstat.c: Likewise.
3779 * reload.c: Likewise.
3780 * reload1.c: Likewise.
3781 * reorg.c: Likewise.
3782 * resource.c: Likewise.
3783 * rtl-chkp.c: Likewise.
3784 * rtl-error.c: Likewise.
3785 * rtlanal.c: Likewise.
3786 * rtlhooks.c: Likewise.
3787 * sanopt.c: Likewise.
3788 * sched-deps.c: Likewise.
3789 * sched-ebb.c: Likewise.
3790 * sched-rgn.c: Likewise.
3792 * shrink-wrap.c: Likewise.
3793 * simplify-rtx.c: Likewise.
3794 * stack-ptr-mod.c: Likewise.
3795 * statistics.c: Likewise.
3797 * stor-layout.c: Likewise.
3798 * store-motion.c: Likewise.
3799 * stringpool.c: Likewise.
3800 * symtab.c: Likewise.
3801 * target-globals.c: Likewise.
3802 * targhooks.c: Likewise.
3803 * toplev.c: Likewise.
3804 * tracer.c: Likewise.
3805 * trans-mem.c: Likewise.
3806 * tree-affine.c: Likewise.
3807 * tree-call-cdce.c: Likewise.
3808 * tree-cfg.c: Likewise.
3809 * tree-cfgcleanup.c: Likewise.
3810 * tree-chkp-opt.c: Likewise.
3811 * tree-chkp.c: Likewise.
3812 * tree-chrec.c: Likewise.
3813 * tree-complex.c: Likewise.
3814 * tree-data-ref.c: Likewise.
3815 * tree-dfa.c: Likewise.
3816 * tree-diagnostic.c: Likewise.
3817 * tree-dump.c: Likewise.
3818 * tree-eh.c: Likewise.
3819 * tree-emutls.c: Likewise.
3820 * tree-if-conv.c: Likewise.
3821 * tree-inline.c: Likewise.
3822 * tree-into-ssa.c: Likewise.
3823 * tree-iterator.c: Likewise.
3824 * tree-loop-distribution.c: Likewise.
3825 * tree-nested.c: Likewise.
3826 * tree-nrv.c: Likewise.
3827 * tree-object-size.c: Likewise.
3828 * tree-outof-ssa.c: Likewise.
3829 * tree-parloops.c: Likewise.
3830 * tree-phinodes.c: Likewise.
3831 * tree-predcom.c: Likewise.
3832 * tree-pretty-print.c: Likewise.
3833 * tree-profile.c: Likewise.
3834 * tree-scalar-evolution.c: Likewise.
3835 * tree-sra.c: Likewise.
3836 * tree-ssa-address.c: Likewise.
3837 * tree-ssa-alias.c: Likewise.
3838 * tree-ssa-ccp.c: Likewise.
3839 * tree-ssa-coalesce.c: Likewise.
3840 * tree-ssa-copy.c: Likewise.
3841 * tree-ssa-dce.c: Likewise.
3842 * tree-ssa-dom.c: Likewise.
3843 * tree-ssa-dse.c: Likewise.
3844 * tree-ssa-forwprop.c: Likewise.
3845 * tree-ssa-ifcombine.c: Likewise.
3846 * tree-ssa-live.c: Likewise.
3847 * tree-ssa-loop-ch.c: Likewise.
3848 * tree-ssa-loop-im.c: Likewise.
3849 * tree-ssa-loop-ivcanon.c: Likewise.
3850 * tree-ssa-loop-ivopts.c: Likewise.
3851 * tree-ssa-loop-manip.c: Likewise.
3852 * tree-ssa-loop-niter.c: Likewise.
3853 * tree-ssa-loop-prefetch.c: Likewise.
3854 * tree-ssa-loop-unswitch.c: Likewise.
3855 * tree-ssa-loop.c: Likewise.
3856 * tree-ssa-math-opts.c: Likewise.
3857 * tree-ssa-operands.c: Likewise.
3858 * tree-ssa-phiopt.c: Likewise.
3859 * tree-ssa-phiprop.c: Likewise.
3860 * tree-ssa-pre.c: Likewise.
3861 * tree-ssa-propagate.c: Likewise.
3862 * tree-ssa-reassoc.c: Likewise.
3863 * tree-ssa-sccvn.c: Likewise.
3864 * tree-ssa-scopedtables.c: Likewise.
3865 * tree-ssa-sink.c: Likewise.
3866 * tree-ssa-strlen.c: Likewise.
3867 * tree-ssa-structalias.c: Likewise.
3868 * tree-ssa-tail-merge.c: Likewise.
3869 * tree-ssa-ter.c: Likewise.
3870 * tree-ssa-threadedge.c: Likewise.
3871 * tree-ssa-threadupdate.c: Likewise.
3872 * tree-ssa-uncprop.c: Likewise.
3873 * tree-ssa-uninit.c: Likewise.
3874 * tree-ssa.c: Likewise.
3875 * tree-ssanames.c: Likewise.
3876 * tree-stdarg.c: Likewise.
3877 * tree-streamer-in.c: Likewise.
3878 * tree-streamer-out.c: Likewise.
3879 * tree-streamer.c: Likewise.
3880 * tree-switch-conversion.c: Likewise.
3881 * tree-tailcall.c: Likewise.
3882 * tree-vect-data-refs.c: Likewise.
3883 * tree-vect-generic.c: Likewise.
3884 * tree-vect-loop-manip.c: Likewise.
3885 * tree-vect-loop.c: Likewise.
3886 * tree-vect-patterns.c: Likewise.
3887 * tree-vect-slp.c: Likewise.
3888 * tree-vect-stmts.c: Likewise.
3889 * tree-vectorizer.c: Likewise.
3890 * tree-vrp.c: Likewise.
3893 * ubsan.c: Likewise.
3894 * value-prof.c: Likewise.
3895 * var-tracking.c: Likewise.
3896 * varasm.c: Likewise.
3897 * varpool.c: Likewise.
3898 * vtable-verify.c: Likewise.
3900 * wide-int-print.cc: Likewise.
3901 * wide-int.cc: Likewise.
3902 * xcoffout.c: Likewise.
3904 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
3906 * Makefile.in (NO_PIE_CFLAGS): New.
3907 (NO_PIE_FLAG): Likewise.
3908 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3909 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3910 (BUILD_NO_PIE_CFLAGS): Likewise.
3911 (BUILD_NO_PIE_FLAG): Likewise.
3912 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3913 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3914 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3915 $(BUILD_NO_PIE_CFLAGS).
3916 (BUILD_CXXFLAGS): Likewise.
3917 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3918 $(BUILD_NO_PIE_FLAG).
3919 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
3920 (BUILD_NO_PIE_FLAG): Likewise.
3921 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3922 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3923 * configure: Regenerated.
3925 2015-10-29 Richard Biener <rguenther@suse.de>
3928 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3929 unsigned conditonal negation to ABS_EXPR.
3931 2015-10-29 Richard Biener <rguenther@suse.de>
3933 * gimple-match-head.c (gimple_simplify): Remove premature checking
3934 of builtin_decl_implicit of function calls we simplify.
3936 2015-10-29 Bin Cheng <bin.cheng@arm.com>
3938 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3939 (get_computation_cost_at): Ditto.
3940 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3943 2015-10-28 Tom de Vries <tom@codesourcery.com>
3945 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3948 2015-10-28 Jason Merrill <jason@redhat.com>
3950 * Makefile.in (TAGS): Include libcpp and libiberty.
3952 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3954 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3955 (extract_omp_for_data): Remove OpenACC special handling of
3958 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3959 (struct parallel): Update comment.
3960 (nvptx_reorg): Likewise.
3961 (nvptx_neuter): Cleanup whitespace.
3963 2015-10-28 Richard Henderson <rth@redhat.com>
3965 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3967 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3970 * config/avr/predicates.md (low_io_address_operand): Don't
3971 consider MODE when computing upper bound.
3972 (io_address_operand): Likewise.
3974 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
3976 * fold-const.c (operand_equal_p): Do not verify that types are
3977 compatible for MEM_REFs.
3979 2015-10-28 Richard Biener <rguenther@suse.de>
3981 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3982 in simplifying VEC_COND_EXPR conditions.
3984 2015-10-28 Tom de Vries <tom@codesourcery.com>
3986 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3987 into vi_next of a full_var.
3989 2015-10-28 Tom de Vries <tom@codesourcery.com>
3991 * tree-ssa-structalias.c (new_var_info, make_heapvar)
3992 (make_constraint_from_restrict, make_constraint_from_global_restrict)
3993 (create_function_info_for, create_variable_info_for_1)
3994 (create_variable_info_for): Add and handle add_id parameter.
3995 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3996 (init_base_vars): Add extra argument to calls to new_var_info.
3997 (get_vi_for_tree): Add extra argument to call to
3998 create_variable_info_for.
3999 (process_constraint, do_deref, process_all_all_constraints): Add extra
4000 argument to calls to new_scalar_tmp_constraint_exp.
4001 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
4002 argument to calls to make_heapvar.
4003 (make_restrict_var_constraints): Add extra argument to call to
4004 make_constraint_from_global_restrict.
4005 (intra_create_variable_infos): Add extra argument to call to
4006 create_variable_info_for_1.
4007 (ipa_pta_execute): Add extra argument to call to
4008 create_function_info_for.
4010 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4012 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
4013 (sibcall_value): Likewise.
4015 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4017 * config/nvptx/nvptx.h (struct machine_function): Add
4019 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
4020 nvptx_expand_oacc_join): Declare.
4021 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
4022 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
4023 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
4024 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
4025 UNSPECV_JOINING, UNSPECV_JOIN): New.
4026 (BITS, BITD): New mode iterators.
4027 (br_true_uni, br_false_uni): New.
4028 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
4029 (oacc_dim_size, oacc_dim_pos): New.
4030 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
4031 (oacc_fork, oacc_join): New.
4032 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
4033 (worker_load<mode>, worker_store<mode>): New.
4034 (nvptx_barsync): New.
4035 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
4036 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
4037 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
4038 worker_bcast_sym): New.
4039 (nvptx_option_override): Initialize worker broadcast buffer.
4040 (nvptx_emit_forking, nvptx_emit_joining): New.
4041 (nvptx_init_axis_predicate): New.
4042 (nvptx_declare_function_name): Init axis predicates.
4043 (nvptx_expand_call): Add fork/join markers around routine call.
4044 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
4045 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
4046 (nvptx_gen_vcast): New.
4047 (struct wcast_data_t): New.
4048 (enum propagate_mask): New.
4049 (nvptx_gen_wcast): New.
4050 (nvptx_print_operand): Add 'S' case.
4051 (struct parallel): New.
4052 (parallel::parallel, parallel::~parallel): New.
4053 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
4054 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
4055 nvptx_find_par, nvptx_discover_pars): New.
4056 (nvptx_propagate): New.
4057 (vprop_gen, nvptx_vpropagate): New.
4058 (wprop_gen, nvptx_wpropagate): New.
4060 (nvptx_single, nvptx_skip_par): New.
4061 (nvptx_process_pars, nvptx_neuter_pars): New.
4062 (ntptx_reorg): Split blocks, generate parallel structure, apply
4064 (nvptx_cannot_copy_insn_p): New.
4065 (nvptx_file_end): Emit worker broadcast decl.
4066 (nvptx_goacc_fork_join): New.
4067 (TARGET_CANNOT_COPY_INSN_P): Override.
4068 (TARGET_GOACC_FORK_JOIN): Override.
4070 2015-10-28 Richard Biener <rguenther@suse.de>
4072 * fold-const.c (negate_expr_p): Adjust the division case to
4073 properly avoid introducing undefined overflow.
4074 (fold_negate_expr): Likewise.
4076 2015-10-28 Richard Biener <rguenther@suse.de>
4078 PR tree-optimization/65962
4079 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4080 Avoid creating loop carried dependences also for outer loops
4081 of the loop a use to replace is in.
4083 2015-10-28 Richard Biener <rguenther@suse.de>
4085 * common.opt (fchecking): New flag controlling flag_checking.
4086 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
4087 * timevar.c (timer::print): Adjust output.
4088 * doc/invoke.texi (fchecking): Document.
4090 2015-10-28 Richard Biener <rguenther@suse.de>
4093 * fold-const.c (negate_expr_p): We cannot negate plus or minus
4094 if overflow is not wrapping. Likewise multiplication unless
4095 one operand is constant and not power of two.
4096 (fold_negate_expr): Adjust accordingly.
4098 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4100 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
4102 (is_oacc_parallel, is_oacc_kernels): New.
4103 (enclosing_target_ctx): May return NULL.
4104 (ctx_in_oacc_kernels_region): New.
4105 (check_oacc_kernel_gwv): New.
4106 (oacc_loop_or_target_p): Delete.
4107 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
4108 operands. Strip reductions fro kernels.
4109 (scan_omp_target): Don't calculate gwv mask.
4110 (lower_oacc_head_mark, lower_oacc_loop_marker,
4111 lower_oacc_head_tail): New.
4112 (struct oacc_collapse): New.
4113 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
4114 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4115 Remove OpenACC handling.
4116 (expand_oacc_for): New.
4117 (expand_omp_for): Call expand_oacc_for.
4118 (lower_omp_for): Call lower_oacc_head_tail.
4120 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
4122 * attribs.c (check_attribute_tables): New function, broken out from...
4123 (init_attributes): Use it.
4124 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
4125 gcc_checking_assert and checking_* functions to eliminate
4126 ENABLE_CHECKING conditionals.
4127 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
4128 (pass_expand::execute): Likewise.
4129 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
4130 * cgraphunit.c (mark_functions_to_output): Likewise.
4131 (cgraph_node::expand_thunk): Likewise.
4132 (symbol_table::compile): Likewise.
4133 * ddg.c (add_cross_iteration_register_deps): Likewise.
4134 (create_ddg_all_sccs): Likewise.
4135 * df-core.c (df_finish_pass, df_analyze): Likewise.
4136 * diagnostic-core.h: Likewise.
4137 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
4138 * dominance.c (calculate_dominance_info): Likewise.
4139 * dwarf2out.c (add_AT_die_ref): Likewise.
4140 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
4141 (loc_list_from_tree, gen_lexical_block_die): Likewise.
4142 gen_type_die_with_usage, gen_type_die): Likewise.
4143 (dwarf2out_decl): Likewise.
4144 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
4145 * except.c (duplicate_eh_regions): Likewise.
4146 * fwprop.c (register_active_defs, update_df_init): Likewise.
4147 (fwprop_init, fwprop_done): Likewise.
4148 (update_uses): Likewise.
4149 * ggc-page.c (ggc_grow): Likewise.
4150 * gimplify.c (gimplify_body): Likewise.
4151 (gimplify_hasher::equal): Likewise.
4152 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
4153 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4155 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4156 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4157 * hash-table.h (::find_empty_slot_for_expand): Likewise.
4158 * ifcvt.c (if_convert): Likewise.
4159 * ipa-cp.c (ipcp_propagate_stage): Likewise.
4160 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4161 (odr_type_p, odr_types_equivalent_p): Likewise.
4162 (add_type_duplicate, get_odr_type): Likewise.
4163 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4164 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4165 (sem_item_optimizer::verify_classes): Likewise.
4166 (sem_item_optimizer::traverse_congruence_split): Likewise.
4167 (sem_item_optimizer::checking_verify_classes): New.
4168 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4170 * cfgrtl.c (commit_edge_insertions): Likewise.
4171 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4172 (rtl_flow_call_edges_add): Likewise.
4173 * cgraph.c (symbol_table::create_edge): Likewise.
4174 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4175 * cgraph.h (symtab_node): Likewise.
4176 (symtab_node::checking_verify_symtab_nodes): Define.
4177 (cgraph_node::checking_verify_cgraph_nodes): Define.
4178 * cfghooks.h (checking_verify_flow_info): Define.
4179 * cfgloop.h (checking_verify_loop_structure): Define.
4180 * dominance.h (checking_verify_dominators): Define.
4181 * et-forest.c: Fix comment.
4182 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4183 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4184 ENABLE_CHECKING conditionals.
4185 * ipa-inline-transform.c (save_inline_function_body): Likewise.
4186 * ipa-inline.c (inline_small_functions): Likewise.
4187 (early_inliner): Likewise.
4188 * ipa-inline.h (estimate_edge_growth): Likewise.
4189 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4190 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4191 (ipa_single_use): Likewise.
4192 * ira-int.h: Likewise.
4193 * ira.c (ira): Likewise.
4194 * loop-doloop.c (doloop_optimize_loops): Likewise.
4195 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4196 * loop-invariant.c (move_loop_invariants): Likewise.
4197 * lra-assigns.c (lra_assign): Likewise.
4198 * lra-constraints.c (lra_constraints): Likewise.
4199 * lra-eliminations.c (lra_eliminate): Likewise.
4200 * lra-int.h (struct lra_reg): Likewise.
4201 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4202 (lra_create_live_ranges_1): Likewise.
4203 * lra-remat.c (create_remat_bb_data): Likewise.
4204 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4206 (check_rtl): Always define. Remove incorrect guard around
4207 extract_constrain_insn call.
4208 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4209 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4210 ENABLE_CHECKING conditionals.
4211 * lto-streamer-out.c (DFS::DFS): Likewise.
4212 (lto_output): Likewise.
4213 * lto-streamer.c (lto_streamer_init): Likewise.
4214 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4215 expand_omp_target, execute_expand_omp): Likewise.
4216 (lower_omp_target): Likewise.
4217 * passes.c (execute_function_todo): Likewise.
4218 (execute_todo, execute_one_pass): Likewise.
4219 (verify_curr_properties): Always define.
4220 * predict.c (tree_estimate_probability: Use flag_checking,
4221 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4222 ENABLE_CHECKING conditionals.
4223 (propagate_freq): Likewise.
4224 * pretty-print.c (pp_format): Likewise.
4225 * real.c (real_to_decimal_for_mode): Likewise.
4226 * recog.c (split_all_insns): Likewise.
4227 * regcprop.c (kill_value_one_regno): Likewise.
4228 (copy_value): Likewise.
4229 (validate_value_data): Define unconditionally.
4230 * reload.c: Fix comment.
4231 * timevar.c: Include options.h
4232 * tree-ssa.h (checking_verify_ssa): Define.
4233 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4234 * sched-deps.c (CHECK): Remove unused macro.
4235 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4236 gcc_checking_assert and checking_* functions to eliminate
4237 ENABLE_CHECKING conditionals.
4238 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4239 * sel-sched.c (struct moveop_static_params): Likewise.
4240 (find_best_reg_for_expr, move_cond_jump): Likewise.
4241 (move_op_orig_expr_not_found): Likewise.
4242 (code_motion_process_successors, move_op): Likewise.
4243 * ssa-iterators.h (first_readonly_imm_use): Likewise.
4244 (next_readonly_imm_use): Likewise.
4245 * store-motion.c (compute_store_table): Likewise.
4246 * symbol-summary.h (function_summary::function_summary): Likewise.
4247 * target.h (cumulative_args_t): Likewise.
4248 (get_cumulative_args, pack_cumulative_args): Likewise.
4249 * timevar.c: (timer::print): Likewise.
4250 * trans-mem.c (ipa_tm_execute): Likewise.
4251 * tree-cfg.c (move_stmt_op): Likewise.
4252 (move_sese_region_to_fn): Likewise.
4253 (gimple_flow_call_edges_add): Likewise.
4254 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4256 * tree-eh.c (remove_unreachable_handlers): Likewise.
4257 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4258 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4259 * tree-into-ssa.c (update_ssa): Likewise.
4260 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4261 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4262 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4263 * tree-predcom.c (suitable_component_p): Likewise.
4264 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4265 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4266 * tree-ssa-live.c (verify_live_on_entry): Likewise.
4267 * tree-ssa-live.h (register_ssa_partition): Likewise.
4268 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4269 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4270 (tree_transform_and_unroll_loop): Likewise.
4271 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4272 * tree-ssa-operands.c (get_expr_operands): Likewise.
4273 * tree-ssa-propagate.c (replace_exp_1): Likewise.
4274 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4275 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4276 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4277 * tree-ssanames.c (release_ssa_name_fn): Likewise.
4278 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4279 * tree-vect-loop-manip.c
4280 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4281 (slpeel_checking_verify_cfg_after_peeling): Likewise.
4282 (vect_do_peeling_for_loop_bound): Likewise.
4283 (vect_do_peeling_for_alignment): Likewise.
4284 * tree-vrp.c (supports_overflow_infinity): Likewise.
4285 (set_value_range): Likewise.
4286 * tree.c (free_lang_data_in_cgraph): Likewise.
4287 * value-prof.c (gimple_remove_histogram_value): Likewise.
4288 (free_hist): Likewise.
4289 * var-tracking.c (canonicalize_values_star): Likewise.
4290 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4292 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4294 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4295 IFN_GOACC_LOOP): New.
4296 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4297 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4298 IFN_UNIQUE_OACC_TAIL_MARK.
4299 (enum ifn_goacc_loop_kind): New.
4300 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4301 IFN_UNIQUE_OACC_JOIN cases.
4302 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4303 (expand_GOACC_LOOP): New.
4304 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4305 * omp-low.c: Include gimple-pretty-print.h.
4306 (struct oacc_loop): New.
4307 (enum oacc_loop_flags): New.
4308 (oacc_thread_numbers): New.
4309 (oacc_xform_loop): New.
4310 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4311 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4312 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4313 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4314 oacc_loop_discovery): New.
4315 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4316 oacc_loop_process): New.
4317 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4318 (execute_oacc_device_lower): Discover & process loops. Process
4320 * target.def (goacc.fork_join): Change sense of hook, clarify
4322 * doc/tm.texi: Regenerated.
4324 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4326 * target-insns.def (oacc_fork, oacc_join): Define.
4327 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4328 (goacc.fork_join): New GOACC hook.
4329 * targhooks.h (default_goacc_fork_join): Declare.
4330 * omp-low.c (default_goacc_forkjoin): New.
4331 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4332 * doc/tm.texi: Regenerate.
4334 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4336 * omp-low.c (oacc_init_rediction_array): New.
4337 (oacc_initialize_reduction_data): Initialize array.
4339 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4341 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4343 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4345 * internal-fn.c (expand_UNIQUE): New.
4346 * internal-fn.h (enum ifn_unique_kind): New.
4347 * internal-fn.def (IFN_UNIQUE): New.
4348 * target-insns.def (unique): Define.
4349 * gimple.h (gimple_call_internal_unique_p): New.
4350 * gimple.c (gimple_call_same_target_p): Check internal fn
4352 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4353 * tree-ssa-threadedge.c
4354 (record_temporary_equivalences_from_stmts): Likewise.
4355 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4357 2015-10-27 Richard Henderson <rth@redhat.com>
4360 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4361 narrowing subregs on SSE and MMX registers.
4362 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4363 appear to be sub-words of multi-register pseudos must be rejected.
4364 * doc/tm.texi: Regenerate.
4366 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4369 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4370 operands[0] is a reg before taking its REGNO in split condition.
4371 (*movdi_aarch64): Likewise.
4373 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4375 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4376 Handle floating point inner modes properly.
4378 2015-10-27 Alan Hayward <alan.hayward@arm.com>
4381 (vectorizable_live_operation): Change iterator.
4383 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4384 Aditya Kumar <aditya.k7@samsung.com>
4386 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4387 function to schedule based on isl_schedule_node.
4388 (get_schedule_map_st): New schedule optimizer based on
4390 (scop_get_domains): New. Return the isl_union_set containing the
4391 domains of all the pbbs.
4392 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4394 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
4397 * calls.c (prepare_call_address): Don't handle -fno-plt here.
4398 * config/i386/i386.c (ix86_expand_call): Generate indirect call
4399 via GOT for -fno-plt. Support indirect call via GOT for x32.
4400 * config/i386/predicates.md (sibcall_memory_operand): Allow
4403 2015-10-27 Richard Biener <rguenther@suse.de>
4405 PR tree-optimization/68104
4406 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4407 strided access check ...
4408 (vect_compute_data_refs_alignment): ... here.
4410 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
4411 Joseph Myers <joseph@codesourcery.com>
4412 Mark Shinwell <shinwell@codesourcery.com>
4413 Andrew Stubbs <ams@codesourcery.com>
4414 Rich Felker <dalias@libc.org>
4416 * config.gcc: Handle --enable-fdpic.
4417 * config/sh/constraints.md (Ccl): New constraint.
4418 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4419 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4421 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4423 * config/sh/sh-protos.h (function_symbol_result): New struct.
4424 (function_symbol): Return function_symbol_result.
4425 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4427 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4429 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4430 (sh_option_override): Force -fPIC if FDPIC is in effect.
4431 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4432 UNSPEC_GOTOFFFUNCDESC cases.
4433 (prepare_move_operands): Use FDPIC initial GOT register for
4434 TLS-related GOT access; inhibit cross-section address offset constants
4436 (sh_assemble_integer): New function.
4437 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4438 PC-relative call sites.
4439 (expand_ashiftrt): Adapt invocation of function_symbol.
4440 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4441 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4442 UNSPEC_GOTOFFFUNCDESC.
4443 (legitimize_pic_address): Resolve function symbols to function
4444 descriptors for FDPIC. Do not use GOT-relative addressing for local
4445 data that may be read-only on FDPIC.
4446 (sh_emit_storesi, sh_emit_storehi): New functions.
4447 (sh_trampoline_init): Generate FDPIC trampolines.
4448 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4449 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4450 (sh_output_mi_thunk): Generate FDPIC call.
4451 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
4452 FDPIC, generate call site labels to use PC-relative addressing rather
4453 than GOT-relative addressing.
4454 (sh_conditional_register_usage): Make PIC register fixed and call used
4455 when FDPIC is in effect.
4456 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4457 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4458 sh_get_fdpic_reg_initial_val): New functions.
4459 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4461 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4462 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4463 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4464 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4466 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4467 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4468 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4469 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4471 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4472 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4473 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4474 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4475 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4476 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4477 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4478 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4479 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4480 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4481 block_move_real, block_lump_real, block_move_real_i4,
4482 block_lump_real_i4): Add support for FDPIC calls.
4483 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4484 call_value_pop): Adjust for new function_symbol signature.
4485 * config/sh/sh.opt (-mfdpic): New option.
4486 * doc/install.texi (Options specification): Document --enable-fdpic.
4487 * doc/invoke.texi (SH Options): Document -mfdpic.
4490 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4492 PR tree-optimization/65963
4493 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4494 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4496 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4499 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4500 * config/arm/constraints.md (Dp): Update callsite.
4501 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4503 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4505 * builtins.c (fold_builtin_load_exponent): Rename to...
4506 (fold_const_builtin_load_exponent): ...this and only handle
4508 (fold_builtin_2): Update accordingly.
4509 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4511 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4513 * builtins.c (fold_builtin_logb): Rename to...
4514 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4515 (fold_builtin_significand): Rename to...
4516 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4517 (fold_builtin_1): Update accordingly.
4519 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4521 * builtins.c (fold_builtin_fmin_fmax): Delete.
4522 (fold_builtin_2): Handle constant fmin and fmax arguments here.
4523 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4525 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
4527 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4528 for register extension into sign and zero register extension.
4529 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4530 for sign and zero register extension.
4531 (cortexa57_addrcost_table): Likewise.
4532 (xgene1_addrcost_table): Likewise.
4534 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4536 * fold-const.c (fold_minmax): Delete.
4537 (fold_binary_loc): Don't call it.
4538 * match.pd: Add rules previously handled by fold_minmax.
4540 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4542 * builtins.c (fold_builtin_fma): Remove constant handling.
4543 (fold_builtin_3): Handle constant fma arguments here.
4545 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4547 * builtins.c (fold_builtin_fabs): Remove constant handling.
4548 (fold_builtin_abs): Likewise.
4550 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4552 * builtins.c (fold_builtin_copysign): Delete.
4553 (fold_builtin_2): Handle constant copysign arguments here.
4554 * match.pd: Add rules previously handled by fold_builtin_copysign.
4556 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4558 * builtins.c (fold_builtin_signbit): Delete.
4559 (fold_builtin_2): Handle constant signbit arguments here.
4560 * match.pd: Add rules previously handled by fold_builtin_signbit.
4562 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4564 * match.pd: Handle sqrt(x) cmp 0 specially.
4566 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
4568 * tree-vect-generic.c (expand_vector_operations_1): Check
4569 optab type before using it.
4571 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4573 * config/aarch64/aarch64-protos.h
4574 (struct tune_params): Add autoprefetcher_model field.
4575 * config/aarch64/aarch64.c: Include params.h
4576 (generic_tunings): Specify autoprefetcher_model value.
4577 (cortexa53_tunings): Likewise.
4578 (cortexa57_tunings): Likewise.
4579 (cortexa72_tunings): Likewise.
4580 (thunderx_tunings): Likewise.
4581 (xgene1_tunings): Likewise.
4582 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4583 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4584 (aarch64_override_options_internal): Set
4585 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4587 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4589 * builtins.c (fold_builtin_exponent): Delete.
4590 (fold_builtin_2): Handle constant expN arguments here.
4591 * match.pd: Fold expN(logN(x)) -> x.
4593 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4595 * builtins.c (fold_builtin_powi): Delete.
4596 (fold_builtin_2): Handle constant powi arguments here.
4597 * match.pd: Add rules previously handled by fold_builtin_powi.
4599 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4601 * builtins.c (fold_builtin_pow): Delete in favor of...
4602 (fold_const_builtin_pow): ...this new function. Only handle constant
4604 (fold_builtin_2): Update accordingly.
4605 * match.pd: Add rules previously handled by fold_builtin_pow.
4607 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4609 * builtins.c (fold_builtin_hypot): Delete.
4610 (fold_builtin_2): Handle constant hypot arguments here.
4611 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
4612 hypot(x, x) to fabs(x)*sqrt(2).
4614 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4616 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4617 instead of make_ssa_name if not yet in SSA form.
4619 2015-10-27 Richard Biener <rguenther@suse.de>
4621 * cfg.c (free_edge): Add function argument and use it instead of cfun.
4622 (clear_edges): Likewise.
4623 * cfg.h (clear_edges): Adjust prototype.
4624 * cfgexpand.c (pass_expand::execute): Adjust.
4625 * cfgloop.c (release_recorded_exits): Add function argument and use
4627 * cfgloop.h (release_recorded_exits): Adjust prototype.
4628 (loops_state_satisfies_p): Add overload with function argument.
4629 (loops_state_set): Likewise.
4630 (loops_state_clear): Likewise.
4631 (struct loop_iterator): Add function argument to constructor
4632 and iterator and use it instead of cfun.
4633 (FOR_EACH_LOOP_FN): New macro.
4634 (loop_optimizer_finalize): Add overload with function argument.
4635 * loop-init.c (loop_optimizer_init): Adjust.
4636 (fix_loop_structure): Likewise.
4637 (loop_optimizer_finaliz): Add function argument and use it
4639 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4640 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4641 * cgraph.c (release_function_body): Do not push/pop cfun.
4642 * final.c (rest_of_clean_state): Adjust.
4643 * graphite.c (graphite_finalize): Likewise.
4644 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4645 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4646 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4647 (tree_unroll_loops_completely): Likewise.
4648 (pass_complete_unrolli::execute): Likewise.
4649 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4650 Add function argument and use it instead of cfun.
4651 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4653 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4654 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4656 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4657 * tree-ssanames.c (fini_ssanames): Add function argument and use it
4659 * tree-ssanames.c (fini_ssanames): Adjust prototype.
4660 * tree-vrp.c (execute_vrp): Adjust.
4661 * value-prof.c (free_histograms): Add function argument and use it
4663 * value-prof.h (free_histograms): Adjust prototype.
4665 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4667 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4668 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4669 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
4671 2015-10-27 Tom de Vries <tom@codesourcery.com>
4673 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4676 2015-10-27 Bin Cheng <bin.cheng@arm.com>
4678 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4679 (inv_can_prop_to_addr_use): New function.
4680 (record_use): Call can_prop_to_addr_uses, set the new field.
4681 (get_inv_cost): Count cost if inv can't be propagated into its
4684 2015-10-26 Doug Evans <dje@google.com>
4686 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4688 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
4690 * match.pd (fold_widened_comparison): Apply simplifications to all
4693 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
4695 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4696 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4697 * doc/tm.texi: Regenerated.
4698 * reorg.c (dbr_schedule): Use new hook.
4699 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4701 2015-10-26 Jeff Law <law@redhat.com>
4703 PR tree-optimization/68013
4704 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4705 Make sure the first block in the path is in VISITED_BBs.
4707 2015-10-26 Richard Biener <rguenther@suse.de>
4708 Dominik Vogt <vogt@linux.vnet.ibm.com>
4711 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4712 Properly prune ref->ref for accesses outside of ref.
4714 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4716 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4717 new statements to be inserted if inplace. Allow calls to have
4720 2015-10-26 Richard Biener <rguenther@suse.de>
4722 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4723 (do_valueize): New function.
4724 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4726 * tree-ssa-threadedge.c: Remove builtins.h include, include
4728 (fold_assignment_stmt): Remove.
4729 (threadedge_valueize): New function.
4730 (record_temporary_equivalences_from_stmts): Use
4731 gimple_fold_stmt_to_constant_1, note additional cleanup
4734 2015-10-26 Richard Biener <rguenther@suse.de>
4736 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4737 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4739 2015-10-26 Alan Hayward <alan.hayward@arm.com>
4741 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4742 VEC_COND_EXPR types.
4744 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4746 * auto-inc-dec.c (insert_move_insn_before): Delete.
4747 (attempt_change): Remember to cost the simple move in the
4748 FORM_PRE_ADD and FORM_POST_ADD cases.
4750 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
4753 * config/sh/sh.c (sh_vector_mode_supported_p): Use
4754 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4756 2015-10-26 Tom de Vries <tom@codesourcery.com>
4758 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4760 (intra_create_variable_infos): ... here.
4762 2015-10-26 Tom de Vries <tom@codesourcery.com>
4764 * tree-ssa-structalias.c (intra_create_variable_infos): Add
4765 restrict_pointer_p and recursive_restrict_p variables.
4767 2015-10-26 Tom de Vries <tom@codesourcery.com>
4769 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4770 get_vi_for_tree call.
4772 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4775 * optabs.c (expand_atomic_compare_and_swap): Handle case when
4776 ptarget_oval or ptarget_bool are const0_rtx.
4778 2015-10-26 Christian Bruel <christian.bruel@st.com>
4780 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4781 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4782 * cp/method.c (implicitly_declare_fn): Likewise.
4783 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4784 * java/class.c (add_method_1): Likewise.
4786 2015-10-26 Richard Biener <rguenther@suse.de>
4788 * alloc-pool.h (base_pool_allocator): Use placement new.
4789 (base_pool_allocator::remove): Likewise. Compute size outside of
4792 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4794 * builtins.c (do_real_to_int_conversion): New function.
4795 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4796 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4798 * match.pd: Add rules previously handled by fold_fixed_mathfn
4799 and fold_builtin_int_roundingfn.
4801 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4803 * match.pd: Use macros to define built-in operator lists.
4805 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
4806 Richard Biener <rguenther@suse.de>
4808 * genmatch.c (dt_simplify::gen): Skip captures that are
4810 (parser::parse_expr): Allow captures in results too.
4811 * builtins.c (fold_builtin_cexp): Delete.
4812 (fold_builtin_1): Handle constant cexp arguments here.
4813 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4815 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
4817 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4818 conditional compilation.
4819 (base_pool_allocator::remove): Use flag_checking.
4821 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
4823 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4826 * dojump.c (do_compare_and_jump): Canonicalize both function and
4829 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
4832 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4835 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4838 * ipa-polymorphic-call.c
4839 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4840 instance offset with offset of outer type.
4842 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4844 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4846 2015-10-23 Caroline Tice <cmtice@google.com>
4848 (from Richard Biener
4849 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
4850 call to iterative_hash_host_wide_int.
4852 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4854 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4857 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4859 * tree-vect-generic.c (expand_vector_operations_1): Check
4860 optab exists before use it.
4862 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4864 * tree-vect-generic.c (expand_vector_condition): Avoid
4865 uninitialized variable warning.
4867 2015-10-23 Jeff Law <law@redhat.com>
4869 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4871 (execute_todo): Call it here.
4872 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4874 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4876 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4877 Szabolcs Nagy <szabolcs.nagy@arm.com>
4879 * config.gcc (enable_secureplt): Add *-linux*-musl*.
4881 2015-10-23 Jeff Law <law@redhat.com>
4883 PR tree-optimization/67830
4884 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4885 Explicitly verify the mask has no bits outside the type of
4886 the innermost operands.
4888 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4889 Szabolcs Nagy <szabolcs.nagy@arm.com>
4891 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4892 (MUSL_DYNAMIC_LINKER64): Define.
4893 (GNU_USER_DYNAMIC_LINKER32): Update.
4894 (GNU_USER_DYNAMIC_LINKER64): Update.
4895 (CHOOSE_DYNAMIC_LINKER): Update.
4897 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4898 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4899 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4900 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4901 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4902 (CHOOSE_DYNAMIC_LINKER): Update.
4903 (INCLUDE_DEFAULTS): Redefine.
4905 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4907 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4909 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4910 comparing addresses.
4912 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4914 * fold-const.c (operand_equal_p): Handle matching of vector
4917 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4919 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4921 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
4922 Andrew Pinski <apinski@cavium.com>
4924 PR rtl-optimization/67736
4925 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4928 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4931 * tree.c (build_truth_vector_type): Support BLK mode
4932 returned for boolean vector.
4934 2015-10-23 Alan Hayward <alan.hayward@arm.com>
4936 PR tree-optimization/65947
4938 (vect_is_simple_reduction_1): Find condition reductions.
4939 (vect_model_reduction_cost): Add condition reduction costs.
4940 (get_initial_def_for_reduction): Add condition reduction initial var.
4941 (vect_create_epilog_for_reduction): Add condition reduction epilog.
4942 (vectorizable_reduction): Condition reduction support.
4943 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4944 * doc/sourcebuild.texi (Vector-specific attributes): Document
4947 2015-10-23 Richard Biener <rguenther@suse.de>
4949 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4952 2015-10-23 Richard Biener <rguenther@suse.de>
4953 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4955 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4956 into (A ^ B) - B to match.pd
4957 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4959 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4961 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4963 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4965 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4967 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4968 INTEGER_CST@1)): New simplifier.
4970 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
4972 * builtins.c (integer_valued_real_p): Move to fold-const.c.
4973 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4974 (fold_builtin_ceil, fold_builtin_round): Delete.
4975 (fold_builtin_1): Handle constant trunc, floor, ceil and round
4977 * convert.c (convert_to_real): Remove narrowing of rounding
4979 * fold-const.h (integer_valued_real_unary_p)
4980 (integer_valued_real_binary_p, integer_valued_real_call_p)
4981 (integer_valued_real_single_p, integer_valued_real_p): Declare.
4982 * fold-const.c (tree_single_nonnegative_warnv_p): Move
4983 name_registered_for_update_p check to SSA_NAME case statement.
4984 Don't call tree_simple_nonnegative_warnv_p for SSA names.
4985 (integer_valued_real_unary_p, integer_valued_real_binary_p)
4986 (integer_valued_real_call_p, integer_valued_real_single_p)
4987 (integer_valued_real_invalid_p): New functions.
4988 (integer_valued_real_p): Move from fold-const.c and rework
4989 to call the functions above. Handle SSA names.
4990 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4991 * gimple-fold.c (gimple_assign_integer_valued_real_p)
4992 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4993 (gimple_stmt_integer_valued_real_p): New functions.
4994 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4995 Fold f(x)->x for the same f if x is known to be integer-valued.
4996 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4997 the result. Canonicalize floor(x) as trunc(x) if x is
5000 2015-10-23 Tom de Vries <tom@codesourcery.com>
5002 * tree-ssa-structalias.c (intra_create_variable_infos): Use
5003 make_constraint_from.
5005 2015-10-23 Tom de Vries <tom@codesourcery.com>
5007 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
5008 setting of is_full_var in case of a single field.
5010 2015-10-22 Martin Sebor <msebor@redhat.com>
5013 * config/i386/i386.opt: Add missing periods to the ends of sentences.
5014 * config/msp430/msp430.opt: Same.
5016 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5018 * doc/extend.exp (Global Register Variables): Rewrite.
5020 2015-10-22 Jeff Law <law@redhat.com>
5022 * genattrtab.c (main): If we do not have any annul-true or annul-false
5023 slots, then write out a dummy eligible_for_annul_true or
5024 eligible_for_annul_false as needed.
5026 2015-10-22 Nick Clifton <nickc@redhat.com>
5028 * config/msp430/msp430.opt: Add -msilicon-errata and
5029 -msilicon-errata-warn.
5030 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
5032 * doc/invoke.texi: Document new options.
5034 2015-10-22 Richard Biener <rguenther@suse.de>
5036 PR tree-optimization/58497
5037 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5038 (expand_vector_operations_1): Use it. Lower operations on
5039 all uniform vectors to scalar operations if the HW supports it.
5041 2015-10-22 Richard Biener <rguenther@suse.de>
5043 PR tree-optimization/19049
5044 PR tree-optimization/65962
5045 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
5046 to strided accesses if single-element interleaving doesn't work.
5048 2015-10-22 Richard Biener <rguenther@suse.de>
5052 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
5053 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
5054 (expand_unop): Likewise.
5056 2015-10-22 Richard Biener <rguenther@suse.de>
5058 * fold-const.c (fold_addr_of_array_ref_difference): Properly
5059 convert operands before folding a MINUS_EXPR.
5060 (fold_binary_loc): Move simplification of MINUS_EXPR on
5061 converted POINTER_PLUS_EXPRs ...
5062 * match.pd: ... here.
5064 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
5066 * builtins.c (fold_builtin_tan): Delete.
5067 (fold_builtin_1): Handle constant tan arguments here.
5068 * match.pd: Simplify (tan (atan x)) to x.
5070 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
5072 * builtins.c (fold_builtin_cproj): Delete.
5073 (fold_builtin_1): Handle constant arguments here.
5074 (build_complex_cproj): Move and rename to...
5075 * tree.c: (build_complex_inf): ...this.
5076 * tree.h (build_complex_inf): Declare.
5077 * match.pd: Fold cproj(x)->x if x has no infinity.
5078 Use build_complex_inf for existing cproj rules.
5080 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5083 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
5084 already have a comparison result.
5086 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5089 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
5090 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
5091 (aarch64_classify_address): Likewise.
5092 (aarch64_secondary_reload): Likewise.
5093 (aarch64_override_options_after_change_1): Adjust.
5094 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5095 Use aarch64_nopcrelative_literal_loads.
5096 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5097 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5100 2015-10-21 Martin Sebor <msebor@redhat.com>
5103 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
5104 (print_filtered_help): Reference aliased option's name and encourage
5105 readers to use it in preference to the alias if the former is not
5106 documented. Mention when using an option is diagnosed.
5107 * gcc.c (display_help): End each sentence with a period.
5109 * common.opt: End each sentence that describes an option with
5111 * config/aarch64/aarch64.opt: Same.
5112 * config/alpha/alpha.opt: Same.
5113 * config/arc/arc.opt: Same.
5114 * config/arm/arm.opt: Same.
5115 * config/avr/avr.opt: Same.
5116 * config/bfin/bfin.opt: Same.
5117 * config/c6x/c6x.opt: Same.
5118 * config/cr16/cr16.opt: Same.
5119 * config/cris/cris.opt: Same.
5120 * config/cris/linux.opt: Same.
5121 * config/darwin.opt: Same.
5122 * config/epiphany/epiphany.opt: Same.
5123 * config/fr30/fr30.opt: Same.
5124 * config/frv/frv.opt: Same.
5125 * config/ft32/ft32.opt: Same.
5126 * config/g.opt: Same.
5127 * config/h8300/h8300.opt: Same.
5128 * config/i386/cygming.opt: Same.
5129 * config/i386/djgpp.opt: Same.
5130 * config/i386/i386.opt: Same.
5131 * config/i386/interix.opt: Same.
5132 * config/i386/mingw-w64.opt: Same.
5133 * config/i386/mingw.opt: Same.
5134 * config/ia64/ia64.opt: Same.
5135 * config/ia64/ilp32.opt: Same.
5136 * config/iq2000/iq2000.opt: Same.
5137 * config/linux.opt: Same.
5138 * config/lm32/lm32.opt: Same.
5139 * config/lynx.opt: Same.
5140 * config/m32c/m32c.opt: Same.
5141 * config/m32r/m32r.opt: Same.
5142 * config/m68k/ieee.opt: Same.
5143 * config/m68k/m68k.opt: Same.
5144 * config/mcore/mcore.opt: Same.
5145 * config/mep/mep.opt: Same.
5146 * config/microblaze/microblaze.opt: Same.
5147 * config/mips/mips.opt: Same.
5148 * config/mmix/mmix.opt: Same.
5149 * config/mn10300/mn10300.opt: Same.
5150 * config/moxie/moxie.opt: Same.
5151 * config/msp430/msp430.opt: Same.
5152 * config/nios2/elf.opt: Same.
5153 * config/nios2/nios2.opt: Same.
5154 * config/nvptx/nvptx.opt: Same.
5155 * config/pa/pa-hpux.opt: Same.
5156 * config/pa/pa-hpux1010.opt: Same.
5157 * config/pa/pa-hpux1111.opt: Same.
5158 * config/pa/pa-hpux1131.opt: Same.
5159 * config/pa/pa.opt: Same.
5160 * config/pa/pa64-hpux.opt: Same.
5161 * config/pdp11/pdp11.opt: Same.
5162 * config/rl78/rl78.opt: Same.
5163 * config/rs6000/476.opt: Same.
5164 * config/rs6000/aix64.opt: Same.
5165 * config/rs6000/darwin.opt: Same.
5166 * config/rs6000/linux64.opt: Same.
5167 * config/rs6000/rs6000.opt: Same.
5168 * config/rs6000/sysv4.opt: Same.
5169 * config/s390/s390.opt: Same.
5170 * config/s390/tpf.opt: Same.
5171 * config/sh/sh.opt: Same.
5172 * config/sol2.opt: Same.
5173 * config/sparc/long-double-switch.opt: Same.
5174 * config/sparc/sparc.opt: Same.
5175 * config/spu/spu.opt: Same.
5176 * config/stormy16/stormy16.opt: Same.
5177 * config/tilegx/tilegx.opt: Same.
5178 * config/tilepro/tilepro.opt: Same.
5179 * config/v850/v850.opt: Same.
5180 * config/vax/vax.opt: Same.
5181 * config/visium/visium.opt: Same.
5182 * config/vms/vms.opt: Same.
5183 * config/vxworks.opt: Same.
5184 * config/xtensa/xtensa.opt: Same.
5186 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5187 Sebastian Pop <s.pop@samsung.com>
5189 * graphite-scop-detection.c (parameter_index_in_region): Update call to
5190 invariant_in_sese_p_rec.
5191 * graphite-sese-to-poly.c (extract_affine): Same.
5192 * sese.c (invariant_in_sese_p_rec): Pass in an extra
5193 parameter has_vdefs.
5194 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5195 variable depends on virtual definitions in the current region.
5196 * sese.h (invariant_in_sese_p_rec): Update declaration.
5198 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5199 Sebastian Pop <s.pop@samsung.com>
5201 * graphite-scop-detection.c (build_scops): Do not handle scops
5202 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5203 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5205 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
5207 * config.in: Regenerate.
5208 * configure: Regenerate.
5209 * configure.ac (CHECKING_P): Define.
5210 * system.h: Use CHECKING_P.
5212 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5215 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5216 is negative we don't know the type.
5217 (check_stmt_for_type_change): Skip constructors of non-polymorphic
5218 types as those won't help devirutalization.
5220 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5222 * fold-const.c (operand_equal_p): Add code matching empty constructors.
5224 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
5226 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5228 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5229 Add comments on sign of the result.
5230 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5231 Recurse on operand #1 instead of operand #0.
5232 <CEIL_MOD_EXPR>: Do not recurse.
5233 <ROUND_MOD_EXPR>: Likewise.
5235 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5237 * cfgrtl.c (pass_free_cfg::execute): Adjust.
5238 * final.c (dbr_sequence_length): Always define.
5239 (shorten_branches): Adjust.
5240 * genattr-common.c (main): Always define DELAY_SLOTS.
5241 * genattr.c (main): Unconditionally declare functions and define
5242 macros related to delay slots.
5243 * genattrtab.c (write_eligible_delay): Adjust.
5244 (main): Always write out delay slot functions.
5245 * opts.c (default_options_table): Adjust.
5246 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5247 (redirect_with_delay_list_safe_p): Likewise.
5248 (fill_simple_delay_slots): Likewise.
5249 (fill_slots_from_thread): Likewise.
5250 (make_return_insns): Likewise.
5251 (dbr_schedule): Likewise.
5252 (rest_of_handle_delay_slots): Likewise.
5253 (pass_delay_slots::gate): Likewise.
5254 * toplev.c (process_options): Likewise.
5256 2015-10-21 Richard Henderson <rth@redhat.com>
5258 * targhooks.c (default_addr_space_pointer_mode): Remove check
5259 for generic address space.
5260 (default_addr_space_address_mode): Likewise.
5261 (default_addr_space_valid_pointer_mode): Likewise.
5262 (default_addr_space_legitimate_address_p): Likewise.
5263 (default_addr_space_legitimize_address): Likewise.
5264 * target.def (addr_space.pointer_mode): Update documentation
5265 of default behavior.
5266 (addr_space.address_mode): Likewise.
5269 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5272 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5274 * builtins.c (fold_builtin_cabs): Delete.
5275 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5276 * match.pd: Add rules previously handled by fold_builtin_cabs.
5278 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5280 * fold-const.h (fold_strip_sign_ops): Delete.
5281 * fold-const.c (fold_strip_sign_ops): Likewise.
5282 (fold_unary_loc, fold_binary_loc): Remove calls to it.
5283 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5284 (fold_builtin_ccos): Delete.
5285 (fold_builtin_pow): Don't call fold_strip_sign_ops.
5286 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5287 Remove fndecl argument.
5288 (fold_builtin_1): Update calls accordingly. Handle constant
5289 cos, cosh, ccos and ccosh here.
5291 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5293 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5294 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5295 * common.opt (fssa-backprop): New option.
5296 * fold-const.h (negate_mathfn_p): Declare.
5297 * fold-const.c (negate_mathfn_p): Make public.
5298 * timevar.def (TV_TREE_BACKPROP): New.
5299 * tree-pass.h (make_pass_backprop): Declare.
5300 * passes.def (pass_backprop): Add.
5301 * gimple-ssa-backprop.c: New file.
5303 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5304 Sebastian Pop <s.pop@samsung.com>
5306 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5307 Do not call create_empty_if_region_on_edge when cond_expr is true.
5308 (translate_isl_ast_node_for): Check whether a guard has been generated.
5310 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5312 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5313 (operator=): Removed.
5314 (dr_info): Make alias_set number the last argument with default
5315 value of invalid_alias_set.
5316 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5318 (rewrite_reductions_out_of_ssa): Iterate only through the
5319 basic blocks which are inside region.
5320 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5321 * sese.h (struct sese_l): Removed assignment operator.
5322 (split_region_for_bb): Removed dead code.
5324 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5326 * graphite-poly.h (struct dr_info): Removed conversion constructor.
5327 (struct scop): Renamed scop::region to scop::scop_info
5328 (scop_set_region): Same.
5329 (SCOP_REGION): Removed
5330 (SCOP_CONTEXT): Removed.
5331 (POLY_SCOP_P): Removed.
5332 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5333 Rename scop->region to scop->scop_info.
5334 (add_parameters_to_ivs_params): Same.
5335 (graphite_regenerate_ast_isl): Same.
5336 * graphite-poly.c (new_scop): Same.
5338 (print_scop_params): Same.
5339 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5340 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5341 (dot_all_scops_1): Rename scop->region to scop->scop_info.
5342 (scop_detection::nb_pbbs_in_loops): Same.
5343 (find_scop_parameters): Same.
5344 (try_generate_gimple_bb): Same.
5345 (gather_bbs::before_dom_children): Same.
5346 (gather_bbs::after_dom_children): Same.
5347 (build_scops): Same.
5348 * graphite-sese-to-poly.c (build_scop_scattering): Same.
5349 (extract_affine_chrec): Same.
5350 (extract_affine): Same.
5351 (set_scop_parameter_dim): Same.
5352 (build_loop_iteration_domains): Same.
5353 (create_pw_aff_from_tree): Same.
5354 (add_param_constraints): Same.
5355 (build_scop_iteration_domain): Same.
5356 (build_scop_drs): Same.
5357 (analyze_drs_in_stmts): Same.
5358 (insert_out_of_ssa_copy_on_edge): Same.
5359 (rewrite_close_phi_out_of_ssa):Same.
5360 (rewrite_reductions_out_of_ssa):Same.
5361 (handle_scalar_deps_crossing_scop_limits):Same.
5362 (rewrite_cross_bb_scalar_deps):Same.
5363 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5364 (build_poly_scop):Same.
5365 (build_alias_set): Use pointer to dr_info.
5366 * graphite.c (print_graphite_scop_statistics):
5367 (graphite_transform_loops):
5368 * sese.h (struct sese_l): Remove conversion constructor.
5370 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5373 * tree.c (verify_type): Verify that TYPE_MODE match
5374 between TYPE_CANONICAL and type.
5375 * expr.c (store_expr_with_bounds): Revert my previous change.
5376 * expmed.c (store_bit_field_1): Revert prevoius change.
5377 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5378 to match for all types.
5380 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
5382 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5385 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5387 * doc/tm.texi: Regenerated.
5388 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5389 * stor-layout.c (layout_type): Use mode to get vector mask size.
5390 * target.def (get_mask_mode): New.
5391 * targhooks.c (default_get_mask_mode): New.
5392 * targhooks.h (default_get_mask_mode): New.
5393 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5395 * tree.c (MAX_BOOL_CACHED_PREC): New.
5396 (nonstandard_boolean_type_cache): New.
5397 (build_nonstandard_boolean_type): New.
5398 (make_vector_type): Vector mask has no canonical type.
5399 (build_truth_vector_type): New.
5400 (build_same_sized_truth_vector_type): New.
5401 (truth_type_for): Support vector masks.
5402 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5403 (build_truth_vector_type): New.
5404 (build_same_sized_truth_vector_type): New.
5405 (build_nonstandard_boolean_type): New.
5406 * tree-cfg.c (verify_gimple_comparison) Require boolean
5407 vector type for vector comparison.
5408 (verify_gimple_assign_ternary): Likewise.
5409 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5411 * tree-vect-stmts.c (vectorizable_condition): Use boolean
5412 vector type for vector comparison.
5413 * tree-vect-generic.c (elem_op_func): Add new operand to hold
5415 (do_unop): Adjust to modified function type.
5416 (do_binop): Likewise.
5417 (do_plus_minus): Likewise.
5418 (do_negate); Likewise.
5419 (expand_vector_piecewise): Likewise.
5420 (do_cond): Likewise.
5421 (do_compare): Use comparison instead of condition.
5422 (expand_vector_divmod): Use boolean vector type for comparison.
5423 (expand_vector_operations_1): Skip scalar mask operations.
5425 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5427 * omp-low.c (simd_clone_create): Set in_other_partition
5430 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5432 * doc/extend.exp (Local Register Variables): Rewrite.
5434 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5436 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5437 and x*x in cases where the operands are sign ops. Extend these
5438 rules to handle copysign as a sign op (including for cos, cosh
5439 and pow, which already treated negate and abs as sign ops).
5441 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
5444 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5445 for 64-bit MS_ABI targets also when default incoming stack boundary
5448 2015-10-21 Richard Biener <rguenther@suse.de>
5450 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5451 cond stmts, enhanced and split out from ...
5452 (vn_phi_eq): ... here.
5454 2015-10-21 Richard Biener <rguenther@suse.de>
5457 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5458 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5459 (tree_single_nonnegative_warnv_p): ... here. For SSA names
5460 make sure they are not registered for update.
5462 2015-10-21 Richard Biener <rguenther@suse.de>
5464 PR tree-optimization/68026
5465 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5466 unsigned VARYING values.
5468 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
5470 * asan.c (asan_emit_stack_protection): Don't pass local stack to
5471 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5472 NULL and use local stack than.
5473 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5474 in addition to __asan_init.
5475 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5476 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5477 * asan.h (asan_intercepted_p): Handle new string builtins.
5478 * ubsan.c (ubsan_use_new_style_p): New function.
5479 (ubsan_instrument_float_cast): If location is unknown, assign
5480 input_location to loc. Propagate loc to ubsan_create_data if
5481 ubsan_use_new_style_p returned true.
5483 2015-10-21 Jeff Law <law@redhat.com>
5485 * Makefile.in (OBJS): Remove sched-vis.c
5486 * sched-vis.c: Removed. Code moved into...
5487 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
5488 * rtl.h: Remove prototypes for functions now living in print-rtl.c
5489 * print-rtl.h Add prototypes for new functions in print-rtl.c.
5490 * auto-inc-dec.c: Include print-rtl.h
5491 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5492 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5494 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5497 2015-10-21 Richard Biener <rguenther@suse.de>
5498 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5500 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5502 Move (a * (1 << b)) is (a << b) to match.pd.
5503 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5504 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5505 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5507 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5509 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5510 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5511 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5513 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5515 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5517 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
5518 Szabolcs Nagy <szabolcs.nagy@arm.com>
5519 Alan Modra <amodra@gmail.com>
5521 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5522 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5523 (LINK_SPEC): Add %(link_secure_plt).
5524 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5525 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5527 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
5528 Szabolcs Nagy <szabolcs.nagy@arm.com>
5530 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5531 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5533 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5535 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5537 (fusion_load_store): Use it.
5538 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5539 ldp and stp in VD modes.
5540 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5541 (store_pair<mode>, VD): Likewise.
5543 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
5545 PR rtl-optimization/67609
5546 * lra-splill.c (lra_final_code_change): Don't remove all
5549 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5551 * simplify-rtx.c (simplify_binary_operation): If either operand was
5552 a constant pool reference use them if all other simplifications failed.
5554 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5556 * config/aarch64/aarch64.md
5557 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5558 * config/aarch64/aarch64-simd.md
5559 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5561 (aarch64_fpconst_pow_of_2): New function.
5562 (aarch64_vec_fpconst_pow_of_2): Likewise.
5563 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5565 (aarch64_vec_fpconst_pow_of_2): Likewise.
5566 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5567 (aarch64_fp_vec_pow2): Likewise.
5569 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
5571 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5572 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
5573 * config/alpha/alpha.c (alpha_function_arg_advance): Update
5574 ALPHA_ARG_SIZE usage.
5575 (alpha_arg_partial_bytes): Ditto.
5577 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5580 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5581 error_mark_node decls.
5583 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5587 * common/config/i386/i386-common.c (ix86_handle_option): Remove
5588 OPT_miamcu handling.
5589 * config/i386/i386.c (PTA_NO_80387): New macro.
5590 (processor_alias_table): Add PTA_NO_80387 to lakemont.
5591 (ix86_option_override_internal): Update MASK_80387 from
5592 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
5593 SSE math only if 80387 is supported. Don't change
5595 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5597 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5598 if TARGET_80387 is true and TARGET_IAMCU is false.
5599 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5600 is true and TARGET_IAMCU_P is false.
5602 2015-10-20 Richard Biener <rguenther@suse.de>
5604 PR tree-optimization/68017
5605 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5607 2015-10-20 Martin Liska <mliska@suse.cz>
5609 * cgraphclones.c (cgraph_node::create_virtual_clone):
5610 Verify cgraph_node.local.versionable instead of calling
5611 tree_versionable_function_p.
5612 * ipa-cp.c (determine_versionability): Save the information
5613 to ipa_node_params summary.
5614 (ipcp_versionable_function_p): Use it.
5615 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5616 (ipcp_generate_summary): Do not compute cgraph_node
5618 * ipa-inline-analysis.c (inline_generate_summary): Compute
5619 versionability for all cgraph nodes.
5620 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5621 ipa_node_params::versionability.
5622 * ipa-prop.h (struct ipa_node_params): Declare it.
5624 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5627 * varasm.c (assemble_variable): Move special vtv handling to..
5628 (handle_vtv_comdat_sections): .. here. New function.
5629 (output_object_block): Handle vtv sections.
5631 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
5634 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5636 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
5638 * doc/extend.texi: Update documentation WRT inline functions.
5640 2015-10-20 Alan Modra <amodra@gmail.com>
5643 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5644 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5645 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5647 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
5649 PR rtl-optimization/66790
5650 * df.h (DF_MIR): New macro.
5651 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5652 (DF_MIR_INFO_BB): New macro.
5653 (DF_MIR_IN, DF_MIR_OUT): New macros.
5654 (struct df_mir_bb_info): New.
5655 (df_mir): New macro.
5656 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5658 (df_mir_get_bb_info): New.
5659 * df-problems.c (struct df_mir_problem_data): New.
5660 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5661 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5662 df_mir_confluence_0, df_mir_confluence_n,
5663 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5664 df_mir_bottom_dump, df_mir_verify_solution_start,
5665 df_mir_verify_solution_end): New.
5667 (df_mir_add_problem, df_mir_simulate_one_insn): New.
5668 * timevar.def (TV_DF_MIR): New.
5669 * ree.c: Include bitmap.h
5670 (add_removable_extension): Add an INIT_REGS parameter. Use it
5671 to skip zero-extensions that may get an uninitialized register.
5672 (find_removable_extensions): Compute must-initialized registers
5673 using the MIR dataflow problem. Update the call to
5674 add_removable_extension.
5675 (find_and_remove_re): Call df_mir_add_problem.
5677 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
5679 * common/config/mn10300/mn10300-common.c
5680 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5681 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5683 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
5685 * doc/extend.texi (Explicit Register Variables): Simplify and
5686 avoid unnecessary and confusion abbreviations. Update cross
5688 doc/implement-c.tex: Update cross reference.
5690 2015-10-19 Jeff Law <law@redhat.com>
5692 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5693 that create irreducible loops unless the path elimiantes a multiway
5696 2015-10-19 Richard Biener <rguenther@suse.de>
5698 PR tree-optimization/67975
5699 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5700 * tree-cfg.c (extract_true_false_controlled_edges): Split out
5701 core worker from ...
5702 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5703 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5704 instead of block number for PHIs with two or one args.
5705 (vn_phi_eq): Compare edge predicates of PHIs that are in different
5708 2015-10-19 Richard Biener <rguenther@suse.de>
5710 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5711 (gimple_stmt_nonnegative_warnv_p): Use it.
5712 * match.pd (CPROJ): New operator list.
5713 (cproj (complex ...)): Move simplifications from ...
5714 * builtins.c (fold_builtin_cproj): ... here.
5716 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5718 * config/i386/i386.c (ix86_expand_vector_move): Use
5719 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5722 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5724 * doc/invoke.texi: Replace @optindex with @opindex.
5726 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5729 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5730 arch= is set, clear all bits in x_ix86_isa_flags, except for
5731 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5733 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
5736 * common.opt (fkeep-static-functions): New option.
5737 * doc/invoke.texi: Document it.
5738 * cgraphunit.c (cgraph_node::finalize_function): Use it.
5740 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5742 * sched-int.h (struct autopref_multipass_data_): Remove offset
5743 field. Add min_offset, max_offset, multi_mem_insn_p fields.
5744 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5745 (autopref_multipass_init): Use it. Handle PARALLEL sets.
5746 (autopref_rank_data): New function.
5747 (autopref_rank_for_schedule): Use it.
5748 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5750 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
5753 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5755 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5757 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5758 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
5759 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5760 (STANDARD_STARTFILE_PREFIX_1): New.
5761 (STANDARD_STARTFILE_PREFIX_2): New.
5763 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5765 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5766 (darwin_driver_init): Note a version-min when provided on the c/l.
5767 * config/darwin.h (%darwin_minversion): Remove.
5768 * config/i386/darwin.h: Likewise.
5769 * config/rs6000/darwin.h: Likewise.
5770 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5771 rather than an arbitrary constant.
5773 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5775 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5776 PPC, detect conflicts between -arch and multilib settings. Detect
5777 and warn about conflicts between multiple -arch definitions.
5779 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5781 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5783 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5785 * lra-constraints.c (add_next_usage_insn): Change argument type
5786 from rtx to rtx_insn *.
5788 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
5790 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5793 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
5795 * config/tilepro/gen-mul-tables.cc: Adjust include files.
5796 * config/tilegx/mul-tables.c: Regenerate.
5797 * config/tilepro/mul-tables.c: Regenerate.
5799 * config/tilegx/tilegx-c.c: Adjust include files.
5800 * config/tilegx/tilegx.c: Likewise.
5801 * config/tilepro/tilepro-c.c: Likewise.
5802 * config/tilepro/tilepro.c: Likewise.
5803 * config/aarch64/aarch64-builtins.c: Likewise.
5804 * config/aarch64/aarch64.c: Likewise.
5805 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5806 * config/alpha/alpha.c: Likewise.
5807 * config/arc/arc.c: Likewise.
5808 * config/arm/aarch-common.c: Likewise.
5809 * config/arm/arm-builtins.c: Likewise.
5810 * config/arm/arm-c.c: Likewise.
5811 * config/arm/arm.c: Likewise.
5812 * config/avr/avr-c.c: Likewise.
5813 * config/avr/avr-devices.c: Likewise.
5814 * config/avr/avr-log.c: Likewise.
5815 * config/avr/avr.c: Likewise.
5816 * config/bfin/bfin.c: Likewise.
5817 * config/c6x/c6x.c: Likewise.
5818 * config/cr16/cr16.c: Likewise.
5819 * config/cris/cris.c: Likewise.
5820 * config/darwin-c.c: Likewise.
5821 * config/darwin-driver.c: Likewise.
5822 * config/darwin.c: Likewise.
5823 * config/default-c.c: Likewise.
5824 * config/epiphany/epiphany.c: Likewise.
5825 * config/epiphany/mode-switch-use.c: Likewise.
5826 * config/epiphany/resolve-sw-modes.c: Likewise.
5827 * config/fr30/fr30.c: Likewise.
5828 * config/frv/frv.c: Likewise.
5829 * config/ft32/ft32.c: Likewise.
5830 * config/glibc-c.c: Likewise.
5831 * config/h8300/h8300.c: Likewise.
5832 * config/i386/host-cygwin.c: Likewise.
5833 * config/i386/host-mingw32.c: Likewise.
5834 * config/i386/i386-c.c: Likewise.
5835 * config/i386/i386.c: Likewise.
5836 * config/i386/msformat-c.c: Likewise.
5837 * config/i386/winnt-cxx.c: Likewise.
5838 * config/i386/winnt-stubs.c: Likewise.
5839 * config/i386/winnt.c: Likewise.
5840 * config/ia64/ia64-c.c: Likewise.
5841 * config/ia64/ia64.c: Likewise.
5842 * config/iq2000/iq2000.c: Likewise.
5843 * config/lm32/lm32.c: Likewise.
5844 * config/m32c/m32c-pragma.c: Likewise.
5845 * config/m32c/m32c.c: Likewise.
5846 * config/m32r/m32r.c: Likewise.
5847 * config/mcore/mcore.c: Likewise.
5848 * config/mep/mep-pragma.c: Likewise.
5849 * config/mep/mep.c: Likewise.
5850 * config/microblaze/microblaze-c.c: Likewise.
5851 * config/microblaze/microblaze.c: Likewise.
5852 * config/mips/mips-tables.opt
5853 * config/mips/mips.c: Likewise.
5854 * config/mmix/mmix.c: Likewise.
5855 * config/mn10300/mn10300.c: Likewise.
5856 * config/moxie/moxie.c: Likewise.
5857 * config/msp430/msp430-c.c: Likewise.
5858 * config/msp430/msp430.c: Likewise.
5859 * config/nds32/nds32-cost.c: Likewise.
5860 * config/nds32/nds32-fp-as-gp.c: Likewise.
5861 * config/nds32/nds32-intrinsic.c: Likewise.
5862 * config/nds32/nds32-isr.c: Likewise.
5863 * config/nds32/nds32-md-auxiliary.c: Likewise.
5864 * config/nds32/nds32-memory-manipulation.c: Likewise.
5865 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5866 * config/nds32/nds32-predicates.c: Likewise.
5867 * config/nds32/nds32.c: Likewise.
5868 * config/nios2/nios2.c: Likewise.
5869 * config/nvptx/mkoffload.c: Likewise.
5870 * config/nvptx/nvptx.c: Likewise.
5871 * config/pa/pa.c: Likewise.
5872 * config/pdp11/pdp11.c: Likewise.
5873 * config/rl78/rl78-c.c: Likewise.
5874 * config/rl78/rl78.c: Likewise.
5875 * config/rs6000/host-darwin.c: Likewise.
5876 * config/rs6000/rs6000-c.c: Likewise.
5877 * config/rs6000/rs6000-linux.c: Likewise.
5878 * config/rs6000/rs6000.c: Likewise.
5879 * config/rx/rx.c: Likewise.
5880 * config/s390/s390-c.c: Likewise.
5881 * config/s390/s390.c: Likewise.
5882 * config/sh/sh-c.c: Likewise.
5883 * config/sh/sh-mem.cc: Likewise.
5884 * config/sh/sh.c: Likewise.
5885 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5886 * config/sh/sh_treg_combine.cc: Likewise.
5887 * config/sol2-c.c: Likewise.
5888 * config/sol2-cxx.c: Likewise.
5889 * config/sol2-stubs.c: Likewise.
5890 * config/sol2.c: Likewise.
5891 * config/sparc/sparc-c.c: Likewise.
5892 * config/sparc/sparc.c: Likewise.
5893 * config/spu/spu-c.c: Likewise.
5894 * config/spu/spu.c: Likewise.
5895 * config/stormy16/stormy16.c: Likewise.
5896 * config/v850/v850-c.c: Likewise.
5897 * config/v850/v850.c: Likewise.
5898 * config/vax/vax.c: Likewise.
5899 * config/visium/visium.c: Likewise.
5900 * config/vms/vms-c.c: Likewise.
5901 * config/vms/vms.c: Likewise.
5902 * config/vxworks.c: Likewise.
5903 * config/winnt-c.c: Likewise.
5904 * config/xtensa/xtensa.c: Likewise.
5906 2015-10-16 Christian Bruel <christian.bruel@st.com>
5909 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5910 (FUNCTION_BOUNDARY_P): New macro:
5911 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5913 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5914 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5915 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5916 * function.c (allocate_struct_function): Call
5917 relayout_function hook.
5918 * passes.c (rest_of_decl_compilation): Likewise.
5920 2015-10-16 Christian Bruel <christian.bruel@st.com>
5923 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5924 * config/arm/arm.c (arm_option_override_internal): Call
5925 arm_override_options_after_change_1.
5926 (arm_override_options_after_change): New function.
5927 (arm_override_options_after_change_1): Likewise.
5928 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5930 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5933 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5936 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
5938 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5939 argument is an ADDR_EXPR.
5941 2015-10-16 Richard Biener <rguenther@suse.de>
5943 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5944 and get rid of force_gimple_operand_gsi.
5945 (gimple_fold_builtin_memory_chk): Likewise.
5946 (gimple_fold_builtin_stxcpy_chk): Likewise.
5947 (rewrite_to_defined_overflow): Likewise.
5948 (gimple_convert_to_ptrofftype): New function.
5949 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5951 2015-10-16 Richard Biener <rguenther@suse.de>
5953 * tree-nested.h (build_addr): Adjust prototype.
5954 * tree-nested.c (build_addr): Remove context argument and use
5956 (get_static_chain): Adjust calls to build_addr.
5957 (convert_nl_goto_reference): Likewise.
5958 (convert_tramp_reference_op): Likewise.
5959 (finalize_nesting_tree_1): Likewise.
5960 * value-prof.c (gimple_ic): Likewise.
5961 * gimple-low.c (lower_builtin_setjmp): Likewise.
5962 * tree-parloops.c (take_address_of): Likewise.
5963 (create_call_for_reduction_1): Likewise.
5964 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5965 (gimple_gen_ic_func_profiler): Likewise.
5967 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5969 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5972 2015-10-16 Michael Collison <michael.collison@linaro.org>
5973 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5975 * match.pd ((x < y) && (x < z) -> x < min (y,z),
5976 (x > y) and (x > z) -> x > max (y,z))
5978 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
5979 Szabolcs Nagy <szabolcs.nagy@arm.com>
5981 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5982 (DYNAMIC_LINKER): Renamed to ...
5983 (GLIBC_DYNAMIC_LINKER): This.
5984 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5986 2015-10-15 Marek Polacek <polacek@redhat.com>
5988 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5989 gimple_call_builtin instead of is_gimple_call.
5991 2015-10-15 Richard Biener <rguenther@suse.de>
5993 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5995 2015-10-15 Richard Biener <rguenther@suse.de>
5997 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5998 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5999 * tree-vect-loop.c (get_initial_def_for_induction): Drop
6000 use of force_gimple_operand in favor of gimple_build.
6001 Use vect_get_new_ssa_name.
6002 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
6003 (vectorizable_mask_load_store): Likewise.
6004 (vectorizable_call): Likewise.
6005 (vectorizable_store): Likewise.
6006 (vectorizable_load): Likewise.
6007 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
6009 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
6011 PR tree-optimization/67945
6012 * tree-pass.h (PROP_gimple_opt_math): New property flag.
6013 * generic-match-head.c (canonicalize_math_p): New function.
6014 * gimple-match-head.c: Include tree-pass.h.
6015 (canonicalize_math_p): New function.
6016 * match.pd: Group math built-in rules into simplifications
6017 and canonicalizations. Guard the latter with canonicalize_math_p.
6018 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
6019 PROP_gimple_opt_math property.
6021 2015-10-15 Marek Polacek <polacek@redhat.com>
6023 PR tree-optimization/67953
6024 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
6026 2015-10-15 Jiong Wang <jiong.wang@arm.com>
6028 * config.gcc: Recognize "." in architecture base name for AArch64.
6030 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
6032 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
6034 * config/mips/mips.c (mips_setup_incoming_varargs): Use
6035 ROUND_DOWN to calculate off.
6036 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
6037 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
6040 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
6042 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
6044 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
6045 Torvald Riegel <triegel@redhat.com>
6048 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
6049 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6050 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
6051 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
6052 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
6053 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6054 trechkpt, treclaim, tsr, ttest): New define_expands.
6055 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6056 __TM_FENCE__ for htm.
6057 * doc/extend.texi: Update documentation for htm builtins.
6059 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
6062 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
6063 REG_CFA_EXPRESSION to aligned SSE stores.
6065 2015-10-14 Jeff Law <law@redhat.com>
6067 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
6068 num_threaded_edges for successful FSM threads too.
6070 2015-10-14 Richard Biener <rguenther@suse.de>
6072 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
6073 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
6074 (vect_get_vec_def_for_operand): Remove unused parameter.
6075 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
6076 (vect_create_epilog_for_reduction): Likewise.
6077 (vectorizable_reduction): Likewise.
6078 (vectorizable_live_operation): Likewise.
6079 * tree-vect-patterns.c (type_conversion_p): Likewise.
6080 (vect_recog_vector_vector_shift_pattern): Likewise.
6081 (check_bool_pattern): Likewise.
6082 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6083 (vect_analyze_slp_cost_1): Likewise.
6084 * tree-vect-stmts.c (process_use): Likewise.
6085 (vect_get_vec_def_for_operand): Do not handle reductions.
6086 (vect_get_vec_defs): Adjust.
6087 (vectorizable_mask_load_store): Likewise.
6088 (vectorizable_call): Likewise.
6089 (vectorizable_simd_clone_call): Likewise.
6090 (vect_get_loop_based_defs): Likewise.
6091 (vectorizable_conversion): Likewise.
6092 (vectorizable_assignment): Likewise.
6093 (vectorizable_shift): Likewise.
6094 (vectorizable_operation): Likewise.
6095 (vectorizable_store): Likewise.
6096 (vectorizable_load): Likewise.
6097 (vect_is_simple_cond): Likewise.
6098 (vectorizable_condition): Likewise.
6099 (vect_is_simple_use): Remove unused parameters.
6100 (vect_is_simple_use_1): Adjust and rename.
6102 2015-10-14 Richard Biener <rguenther@suse.de>
6104 PR tree-optimization/67915
6105 * match.pd: Handle comparisons of addresses of STRING_CSTs.
6106 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
6107 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
6108 stmt folding in favor of GIMPLE one.
6110 2015-10-14 Marek Polacek <polacek@redhat.com>
6112 PR tree-optimization/67815
6113 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
6114 (reassociate_bb): Call it.
6116 2015-10-14 Richard Biener <rguenther@suse.de>
6118 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6119 Reset info at start.
6120 (vect_analyze_group_access_1): Add debug print.
6121 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
6122 (vect_compute_single_scalar_iteration_cost): ... to this.
6123 (vect_analyze_loop_2): Adjust.
6124 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
6125 * tree-vectorizer.h: ... here.
6126 (add_stmt_info_to_vec): Remove.
6127 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
6129 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
6131 * targhooks.c (default_target_option_pragma_parse): Do not warn if
6132 called on behalf of "#pragma GCC pop_options".
6134 2015-10-14 Tom de Vries <tom@codesourcery.com>
6136 * cfganal.c (verify_no_unreachable_blocks): New function.
6137 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
6138 verify_no_unreachable_blocks.
6139 cfganal.h (verify_no_unreachable_blocks): Declare.
6141 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
6143 * common.opt: Add flag_checking.
6144 * system.h (CHECKING_P): Define.
6146 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6147 Aldy Hernandez <aldyh@redhat.com>
6148 Ilya Verbin <ilya.verbin@intel.com>
6150 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
6151 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
6152 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
6153 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6154 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6155 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6156 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6157 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6158 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6159 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6160 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6161 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6162 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6163 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6164 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6165 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6166 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6167 (struct cgraph_simd_clone_arg): Adjust comment.
6168 * coretypes.h (struct gomp_ordered): New forward decl.
6169 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6170 set critical clauses to it.
6171 (gimple_build_omp_ordered): Return gomp_ordered * instead of
6172 gimple *. Add CLAUSES argument, set ordered clauses to it.
6173 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6175 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6176 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6177 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
6178 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6179 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
6180 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6181 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
6182 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6184 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6185 (gomp_critical): Add clauses field.
6186 (gomp_ordered): New struct.
6187 (is_a_helper <gomp_ordered *>::test): New inline.
6188 (gimple_build_omp_critical): Add CLAUSES argument.
6189 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
6190 instead of gimple *.
6191 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6192 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6193 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6194 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6196 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6197 (dump_gimple_omp_target): Handle enter data and exit data.
6198 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6199 (dump_gimple_omp_critical): Print clauses.
6200 (dump_gimple_omp_ordered): New function.
6201 (dump_gimple_omp_task): Handle taskloop.
6202 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6204 * gimple-walk.c (walk_gimple_op): Walk clauses on
6205 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6206 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6207 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6208 (struct gimplify_omp_ctx): Add loop_iter_var,
6209 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6210 and target_firstprivatize_array_bases fields.
6211 (delete_omp_context): Release loop_iter_var.
6212 (gimplify_bind_expr): Handle ORT_NONE.
6213 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6214 ORT_COMBINED_TARGET.
6215 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6216 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6217 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
6218 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
6219 ctx->target_map_scalars_firstprivate.
6220 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
6221 data sharing clauses. For data sharing clause with VLA decl
6222 on omp target/target data don't add firstprivate for the pointer.
6223 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6224 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6225 the addition of ORT_COMBINED_TARGET.
6226 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
6227 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
6228 pointers as zero length array sections and
6229 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6231 (omp_check_private): Handle omp_member_access_dummy_var vars.
6232 (find_decl_expr): New function.
6233 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
6234 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6235 Handle OMP_CLAUSE_GANG separately. Handle
6236 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6237 clauses. Diagnose linear clause on combined
6238 distribute {, parallel for} simd construct, unless it is the loop
6239 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6240 Handle map clauses with COMPONENT_REF. Initialize
6241 ctx->target_map_scalars_firstprivate,
6242 ctx->target_firstprivatize_array_bases and
6243 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
6244 linear clause even to target region if combined. Remove
6245 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6246 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
6247 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6248 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
6249 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6250 For linear clause on worksharing loop combined with parallel add
6251 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
6252 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
6253 omp_member_access_dummy_var vars. Add lastprivate clause to outer
6255 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6256 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6257 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6259 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
6260 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6261 in target body. Handle removal of struct mapping if struct is not
6262 seen in target body. Remove GOMP_MAP_STRUCT map clause on
6263 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
6264 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
6265 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6266 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6267 clause appear together. Handle
6268 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
6269 clause if it has map-type-modifier always. Handle
6270 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6272 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6273 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6275 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
6276 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
6277 iterators in doacross loops.
6278 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6279 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
6280 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
6281 for the addition of ORT_COMBINED_TARGET.
6282 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6283 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
6284 and OMP_TARGET_EXIT_DATA.
6285 (gimplify_omp_ordered): New function.
6286 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6287 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
6288 Gimplify clauses on OMP_CRITICAL.
6289 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6290 expand_GOMP_SIMD_ORDERED_END): New functions.
6291 * internal-fn.def (GOMP_SIMD_ORDERED_START,
6292 GOMP_SIMD_ORDERED_END): New internal functions.
6293 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6294 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6295 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6296 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6297 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6298 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6299 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6300 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6301 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6302 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6303 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6304 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6305 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6306 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6308 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6309 GOMP_target_data_41, adjust type.
6310 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6311 GOMP_target_update_41, adjust type.
6312 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6314 (struct omp_for_data): Add ordered and simd_schedule fields.
6315 (omp_member_access_dummy_var, unshare_and_remap_1,
6316 unshare_and_remap, is_taskloop_ctx): New functions.
6317 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6318 (extract_omp_for_data): Handle taskloops and doacross loops
6319 and simd schedule modifier.
6320 (omp_adjust_chunk_size): New function.
6321 (get_ws_args_for): Use it.
6322 (lookup_sfield): Change first argument to splay_tree_key,
6323 add overload with first argument tree.
6324 (maybe_lookup_field): Likewise.
6325 (use_pointer_for_field): Handle omp_member_access_dummy_var.
6326 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6327 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6328 (build_outer_var_ref): Add LASTPRIVATE argument, handle
6329 taskloops and omp_member_access_dummy_var vars.
6330 (build_sender_ref): Change first argument to splay_tree_key,
6331 add overload with first argument tree.
6332 (install_var_field): For mask & 8 use &DECL_UID as key instead
6334 (fixup_child_record_type): Const qualify *.omp_data_i.
6335 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6336 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6337 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6338 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6339 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6340 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6341 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6343 (add_taskreg_looptemp_clauses): New function.
6344 (scan_omp_parallel): Use it.
6345 (scan_omp_task): Likewise.
6346 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6347 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6348 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6349 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
6350 sandwiched taskloop constructs. Type check
6351 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
6352 region. Diagnose depend(source) or depend(sink:...) on
6353 target constructs or task/taskloop.
6354 (handle_simd_reference): Use get_name.
6355 (lower_rec_input_clauses): Likewise. Ignore all
6356 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6357 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
6358 before passing it to omp_clause_{default,copy}_ctor. Handle
6359 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
6360 lastprivate_firstprivate flag for linear that needs copyin and
6361 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6362 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6363 on taskloop lookup decl in outer context. Pass true to
6364 build_outer_var_ref lastprivate argument. Handle
6365 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6366 outside of outer taskloop for.
6367 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6369 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6370 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
6371 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
6372 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
6373 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6374 abstract origin. Handle omp_member_access_dummy_var vars.
6375 (expand_parallel_call): Use expand_omp_build_assign.
6376 (expand_task_call): Handle taskloop construct expansion. Add
6377 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
6378 integers. Add priority argument to GOMP_task* calls. Or in
6379 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6381 (expand_omp_build_assign): Add prototype. Add AFTER
6382 argument, if true emit statements after *GSI_P and continue linking.
6383 (expand_omp_taskreg): Adjust expand_task_call caller.
6384 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6385 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6386 zero_iter2_bb and first_zero_iter2 arguments, handle computation
6387 of counts even for ordered loops.
6388 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6389 (expand_omp_ordered_source, expand_omp_ordered_sink,
6390 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6392 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
6393 clauses on worksharing loop. Handle DOACROSS loop expansion.
6394 (expand_omp_for_static_nochunk): Handle linear clauses on
6395 worksharing loop. Adjust expand_omp_for_init_counts
6397 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
6398 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
6399 expand_omp_for_init_counts callers.
6400 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6402 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6403 Handle doacross loops.
6404 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6405 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
6406 GOMP_target_{41,update_41,enter_exit_data} libcalls.
6407 (expand_omp): Don't expand ordered depend constructs here, record
6408 ord_stmt instead for later expand_omp_for_generic.
6409 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6410 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6411 clause as stand-alone directive.
6412 (lower_omp_ordered_clauses): New function.
6413 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6414 don't lower anything.
6415 (lower_omp_for_lastprivate): Use last _looptemp_ clause
6416 on taskloop for comparison.
6417 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
6418 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6419 expansion for linear adjustments.
6420 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6421 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6422 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
6423 to tree * pointing to the stmt's clauses.
6424 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6425 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6426 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6427 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6428 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6429 clauses. Always use short kind and 8-bit align shift.
6430 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6431 (struct lower_omp_regimplify_operands_data): New type.
6432 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6434 (lower_omp_1): Use lower_omp_regimplify_operands instead of
6435 gimple_regimplify_operands.
6436 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6437 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6438 clause as stand-alone directive.
6439 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6440 (simd_clone_mangle): Mangle the various linear kinds
6442 (simd_clone_adjust_argument_types): Handle
6443 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6444 (simd_clone_init_simd_arrays): Don't do anything for uval.
6445 (simd_clone_adjust): Handle
6446 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6447 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6448 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6449 * omp-low.h (omp_member_access_dummy_var): New prototype.
6450 * passes.def (pass_simduid_cleanup): Schedule another copy of the
6451 pass after all optimizations.
6452 * tree.c (omp_clause_code_name): Add entries for
6453 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6454 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6455 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
6456 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6457 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6458 OMP_CLAUSE_REDUCTION 5 arguments. Handle
6459 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6460 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6462 * tree-core.h (enum omp_clause_linear_kind): New.
6463 (struct tree_omp_clause): Change type of map_kind
6464 from unsigned char to unsigned int. Add subcode.if_modifier
6465 and subcode.linear_kind fields.
6466 (enum omp_clause_code): Add
6467 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6468 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6469 (OMP_CLAUSE_REDUCTION): Document
6470 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6471 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6472 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6473 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
6475 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
6477 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6479 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6480 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6482 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6483 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6484 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6485 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6486 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6487 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6488 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6489 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6490 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6491 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6492 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6493 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6494 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6495 * tree-inline.c (remap_gimple_stmt): Handle clauses on
6496 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
6497 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6498 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6499 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6500 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6501 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6502 (convert_local_omp_clauses): Likewise.
6503 * tree-pretty-print.c (dump_omp_clause): Handle
6504 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6505 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6506 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6507 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6508 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
6509 GOMP_MAP_FORCE_DEALLOC. Handle
6510 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6511 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6512 and clauses on OMP_ORDERED and OMP_CRITICAL.
6513 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6514 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6515 (vectorize_loops): Adjust comments.
6516 (pass_simduid_cleanup::execute): Likewise.
6517 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6518 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6519 * wide-int.h (wi::gcd): New.
6521 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6523 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6524 (ix86_function_arg_advance): Ditto.
6525 (ix86_function_arg): Ditto.
6526 (ix86_gimplify_va_arg): Ditto.
6527 (ix86_class_max_nregs): Ditto.
6528 (inline_memory_move_cost): Ditto.
6529 (ix86_set_reg_reg_cost): Ditto.
6530 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6532 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
6535 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6537 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6539 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6540 ROUND_UP macro and UNITS_PER_WORD * 2.
6541 * config/sparc/sparc.c (sparc_compute_frame_size):
6542 Use ROUND_UP and ROUND_DOWN macros where applicable.
6543 (function_arg_record_value, function_arg_record_value_1)
6544 (function_arg_record_value_1): Ditto.
6545 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6546 alignment to double-word.
6547 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6548 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6551 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
6553 * rtl.h (print_insn): Fix prototype.
6555 2015-10-13 Tom de Vries <tom@codesourcery.com>
6557 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6558 -1. Add assert that returned entry matches phi argument.
6559 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6560 free_stmt_vec_info_vec ...
6561 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
6564 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
6566 PR tree-optimization/67909, 67947
6567 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6568 really skip the inner loop.
6570 2015-10-13 Jeff Law <law@redhat.com>
6572 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6573 Allow single block jump threading paths.
6575 2015-10-13 Tom de Vries <tom@codesourcery.com>
6577 PR tree-optimization/67476
6578 * doc/invoke.texi (@item parloops-schedule): New item.
6579 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6580 * tree-parloops.c: Include params-enum.h.
6581 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6583 2015-10-13 Tom de Vries <tom@codesourcery.com>
6585 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6586 * params-enum.h: New file.
6587 * opts.c (handle_param): Handle case that param arg is a string.
6588 * params-list.h: Handle DEFPARAMENUM5 in params.def.
6589 * params.c (find_param): New function, factored out of ...
6590 (set_param_value): ... here.
6591 (param_string_value_p): New function.
6592 * params.h (struct param_info): Add value_names field.
6593 (find_param, param_string_value_p): Declare.
6595 2015-10-13 Tom de Vries <tom@codesourcery.com>
6597 PR tree-optimization/67476
6598 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6600 2015-10-13 Richard Biener <rguenther@suse.de>
6602 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6603 the data dependence vector.
6604 (vect_peeling_hash_insert): Get the peeling hash table as argument.
6605 (vect_peeling_hash_get_lowest_cost): Likewise.
6606 (vect_enhance_data_refs_alignment): Adjust.
6607 (struct _vect_peel_info, struct _vect_peel_extended_info,
6608 struct peel_info_hasher): Move from ...
6609 * tree-vectorizer.h: ... here.
6610 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6611 (LOOP_VINFO_PEELING_HTAB): Likewise.
6612 (struct _loop_vec_info): Remove min_profitable_iters and
6613 peeling_htab members.
6614 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6616 (destroy_loop_vec_info): Adjust.
6617 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6618 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6619 to estimate alias versioning cost.
6620 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6622 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
6624 * real.h (real_isinteger): Declare.
6625 * real.c (real_isinteger): New function.
6626 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6627 if y is an even integer.
6629 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6632 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6633 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6634 counts when these are more informative.
6636 2015-10-12 Jeff Law <law@redhat.com>
6638 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6639 (fsm_find_control_stmt_paths): Change name of first argument to
6640 more accurately relfect what it really is. Handle simplification
6641 of GIMPLE_COND after finding a thread path for NAME.
6642 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6643 nontrivial conditions to be handled by FSM threader.
6644 (thread_through_normal_block): Extract the name to looup via
6645 FSM threader from COND_EXPR.
6647 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6648 restriction that traced SSA_NAME is a user variable.
6650 2015-10-12 Tom de Vries <tom@codesourcery.com>
6652 PR tree-optimization/67476
6653 * omp-low.c (expand_omp_for_generic): Add missing phis.
6655 2015-10-12 Tom de Vries <tom@codesourcery.com>
6657 PR tree-optimization/67476
6658 * omp-low.c (expand_omp_for_generic): Handle simple latch.
6660 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
6662 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6663 tables: add tbl3 and tbx4.
6664 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6665 (aarch64_tbx4v8qi): New.
6666 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6667 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6668 Rewrite using builtin functions.
6669 * config/aarch64/iterators.md (UNSPEC_TBX): New.
6671 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6673 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6675 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6676 Use ROUND_UP and ROUND_DOWN macros where applicable.
6677 (rs6000_darwin64_record_arg_flush): Ditto.
6678 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6679 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6682 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6684 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6685 (AARCH64_ROUND_DOWN): Ditto.
6686 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6688 2015-10-12 Richard Biener <rguenther@suse.de>
6691 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6692 code that analyzes IVs on each stmt but in a cheaper way avoiding
6695 2015-10-12 Nick Clifton <nickc@redhat.com>
6697 * config/msp430/msp430.c (msp430_mcu_names): Rename to
6698 msp430_mcu_data, add fields for ISA and hardware multiply
6699 support. Import latest data from the devices.csv file.
6700 (msp430_override_option): Use the data from the new array.
6701 (msp430_use_f5_series_hwmult): Likewise.
6702 (use_32bit_hwmult): Likewise.
6703 (msp430_no_hwmult): Likewise.
6704 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6706 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6707 not recognised then no hardware multiply support is assumed and
6708 that only the MSP430 ISA is allowed.
6710 2015-10-12 Richard Biener <rguenther@suse.de>
6712 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6714 (vect_analyze_loop_2): ... here.
6716 2015-10-11 Jason Merrill <jason@redhat.com>
6719 * expr.c (store_field): Call store_constructor directly when
6720 storing a CONSTRUCTOR into a target smaller than its type.
6721 Guard against unsafe bitwise copy.
6723 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6725 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6726 counts when these are more informative.
6728 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6730 * tree-profile.c (tree_profiling): Do not clear
6731 pure/const when not instrumenting.
6732 (pass tree_profile): Add dump of symtab.
6734 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6736 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6738 (fold_addr_of_array_ref_difference): Likewise.
6740 2015-10-11 Jeff Law <law@redhat.com>
6742 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6743 tree-ssa-threadbackward.c.
6744 (fsm_find_control_statement_thread_paths): Likewise.
6745 (thread_through_normal_block): Break out FSM bits and move them
6746 into a new function in tree-ssa-threadbackward.c. Call new function
6748 Minimize header file usage.
6749 * tree-ssa-threadbackward.h: New file.
6750 * tree-ssa-threadbackward.c: Likewise.
6751 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6753 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
6755 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6757 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
6759 PR rtl-optimization/67864
6760 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6761 fallthrough edges for conditional jumps. Don't sort candidate
6762 edges if not optimizing for speed.
6764 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6766 * defaults.h (REVERSE_CONDITION): New default definition.
6767 * jump.c (reversed_comparison_code_parts): Adjust.
6769 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6771 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6772 check HARD_FRAME_POINTER_IS_ARG_POINTER.
6774 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6776 * defaults.h (FRAME_ADDR_RTX): New default definition.
6777 * builtins.c (expand_builtin_return_addr): Adjust.
6779 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6781 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6782 * builtins.c (expand_builtin_return_addr): Adjust.
6784 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6786 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6787 * builtins.c (expand_builtin_return_addr): Adjust.
6788 * doc/tm.texi: Likewise.
6789 * doc/tm.texi.in: Likewise.
6790 * except.c (expand_builtin_unwind_init): Likewise.
6792 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6794 * builtins.c (expand_builtin_return_addr): Adjust.
6795 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6797 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6799 * tree.c (type_with_interoperable_signedness): New.
6800 (gimple_canonical_types_compatible_p): Use it.
6801 * tree.h (type_with_interoperable_signedness): Declare
6803 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6805 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6806 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6807 when OEP_ADDRESS_OF is se.
6809 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6810 Sebastian Pop <s.pop@samsung.com>
6812 * graphite-dependences.c (scop_get_dependences): Add dump of the
6813 data dependence graph.
6814 * graphite-poly.c (print_isl_union_map): New.
6815 (debug_isl_union_map): New.
6816 * graphite-poly.h (print_isl_union_map): Declare.
6817 (debug_isl_union_map): Declare.
6819 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6820 Sebastian Pop <s.pop@samsung.com>
6822 * graphite-poly.c (print_iteration_domain): Remove verbosity.
6823 Remove OpenScop formatting.
6824 (print_iteration_domains): Same.
6825 (debug_iteration_domain): Same.
6826 (debug_iteration_domains): Same.
6829 (dump_gbb_cases): Same.
6830 (dump_gbb_conditions): Same.
6833 (print_pbb_body): Same.
6835 (print_scop_params): Same.
6836 (print_scop_context): Same.
6838 (debug_pbb_domain): Same.
6840 (debug_scop_context): Same.
6842 (debug_scop_params): Same.
6843 * graphite-poly.h: Same.
6844 * graphite.c (graphite_transform_loops): Same.
6846 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6848 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6849 call that isn't needed.
6851 2015-10-09 Jeff Law <law@redhat.com>
6853 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6854 rather than moving each name to the freelist individually.
6856 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
6858 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6859 * frame-header-opt.c: New file.
6860 * config/mips/mips-proto.h (mips_register_frame_header_opt):
6862 * config/mips/mips.c (mips_compute_frame_info): Check
6863 optimize_call_stack flag.
6864 (mips_option_override): Register new frame_header_opt pass.
6865 (mips_frame_info, mips_int_mask, mips_shadow_set,
6866 machine_function): Move these types to...
6867 * config/mips/mips.h: here.
6868 (machine_function): Add does_not_use_frame_header and
6869 optimize_call_stack fields.
6870 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6871 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6873 * config/mips/mips.opt (mframe-header-opt): Add new option.
6875 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
6877 * config/i386/i386.c
6878 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6879 ROUND_DOWN where applicable.
6881 2015-10-09 Jeff Law <law@redhat.com>
6883 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6886 2015-10-09 Renlin Li <renlin.li@arm.com>
6888 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6889 operands[0] and operands[2].
6890 (neon_vtrn<mode>_insn): Likewise.
6891 (neon_vzip<mode>_insn): Likewise.
6893 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
6895 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6896 ((X & C2) << C1): Expand to...
6897 (X {&,^,|} C2 << C1): ...This.
6898 ((X & C2) >> C1): Expand to...
6899 (X {&,^,|} C2 >> C1): ...This.
6901 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
6904 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6905 Adjust embedded rounding/SAE specifier position.
6906 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6907 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6908 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6909 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6910 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6912 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6914 2015-10-09 Martin Jambor <mjambor@suse.cz>
6916 tree-optimization/67794
6917 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6918 between types of state,ents but accept original definitions as a
6920 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6921 iterate over definitions.
6923 2015-10-09 James Norris <jnorris@codesourcery.com>
6925 * config/rs6000/rs6000.c (rs6000_offload_options): New.
6926 (TARGET_OFFLOAD_OPTIONS): New.
6928 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
6931 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6934 * function.c (expand_function_end): Move return value
6935 promotion past the handling of PARALLELs and CONCATs.
6937 PR rtl-optimization/67828
6938 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6939 (tree_may_unswitch_on): Don't unswitch on expressions
6940 involving undefined values.
6942 2015-10-09 Richard Biener <rguenther@suse.de>
6944 * genmatch.c (print_operand): Fix formatting.
6945 (dt_node::append_simplify): Warn for multiple simplifiers
6946 that match the same pattern.
6947 * match.pd (log (exp @0)): Remove duplicates.
6949 2015-10-09 Richard Biener <rguenth@suse.de>
6952 * gimple-fold.c (optabs-query.h): Include
6953 (gimple_fold_builtin_memory_op): Allow unaligned stores
6954 when movmisalign_optabs are available.
6956 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6959 * config/arm/arm.md (movmisalign<mode>): New.
6960 * config/arm/iterators.md (HSI): New.
6962 2015-10-09 Richard Biener <rguenther@suse.de>
6964 PR tree-optimization/67891
6965 * gimple-match.h (gimple_simplified_result_is_gimple_val):
6967 (gimple_resimplify1): Declare.
6968 (gimple_resimplify2): Likewise.
6969 (gimple_resimplify3): Likewise.
6970 * gimple-match-head.c (gimple_resimplify1): Export.
6971 (gimple_resimplify2): Likewise.
6972 (gimple_resimplify3): Likewise.
6973 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6974 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6975 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6976 to avoid creating stmts without VN info.
6978 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
6980 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6983 2015-10-08 Jeff Law <law@redhat.com>
6985 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6986 and release_ssa_name in two places.
6987 (gimple_stringop_fixed_value): Similarly.
6989 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6992 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6993 unlink_stmt_vdef and release_ssa_name_fn.
6995 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6998 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
7000 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
7001 SSE register save area to 16 bytes only if the incoming stack
7002 boundary is no less than 16 bytes.
7004 2015-10-08 Jeff Law <law@redhat.com>
7006 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
7007 release_ssa_name. Fix typo in comment.
7009 2015-10-08 Nathan Sidwell <nathan@acm.org>
7011 * config/nvptx/nvptx.h (struct machine_function): Add comment.
7012 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
7013 may return pointer as well as in memory.
7014 (nvptx_output_return): Likewise.
7016 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
7018 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
7019 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7020 * match.pd: Add rules previously handled by fold_builtin_sqrt
7021 and fold_builtin_cbrt.
7023 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
7025 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
7026 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
7027 * fold-const.h (tree_unary_nonnegative_warnv_p)
7028 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7029 (tree_expr_nonnegative_warnv_p): Add depth parameters.
7030 * fold-const.c: Include gimple-fold.h and params.h.
7031 (tree_ssa_name_nonnegative_warnv_p): New function.
7032 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
7033 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7034 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
7035 Add a depth parameter and increment it for recursive calls to
7036 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
7037 to handle SSA names.
7038 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
7039 (gimple_stmt_nonnegative_warnv_p): Declare.
7040 * tree-vrp.c (remove_range_assertions): Remove assert that condition
7041 cannot be proven false.
7042 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
7043 (gimple_stmt_nonnegative_warnv_p): Move to...
7044 * gimple-fold.c: ...here. Add depth parameters and pass them
7045 down to the tree routines. Accept statements that aren't
7046 assignments or calls but just return false for them.
7047 (gimple_val_nonnegative_real_p): Delete.
7048 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
7049 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
7050 Check HONOR_NANs first.
7052 2015-10-08 Martin Jambor <mjambor@suse.cz>
7054 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
7057 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7059 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
7060 in the tail of outer-loop.
7062 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
7064 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
7067 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7069 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
7070 "cfghooks.h", add prototypes for introduced new functions.
7071 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
7072 checks on ability of loop unswitching to tree_unswitch_single_loop;
7073 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
7074 on innermost loop check.
7075 (tree_unswitch_single_loop): Add all required checks on ability of
7076 loop unswitching under zero recursive level guard.
7077 (tree_unswitch_outer_loop): New function.
7078 (find_loop_guard): Likewise.
7079 (empty_bb_without_guard_p): Likewise.
7080 (used_outside_loop_p): Likewise.
7081 (get_vop_from_header): Likewise.
7082 (hoist_guard): Likewise.
7083 (check_exit_phi): Likewise.
7085 2015-10-08 Marek Polacek <polacek@redhat.com>
7087 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
7090 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7093 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
7094 create_tmp_var_raw instead of create_tmp_var.
7096 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
7098 * expr.c (store_expr_with_bounds): Handle aggregate moves from
7100 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
7101 to define gimple type system; compare aggregates only by size.
7103 2015-10-07 Jeff Law <law@redhat.com>
7105 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
7106 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
7107 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
7110 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7111 Sebastian Pop <s.pop@samsung.com>
7113 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
7114 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
7115 (generate_isl_schedule): Same.
7116 * graphite-optimize-isl.c (scop_get_domains): Same.
7117 (apply_schedule_map_to_scop): Same.
7118 * graphite-poly.c (print_iteration_domains): Same.
7119 (remove_gbbs_in_scop): Same.
7123 * graphite-poly.h (struct scop): Rename bbs to pbbs.
7125 * graphite-scop-detection.c (compare_bb_depths): Remove.
7126 (graphite_sort_dominated_info): Remove.
7127 (try_generate_gimple_bb): Move out of scop_detection.
7128 (all_non_dominated_preds_marked_p): Remove.
7129 (build_scop_bbs_1): Remove.
7130 (build_scop_bbs): Remove.
7131 (nb_pbbs_in_loops): Do not use SCOP_BBS.
7132 (find_scop_parameters): Same.
7133 (sese_dom_walker): Rename gather_bbs.
7134 (before_dom_children): Call try_generate_gimple_bb and collect gbb
7136 (build_scops): Call gather_bbs.
7137 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
7138 (add_conditions_to_constraints): Same.
7139 (build_scop_iteration_domain): Same.
7140 (build_scop_drs): Same.
7141 (new_pbb_from_pbb): Same.
7142 * sese.c (new_sese_info): Create bbs.
7143 * sese.h (struct sese_info_t): Add bbs.
7145 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
7147 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
7148 encoding in 64-bit mode.
7150 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
7153 * config/i386/i386.c (ix86_option_override_internal): Always use
7154 8-byte minimum stack boundary in 64-bit mode.
7155 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7156 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7157 Add a REG_CFA_EXPRESSION note if needed.
7158 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7159 (ix86_handle_force_align_arg_pointer_attribute): New.
7160 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7161 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7162 with ix86_handle_force_align_arg_pointer_attribute.
7163 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7165 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7166 Sebastian Pop <s.pop@samsung.com>
7168 * graphite-scop-detection.c (parameter_index_in_region): Remove
7169 use of SESE_ADD_PARAMS.
7170 (find_scop_parameters): Same.
7171 * sese.c (new_sese_info): Same.
7172 * sese.h (struct sese_info_t): Remove add_params.
7173 (SESE_ADD_PARAMS): Remove.
7175 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7176 Sebastian Pop <s.pop@samsung.com>
7178 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7181 (copy_internal_parameters): Same.
7182 (translate_isl_ast_to_gimple): Use an sese_l.
7183 (build_iv_mapping): Same.
7184 * graphite-poly.c (new_sese): Rename new_sese_info.
7185 (free_sese): Rename free_sese_info.
7186 * graphite-poly.h (struct scop): Use an sese_info_p.
7187 (scop_set_region): Same.
7188 * graphite-scop-detection.c (struct sese_l): Moved...
7189 (get_entry_bb): Moved...
7190 (get_exit_bb): Moved...
7191 (parameter_index_in_region_1): Use an sese_info_p.
7192 (parameter_index_in_region): Same.
7193 (scan_tree_for_params): Same.
7194 (find_params_in_bb): Same.
7195 (sese_dom_walker): Use an sese_l.
7196 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7197 (reduction_phi_p): Same.
7198 (parameter_index_in_region_1): Use an sese_info_p.
7199 (propagate_expr_outside_region): Use an sese_l.
7200 * graphite.c: Replace uses of SCOP_REGION.
7201 * sese.c (sese_record_loop): Use an sese_info_p.
7202 (build_sese_loop_nests): Same.
7203 (sese_build_liveouts_use): Same.
7204 (sese_build_liveouts_bb): Same.
7205 (sese_build_liveouts_bb): Same.
7206 (sese_bad_liveouts_use): Same.
7207 (sese_reset_debug_liveouts_bb): Same.
7208 (sese_build_liveouts): Same.
7209 (new_sese): Renamed new_sese_info.
7210 (free_sese): Renamed free_sese_info.
7211 (set_rename): Use an sese_info_p.
7212 (graphite_copy_stmts_from_block): Same.
7213 (copy_bb_and_scalar_dependences): Same.
7214 (outermost_loop_in_sese_1): Use an sese_l.
7215 (outermost_loop_in_sese): Same.
7216 (if_region_set_false_region): Use an sese_info_p.
7217 (move_sese_in_condition): Same.
7218 (scalar_evolution_in_region): Use an sese_l.
7219 * sese.h (struct sese_l): ... here.
7220 (SESE_ENTRY): Remove.
7221 (SESE_ENTRY_BB): Remove.
7222 (SESE_EXIT): Remove.
7223 (SESE_EXIT_BB): Remove.
7224 (sese_contains_loop): Use an sese_info_p.
7225 (sese_nb_params): Same.
7226 (bb_in_sese_p): Use an sese_l.
7227 (stmt_in_sese_p): Same.
7228 (defined_in_sese_p): Same.
7229 (loop_in_sese_p): Same.
7230 (sese_loop_depth): Same.
7231 (struct ifsese_s): Use an sese_info_p.
7232 (gbb_loop_at_index): Use an sese_l.
7233 (nb_common_loops): Same.
7234 (scev_analyzable_p): Same.
7236 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7238 * config/i386/i386.c (ix86_conditional_register_usage): Use
7239 CALL_USED_REGISTERS_MASK.
7240 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7242 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7245 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7246 * configure: Regenerated.
7248 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7251 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7252 (ix86_set_current_function): This.
7253 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7255 2015-10-07 Richard Biener <rguenther@suse.de>
7257 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7258 (vinfo_for_stmt): Adjust.
7259 (set_vinfo_for_stmt): Likewise.
7260 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7261 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7262 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7264 (vect_analyze_loop_1): Remove.
7265 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7266 inner loop when vectorizing an outer loop by splitting out from ...
7267 (vect_analyze_loop_form): ... here.
7269 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7272 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7273 Use create_tmp_var_raw instead of create_tmp_var.
7275 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
7277 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7278 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7279 * real.c (CACHED_FRACTION): New helper macro.
7280 (dconst_third_ptr): Use it.
7281 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7282 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7284 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7286 2015-10-06 Jeff Law <law@redhat.com>
7288 PR tree-optimization/67816
7289 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7290 from remove_jump_threads_starting_at. Accept an edge rather than
7292 * tree-ssa-threadupdate.c (removed_edges): New hash table.
7293 (remove_jump_threads_including): Note edges that get removed from
7294 the CFG for later pruning of jump threading paths including them.
7295 (thread_through_all_blocks): Remove paths which include edges that
7297 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7298 on each outgoing edges when optimizing away a control statement.
7300 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7302 * reorg.c (emit_delay_sequence): Store list of delay slot insns
7303 in a vector instead of rtx_insn_list.
7304 (add_to_delay_list): Likewise.
7305 (delete_from_delay_slot): Likewise.
7306 (optimize_skip): Likewise.
7307 (redirect_with_delay_list_safe_p): Likewise.
7308 (check_annul_list_true_false): Likewise.
7309 (steal_delay_list_from_target): Likewise.
7310 (steal_delay_list_from_fallthrough): Likewise.
7311 (redundant_insn): Likewise.
7312 (fill_simple_delay_slots): Likewise.
7313 (fill_slots_from_thread): Likewise.
7314 (fill_eager_delay_slots): Likewise.
7315 (relax_delay_slots): Likewise.
7317 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
7319 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7320 For -mgpopt=local, also exclude unintialized common symbols.
7321 * doc/invoke.texi (Nios II Options): Document the change.
7323 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7325 * config/aarch64/iterators.md (vwcore): Add missing cases for
7328 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7329 Sebastian Pop <s.pop@samsung.com>
7331 * graphite-poly.c (new_scop): Initialize drs.
7332 * graphite-poly.h (struct dr_info): New.
7333 (struct scop): Add drs.
7334 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7335 (pdr_add_memory_accesses): Same.
7336 (build_poly_dr): Same.
7337 (build_alias_set): Same.
7338 (build_scop_drs): Same.
7339 (build_pbb_drs): Remove.
7340 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7341 * tree-data-ref.h (data_reference): Remove alias_set.
7343 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7344 Sebastian Pop <s.pop@samsung.com>
7346 * graphite-poly.c (free_data_refs_aux): Remove.
7347 (free_gimple_poly_bb): Do not call free_data_refs_aux.
7348 * graphite-poly.h (struct base_alias_pair): Remove.
7349 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7350 base_alias_pair and dr->aux.
7351 (build_alias_set): Same.
7352 * tree-data-ref.c (create_data_ref): Initialize alias_set.
7353 * tree-data-ref.h (data_reference): Add alias_set.
7355 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7356 Sebastian Pop <s.pop@samsung.com>
7358 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7359 Do not set PDR_BASE_OBJECT_SET.
7360 * graphite-poly.h (poly_dr): Same.
7361 (PDR_BASE_OBJECT_SET): Remove.
7362 (new_poly_dr): Update decl.
7363 * graphite-sese-to-poly.c (build_poly_dr): Update call to
7365 (write_alias_graph_to_ascii_dimacs): Remove.
7366 (write_alias_graph_to_ascii_dot): Remove.
7367 (write_alias_graph_to_ascii_ecc): Remove.
7368 (dr_same_base_object_p): Remove.
7369 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
7371 (build_base_obj_set_for_drs): Remove.
7372 (dump_alias_graphs): Remove.
7373 (build_scop_drs): Remove dead code.
7375 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7376 Peter Bergner <bergner@vnet.ibm.com>
7379 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7380 allow registers, but provide insns for the combiner to create for
7381 loads from memory. Separate VSX code from non-VSX code. For
7382 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7383 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7384 so that registers come before memory operations. Drop support from
7385 converting DFmode to TFmode, if the DFmode value is in a GPR
7387 (extenddftf2_fprs): Likewise.
7388 (extenddftf2_internal): Likewise.
7389 (extenddftf2_vsx): Likewise.
7390 (extendsftf2): In the expander, only allow registers, but provide
7391 insns for the combiner to create for stores and loads.
7393 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7395 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7396 from the decl parameter.
7398 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
7401 * gimple-fold.c (gimple_fold_builtin): Add break after
7402 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7404 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
7406 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7407 to scop->isl_context.
7409 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7411 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7412 (output_probe_stack_range): Rotate the loop and simplify.
7413 (thumb1_expand_prologue): Tweak sorry message.
7414 * config/arm/arm.md (probe_stack): Use bare string.
7416 2015-10-06 Nick Clifton <nickc@redhat.com>
7418 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7420 2015-10-06 Nick Clifton <nickc@redhat.com>
7422 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7423 (ATTR_PERSIST): New constant.
7424 (msp430_data_attr): New function - verifies an attribute that only
7425 applies to variables.
7426 (msp430_attributes): Add noinit and persistent attributes.
7427 (noinit_section): New variable.
7428 (presis_section): New variable.
7429 (TARGET_ASM_INIT_SECTIONS): Define.
7430 (msp430_init_sections): New function - initialises the noinit and
7431 persist section variables.
7432 (msp430_select_section): Add support for noinit and persist
7434 (msp430_section_type_flags): Likewise.
7435 * doc/extend.texi: Document the reent, critical, wakeup, noinit
7436 and persistent attributes.
7438 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7439 Sebastian Pop <s.pop@samsung.com>
7441 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7442 (no_violations): Remove.
7443 (subtract_commutative_associative_deps): Remove.
7444 (compute_deps): Do not call subtract_commutative_associative_deps.
7445 (transform_is_safe): Remove.
7446 (graphite_legal_transform): Remove.
7447 * graphite-poly.h (graphite_legal_transform): Remove.
7449 2015-10-05 Aditya Kumar <hiraditya@msn.com>
7451 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7452 which are in this region are passed so gcc_assert and remove redundant
7454 * sese.c (sese_build_liveouts): Pass only those bbs which are not
7456 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7457 gcc_assert on that and remove unnecessary computation.
7458 (sese_build_liveouts_use): Same.
7460 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7462 * graphite-dependences.c (scop_get_reads): Renamed scop->context
7463 to scop->param_context.
7464 (scop_get_must_writes): Same.
7465 (scop_get_may_writes): Same.
7466 (scop_get_original_schedule): Same.
7467 (scop_get_transformed_schedule): Same.
7468 (subtract_commutative_associative_deps): Same.
7469 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7470 (generate_isl_context): Same.
7471 (generate_isl_schedule): Same.
7472 (scop_to_isl_ast): Same.
7473 (graphite_regenerate_ast_isl): Same.
7474 * graphite-optimize-isl.c (scop_get_domains): Same.
7475 (optimize_isl): Renamed scop->context to scop->param_context.
7476 * graphite-poly.c (new_poly_bb): Change the type of argument to
7478 (new_scop): Renamed scop->context to scop->param_context.
7480 (print_scop_context): Same.
7481 * graphite-poly.h (new_poly_dr): Change the type of argument from
7482 void* to data_reference_p.
7483 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7484 (new_poly_bb): Change the type of argument from void* to
7486 (pbb_set_black_box): Same.
7487 (struct scop): Rename context to param_context, ctx to isl_context.
7488 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7489 Move declarations closer to assignment.
7490 (find_params_in_bb): Same.
7491 (find_scop_parameters): Same.
7492 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7493 Global to be used for statement IDs.
7494 (isl_id_for_pbb): Use ssa_name_version_typesize.
7495 (simple_copy_phi_p): Move declarations closer to assignment.
7496 (build_pbb_scattering_polyhedrons): Same.
7497 (build_scop_scattering): Same.
7498 (isl_id_for_ssa_name): Same.
7499 (extract_affine_name): Same.
7500 (extract_affine_int): Same.
7501 (extract_affine): Same.
7502 (set_scop_parameter_dim): Use renamed member.
7503 (build_loop_iteration_domains): Same.
7504 (add_param_constraints): Same.
7505 (build_scop_iteration_domain): Same.
7506 (pdr_add_data_dimensions): Same.
7507 (build_poly_dr): Same.
7508 (build_scop_drs): Move declarations closer to assignment.
7509 (analyze_drs_in_stmts): Same.
7510 (insert_out_of_ssa_copy): Same.
7511 (insert_out_of_ssa_copy_on_edge): Same.
7512 (propagate_expr_outside_region): Same.
7513 (rewrite_phi_out_of_ssa): Same.
7514 (rewrite_degenerate_phi): Same.
7515 (rewrite_reductions_out_of_ssa): Same.
7516 (rewrite_cross_bb_scalar_dependence): Same.
7517 (handle_scalar_deps_crossing_scop_limits): Same.
7518 (rewrite_cross_bb_scalar_deps): Same.
7519 * graphite.c (graphite_transform_loops): Use renamed member.
7521 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
7524 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7525 create_tmp_var_raw instead of create_tmp_var.
7527 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7530 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7531 Use create_tmp_var_raw instead of create_tmp_var.
7533 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
7536 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7537 split for upper-bank registers when target does not support
7539 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7540 split when target does not support AVX512VL.
7542 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
7545 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7546 Adjust to use create_tmp_var_raw instead of create_tmp_var.
7548 2015-10-06 Nick Clifton <nickc@redhat.com>
7550 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7553 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7555 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7556 (case ${target}): Add znver1.
7557 * config/i386/cpuid.h(bit_CLZERO): Define.
7558 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7559 -march=native recognize znver1 processors.
7560 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7561 znver1, clzero def_and_undef.
7562 * config/i386/i386.c (struct processor_costs znver1_cost): New.
7563 (m_znver1): New definition.
7564 (m_AMD_MULTIPLE): Includes m_znver1.
7565 (processor_target_table): Add znver1 entry.
7566 (ix86_target_string) : Add clzero entry.
7567 (static const char *const cpu_names): Add znver1 entry.
7568 (ix86_option_override_internal): Add znver1 instruction sets.
7569 (PTA_CLZERO) : New definition.
7570 (ix86_option_override_internal): Handle new clzerooption.
7571 (ix86_issue_rate): Add znver1.
7572 (ix86_adjust_cost): Add znver1.
7573 (ia32_multipass_dfa_lookahead): Add znver1.
7574 (has_dispatch): Add znver1.
7575 * config/i386/i386.h (TARGET_znver1): New definition.
7576 (TARGET_CLZERO): Define.
7577 (TARGET_CLZERO_P): Define.
7578 (struct ix86_size_cost): Add TARGET_ZNVER1.
7579 (enum processor_type): Add PROCESSOR_znver1.
7580 * config/i386/i386.md (define_attr "cpu"): Add znver1.
7581 (set_attr znver1_decode): New definitions for znver1.
7582 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7584 * config/i386/mmx.md (set_attr znver1_decode): New definitions
7586 * config/i386/sse.md (set_attr znver1_decode): Likewise.
7587 * config/i386/x86-tune.def: Add znver1 tunings.
7588 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7589 * doc/invoke.texi: Add details about znver1
7591 2015-10-06 Richard Biener <rguenther@suse.de>
7593 PR tree-optimization/67859
7594 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7595 discard not inserted stmts.
7597 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
7599 * doc/extend.texi (Template Instantiation): Reorder options and
7600 de-emphasize -frepo.
7601 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7602 example instead of -frepo.
7604 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7607 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7608 use create_tmp_var_raw rather than create_tmp_var.
7610 2015-10-06 Richard Biener <rguenther@suse.de>
7612 * tree-vectorizer.h (vec_info): New base class for...
7613 (_loop_vec_info): ... this and ...
7614 (_bb_vec_info): ... this.
7615 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7616 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7617 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7618 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7619 vect_destroy_datarefs): Adjust interface to take a vec_info *
7620 rather than both a loop_vec_info and a bb_vec_info argument.
7621 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7622 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7623 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7624 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7626 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7627 (destroy_loop_vec_info, vect_analyze_loop_2,
7628 vect_is_simple_reduction_1, get_initial_def_for_induction,
7629 vect_create_epilog_for_reduction, vectorizable_reduction,
7630 vectorizable_live_operation, vect_transform_loop): Adjust.
7631 * tree-vect-patterns.c (type_conversion_p,
7632 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7633 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7634 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7635 check_bool_pattern, vect_recog_bool_pattern,
7636 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7637 * tree-vect-slp.c (vect_get_and_check_slp_defs,
7638 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7639 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7640 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7641 (new_bb_vec_info): Initialize base classs.
7642 * tree-vect-stmts.c (record_stmt_cost, process_use,
7643 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7644 vectorizable_mask_load_store, vectorizable_call,
7645 vectorizable_simd_clone_call, vectorizable_conversion,
7646 vectorizable_assignment, vectorizable_shift,
7647 vectorizable_operation, vectorizable_store,
7648 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7649 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7650 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7652 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
7655 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7656 create_tmp_var_raw rather than create_tmp_var.
7658 2015-10-05 Marek Polacek <polacek@redhat.com>
7660 * tree-ssa-loop-im.c
7661 (move_computations_dom_walker::before_dom_children): Don't set
7662 SSA_NAME_ANTI_RANGE_P.
7663 * tree-ssa-phiopt.c (value_replacement): Likewise.
7665 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7666 Sebastian Pop <s.pop@samsung.com>
7668 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7670 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7671 Sebastian Pop <s.pop@samsung.com>
7673 * graphite-poly.c (new_gimple_poly_bb): ... here.
7674 (free_data_refs_aux): ... here.
7675 (free_gimple_poly_bb): ... here.
7676 (remove_gbbs_in_scop): ... here.
7677 (new_scop): Call new_sese.
7678 (free_scop): Call remove_gbbs_in_scop and free_sese.
7679 * graphite-poly.h (base_alias_pair): ... here.
7680 (new_gimple_poly_bb): Declare.
7681 (free_gimple_poly_bb): Declare.
7682 * graphite-scop-detection.c (parameter_index_in_region_1):
7683 (parameter_index_in_region): ... here.
7684 (scan_tree_for_params): ... here.
7685 (find_params_in_bb): ... here.
7686 (find_scop_parameters): ... here.
7687 (build_scops): Call find_scop_parameters.
7688 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7689 (free_scops): Move...
7690 (single_pred_cond_non_loop_exit): Move...
7691 (sese_dom_walker::before_dom_children): Move...
7692 (sese_dom_walker::after_dom_children): Move...
7693 (build_poly_scop): Move...
7694 * graphite-sese-to-poly.h (base_alias_pair): Move...
7695 * graphite.c (free_scops): ... here.
7697 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7698 Sebastian Pop <s.pop@samsung.com>
7700 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7701 (trivially_empty_bb_p): Move...
7702 (same_close_phi_node): Move...
7703 (new_gimple_poly_bb): Move...
7704 (compare_bb_depths): Move...
7705 (graphite_sort_dominated_info): Move...
7706 (remove_duplicate_close_phi): Move...
7707 (make_close_phi_nodes_unique): Move...
7708 (canonicalize_loop_closed_ssa): Move...
7709 (canonicalize_loop_closed_ssa_form): Move...
7710 (loop_ivs_can_be_represented): Move...
7711 (single_pred_cond_non_loop_exit): Move...
7712 (graphite_can_represent_init): Move...
7713 (graphite_can_represent_scev): Move...
7714 (stmt_has_simple_data_refs_p): Move...
7715 (stmt_has_side_effects): Move...
7716 (graphite_can_represent_stmt): Move...
7717 (scop_detection): ... here.
7718 (sese_dom_walker): ... and here.
7719 (build_scops): Call all moved functions.
7720 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7721 (all_non_dominated_preds_marked_p): Move...
7722 (build_scop_bbs_1): Move...
7723 (build_scop_bbs): Move...
7724 (set_scop_parameter_dim): Move...
7725 (nb_pbbs_in_loops): Move...
7726 (build_poly_scop): Do not call all the moved functions.
7728 2015-10-05 Martin Jambor <mjambor@suse.cz>
7729 Jan Hubicka <hubicka@ucw.cz>
7731 * ipa-cp.c (ipcp_alignment_lattice): New type.
7732 (ipcp_param_lattices): Use the above to represent alignment.
7733 (ipcp_alignment_lattice::print): New function.
7734 (print_all_lattices): Use it to print alignment information.
7735 (ipcp_alignment_lattice::top_p): New function.
7736 (ipcp_alignment_lattice::bottom_p): Likewise.
7737 (ipcp_alignment_lattice::set_to_bottom): Likewise.
7738 (ipcp_alignment_lattice::meet_with_1): Likewise.
7739 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7740 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7741 (initialize_node_lattices): Likewise.
7742 (propagate_alignment_accross_jump_function): Work with the new class
7743 for alignment lattices.
7744 (propagate_constants_accross_call): Pass only the alignment lattice to
7745 propagate_alignment_accross_jump_function.
7746 (ipcp_store_alignment_results): Work with the new class for alignment
7749 2015-10-05 Marek Polacek <polacek@redhat.com>
7751 PR tree-optimization/67821
7752 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7754 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
7757 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7759 (mkoffload_cleanup): ... this. Adjust all users.
7760 (maybe_unlink): Look at save_temps and verbose flags instead of
7762 (main): Parse "-save-temps" flag.
7763 (generate_target_descr_file, generate_target_offloadend_file)
7764 (generate_host_descr_file, prepare_target_image): Pass it on.
7765 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7766 (mkoffload_cleanup): New function.
7767 (maybe_unlink): Look at save_temps and verbose flags instead of
7769 (main): Instead of calling utils_cleanup, register atexit handler
7770 for mkoffload_cleanup.
7771 (main): Parse "-save-temps" flag.
7772 (compile_native, main): Pass it on.
7773 * lto-wrapper.c (compile_offload_image): Likewise.
7775 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7777 * gimple.h (gimple_op_ptr): Require a non const gimple *.
7778 (gimple_assign_lhs_ptr): Likewise.
7779 (gimple_assign_rhs1_ptr): Likewise.
7780 (gimple_assign_rhs2_ptr): Likewise.
7781 (gimple_assign_rhs3_ptr): Likewise.
7782 (gimple_call_lhs_ptr): Likewise.
7783 (gimple_call_fn_ptr): Likewise.
7784 (gimple_call_chain_ptr): Likewise.
7785 (gimple_call_arg_ptr): Likewise.
7786 (gimple_cond_lhs_ptr): Likewise.
7787 (gimple_cond_rhs_ptr): Likewise.
7788 (gimple_switch_index_ptr): Likewise.
7789 (gimple_return_retval_ptr): Likewise.
7791 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7793 * gimple.h (gimple_asm_input_op_ptr): Remove.
7794 (gimple_asm_output_op_ptr): Likewise.
7796 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7798 * gimple.h (gimple_location_ptr): Remove.
7799 * tree-vrp.c (check_all_array_refs): Adjust.
7801 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7803 * tree-ssa-operands.c (build_uses): store tree * instead of
7805 (finalize_ssa_uses): Adjust.
7806 (append_use): Likewise.
7807 (verify_ssa_operands): Likewise.
7809 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7811 * real.h (build_real_truncate): Declare.
7812 * tree.c (build_real_truncate): New function.
7813 (strip_float_extensions): Use it.
7814 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7815 (fold_builtin_hypot, fold_builtin_pow): Likewise.
7816 * match.pd: Likewise.
7818 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7819 Jiong Wang <jiong.wang@arm.com>
7821 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7823 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7825 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7826 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7827 (aarch64_print_operand, aarch64_float_const_representable_p)
7828 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7829 instead of REAL_VALUE_FROM_CONST_DOUBLE.
7830 * config/arc/arc.c (arc_print_operand): Likewise.
7831 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7832 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7833 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7835 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7836 (consttable_16): Likewise.
7837 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7838 * config/avr/avr.c (avr_print_operand): Likewise.
7839 * config/bfin/bfin.md: Likewise (in a define_split).
7840 * config/c6x/c6x.md: Likewise (in a define_split).
7841 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7842 (cr16_print_operand): Likewise.
7843 * config/cris/cris.c (cris_print_operand): Likewise.
7844 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7845 * config/fr30/fr30.c (fr30_print_operand): Likewise.
7846 (fr30_const_double_is_zero): Likewise.
7847 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7848 * config/frv/frv.md: Likewise (in a define_split).
7849 * config/frv/predicates.md (int_2word_operand): Likewise.
7850 * config/h8300/h8300.c (h8300_print_operand): Likewise.
7851 * config/i386/i386.c (standard_80387_constant_p): Likewise.
7852 (ix86_print_operand, ix86_split_to_parts): Likewise.
7853 * config/i386/i386.md: Likewise (in a define_split).
7854 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7855 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7856 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7857 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7858 (print_operand): Likewise.
7859 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7860 * config/mep/mep.md: Likewise (in define_split).
7861 * config/microblaze/microblaze.c (microblaze_const_double_ok)
7862 (print_operand): Likewise.
7863 * config/mips/mips.md (consttable_float): Likewise.
7864 * config/mmix/mmix.c (mmix_intval): Likewise.
7865 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7866 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7867 * config/pa/pa.c (pa_singlemove_string): Likewise.
7868 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7869 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7870 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7871 (output_toc): Likewise.
7872 * config/rs6000/rs6000.md: Likewise (in define_splits).
7873 * config/rx/rx.c (rx_print_operand): Likewise.
7874 * config/s390/s390.c (s390_output_pool_entry): Likewise.
7875 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7876 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7877 (and also in define_splits).
7878 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7879 (fp_high_losum_p): Likewise.
7880 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7881 (*movsf_high): Likewise.
7882 * config/spu/spu.c (const_double_to_hwint): Likewise.
7883 * config/v850/v850.c (const_double_split): Likewise.
7884 * config/vax/vax.c (vax_float_literal): Likewise.
7885 * config/visium/visium.c (visium_expand_copysign): Likewise.
7886 * config/visium/visium.md: Likewise (in define_split).
7887 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7888 * config/xtensa/xtensa.c (print_operand): Likewise.
7889 (xtensa_output_literal): Likewise.
7890 * cprop.c (implicit_set_cond_p): Likewise.
7891 * dwarf2out.c (insert_float): Likewise.
7892 * expmed.c (expand_mult, make_tree): Likewise.
7893 * expr.c (compress_float_constant): Likewise.
7894 * rtlanal.c (split_double): Likewise.
7895 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7896 (simplify_const_unary_operation, simplify_binary_operation_1)
7897 (simplify_const_binary_operation): Likewise.
7898 (simplify_const_relational_operation): Likewise.
7899 * varasm.c (output_constant_pool_2): Likewise.
7901 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7903 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7904 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7905 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7906 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7907 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7908 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7909 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7910 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7911 (ix86_emit_swsqrtsf): Likewise.
7912 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7913 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7914 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7915 * config/pa/pa.c (pa_expand_builtin): Likewise.
7916 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7917 (rs6000_scale_v2df): Likewise.
7918 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7919 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7920 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7921 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7922 (vec_ctul): Likewise.
7923 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7924 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7925 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7926 * cse.c (fold_rtx): Likewise.
7927 * emit-rtl.c (immed_double_const): Likewise (in comments).
7928 (init_emit_once): Likewise.
7929 * expr.c (compress_float_constant, expand_expr_real_1)
7930 (const_vector_from_tree): Likewise.
7931 * optabs.c (expand_float, expand_fix): Likewise.
7932 * reg-stack.c (reg_to_stack): Likewise.
7933 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7934 (simplify_const_unary_operation, simplify_binary_operation_1)
7935 (simplify_const_binary_operation, simplify_relational_operation)
7936 (simplify_immed_subreg): Likewise.
7938 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7940 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7941 * doc/tm.texi: Regenerate.
7942 * real.h (REAL_ARITHMETIC): Delete.
7943 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7944 (ix86_expand_round_sse4): Use real_arithmetic instead of
7946 * config/i386/sse.md (round<mode>2): Likewise.
7947 * rtl.h (rtx_to_tree_code): Likewise (in comment).
7948 * explow.c (rtx_to_tree_code): Likewise (in comment).
7949 * match.pd: Likewise.
7950 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7951 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7952 (expand_pow_as_sqrts): Likewise.
7953 * tree-pretty-print.c (dump_generic_node): Remove code that
7954 was conditional on REAL_ARITHMETIC being undefined.
7956 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7958 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7959 * doc/tm.texi: Regenerate.
7960 * real.h (real_less): Declare.
7961 (REAL_VALUES_LESS): Delete.
7962 * real.c (real_less): New function.
7963 (real_compare): Use it.
7964 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7965 of REAL_VALUES_LESS.
7966 * config/microblaze/microblaze.c (microblaze_const_double_ok):
7968 * fold-const.c (fold_convert_const_int_from_real): Likewise.
7969 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7970 (simplify_const_relational_operation): Likewise.
7971 * tree-call-cdce.c (check_pow): Likewise.
7972 (gen_conditions_for_pow_cst_base): Likewise.
7974 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7976 * real.h (REAL_VALUES_IDENTICAL): Delete.
7977 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7978 instead of REAL_VALUES_IDENTICAL.
7979 * fold-const.c (operand_equal_p): Likewise.
7980 * ipa-icf.c (sem_variable::equals): Likewise.
7981 * tree-complex.c (some_nonzerop): Likewise.
7982 (expand_complex_multiplication): Likewise.
7983 * tree.c (simple_cst_equal): Likewise.
7984 * varasm.c (compare_constant): Likewise.
7986 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7988 * real.h (real_equal): Declare.
7989 (REAL_VALUES_EQUAL): Delete.
7990 * real.c (real_equal): New function.
7991 (real_compare): Use it.
7992 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7993 * doc/tm.texi: Regenerate.
7994 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7995 real_equal instead of REAL_VALUES_EQUAL.
7996 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7997 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7998 (fp_const_from_val): Likewise.
7999 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
8000 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
8001 (floating_exact_log2): Likewise.
8002 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8003 * config/vax/vax.c (vax_float_literal): Likewise.
8004 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8005 * cprop.c (implicit_set_cond_p): Likewise.
8006 * expmed.c (expand_mult): Likewise.
8007 * fold-const.c (const_binop): Likewise.
8008 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8009 (simplify_const_binary_operation): Likewise.
8010 (simplify_const_relational_operation): Likewise.
8011 * tree-call-cdce.c (check_pow): Likewise.
8012 (gen_conditions_for_pow_cst_base): Likewise.
8013 * tree-inline.c (estimate_num_insns): Likewise.
8014 * tree-ssa-dom.c (record_equality): Likewise.
8015 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8016 (gimple_expand_builtin_pow): Likewise.
8017 (pass_optimize_widening_mul::execute): Likewise.
8018 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
8019 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
8020 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
8022 2015-10-05 Richard Biener <rguenther@suse.de>
8025 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
8026 consider loop header PHI defs as IVs.
8028 2015-10-05 Richard Biener <rguenther@suse.de>
8030 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
8032 (create_expression_by_pieces): ... here and build GIMPLE
8033 calls directly. Use gimple_build API and avoid force_gimple_operand.
8034 (insert_into_preds_of_block): Simplify.
8035 (do_regular_insertion): Add comment.
8037 2015-10-04 Jason Merrill <jason@redhat.com>
8039 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
8041 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
8043 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
8044 check for general register.
8045 (ix86_emit_save_regs): Ditto.
8046 (ix86_emit_save_regs_using_mov): Ditto.
8047 (ix86_emit_restore_regs_using_pop): Ditto.
8048 (ix86_emit_restore_regs_using_mov): Ditto.
8050 2015-10-03 Marek Polacek <polacek@redhat.com>
8052 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
8053 (insn-dfatab.o): Likewise.
8055 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
8057 * config.gcc (xtensa*-*-uclinux*): New configuration.
8058 * config/xtensa/uclinux.h: New file.
8059 * config/xtensa/uclinux.opt: New file.
8061 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
8063 * doc/cpp.texi (Standard Predefined Macros): Document value of
8064 __cplusplus for C++14.
8066 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
8068 * gcc.c (process_command): Use spec_machine rather than
8069 spec_host_machine to build tooldir_prefix2.
8071 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8072 Bernd Schmidt <bernds@codesourcery.com>
8074 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
8075 (Token, Stmt): Remove structs.
8076 (decls, vars, fns): Remove variables.
8077 (alloc_comment, append_stmt, is_keyword): Remove macros.
8078 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
8079 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
8080 (parse_init, parse_file): Remove functions.
8081 (read_file): Accept a pointer to a length and store into it.
8082 (process): Don't try to parse the input file, just write it out as
8083 a string, but looking for maps. Also write out the length.
8084 (main): Don't use "-S" to compile PTX code.
8086 2015-10-02 Jeff Law <law@redhat.com>
8088 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
8091 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8094 * config/nvptx/mkoffload.c (main): Scan the argument vector for
8095 -fopenmp, and skip generating an offloading image if specified.
8097 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
8099 * system.h (ROUND_UP): New macro definition.
8100 (ROUND_DOWN): Ditto.
8101 * ggc-page.c (ROUND_UP): Remove local macro definition.
8102 (PAGE_ALIGN): Implement using ROUND_UP macro.
8104 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
8105 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
8107 (ix86_compute_frame_layout): Ditto.
8108 (ix86_expand_prologue): Ditto.
8109 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
8110 to round down values.
8111 (expand_set_or_movmem_via_rep): Ditto.
8113 2015-10-02 Marek Polacek <polacek@redhat.com>
8115 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
8117 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
8119 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
8120 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
8121 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
8122 (free_gimple_bb): Renamed free_gimple_poly_bb.
8123 (try_generate_gimple_bb): Hoist loop invariant code.
8124 (analyze_drs_in_stmts): Same.
8125 (build_scop_drs): Call renamed functions.
8126 (new_pbb_from_pbb): Same.
8127 (scop_ivs_can_be_represented): Delete as functionality now moved to
8128 graphite-scop-detection.c
8129 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
8131 2015-10-02 Aditya Kumar <hiraditya@msn.com>
8133 * graphite-scop-detection.c (stmt_has_side_effects): New function
8134 outlined from stmt_simple_for_scop_p.
8135 (graphite_can_represent_stmt): Same.
8136 (stmt_simple_for_scop_p): Moved code out of this function for better
8139 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8141 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
8143 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
8145 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8147 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
8149 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
8151 PR rtl-optimization/67756
8152 * lra-constraints.c (match_reload): Add a new parameter. Use it
8153 for creating a pseudo with the same value.
8154 (curr_insn_transform): Pass a new argument to match_reload.
8156 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8158 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8159 (expand_vec_perm_even_odd_1): Handle V64QImode.
8160 (ix86_expand_vec_perm_const_1): Try expansion with
8161 expand_vec_perm_even_odd_trunc as well.
8162 * config/i386/sse.md (VI124_AVX512F): Rename to ...
8163 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8165 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8166 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8168 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8169 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8170 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8171 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8172 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8173 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8175 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8177 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8178 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8180 2015-10-02 Jason Merrill <jason@redhat.com>
8183 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8184 (diagnose_tm_1_op): Also diagnose volatile accesses in
8185 transaction_safe function.
8187 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
8189 * system.h (malloc.h): Don't include obsolete header.
8191 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8193 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8194 (TLS_SECTION_ASM_FLAG): Delete.
8196 2015-10-02 Marek Polacek <polacek@redhat.com>
8199 * doc/invoke.texi: Document -Wduplicated-cond.
8200 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8201 (insn-dfatab.o): Likewise.
8202 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8205 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
8207 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8210 2015-10-02 Renlin Li <renlin.li@arm.com>
8212 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8214 2015-10-02 Renlin Li <renlin.li@arm.com>
8217 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8219 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8221 PR rtl-optimization/67786
8222 PR rtl-optimization/67787
8223 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8224 it modifies a reg used in the condition calculation.
8226 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
8228 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8229 alternatives for reads from memory and moves from general-purpose
8231 (*aarch64_combinez_be<mode>): Likewise.
8233 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
8236 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8237 selectany within this function without need to keep attribute.
8238 (i386_pe_encode_section_info): Remove selectany-code.
8240 2015-10-02 Richard Biener <rguenther@suse.de>
8242 * tree-ssa-sccvn.c (has_VN_INFO): New function.
8243 (free_scc_vn): Use it.
8244 (visit_use): Remove dead code and refactor to use gassign
8245 and use less indentation.
8247 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8251 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8252 (rs6000_cannot_copy_insn_p): New function.
8253 * config/rs6000/rs6000.md (cannot_copy): New attribute.
8254 (load_toc_v4_PIC_1_normal): Set cannot_copy.
8255 (load_toc_v4_PIC_1_476): Ditto.
8257 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8259 * graphite-scop-detection.c (struct sese_l): New conversion constructor
8260 so that this type can be pushed into a vec.
8261 (class scop_builder): use sese_l to collect scops.
8262 (get_scops): New getter function.
8263 (remove_intersecting_scops): Use sese_l instead of scops_p.
8267 (remove_subscops): Same.
8268 (build_scops): Add scops to vec<scops_p> once all the scops have been
8271 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8273 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8274 Renamed type from gimple_bb_p to gimple_poly_bb_p.
8275 (translate_isl_ast_node_user): Same.
8276 * graphite-poly.c (new_poly_bb): Same.
8277 * graphite-poly.h (gbb_from_bb): Same.
8279 * graphite-sese-to-poly.c (new_gimple_bb):
8280 gimple_bb_p -> gimple_poly_bb_p
8281 (build_scop_scattering): Same.
8282 (find_params_in_bb): Same.
8283 (add_conditions_to_domain): Same.
8284 (sese_dom_walker::before_dom_children): Same.
8285 (analyze_drs_in_stmts): Same.
8286 (new_pbb_from_pbb): Same.
8287 (free_data_refs_aux): New pointer to type base_alias_pair.
8288 * graphite-sese-to-poly.h: Same.
8289 * sese.c (if_region_set_false_region): Fixed Indentation.
8290 (move_sese_in_condition): Same.
8292 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8293 Aditya Kumar <aditya.k7@samsung.com>
8295 PR tree-optimization/66980
8296 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8297 when data reference analysis has failed.
8299 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8300 Aditya Kumar <aditya.k7@samsung.com>
8302 PR tree-optimization/67754
8303 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8304 scev analysis on the same loop nest as analyze_drs_in_stmts.
8305 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8307 (try_generate_gimple_bb): Call outermost_loop_in_sese.
8308 (analyze_drs_in_stmts): Same.
8309 * sese.c (outermost_loop_in_sese): ...here.
8311 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8312 Aditya Kumar <aditya.k7@samsung.com>
8314 PR tree-optimization/67754
8315 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8316 recursion on the inner loops.
8318 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8320 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8321 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8322 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8323 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8324 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8326 2015-10-01 Marek Polacek <polacek@redhat.com>
8329 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8330 create_tmp_var_raw rather than create_tmp_var.
8332 2015-10-01 Marek Polacek <polacek@redhat.com>
8334 PR tree-optimization/67769
8335 * tree-ssa-phiopt.c (conditional_replacement): Call
8336 reset_flow_sensitive_info_in_bb.
8337 (minmax_replacement): Likewise.
8338 (abs_replacement): Likewise.
8340 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
8342 * builtins.c: Don't include gomp-constants.h.
8343 (fold_builtin_1): Don't fold acc_on_device here.
8344 * gimple-fold.c: Include gomp-constants.h.
8345 (gimple_fold_builtin_acc_on_device): New.
8346 (gimple_fold_builtin): Call it.
8348 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
8350 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8351 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8353 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
8355 * config/arm/aarch-common-protos.h
8356 (aarch_accumulator_forwarding): New.
8357 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8358 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8359 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8360 * config/arm/cortex-a53.md: Rewrite.
8362 2015-10-01 Richard Biener <rguenther@suse.de>
8364 * gimple-match.h (mprts_hook): Declare.
8365 * gimple-match.head.c (mprts_hook): Define.
8366 (maybe_push_res_to_seq): Use new hook.
8367 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8368 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8369 (vn_ssa_aux::has_constants): Remove.
8370 * tree-ssa-sccvn.c: Include gimple-match.h.
8371 (VN_INFO_GET): Assert we don't re-use SSA names.
8372 (vn_get_expr_for): Remove.
8373 (expr_has_constants): Likewise.
8374 (stmt_has_constants): Likewise.
8375 (simplify_binary_expression): Likewise.
8376 (simplify_unary_expression): Likewise.
8377 (vn_lookup_simplify_result): New hook.
8378 (visit_copy): Adjust.
8379 (visit_reference_op_call): Likewise.
8380 (visit_phi): Likewise.
8381 (visit_use): Likewise.
8382 (process_scc): Likewise.
8383 (init_scc_vn): Likewise.
8384 (visit_reference_op_load): Likewise. Use match-and-simplify and
8385 a gimple seq for inserted expressions.
8386 (try_to_simplify): Remove GENERIC stmt combining code.
8387 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8388 * tree-ssa-pre.c (eliminate_insert): Adjust.
8389 (eliminate_dom_walker::before_dom_children): Likewise.
8391 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8393 * doc/invoke.texi (Optimization Options): Add
8394 -freorder-blocks-algorithm=.
8395 (Optimize Options) <-O>: Add -freorder-blocks.
8396 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
8397 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8398 <-freorder-blocks>: Also enabled at levels -O and -Os.
8399 <-freorder-blocks-algorithm=>: Document new option.
8401 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8403 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8404 with flag_reorder_blocks_algorithm.
8405 * common.opt (freorder-blocks-algorithm=): New flag.
8406 (reorder_blocks_algorithm): New enum.
8407 * flag-types.h (reorder_blocks_algorithm): New enum.
8408 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8409 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8411 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8413 * bb-reorder.c: Add intro comment.
8414 (reorder_basic_blocks_software_trace_cache): Print a header to
8416 (edge_order): New function.
8417 (reorder_basic_blocks_simple): New function.
8418 (reorder_basic_blocks): Choose between the STC and the simple
8419 algorithms (always choose the former).
8421 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8423 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8424 function, factored out from ...
8425 (reorder_basic_blocks): ... here.
8427 2015-10-01 Tom de Vries <tom@codesourcery.com>
8429 * tree-cfg.c (dump_function_to_file): Dump function attributes using
8430 __attribute__(()) string. Move dumping of function attributes to before
8433 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
8436 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8437 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8438 based on gold linker version.
8439 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8440 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8441 * configure, config.in: Regenerate.
8443 2015-10-01 Alan Modra <amodra@gmail.com>
8445 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8446 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8447 (rs6000_output_mi_thunk): Likewise.
8449 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8451 * config/nvptx/mkoffload.c (process): Change offload data format.
8453 2015-09-30 Jeff Law <law@redhat.com>
8455 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8456 with constant conditions.
8457 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8458 (remove_ctrl_stmt_and_useless_edges): No longer static.
8459 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8460 (remove_ctrl_stmt_and_useless_edges): Likewise.
8462 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8463 Cesar Philippidis <cesar@codesourcery.com>
8465 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8466 (TARGET_GOACC_VALIDATE_DIMS): Override.
8467 * target.def (TARGET_GOACC): New target hook prefix.
8468 (validate_dims): New hook.
8469 * targhooks.h (default_goacc_validate_dims): New.
8470 * omp-low.c (oacc_validate_dims): New.
8471 (execute_oacc_device_lower): New.
8472 (default_goacc_validate_dims): New.
8473 (pass_data_oacc_device_lower): New.
8474 (pass_oacc_device_lower): New pass.
8475 (make_pass_oacc_device_lower): New.
8476 * tree-pass.h (make_pass_oacc_device_lower): Declare.
8477 * passes.def (pass_oacc_device_lower): Add it.
8478 * doc/tm.texi: Rebuilt.
8479 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8480 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8482 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
8484 PR rtl-optimization/67037
8485 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8487 2015-09-30 Bernd Schmidt <bernds@redhat.com>
8489 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8490 * passes.c: Include tree-ssanames.h.
8491 (execute_function_todo): Flush the pending free SSA_NAMEs after
8492 eliminating unreachable basic blocks.
8493 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8494 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8495 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8496 (flush_ssanames_freelist): New function.
8497 (release_ssaname_fn): Put released names on the queue.
8498 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8499 * tree-ssanames.h (flush_ssanames_freelist): Declare.
8501 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8503 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8504 (generate_target_descr_file, generate_target_offloadend_file)
8505 (generate_host_descr_file, prepare_target_image): Pass it on.
8506 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8507 (compile_native, main): Pass it on.
8508 * lto-wrapper.c (compile_offload_image): Likewise.
8510 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8511 Ilya Verbin <ilya.verbin@intel.com>
8512 Andrey Turetskiy <andrey.turetskiy@intel.com>
8514 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8515 (prepare_target_image, main): Refactor argv building to use
8518 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8520 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8521 * config/spu/spu.c (spu_expand_atomic_op): New function.
8522 * config/spu/spu.md (AINT): New mode iterator.
8523 (ATOMIC): New code iterator.
8524 (atomic_name, atomic_pred): New code predicates.
8525 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8526 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8527 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8528 "atomic_<atomic_name>_fetch<mode>"): Likewise.
8530 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
8532 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8534 (scalar_chain::convert_reg): Likewise.
8536 2015-09-30 Richard Biener <rguenther@suse.de>
8538 * builtins.c: Add comment that no new simplifications should
8541 2015-09-30 Marek Polacek <polacek@redhat.com>
8543 PR tree-optimization/67690
8544 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8545 reset_flow_sensitive_info_in_bb.
8546 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8547 * tree-ssanames.c: Include "gimple-iterator.h".
8548 (reset_flow_sensitive_info_in_bb): New function.
8549 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8551 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8553 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8554 variable, replacing it with...
8555 (offload_abi): ... this new variable. Adjust all users.
8556 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8558 2015-09-30 Matthias Klose <doko@ubuntu.com>
8560 * configure.ac: Remove extraneous ;;.
8561 * configure: Regenerate.
8563 2015-09-29 James Bowman <james.bowman@ftdichip.com>
8565 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8566 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8567 predicate, disallow register for operand 2.
8569 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
8571 * graphite-dependences.c (scop_get_dependences): Moved in down
8572 in order to be visible to its caller.
8573 * graphite-poly.h: Removed compute_deps, and extend_schedule.
8575 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8576 Aditya Kumar <aditya.k7@samsung.com>
8578 PR tree-optimization/67754
8579 * graphite-optimize-isl.c (optimize_isl): Call
8580 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8582 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8584 * builtins.c (expand_builtin_acc_on_device): Delete.
8585 (expand_builtin): Don't call it.
8586 (fold_builtin_1): Fold acc_on_device.
8588 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
8590 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8591 (ix86_nsaved_sseregs): Likewise.
8593 2015-09-29 Jeff Law <law@redhat.com>
8595 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8596 computation of unused value.
8598 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8599 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8600 inline macro expansion.
8602 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8604 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8605 (gen_shl_sext): Likewise.
8606 * config/sh/sh.md (divsi3): Likewise.
8607 (imm->ext_dest_operand splitter): Likewise.
8609 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8610 Aditya Kumar <aditya.k7@samsung.com>
8612 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8613 (nb_data_writes_in_bb): Remove.
8614 (split_pbb): Remove.
8615 (split_reduction_stmt): Remove.
8616 (is_reduction_operation_p): Remove.
8617 (phi_contains_arg): Remove.
8618 (follow_ssa_with_commutative_ops): Remove.
8619 (detect_commutative_reduction_arg): Remove.
8620 (detect_commutative_reduction_assign): Remove.
8621 (follow_inital_value_to_phi): Remove.
8622 (edge_initial_value_for_loop_phi): Remove.
8623 (initial_value_for_loop_phi): Remove.
8624 (used_outside_reduction): Remove.
8625 (detect_commutative_reduction): Remove.
8626 (translate_scalar_reduction_to_array_for_stmt): Remove.
8627 (remove_phi): Remove.
8628 (dr_indices_valid_in_loop): Remove.
8629 (close_phi_written_to_memory): Remove.
8630 (translate_scalar_reduction_to_array): Remove.
8631 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8632 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8633 (rewrite_commutative_reductions_out_of_ssa): Remove.
8634 (build_poly_scop): Remove call to
8635 rewrite_commutative_reductions_out_of_ssa.
8637 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
8639 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8640 Add new insn types for vector load and store pairs.
8641 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8642 types "neon_ldp{,_q}".
8643 * config/arm/cortex-a57.md (neon_load_c): Add insn types
8645 (neon_store_complex): Add insn types "neon_stp{,_q}".
8646 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8649 2015-09-29 Jeff Law <law@redhat.com>
8651 * config/rx/constraints.md (Int08): Fix undefined left shift
8653 (Sint08, Sint16, Sint24): Likewise.
8654 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8656 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8659 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8660 left shift behaviour.
8661 * config/msp430/constraints.md ('L' constraint): Similarly.
8662 ('Ys' constraint): Similarly.
8664 2015-09-29 Richard Biener <rguenther@suse.de>
8666 PR tree-optimization/67170
8667 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8668 the translate function pointer parameter to get the
8669 bool whether to disambiguate only by reference.
8670 (walk_non_aliased_vuses): Likewise.
8671 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8672 (get_continuation_for_phi_1): Likewise.
8673 (get_continuation_for_phi): Likewise.
8674 (walk_non_aliased_vuses): Likewise.
8675 * tree-ssa-sccvn.c (const_parms): New bitmap.
8676 (vn_reference_lookup_3): Adjust for interface change.
8677 Disambiguate parameters pointing to readonly memory.
8678 (free_scc_vn): Free const_parms.
8679 (run_scc_vn): Initialize const_parms from a fn spec attribute.
8681 2015-09-29 Richard Biener <rguenther@suse.de>
8683 PR tree-optimization/67741
8684 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8685 builtin calls with correct signature.
8687 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
8690 * config/i386/i386.c: Include dbgcnt.h.
8691 (has_non_address_hard_reg): New.
8692 (convertible_comparison_p): New.
8693 (scalar_to_vector_candidate_p): New.
8694 (remove_non_convertible_regs): New.
8695 (scalar_chain): New.
8696 (scalar_chain::scalar_chain): New.
8697 (scalar_chain::~scalar_chain): New.
8698 (scalar_chain::add_to_queue): New.
8699 (scalar_chain::mark_dual_mode_def): New.
8700 (scalar_chain::analyze_register_chain): New.
8701 (scalar_chain::add_insn): New.
8702 (scalar_chain::build): New.
8703 (scalar_chain::compute_convert_gain): New.
8704 (scalar_chain::replace_with_subreg): New.
8705 (scalar_chain::replace_with_subreg_in_insn): New.
8706 (scalar_chain::emit_conversion_insns): New.
8707 (scalar_chain::make_vector_copies): New.
8708 (scalar_chain::convert_reg): New.
8709 (scalar_chain::convert_op): New.
8710 (scalar_chain::convert_insn): New.
8711 (scalar_chain::convert): New.
8712 (convert_scalars_to_vector): New.
8713 (pass_data_stv): New.
8715 (make_pass_stv): New.
8716 (ix86_option_override): Created and register stv pass.
8717 (flag_opts): Add -mstv.
8718 (ix86_option_override_internal): Likewise.
8719 * config/i386/i386.md (SWIM1248x): New.
8720 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8721 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8722 (*anddi3_doubleword): New.
8723 (*zext<mode>_doubleword): New.
8724 (*zextsi_doubleword): New.
8725 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8726 (*<code>di3_doubleword): New.
8727 * config/i386/i386.opt (mstv): New.
8728 * dbgcnt.def (stv_conversion): New.
8730 2015-09-29 Tom de Vries <tom@codesourcery.com>
8732 * tree-cfg.c (dump_function_to_file): Dump function attributes.
8734 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8737 * config/sh/sh.c (sh_override_options_after_change): New.
8738 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8739 (sh_option_override): Move align_loops, align_jumps and
8740 align_functions handling into sh_override_options_after_change.
8742 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8744 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8745 (nvptx_record_offload_symbol): Record function execution geometry.
8746 * config/nvptx/mkoffload.c (process): Include launch geometry in
8748 * omp-low.c (oacc_launch_pack): New.
8749 (replace_oacc_fn_attrib): New.
8750 (set_oacc_fn_attrib): New.
8751 (get_oacc_fn_attrib): New.
8752 (expand_omp_target): Create keyed varargs for GOACC_parallel call
8754 * omp-low.h (get_oacc_fn_attrib): Declare.
8755 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8756 (DEF_FUNCTION_TYPE_VAR_11): Delete.
8757 * tree.h (OMP_CLAUSE_EXPR): New.
8758 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8760 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8761 Sebastian Pop <s.pop@samsung.com>
8763 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8765 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8766 Sebastian Pop <s.pop@samsung.com>
8768 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8769 * graphite-scop-detection.c (struct sese_l): New type.
8770 (get_entry_bb): API for getting entry bb of SESE.
8771 (get_exit_bb): API for getting exit bb of SESE.
8772 (class debug_printer): New type. Simple printer in debug mode.
8773 (trivially_empty_bb_p): New. Return true when BB is empty or
8774 contains only debug instructions.
8775 (graphite_can_represent_expr): Call scalar_evoution_in_region
8776 instead of analyze_scalar_evolution. Pass in scop instead of only
8778 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8780 (stmt_simple_for_scop_p): Same.
8781 (harmful_stmt_in_bb): Same.
8782 (graphite_can_represent_loop): Deleted.
8783 (struct scopdet_info): Deleted.
8784 (scopdet_basic_block_info): Deleted.
8785 (build_scops_1): Deleted.
8786 (bb_in_sd_region): Deleted.
8787 (find_single_entry_edge): Deleted.
8788 (find_single_exit_edge): Deleted.
8789 (create_single_entry_edge): Deleted.
8790 (sd_region_without_exit): Deleted.
8791 (create_single_exit_edge): Deleted.
8792 (unmark_exit_edges): Deleted.
8793 (mark_exit_edges): Deleted.
8794 (create_sese_edges): Deleted.
8795 (build_graphite_scops): Deleted.
8796 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8797 (build_scops): Use the new scop_builder to build scops.
8798 (dot_all_scops_1): Use the new pretty printer. Print loop father
8800 (loop_body_is_valid_scop): New. Return true if loop body is a
8802 (class scop_builder): New. Builds SCoPs for polyhedral
8804 (scop_builder): New constructor.
8805 (static sese_l invalid_sese): sese_l with invalid edges.
8806 (get_sese): Get an sese (from a loop) if possible, invalid_sese
8808 (get_nearest_dom_with_single_entry): Get nearest dominator of a
8809 basic_block with single entry. Return NULL if we get to the
8810 beginning of a function.
8811 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8812 a basic_block with single exit. Return NULL if we get to the
8813 beginning of a function.
8814 (print_sese): Pretty-print SESE.
8815 (merge_sese): Merge two SESEs if possible and return the new SESE.
8816 (build_scop_depth): Start building the SCoP within a loop nest.
8817 (build_scop_breadth): Start building the SCoP at a single loop
8818 depth. Merge adjacent SESEs if valid.
8819 (can_represent_loop_1): Returns true if Graphite can represent
8820 loop inside SCoP. Helper for can_represent_loop.
8821 (can_represent_loop): Returns true if Graphite can represent LOOP
8822 and all its nested loops in SCoP.
8823 (loop_is_valid_scop): Returns true if LOOP and all its nests
8824 constitute a valid SCoP.
8825 (region_has_one_loop): Returns true of a region has only one loop.
8826 (add_scop): Add SCoP to the list of valid scops. Removes an
8827 already existing scop if it intersects with or subsumed by this one.
8828 (harmful_stmt_in_region): Returns true if SCoP has any statment
8829 which cannot be represented by Graphite.
8830 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8831 (remove_subscops): Remove any SCoP from the list of already found
8832 SCoPs, if subsumed by S1.
8833 (intersects): Return true if region bounded by SCoPs S1 and S2
8835 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8836 * graphite.c (print_graphite_scop_statistics):
8837 (print_graphite_statistics): Print SCoP info while debugging.
8838 (graphite_initialize): Early exit in case number of loops in a
8839 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8840 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8841 (graphite_finalize):
8842 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8843 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8844 (recompute_all_dominators): Recalculate POST_DOMINATORS.
8845 * tree-cfg.c (print_loops): Print the function name while printing
8848 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8849 Sebastian Pop <s.pop@samsung.com>
8851 PR tree-optimization/67700
8852 * graphite-sese-to-poly.c (parameter_index_in_region): Call
8853 invariant_in_sese_p_rec.
8854 (extract_affine): Same.
8855 (rewrite_cross_bb_scalar_deps): Call update_ssa.
8856 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
8857 * sese.h (invariant_in_sese_p_rec): Declare.
8859 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
8861 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8863 2015-09-28 Jiong Wang <jiong.wang@arm.com>
8866 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8867 Jiong Wang <jiong.wang@arm.com>
8869 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8870 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8871 (REG_CLASS_NAMES): Likewise.
8872 (REG_CLASS_CONTENTS): Likewise.
8873 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8874 (aarch64_register_move_cost): Likewise.
8875 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8877 * config/aarch64/constraints.md (Uc0): New constraint.
8879 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
8881 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8883 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
8885 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8886 SECTION_EXCLUDE in XO mapping class.
8888 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8891 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8892 and handle ne and eq codes.
8893 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8894 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
8895 CONST_INT_P. Use reverse_condition.
8896 (sh_split_treg_set_expr): Likewise.
8898 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
8900 * config/arm/types.md (type): Add rotate_imm.
8901 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8903 (*rorsi3_insn_uxtw): Likewise.
8904 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8905 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8906 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8908 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8910 PR rtl-optimization/67481
8911 * ifcvt.c (contains_ccmode_rtx_p): New function.
8912 (insn_valid_noce_process_p): Use it.
8914 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8916 PR rtl-optimization/67456
8917 PR rtl-optimization/67464
8918 PR rtl-optimization/67465
8919 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8920 move in the mode of x. Handle combination of complex and simple
8921 block pairs as well as the case when one is empty.
8923 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8925 * doc/gimple.texi: Update references to gimple_statement_base.
8926 * gdbhooks.py: Likewise.
8927 * gimple.h: Likewise.
8929 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8931 * config/sparc/driver-sparc.c: map LEON to leon3
8933 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8935 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8936 and make it inverse to change default
8937 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8939 * doc/invoke.texi: Document change of default
8941 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8943 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8944 true on %f0 for a target without FPU.
8945 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8947 (untyped_return): Do not load %f0 for a target without FPU.
8949 2015-09-28 Andrew Pinski <apinski@cavium.com>
8951 * config/aarch64/aarch64.md (prefetch):
8952 Change the predicate of operand 0 to register_operand.
8954 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
8956 * config/i386/predicates.md (register_sse4nonimm_operand): New
8958 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8959 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8960 Use register_sse4nonimm_operand as operand 0 predicate.
8961 (*vec_extractv8hi_sse2): Remove insn pattern.
8962 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8963 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8965 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8966 Kaz Kojima <kkojima@gcc.gnu.org>
8969 * config/sh/sh-protos.h (sh_lra_p): Declare.
8970 * config/sh/sh.c (sh_lra_p): Make non-static.
8971 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8972 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
8973 Expand into addsi3_scr if operands[2] if needed.
8974 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
8975 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
8976 (addsi3_scr, *addsi3): New insn_and_split patterns.
8978 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
8980 PR rtl-optimization/64164
8981 PR tree-optimization/67312
8985 * cfgexpand.c (parm_in_stack_slot_p): Remove.
8986 (ssa_default_def_partition): Remove.
8987 (get_rtl_for_parm_ssa_default_def): Remove.
8988 (set_rtl): Check that RTL assignments match expectations.
8989 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
8990 default def location for params and results. Record SSA names
8991 or types in REG and MEM attrs, respectively.
8992 (set_parm_rtl): New.
8993 (expand_one_ssa_partition): Drop logic that assigned MEMs with
8994 unassigned addresses.
8995 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8996 deferred stack alloc vars.
8997 (expand_used_vars): Skip partitions holding parm default defs.
8998 Move adjust_one_expanded_partition_var loop...
8999 (pass_expand::execute): ... here. Drop redundant assert.
9000 Adjust comments before the final loop over all ssa names.
9001 Require assigned rtl of parms and results to match exactly.
9002 Reset its attributes to match them, not any other variables in
9004 (expand_debug_expr): Use entry value for PARM's default defs
9005 only iff they have zero nondebug uses.
9006 * cfgexpand.h (parm_in_stack_slot_p): Remove.
9007 (get_rtl_for_parm_ssa_default_def): Remove.
9008 (set_parm_rtl): Declare.
9009 * doc/invoke.texi: Improve wording.
9010 * explow.c (promote_decl_mode): Fix promote_function_mode for
9011 result decls not by reference.
9012 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
9013 bypass TYPE_MODE to get the actual vector mode.
9014 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
9015 2015-08-19's changes as follows. Drop include of
9016 basic-block.h and df.h.
9017 (rtl_for_parm): Remove.
9018 (maybe_reset_rtl_for_parm): Remove.
9019 (parm_in_unassigned_mem_p): Remove.
9020 (use_register_for_decl): Add logic for RESULT_DECLs matching
9021 assign_parms' behavior.
9022 (split_complex_args): Revert.
9023 (assign_parms_augmented_arg_list): Revert. Add comment
9024 referencing the logic above.
9025 (assign_parm_adjust_stack_rtl): Revert.
9026 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
9027 of SET_DECL_RTL. Set up a REG if the parm demands so.
9028 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
9029 calls into a single set_parm_rtl. Set up a temporary RTL
9030 temporarily for expand_assignment.
9031 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
9032 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
9033 (assign_bounds): Revert.
9034 (assign_parms): Revert. Use set_parm_rtl.
9035 (allocate_struct_function): Relayout result and parms of
9036 non-abstruct functions.
9037 (expand_function_start): Revert. Use set_parm_rtl. If the
9038 result is not a hard reg, create a pseudo from the promoted
9039 mode of the default def. Promote static chain mode.
9040 * tree-outof-ssa.c (remove_ssa_form): Drop unused
9041 partition_has_default_def. Set up
9042 partitions_for_parm_default_defs.
9043 (finish_out_of_ssa): Remove partition_has_default_def.
9044 Release partitions_for_parm_default_defs.
9045 * tree-outof-ssa.h (struct ssaexpand): Remove
9046 partition_has_default_def. Add
9047 partitions_for_parm_default_defs.
9048 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
9050 (build_ssa_conflict_graph): Fix conflict-detection of default
9051 defs of even unused default defs of params and results.
9052 (for_all_parms): New.
9053 (create_default_def): New.
9054 (register_default_def): New.
9055 (coalesce_with_default): New.
9056 (create_outofssa_var_map): Create default defs for all parms
9057 and results, and register their partitions. Add GIMPLE_RETURN
9058 operands as coalesce candidates with results. Add default
9059 defs of each parm or result as coalesce candidates with its
9060 other defs. Mark each result def, and each default def of
9061 parms, as used_in_copy.
9062 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
9063 with the ssa names, even anonymous ones. Drop
9064 parm_in_stack_slot_p calls. Require same signedness and
9066 (coalesce_ssa_name): Add coalesce candidates for all defs of
9067 each parm and result, even unused ones.
9068 (parm_default_def_partition_arg): New type.
9069 (set_parm_default_def_partition): New.
9070 (get_parm_default_def_partitions): New.
9071 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
9072 * tree-ssa-live.c (partition_view_init): Regard unused defs of
9073 parms and results as used.
9074 (verify_live_on_entry): Don't error out just because they're
9077 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
9079 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9080 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
9081 (output_fde): Don't output length for debug_frame on AIX.
9082 (output_call_frame_info): Don't output length for debug_frame on AIX.
9083 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
9084 HAVE_XCOFF_DWARF_EXTRAS.
9085 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
9086 HAVE_XCOFF_DWARF_EXTRAS.
9087 (output_compilation_unit_header): Don't output length on AIX.
9088 (output_pubnames): Don't output length on AIX.
9089 (output_aranges): Delete argument. Compute length locally. Don't
9090 output length on AIX.
9091 (output_line_info): Don't output length on AIX.
9092 (dwarf2out_finish): Don't compute aranges_length.
9093 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9094 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
9095 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
9096 symbol decoration for AIX.
9097 (rs6000_xcoff_debug_unwind_info): New.
9098 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
9100 (rs6000_xcoff_declare_function_name): Emit different
9101 .function pseudo-op when DWARF2_DEBUG. Don't call
9102 xcoffout_declare_function for DWARF2_DEBUG.
9103 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
9105 * config/rs6000/aix71.h: New.
9106 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
9108 * configure: Regenerate.
9109 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
9112 2015-09-26 Jeff Law <law@redhat.com>
9114 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
9116 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
9119 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
9122 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
9123 undefined behaviour.
9125 * config/cris/cris.md (asrandb): Fix left shift undefined
9127 (asrandw): Likewise.
9129 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
9132 * lra-constarints.c (match_reload): Check presence of the input pseudo
9133 in the output operand.
9135 2015-09-25 Tobias Burnus <burnus@net-b.de>
9137 * doc/invoke.texi (-fsanitize): Minor wording tweak.
9139 2015-09-25 Tobias Burnus <burnus@net-b.de>
9141 * doc/invoke.texi (-fsanitize): Update URLs.
9143 2015-09-25 Teresa Johnson <tejohnson@google.com>
9145 * opts.c (finish_options): Unset -freorder-blocks-and-partition
9146 if not using profile.
9148 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9150 PR pretty-print/67567
9151 * pretty-print.c (pp_string): Add gcc_checking_assert.
9152 * pretty-print.h (output_buffer_append_r): Likewise.
9154 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9157 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9158 addr2 individually. Don't emit logical or insn if one is known to
9159 be aligned approriately.
9160 (sh_expand_cmpnstr): Likewise.
9162 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
9164 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9165 __builtin_aarch64_fp[sc]r arguments into a register.
9167 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
9169 * config.gcc (x86_archs): Replace lakemount with lakemont.
9170 (with_cpu): Likewise.
9171 (with_arch): Likewise.
9172 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9173 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
9174 __tune_lakemount__ with __tune_lakemont__.
9175 * config/i386/i386.c (lakemount_cost): Renamed to ...
9176 (lakemont_cost): This.
9177 (m_LAKEMOUNT): Renamed to ...
9179 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9180 (processor_target_table): Replace "lakemount" with "lakemont".
9181 (processor_alias_table): Likewise.
9182 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9184 (ix86_adjust_cost): Likewise.
9185 (ia32_multipass_dfa_lookahead): Likewise.
9186 * config/i386/i386.h (processor_type): Likewise.
9187 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9188 * doc/invoke.texi: Replace lakemount with lakemont. Replace
9189 Lakemount with Lakemont.
9191 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
9193 * config.gcc (x86_archs): Replace iamcu with lakemount.
9194 (with_cpu): Likewise.
9195 (with_arch): Likewise.
9196 * doc/invoke.texi: Likewise.
9197 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9198 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
9199 __tune_iamcu__ with __tune_lakemount__.
9200 * config/i386/i386.c (iamcu_cost): Renamed to ...
9201 (lakemount_cost): This.
9202 (m_IAMCU): Renamed to ...
9203 (m_LAKEMOUNT): This.
9204 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9205 (processor_target_table): Replace "iamcu" with "lakemount".
9206 (processor_alias_table): Likewise.
9207 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9208 PROCESSOR_LAKEMOUNT.
9209 (ix86_adjust_cost): Likewise.
9210 (ia32_multipass_dfa_lookahead): Likewise.
9211 * config/i386/i386.h (processor_type): Likewise.
9212 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9214 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
9216 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9217 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9219 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9220 (pa_expand_compare_and_swap_loop): New.
9221 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9222 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9223 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9224 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9225 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9228 2015-09-24 Michael Collison <michael.collison@linaro.org>
9231 * read-md.c (read_name): Allow mode iterators inside angle
9232 brackets in rtl expressions.
9234 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
9237 * ira-color.c (update_allocno_cost): Add parameter.
9238 (update_costs_from_allocno): Decrease conflict cost. Pass the new
9241 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9244 * opts-common.c (prune_options): Discard all -fdiagnostics-color
9245 but the last one, which is moved to the front to be processed
9247 * opts.c (enable_warning_as_error): Reject options that do not
9250 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9252 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9254 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9256 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9257 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9258 (aarch64_cannot_force_const_mem): Likewise.
9259 (aarch64_classify_address): Likewise.
9260 (aarch64_classify_symbolic_expression): Likewise.
9261 (aarch64_print_operand): Likewise.
9262 (aarch64_classify_symbol): Likewise.
9263 (aarch64_mov_operand_p): Likewise.
9264 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9265 (aarch64_mov_operand): Likewise.
9267 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
9269 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9270 for info->spe_gp_size.
9272 2015-09-24 Richard Biener <rguenther@suse.de>
9275 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9278 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
9280 * tree-object-size.c (plus_stmt_object_size)
9281 (cond_expr_object_size): Change the formal parameters from gimple
9283 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9284 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9285 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9287 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9289 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9290 Check for ld -type pie on Solaris 11.x and 12.
9291 * configure: Regenerate.
9292 * config.in: Regenerate.
9294 * gcc.c (LD_PIE_SPEC): Allow redefinition.
9296 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9297 (STARTFILE_SPEC): Use it.
9298 (ENDFILE_CRTEND_SPEC): Define.
9299 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9300 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9301 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9302 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9303 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9304 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9305 (ENDFILE_ARCH_SPEC): Define.
9306 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9308 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9310 * configure.ac (gcc_cv_solaris_crts): New test.
9311 * configure. Regenerate.
9312 * config.in: Regenerate.
9313 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9314 HAVE_SOLARIS_CRTS variant.
9316 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9318 * tree-inline.h (count_insns_seq): Delete prototype.
9319 (estimate_num_insns_seq): Define prototype.
9320 * tree-inline.c (count_insns_seq): Delete.
9321 (estimate_num_insns_seq): Remove static qualifier.
9322 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9323 with estimate_num_insns_seq.
9325 2015-09-24 Richard Biener <rguenther@suse.de>
9327 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9329 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9330 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
9332 (ao_ref_init_from_vn_reference): Record clique and base in the
9334 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9336 2015-09-24 Richard Biener <rguenther@suse.de>
9338 PR tree-optimization/48885
9339 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9340 as not including any restrict tags from other pointers.
9342 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9344 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9345 character when appending to offload_targets.
9347 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9348 offload targets by commas, not colons.
9349 * config.in: Regenerate.
9350 * configure: Likewise.
9351 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9352 instead of setting up the default offload targets here...
9353 (process_command): ..., do it here.
9355 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9356 targets are separated by commas.
9357 * config.h.in: Regenerate.
9359 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9360 Nathan Sidwell <nathan@codesourcery.com>
9362 * omp-low.h (omp_reduction_init_op): Declare.
9363 * omp-low.c (omp_reduction_init_op): New, broken out of ...
9364 (omp_reduction_init): ... here. Call it.
9365 * tree-parloops.c (initialize_reductions): Use
9366 omp_reduction_init_op.
9368 2015-09-23 Richard Biener <rguenther@suse.de>
9371 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9372 undefined overflow unless they will cancel out.
9374 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9376 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9379 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9382 * opts.h (write_langs): Declare.
9383 * opts-global.c (write_langs): Make it extern.
9385 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
9388 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9389 overlapping regs when matching the pattern.
9391 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9393 * config/aarch64/aarch64-simd.md
9394 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9395 (aarch64_float_truncate_hi_v4sf_le): New.
9396 (aarch64_float_truncate_hi_v4sf_be): Likewise.
9398 2015-09-23 Richard Biener <rguenther@suse.de>
9400 * tree-ssa-structalias.c (intra_create_variable_infos): Build
9401 representatives for all restrict qualified pointer destinations.
9403 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9405 * config/i386/i386.md (define_code_attr mshift): New.
9406 (define_mode_iterator SWI1248_AVX512BW): Rename ...
9407 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9409 (define_insn "*k<logic><mode>"): Use new iterator name.
9410 (define_insn "*<mshift><mode>3"): New.
9412 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
9415 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9416 mark the block as accessible.
9418 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
9420 * function.c (thread_prologue_and_epilogue_insns): Delete
9421 orig_entry_edge argument to try_shrink_wrapping.
9422 * shrink-wrap.c (can_get_prologue): New function.
9423 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9424 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
9425 can_get_prologue where needed. Remove code that finds a single
9426 edge for the prologue. Remove code that tests if any reg clobbered
9427 by the prologue is live on the prologue edge. Remove code that finds
9428 the new prologue edge after duplicating blocks. Make a new prologue
9430 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9432 2015-09-22 Jeff Law <law@redhat.com>
9434 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9437 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
9439 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
9440 -Wtemplates, -Wnamespaces): Document.
9442 2015-09-22 Tom de Vries <tom@codesourcery.com>
9444 PR tree-optimization/67671
9445 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9446 pointer references as restrict.
9448 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9450 * config/nios2/nios2.c (nios2_legitimize_address): When handling
9451 'reg + reloc' cases, allow first operand to be non-REG, and use
9452 force_reg() to enforce address pattern.
9454 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
9457 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9458 (define_mode_iterator VI12_AVX_AVX512F): New.
9459 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9460 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9461 (define_insn "*<code><mode>3"): ... Into new pattern using
9462 VI12_AVX_AVX512F iterators without masking.
9464 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9466 * config.gcc: Support "skylake-avx512".
9467 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9468 PROCESSOR_SKYLAKE_AVX512.
9469 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9470 (processor_target_table): Add "skylake-avx512".
9471 (PTA_SKYLAKE_AVX512): Define.
9472 (ix86_option_override_internal): Add "skylake_avx512".
9473 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9474 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9475 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9476 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9477 * doc/invoke.texi (skylake-avx512): New.
9479 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9481 * config/i386/i386.md (define_insn "kunpckhi"): Fix
9483 (define_insn "kunpcksi"): Ditto.
9484 (define_insn "kunpckdi"): Ditto.
9486 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9488 * config/i386/i386.md (define_split not/xor SWI1248x): Use
9489 iterator instead of fixed modes.
9491 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9493 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9495 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9496 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
9497 out_result. Update to support update-fetch operations.
9498 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9499 Adjust for change to aarch64_gen_atomic_ldop.
9500 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9501 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9502 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9503 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9504 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9506 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9508 * config/aarch64/aarch64-protos.h
9509 (aarch64_atomic_ldop_supported_p): Declare.
9510 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9511 (enum aarch64_atomic_load_op_code): New.
9512 (aarch64_emit_atomic_load_op): New.
9513 (aarch64_gen_atomic_ldop): Update to support load-operate
9515 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9517 (aarch64_atomic_<atomic_optab><mode>): New.
9518 (aarch64_atomic_<atomic_optab><mode>_lse): New.
9519 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9520 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9521 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9523 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9525 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9526 (UNSPECV_ATOMIC_LDOP_OR): New.
9527 (UNSPECV_ATOMIC_LDOP_BIC): New.
9528 (UNSPECV_ATOMIC_LDOP_XOR): New.
9529 (UNSPECV_ATOMIC_LDOP_PLUS): New.
9532 (aarch64_atomic_load<atomic_ldop><mode>): New.
9534 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9536 * config/aarch64/aarch64.md
9537 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9540 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9542 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9544 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9545 (aarch64_gen_atomic_ldop): New.
9546 (aarch64_split_atomic_op): Fix whitespace and add a comment.
9547 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9548 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9549 (atomic_exchange<mode>): Replace with an expander.
9550 (aarch64_atomic_exchange<mode>): New.
9551 (aarch64_atomic_exchange<mode>_lse): New.
9552 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9553 (aarch64_atomic_swp<mode>): New.
9555 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9557 * tree-inline.c (expand_call_inline): Use inform for extra note.
9558 Do not give a note with UNKNOWN_LOCATION.
9559 Replace input_location with gimple_location (stmt).
9560 Use true/false instead of TRUE/FALSE.
9562 2015-09-22 Tom de Vries <tom@codesourcery.com>
9564 PR tree-optimization/67666
9565 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9566 with single field non-conservative.
9568 2015-09-21 David S. Miller <davem@davemloft.net>
9572 2015-09-11 David S. Miller <davem@davemloft.net>
9574 * config/sparc/constraints.md: Make "U" constraint a real register
9576 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9577 (D_MODES, DF_MODES): Add missing cast.
9578 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9579 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9580 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9582 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9583 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9584 provide these insn when flag_pic.
9586 2015-09-17 David S. Miller <davem@davemloft.net>
9588 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9590 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9592 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9593 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9594 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9595 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9596 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9597 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9598 provide when flag_pic.
9600 2015-09-21 Jeff Law <law@redhat.com>
9602 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9605 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9607 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9609 2015-09-21 Richard Biener <rguenther@suse.de>
9611 * passes.c (rest_of_decl_compilation): Do not call
9612 dwarf2out_early_global_decl for aliases.
9614 2015-09-21 Richard Biener <rguenther@suse.de>
9617 * dwarf2out.c (add_location_or_const_value_attribute): Remove
9618 attribute parameter. Early exit if either DW_AT_const_value
9619 or DW_AT_location are present already.
9620 (gen_variable_die): Adjust caller.
9621 (dwarf2out_late_global_decl): Likewise.
9623 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9626 * config/sh/sh.c (sh_remove_overlapping_post_inc,
9627 sh_peephole_emit_move_insn): Add new functions.
9628 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9629 sh_peephole_emit_move_insn): Declere them.
9630 * config/sh/sh.md: Use them in various peephole2 patterns.
9632 2015-09-21 Richard Biener <rguenther@suse.de>
9635 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9636 address with -fno-delete-null-pointer-checks.
9638 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
9640 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9641 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9642 (reduc_uplus_v16qi): Remove.
9644 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9645 (reduc_<VEC_reduc_name>_v2df): Remove.
9646 (reduc_<VEC_reduc_name>_v4sf): Remove.
9647 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9649 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9650 gen_ function by removing * prefix.
9651 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9653 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9656 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9657 Print i_bound without converting it to a tree.
9659 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
9661 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9662 operands[4] operands[5] swap with std::swap, removed tmp variable.
9663 (arm_evpc_neon_vzip): Replaced in0/in1 and
9664 out0/out1 swaps with std::swap, removed x variable.
9665 (arm_evpc_neon_vtrn): Replaced in0/int1 and
9666 out0/out1 swaos with std::swap, removed x variable.
9667 (arm_expand_vec_perm_const_1): Replaced
9668 d->op0/d->op1 swap with std::swap, removed x variable.
9669 (arm_evpc_neon_vuzp): Replaced in0/in1 and
9670 out0/out1 swaps with std::swap, removed x variable.
9672 2015-09-21 Jonathan Yong <10walls@gmail.com>
9674 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9675 sysroot/usr/lib/32api for additional win32 libraries,
9676 fixes failing Cygwin bootstrapping.
9678 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9680 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9682 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9685 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9686 (*mov_t_msb_neg): Rewrite negc pattern.
9688 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9690 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9691 immediate generation code.
9693 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9695 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9696 redundant immediate generation code.
9698 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9700 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9701 (AARCH64_NUM_BITMASKS): Remove.
9702 (aarch64_bitmasks_cmp): Remove.
9703 (aarch64_build_bitmask_table): Remove.
9705 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9707 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9708 slow immediate matching loops with a faster algorithm.
9710 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9712 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9715 2015-09-20 Jeff Law <law@redhat.com>
9717 PR tree-optimization/47679
9718 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9719 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9720 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9721 (thread_through_normal_block): Use record_temporary_equivalences.
9723 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
9725 * coretypes.h (gimple): Change typedef to be a forward declaration.
9726 * gimple.h (gimple_statement_base): rename to gimple.
9727 * (all functions and types using gimple): Adjust.
9730 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
9731 David Edelsohn <dje.gcc@gmail.com>
9733 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9734 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9735 (EH_FRAME_THROUGH_COLLECT2): Define.
9736 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9737 (ASM_OUTPUT_DWARF_PCREL): Define.
9738 (ASM_OUTPUT_DWARF_DATAREL): Define.
9740 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
9742 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9745 2015-09-18 Jeff Law <law@redhat.com>
9747 PR tree-optimization/47679
9748 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
9750 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9751 object. Update constructor.
9752 (pass_dominator::execute): Corresponding chagnes to declaration
9753 and initialization of avail_exprs_stack. Update constructor call
9754 for dom_opt_dom_walker object.
9755 (lookup_avail_expr, record_cond): Accept additional argument. Pass
9756 it down to children as needed.
9757 (record_equivalences_from_incoming_edge): Likewise.
9758 (eliminate_redundant_computations): Likewise.
9759 (record_equivalences_from_stmt): Likewise.
9760 (simplify_stmt_for_jump_threading): Likewise.
9761 (record_temporary_equivalences): Likewise.
9762 (optimize_stmt): Likewise.
9763 (dom_opt_dom_walker::thread_across_edge): Update access to
9764 avail_exprs_stack object and pass it to children as needed.
9765 (dom_opt_dom_walker::before_dom_children): Similarly.
9766 (dom_opt_dom_walker::after_dom_children): Similarly.
9767 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9768 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9769 Add avail_expr_stack argument. Pass it to children as needed.
9770 (dummy_simplify): Likewise.
9771 (simplify_control_stmt_condition): Likewise.
9772 (thread_around_empty_blocks): Likewise.
9773 (thread_through_normal_block): Likewise.
9774 (thread_across_edge): Likewise.
9775 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9776 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9778 PR tree-optimization/47679
9779 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
9781 (dom_opt_dom_walker): New private member holding the const_and_copies
9782 object. Update constructor.
9783 (pass_dominator::execute): Corresponding changes to declaration
9784 and initialization of const_and_copies. Update constructor call
9785 for the dom_opt_dom_walker object.
9786 (record_temporary_equivalences): Accept const_and_copies argument
9787 pass it down to children as needed.
9788 (record_equality): Likewise.
9789 (record_equivalences_from_incoming_edge): Likewise.
9790 (cprop_into_successor_phis, optimize_stmt): Likewise.
9791 (eliminate_redundant_computations): Likewise.
9792 (dom_opt_dom_walker::thread_across_edge): Update access to
9793 const_and_copies object and pass it to children as needed.
9794 (dom_opt_dom_walker::before_dom_children): Similarly.
9795 (dom_opt_dom_walker::after_dom_children): Similarly.
9797 PR tree-optimization/47679
9798 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
9799 it into the avail_exprs_stack class.
9800 (pass_dominator::execute): Corresponding changes to declaration
9801 and initialization of avail_exprs. Pass avail_exprs to
9802 dump_dominator_optimization_stats.
9803 (record_cond): Extract avail_exprs from avail_exprs_stack.
9804 (lookup_avail_expr): Similarly.
9805 (htab_staticstics): Remove unnecessary prototype. Move to earlier
9807 (dump_dominator_optimization_stats): Make static and prototype.
9808 Add argument for the hash table to dump.
9809 (debug_dominator_optimization_stats): Remove.
9810 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9812 (debug_dominator_optimization_stats): Similarly.
9813 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9814 "void" in prototype for pop_to_marker method. Add accessor method
9815 for the underlying avail_exprs table.
9817 * tree-ssa-threadedge.c: Remove trailing whitespace.
9819 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
9821 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9823 (pa_ldil_cint_p): Likewise.
9824 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9825 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9827 * config/pa/pa.md: Likewise.
9829 2015-09-18 David Malcolm <dmalcolm@redhat.com>
9831 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9832 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9833 (diagnostic_show_locus): Likewise.
9834 (diagnostic_print_caret_line): Likewise.
9835 * diagnostic-show-locus.c: New file.
9837 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
9839 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9840 "back" parameter. Declare label in #if block.
9842 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
9845 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9846 the address to a register.
9848 2015-09-18 Jeff Law <law@redhat.com>
9850 PR tree-optimization/47679
9851 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9852 * tree-ssa-dom.c: Remove unnecessary header includes.
9853 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9854 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9855 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9856 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9857 (pass_phi_only_cprop::execute): Likewise.
9858 (make_pass_phi_only_cprop): Likewise.
9859 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
9860 uses of file scoped statics by passing the required objects
9861 as parameters wherever needed.
9863 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
9864 David Edelsohn <dje.gcc@gmail.com>
9866 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9867 EH_FRAME_THROUGH_COLLECT2.
9868 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9870 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9871 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
9872 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9873 * except.c (switch_to_exception_section): Use a read-only section
9874 even if EH_FRAME_SECTION_NAME is undefined.
9875 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9876 * collect2.c (write_c_file_stat): Provide dbase on AIX.
9877 (scan_prog_file): Don't export __dso_handle nor
9879 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9880 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9881 (ASM_OUTPUT_DWARF_PCREL): Define.
9882 (ASM_OUTPUT_DWARF_DATAREL): Define.
9883 (EH_FRAME_THROUGH_COLLECT2): Define.
9884 (EH_FRAME_IN_DATA_SECTION): Delete.
9885 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9886 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9888 (rs6000_asm_output_dwarf_datarel): Declare.
9889 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9890 (rs6000_aix_asm_output_dwarf_datarel): New.
9891 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9892 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9893 (EH_FRAME_THROUGH_COLLECT2): Define.
9894 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9895 (EH_FRAME_THROUGH_COLLECT2): Define.
9896 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9897 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9898 (EH_FRAME_THROUGH_COLLECT2): New.
9899 (ASM_OUTPUT_DWARF_DATAREL): New.
9900 * doc/tm.texi: Regenerate.
9902 2015-09-18 Richard Biener <rguenther@suse.de>
9904 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9905 we're in early phase.
9906 (schedule_generic_params_dies_gen): Likewise.
9907 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9908 work as possible, retaining unhandled cases.
9909 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9910 clear out generic_type_instances at the end.
9911 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9912 (dwarf2out_early_finish): ... here. Do most of
9913 gen_remaining_tmpl_value_param_die_attribute here.
9915 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
9917 PR tree-optimization/67283
9918 * tree-sra.c (type_consists_of_records_p): Rename to...
9919 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9920 (completely_scalarize_record): Rename to...
9921 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9922 (scalarize_elem): New.
9923 (analyze_all_variable_accesses): Follow renamings.
9925 2015-09-18 Richard Biener <rguenther@suse.de>
9927 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9930 2015-09-18 Richard Biener <rguenther@suse.de>
9932 PR tree-optimization/66142
9933 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9934 treat MEM[&x] and x the same.
9935 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9936 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9937 when we simplified sth.
9938 (vn_reference_maybe_forwprop_address): Likewise.
9939 (valueize_refs_1): When we simplified through
9940 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9941 set valueized_anything to true.
9942 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9943 one ref kills the other instead of just a offset-based test.
9944 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9945 for the operand_equal_p test to compare bases and also compare
9948 2015-09-17 Christian Bruel <christian.bruel@st.com>
9950 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9952 2015-09-17 Richard Henderson <rth@redhat.com>
9955 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9956 pointers that encode the alignment of the object.
9958 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9960 PR rtl-optimization/66790
9961 * df-problems.c (LIVE): Amend documentation.
9963 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
9965 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9967 (GTFILES): Replace optabs.c with optabs-libfunc.c.
9968 * genopinit.c (main): Add an include guard to insn-opinit.h.
9969 Protect the rtx_code parts with NUM_RTX_CODE.
9970 * optabs.h: Split parts out to...
9971 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9972 * optabs.c: Split parts out to...
9973 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9974 * cilk-common.c: Include optabs-query.h rather than optabs.h.
9975 * fold-const.c: Likewise.
9976 * target-globals.c: Likewise.
9977 * tree-if-conv.c: Likewise.
9978 * tree-ssa-forwprop.c: Likewise.
9979 * tree-ssa-loop-prefetch.c: Likewise.
9980 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9981 Remove unncessary include files.
9982 * tree-ssa-phiopt.c: Likewise.
9983 * tree-ssa-reassoc.c: Likewise.
9984 * tree-switch-conversion.c: Likewise.
9985 * tree-vect-data-refs.c: Likewise.
9986 * tree-vect-generic.c: Likewise.
9987 * tree-vect-loop.c: Likewise.
9988 * tree-vect-patterns.c: Likewise.
9989 * tree-vect-slp.c: Likewise.
9990 * tree-vect-stmts.c: Likewise.
9991 * tree-vrp.c: Likewise.
9992 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9993 rather than optabs.h.
9994 * expr.c: Include optabs-tree.h.
9995 * function.c: Likewise.
9997 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
10000 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
10001 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
10002 * config/arm/arm.c: Include common/common-target.h.
10003 (use_return_insn): Return 0 if the static chain register was saved
10004 above a non-APCS frame.
10005 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
10006 (struct scratch_reg): New.
10007 (get_scratch_register_on_entry): New function.
10008 (release_scratch_register_on_entry): Likewise.
10009 (arm_emit_probe_stack_range): Likewise.
10010 (output_probe_stack_range): Likewise.
10011 (arm_expand_prologue): Factor out code dealing with the IP register
10012 for nested function and adjust it for stack checking.
10013 Invoke arm_emit_probe_stack_range if static builtin stack checking
10015 (thumb1_expand_prologue): Sorry out if static builtin stack checking
10017 (arm_expand_epilogue): Add the saved static chain register, if any, to
10018 the amount of pre-pushed registers to pop.
10019 (arm_frame_pointer_required): Return true if static stack checking is
10020 enabled and we want to catch the exception with the EABI unwinder.
10021 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
10022 (UNSPEC_PROBE_STACK_RANGE): Likewise.
10023 * config/arm/arm.md (probe_stack): New insn.
10024 (probe_stack_range): Likewise.
10026 2015-09-17 Richard Biener <rguenther@suse.de>
10028 * genmatch.c (parser::parse_expr): Improve error message
10029 for mis-placed flags.
10031 2015-09-17 Richard Biener <rguenther@suse.de>
10033 * passes.c (rest_of_decl_compilation): Always call early_global_decl
10034 debug hook when we created a varpool node.
10035 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
10036 dwarf2out_early_global_decl, when not just add location or
10037 value attributes to existing DIEs.
10039 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
10041 * config/aarch64/aarch64.md (copysigndf3): New.
10042 (copysignsf3): Likewise.
10044 2015-09-17 David S. Miller <davem@davemloft.net>
10046 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
10047 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
10048 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10049 (HARD_REGNO_CALLER_SAVE_MODE): Define.
10050 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10051 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10052 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10053 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10054 provide when flag_pic.
10056 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
10058 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
10059 object_allocator change.
10061 2015-09-17 Bin Cheng <bin.cheng@arm.com>
10063 PR tree-optimization/66388
10064 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
10065 (dump_iv): Dump no_overflow information.
10066 (alloc_iv): Initialize new field for struct iv.
10067 (mark_bivs): Count number of no_overflow bivs.
10068 (find_deriving_biv_for_expr, record_biv_for_address_use): New
10070 (idx_find_step): Call new functions above.
10071 (add_candidate_1, add_candidate): New paramter.
10072 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
10073 (get_computation_aff): Simplify convertion of cand for BIV.
10074 (get_computation_cost_at): Step cand's base if necessary.
10076 2015-09-17 Bin Cheng <bin.cheng@arm.com>
10078 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
10080 (tree_simplify_using_condition): Ditto.
10081 (simplify_using_initial_conditions): Ditto.
10082 (loop_exits_before_overflow): Pass new argument to function
10083 simplify_using_initial_conditions. Remove case for type conversions
10085 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
10087 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
10088 in iv base using loop initial conditions.
10090 2015-09-16 Jeff Law <law@redhat.com>
10092 PR tree-optimization/47679
10093 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
10094 (free_all_edge_infos): Use it.
10095 (allocate_edge_info): Free preexisting edge info data.
10096 (pass_dominator::execute): Set up initial edge info structures.
10097 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
10098 thread_across_edge.
10099 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
10100 If non-null, then push/pop markers appropriately.
10101 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10102 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
10103 thread-across_edge.
10105 2015-09-16 James Bowman <james.bowman@ftdichip.com>
10107 * config/ft32/ft32.c: Fix the memory address space predicate.
10109 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
10112 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
10113 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10115 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10117 * toplev.h (check_global_declaration): Remove declaration.
10118 * toplev.c (check_global_declaration): Move to ...
10119 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
10120 (analyze_functions): Update call.
10122 2015-09-16 David S. Miller <davem@davemloft.net>
10124 * lra-constraints.c (simplify_operand_subreg): Do not assume that
10125 lowpart of a SUBREG has offset zero.
10127 2015-09-16 Jeff Law <law@redhat.com>
10129 PR tree-optimization/47679
10130 * tree-ssa-dom.c (enum expr_kind): Moved from here to
10131 tree-ssa-scopedtables.h.
10132 (struct hashable_expr, class expr_hash_elt): Likewise.
10133 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
10134 Move associated methods into tree-ssa-scopedtables.c.
10135 (avail_expr_hash, initialize_expr_from_cond): Similarly.
10136 (hashable_expr_equal_p, add_expr_commutative): Likewise.
10137 (add_hashable_expr): Likewise.
10138 (record_cond): Delete element directly.
10139 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
10140 private copy ctor and assignment operator methods.
10141 (expr_elt_hasher): Inline trivial methods.
10142 (initialize_expr_from_cond): Prototype.
10143 * tree-ssa-scopedtables.c: Add necessary includes, functions and
10144 methods that were previously in tree-ssa-dom.c. Improve various
10147 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
10149 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
10151 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
10154 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10157 2015-09-16 Richard Biener <rguenther@suse.de>
10159 PR middle-end/67253
10160 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10161 location of possibly shared trees.
10163 2015-09-16 Richard Biener <rguenther@suse.de>
10165 PR middle-end/67271
10166 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10168 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
10170 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10171 offset and size computations instead of HOST_WIDE_INT.
10173 2015-09-16 Richard Biener <rguenther@suse.de>
10175 PR middle-end/67442
10176 * fold-const.c (extract_muldiv_1): Properly extend multiplication
10177 result before builting a tree via wide_int_to_tree.
10179 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
10181 * Makefile.in: Add memory-block.cc
10182 (pool_allocator::initialize): Use fixed block size.
10183 (pool_allocator::release): Use memory_block_pool.
10184 (pool_allocator::allocate): Likewise.
10185 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10187 * cfg.c (initialize_original_copy_tables): Likewise.
10188 * cselib.c (elt_list_pool, elt_loc_list_pool,
10189 cselib_val_pool): Likewise.
10190 * df-problems.c (df_chain_alloc): Likewise.
10191 * df-scan.c (df_scan_alloc): Likewise.
10192 * dse.c (cse_store_info_pool, rtx_store_info_pool,
10193 read_info_type_pool, insn_info_type_pool, bb_info_pool,
10194 group_info_pool, deferred_change_pool): Likewise.
10195 * et-forest.c (et_nodes, et_occurrences): Likewise.
10196 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10197 ipcp_agg_lattice_pool): Likewise.
10198 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10199 * ipa-profile.c (histogram_pool): Likewise.
10200 * ipa-prop.c (ipa_refdesc_pool): Likewise.
10201 * ira-build.c (live_range_pool, allocno_pool, object_pool,
10202 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10203 * ira-color.c (update_cost_record_pool): Likewise.
10204 * lra-lives.c (lra_live_range_pool): Likewise.
10205 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10206 * memory-block.cc: New file.
10207 * memory-block.h: New file.
10208 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10209 * sched-deps.c (sched_deps_init): Likewise.
10210 * sel-sched-ir.c (sched_lists_pool): Likewise.
10211 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10212 * tree-sra.c (access_pool): Likewise.
10213 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10214 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10215 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10216 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10217 * tree-ssa-strlen.c (strinfo_pool): Likewise.
10218 * tree-ssa-structalias.c (variable_info_pool): Likewise.
10219 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10220 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10222 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10224 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10226 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10229 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10231 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10232 to pass TLS call argument, according to current ABI.
10233 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10234 callx0 for TLS call, according to current ABI.
10236 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10238 * tree-eh.c (lower_try_finally_dup_block): Clear location information
10239 on stack restore statements.
10240 (decide_copy_try_finally): Do not consider a stack restore statement as
10241 coming from sources.
10243 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
10245 * config/alpha/alpha.c (alpha_expand_block_clear): Use
10246 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10248 2015-09-15 Jeff Law <law@redhat.com>
10250 PR tree-optimization/47679
10251 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10252 methods and private members.
10253 (avail_exprs_stack): Similarly. Change type of global
10254 from a pair of expr_hash_elt_t to the new class.
10255 (expr_elt_hasher::hash): Corresponding changes.
10256 (expr_elt_hasher::equal): Similarly.
10257 (avail_expr_hash): Similarly.
10258 (pass_dominator::execute): Similarly.
10259 (dom_opt_dom_walker::thread_across_edge): Similarly.
10260 (record_cond): Similarly.
10261 (dom_opt_dom_walker::before_dom_children): Similarly.
10262 (dom_opt_dom_walker::after_dom_children): Similarly.
10263 (lookup_avail_expr): Likewise.
10264 (initialize_hash_element): Now a expr_hash_elt constructor.
10265 (initialize_hash_element_from_expr): Similarly.
10266 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10267 (free_expr_hash_elt): Call dtor for the element.
10268 (remove_local_expressions_from_table): Now the "pop_to_marker"
10269 method in the available_exprs_stack class.
10270 (avail_expr_stack::record_expr): Method factored out.
10271 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10273 (hashable_expr_equal_p): Fix formatting.
10275 2015-09-15 David Malcolm <dmalcolm@redhat.com>
10277 * input.h (location_get_source_line): Drop "expanded_location"
10278 param in favor of a file and line number.
10279 * input.c (location_get_source_line): Likewise.
10280 (dump_location_info): Update for change in signature of
10281 location_get_source_line.
10282 * diagnostic.c (diagnostic_print_caret_line): Likewise.
10284 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10286 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10287 Bump to 4KB for SJLJ exceptions.
10288 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
10289 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10290 * doc/tm.texi: Regenerate.
10292 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10294 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10295 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
10298 2015-09-15 Richard Biener <rguenther@suse.de>
10300 PR tree-optimization/67470
10301 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10302 structure for PHI hoisting by inserting a forwarder block
10305 2015-09-15 Christian Bruel <christian.bruel@st.com>
10307 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10308 (arm_option_print): New function.
10310 2015-09-15 Christian Bruel <christian.bruel@st.com>
10313 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10314 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10315 Remove flags parameter.
10316 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10317 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10318 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10319 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10320 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10321 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10322 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10323 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10325 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10327 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10329 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10330 AARCH64_VALID_SIMD_DREG_MODE.
10332 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10334 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10335 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10336 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10337 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10338 aarch64_ld4_lane<mode>): Combine together, making...
10339 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10340 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10341 aarch64_st4_lane<mode>): Combine together, making...
10342 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10343 * config/aarch64/iterators.md (nregs): Add comment.
10345 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10347 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10348 Change operand mode from <V_TWO_ELEM> to BLK.
10349 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10350 (aarch64_vec_store_lanesoi_lane<mode): Likewise
10351 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10352 (aarch64_ld2_lane<mode>): Likewise.
10353 (aarch64_st2_lane<VQ:mode>): Likewise.
10354 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10356 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10358 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10359 Change operand mode from <V_FOUR_ELEM> to BLK.
10360 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10361 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10362 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10363 (aarch64_ld4_lane<mode>): Likewise.
10364 (aarch64_st4_lane<mode>): Likewise.
10365 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10367 2015-09-15 Richard Biener <rguenther@suse.de>
10369 PR middle-end/67563
10370 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10371 transfer EH info from old to new stmt.
10372 (replace_call_with_value): Likewise.
10373 (replace_call_with_call_and_fold): Likewise.
10374 (gimple_fold_builtin_memory_op): Likewise.
10375 (gimple_fold_builtin_memset): Likewise.
10376 (gimple_fold_builtin_stpcpy): Likewise.
10377 (gimple_fold_call): Likewise.
10379 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10381 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10383 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10384 (aarch64_simd_intEI_type_node): Likewise.
10385 (aarch64_simd_builtin_std_type): Remove EImode case.
10386 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10387 * config/aarch64/aarch64-modes.def: Remove EImode.
10389 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10391 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10392 Change operand mode from <V_THREE_ELEM> to BLK.
10393 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10394 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10395 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10396 (aarch64_ld3_lane<mode>): Likewise.
10397 (aarch64_st3_lane<mode>): Likewise.
10398 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10400 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10402 * config/aarch64/aarch64-simd.md
10403 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10404 Change all TImode operands to BLKmode.
10405 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10406 Change all EImode operands to BLKmode.
10407 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10408 Change all OImode operands to BLKmode.
10410 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10411 and call set_mem_size.
10412 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10414 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10416 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10418 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10420 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10422 (vec_store_lanesci_lane<mode>): Rename to...
10423 (aarch64_vec_store_lanesci_lane<mode>): ...this.
10425 (vec_store_lanesxi_lane<mode>): Rename to...
10426 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10428 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10429 aarch64_st4_lane<mode>): Follow renaming.
10431 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10433 * config/s390/s390.c (s390_const_operand_ok): Add missing
10436 2015-09-15 Richard Biener <rguenther@suse.de>
10439 * lto-streamer.h (lto_location_cache::current_sysp): Properly
10441 * lto-streamer-out.c (clear_line_info): Likewise.
10443 2015-09-15 Richard Biener <rguenther@suse.de>
10445 * doc/match-and-simplify.texi: Fix wording.
10447 2015-09-15 Bin Cheng <bin.cheng@arm.com>
10449 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10450 unnecessary type conversion in op1.
10452 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10454 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10455 (dup_block_and_redirect): Delete function.
10456 (can_dup_for_shrink_wrapping): New function.
10457 (fix_fake_fallthrough_edge): New function.
10458 (try_shrink_wrapping): Rewrite function.
10459 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10461 2015-09-14 Rich Felker <dalias@libc.org>
10463 * configure.ac: Change target pattern for sh TLS support
10464 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10465 * configure: Regenerate.
10467 2015-09-14 Jeff Law <law@redhat.com>
10469 PR tree-optimization/47679
10470 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10471 type rather than void *.
10473 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10476 * diagnostic.c (diagnostic_initialize): Do not set
10477 some_warnings_are_errors.
10478 (diagnostic_finish): Use DK_WERROR count instead.
10479 (diagnostic_report_diagnostic): Do not set
10480 some_warnings_are_errors.
10481 * diagnostic.h (struct diagnostic_context): Remove
10482 some_warnings_are_errors.
10484 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
10486 * config/sparc/predicates.md (const_all_ones_operand): Use
10487 CONSTM1_RTX to simplify definition.
10489 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
10492 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10495 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
10497 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10498 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10499 OPT_fshow_column to handled saved option cases.
10500 (append_compiler_options): Do not skip the above added options.
10502 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10505 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10506 nopcrelative_literal_loads.
10507 (aarch64_classify_address): Likewise.
10508 (aarch64_constant_pool_reload_icode): Define.
10509 (aarch64_secondary_reload): Handle secondary reloads for
10511 (aarch64_override_options): Handle nopcrelative_literal_loads.
10512 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10513 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10515 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10516 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10517 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10519 * doc/invoke.texi (mpc-relative-literal-loads): Document.
10521 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
10523 PR middle-end/67401
10524 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10525 sync_compare_and_swap_optab libcall to target_oval.
10527 2015-09-14 Marek Polacek <polacek@redhat.com>
10529 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10531 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10533 2015-09-11 Mark Wielaard <mjw@redhat.com>
10536 * toplev.c (check_global_declaration): Check and use
10537 warn_unused_const_variable.
10538 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10539 (-Wunused-variable): Remove non-constant. For C implies
10540 -Wunused-const-variable.
10541 (-Wunused-const-variable): New.
10543 2015-09-14 Richard Biener <rguenther@suse.de>
10545 * doc/match-and-simplify.texi: Update for changed syntax
10546 of inner ifs and the new switch expression.
10548 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10550 * config/i386/haswell.md: New file describing Haswell pipeline.
10551 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10552 haswell-like processors.
10553 (ix86_reassociation_width): Increase reassociation width for 64-bit
10554 Haswell processor family.
10555 * config/i386/i386.md: Introduce haswell cpu and include new md file.
10557 2015-09-14 Richard Biener <rguenther@suse.de>
10559 * doc/match-and-simplify.texi: Fixup some formatting issues
10560 and document the 's' flag.
10562 2015-09-13 Olivier Hainque <hainque@adacore.com>
10563 Eric Botcazou <ebotcazou@adacore.com>
10565 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10566 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
10567 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10568 (TARGET_CPU_gr5): Likewise.
10569 (TARGET_CPU_gr6): Likewise.
10570 (MULTILIB_DEFAULTS): Likewise.
10571 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10572 for mcpu=gr5 and mcpu=gr6.
10573 (MULTILIB_DIRNAMES): Adjust accordingly.
10575 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10577 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10578 (mem_ref_p): Likewise.
10579 (outermost_indep_loop): Adjust.
10580 (mem_ref_in_stmt): Likewise.
10581 (determine_max_movement): Likewise.
10582 (mem_ref_alloc): Likewise.
10583 (record_mem_ref_loc): Likewise.
10584 (set_ref_stored_in_loop): Likewise.
10585 (mark_ref_stored): Likewise.
10586 (gather_mem_refs_stmt): Likewise.
10587 (mem_refs_may_alias_p): Likewise.
10588 (for_all_locs_in_loop): Likewise.
10589 (struct rewrite_mem_ref_loc): Likewise.
10590 (rewrite_mem_refs): Likewise.
10591 (struct first_mem_ref_loc_1): Likewise.
10592 (first_mem_ref_loc): Likewise.
10593 (struct sm_set_flag_if_changed): Likewise.
10594 (execute_sm_if_changed_flag_set): Likewise.
10595 (execute_sm): Likewise.
10596 (hoist_memory_references):
10597 (struct ref_always_accessed): Likewise.
10598 (ref_always_accessed_p): Likewise.
10599 (refs_independent_p): Likewise.
10600 (record_dep_loop): Likewise.
10601 (ref_indep_loop_p_1): Likewise.
10602 (ref_indep_loop_p_2): Likewise.
10603 (ref_indep_loop_p): Likewise.
10604 (can_sm_ref_p): Likewise.
10605 (find_refs_for_sm): Likewise.
10606 (tree_ssa_lim_finalize): Likewise.
10608 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10610 * dwarf2out.c (dw_attr_ref): Remove typedef.
10611 (dw_line_info_ref): Likewise.
10612 (pubname_ref): Likewise.
10613 (dw_ranges_ref): Likewise.
10614 (dw_ranges_by_label_ref): Likewise.
10615 (comdat_type_node_ref): Likewise.
10617 (get_AT_low_pc): Likewise.
10618 (get_AT_hi_pc): Likewise.
10619 (get_AT_string): Likewise.
10620 (get_AT_flag): Likewise.
10621 (get_AT_unsigned): Likewise.
10622 (get_AT_ref): Likewise.
10623 (get_AT_file): Likewise.
10624 (remove_AT): Likewise.
10625 (print_die): Likewise.
10626 (check_die): Likewise.
10627 (die_checksum): Likewise.
10628 (attr_checksum_ordered): Likewise.
10629 (struct checksum_attributes): Likewise.
10630 (collect_checksum_attributes): Likewise.
10631 (die_checksum_ordered): Likewise.
10632 (same_die_p): Likewise.
10633 (is_declaration_die): Likewise.
10634 (clone_die): Likewise.
10635 (clone_as_declaration): Likewise.
10636 (copy_declaration_context): Likewise.
10637 (break_out_comdat_types): Likewise.
10638 (copy_decls_walk): Likewise.
10639 (output_location_lists): Likewise.
10640 (external_ref_hasher::hash): Likewise.
10641 (optimize_external_refs_1): Likewise.
10642 (build_abbrev_table): Likewise.
10643 (size_of_die): Likewise.
10644 (unmark_all_dies): Likewise.
10645 (size_of_pubnames): Likewise.
10646 (output_die_abbrevs): Likewise.
10647 (output_die): Likewise.
10648 (output_pubnames): Likewise.
10649 (add_ranges_num): Likewise.
10650 (add_ranges_by_labels): Likewise.
10651 (add_high_low_attributes): Likewise.
10652 (gen_producer_string): Likewise.
10653 (dwarf2out_set_name): Likewise.
10654 (new_line_info_table): Likewise.
10655 (prune_unused_types_walk_attribs): Likewise.
10656 (prune_unused_types_update_strings): Likewise.
10657 (prune_unused_types): Likewise.
10658 (resolve_addr): Likewise.
10659 (optimize_location_lists_1): Likewise.
10660 (index_location_lists): Likewise.
10661 (dwarf2out_finish): Likewise.
10663 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10665 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10667 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10669 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10670 (dump_asserts_for): Adjust.
10671 (register_new_assert_for): Likewise.
10672 (process_assert_insertions): Likewise.
10673 (insert_range_assertions): Likewise.
10675 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10677 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10678 and remove typedef.
10679 (new_temp_expr_table): Adjust.
10680 (free_temp_expr_table): Likewise.
10681 (version_to_be_replaced_p): Likewise.
10682 (make_dependent_on_partition): Likewise.
10683 (add_to_partition_kill_list): Likewise.
10684 (remove_from_partition_kill_list): Likewise.
10685 (add_dependence): Likewise.
10686 (finished_with_expr): Likewise.
10687 (process_replaceable): Likewise.
10688 (kill_expr): Likewise.
10689 (kill_virtual_exprs): Likewise.
10690 (mark_replaceable): Likewise.
10691 (find_replaceable_in_bb): Likewise.
10692 (find_replaceable_exprs): Likewise.
10693 (debug_ter): Likewise.
10695 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10697 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10698 (struct btr_user): Rename from btr_user_s.
10699 (struct btr_def): Rename from btr_def_s.
10700 (find_btr_def_group): Adjust.
10701 (add_btr_def): Likewise.
10702 (new_btr_user): Likewise.
10703 (note_other_use_this_block): Likewise.
10704 (compute_defs_uses_and_gen): Likewise.
10705 (link_btr_uses): Likewise.
10706 (build_btr_def_use_webs): Likewise.
10707 (block_at_edge_of_live_range_p): Likewise.
10708 (btr_def_live_range): Likewise.
10709 (combine_btr_defs): Likewise.
10710 (move_btr_def): Likewise.
10711 (migrate_btr_def): Likewise.
10712 (migrate_btr_defs): Likewise.
10714 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10716 * var-tracking.c (shared_hash_def): Rename to shared_hash.
10717 (shared_hash): Remove typedef.
10718 (struct dataflow_set): Adjust.
10719 (shared_hash_unshare): Likewise.
10720 (dataflow_set_merge): Likewise.
10721 (vt_initialize): Likewise.
10722 (vt_finalize): Likewise.
10724 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10726 * var-tracking.c (struct location_chain): Rename from
10727 location_chain_def.
10728 (struct variable_part): Adjust.
10729 (variable_htab_free): Likewise.
10730 (unshare_variable): Likewise.
10731 (get_init_value): Likewise.
10732 (get_addr_from_local_cache): Likewise.
10733 (drop_overlapping_mem_locs): Likewise.
10734 (val_reset): Likewise.
10735 (struct variable_union_info): Likewise.
10736 (variable_union): Likewise.
10737 (find_loc_in_1pdv): Likewise.
10738 (insert_into_intersection): Likewise.
10739 (intersect_loc_chains): Likewise.
10740 (canonicalize_loc_order_check): Likewise.
10741 (canonicalize_values_mark): Likewise.
10742 (canonicalize_values_star): Likewise.
10743 (canonicalize_vars_star): Likewise.
10744 (variable_merge_over_cur): Likewise.
10745 (remove_duplicate_values): Likewise.
10746 (variable_post_merge_new_vals): Likewise.
10747 (variable_post_merge_perm_vals): Likewise.
10748 (find_mem_expr_in_1pdv): Likewise.
10749 (dataflow_set_preserve_mem_locs): Likewise.
10750 (dataflow_set_remove_mem_locs): Likewise.
10751 (variable_part_different_p): Likewise.
10752 (onepart_variable_different_p): Likewise.
10753 (find_src_set_src): Likewise.
10754 (dump_var): Likewise.
10755 (set_slot_part): Likewise.
10756 (clobber_slot_part): Likewise.
10757 (delete_slot_part): Likewise.
10758 (vt_expand_var_loc_chain): Likewise.
10759 (emit_note_insn_var_location): Likewise.
10760 (vt_finalize): Likewise.
10762 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10764 * dse.c (store_info_t): Remove typedef.
10765 (group_info_t): Likewise.
10766 (const_group_info_t): Likewise.
10767 (deferred_change_t): Likewise.
10768 (get_group_info): Adjust.
10769 (free_store_info): Likewise.
10770 (canon_address): Likewise.
10771 (clear_rhs_from_active_local_stores): Likewise.
10772 (record_store): Likewise.
10773 (replace_read): Likewise.
10774 (check_mem_read_rtx): Likewise.
10775 (scan_insn): Likewise.
10776 (remove_useless_values): Likewise.
10777 (dse_step1): Likewise.
10778 (dse_step2_init): Likewise.
10779 (dse_step2_nospill): Likewise.
10780 (scan_stores_nospill): Likewise.
10781 (scan_reads_nospill): Likewise.
10782 (dse_step3_exit_block_scan): Likewise.
10783 (dse_step3): Likewise.
10784 (dse_step5_nospill): Likewise.
10785 (dse_step6): Likewise.
10787 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10789 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10790 (alias_set_entry): Remove typedef.
10791 (alias_set_subset_of): Adjust.
10792 (alias_sets_conflict_p): Likewise.
10793 (init_alias_set_entry): Likewise.
10794 (get_alias_set): Likewise.
10795 (new_alias_set): Likewise.
10796 (record_alias_subset): Likewise.
10798 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
10800 * doc/install.texi (Downloading the source): Mark up
10801 contrib/download_prerequisites properly and drop leading "./".
10803 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10805 * config/arc/arc.h: Remove define of STRUCT_VALUE.
10806 * config/lm32/lm32.h: Likewise.
10807 * config/mep/mep.h: Likewise.
10808 * config/visium/visium.h: Likewise.
10809 * system.h: Poison STRUCT_VALUE macro.
10811 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
10813 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10814 CONSTANT_P operands.
10816 2015-09-11 David S. Miller <davem@davemloft.net>
10818 * config/sparc/constraints.md: Make "U" constraint a real register
10820 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10821 (D_MODES, DF_MODES): Add missing cast.
10822 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10823 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10824 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10826 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10827 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10828 provide these insn when flag_pic.
10830 2015-09-11 Jeff Law <law@redhat.com>
10832 PR tree-optimization/47679
10833 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10834 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10835 member with m_. Update inline member functions as necessary. Add
10837 * tree-ssa-scopedtables.c: Update const_and_copies's member
10838 functions to use m_ prefix to access the stack.
10840 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10842 * graphite-optimize-isl.c (disable_tiling): Remove.
10843 (get_schedule_for_band): Do not use disable_tiling.
10844 (get_prevector_map): Delete function.
10845 (enable_polly_vector): Remove.
10846 (get_schedule_for_band_list): Remove dead code.
10848 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10850 * graphite-optimize-isl.c (get_tile_map): Refactor.
10851 (get_schedule_for_band): Same.
10852 (getScheduleForBand): Same.
10853 (get_prevector_map): Same.
10854 (get_schedule_for_band_list): Same.
10855 (get_schedule_map): Same.
10856 (get_single_map): Same.
10857 (apply_schedule_map_to_scop): Same.
10858 (optimize_isl): Same.
10860 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10863 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10865 * config/aarch64/iterators.md (GPF_TF_F16): New.
10868 2015-09-10 Nathan Sidwell <nathan@acm.org>
10870 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10871 (nvptx_reorg): Adjust comments.
10873 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
10876 * configure.ac: Check if setenv and unsetenv are declared.
10877 * configure: Rebuild.
10878 * config.in: Rebuild.
10879 * system.h: Declare setenv and unsetenv if not declared.
10881 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10883 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10884 commentary to simplify permute mask adjustment equation.
10885 (special_handling_values): Add SH_VPERM.
10886 (const_load_sequence_p): New function.
10887 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10888 the mask loaded from the constant pool.
10889 (adjust_vperm): New function.
10890 (handle_special_swappables): Call adjust_vperm.
10891 (dump_swap_insn_table): Handle SH_VPERM.
10893 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
10895 * shrink-wrap.c (requires_stack_frame_p): Remove static.
10896 * shrink-wrap.h (requires_stack_frame_p): Put back.
10898 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
10900 * reload1.c (elimination_costs_in_insn): Locally turn
10901 -Wmaybe-uninitialized into a warning.
10903 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
10905 * shrink-wrap.c (requires_stack_frame_p): Make static.
10906 (prepare_shrink_wrap): Likewise.
10907 (dup_block_and_redirect): Likewise.
10908 * shrink-wrap.h: Remove declarations of those functions.
10910 2015-09-10 Mark Wielaard <mjw@redhat.com>
10912 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10914 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
10917 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10918 missing simplify_gen_subreg.
10920 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10922 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10923 the vector element is bigger than 64 bit.
10925 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10927 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10928 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10930 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10932 * config/s390/s390.c: Add V1TImode to constant pool modes.
10934 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10937 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10938 predicate. Set predicable_short_it attr to "no".
10940 2015-09-10 Jiong Wang <jiong.wang@arm.com>
10942 PR rtl-optimization/67421
10943 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10944 left wide shift tranformation.
10946 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10948 * common/config/arc/arc-common.c: Remove references to A5.
10949 * config/arc/arc-opts.h: Likewise.
10950 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10951 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10952 * config/arc/t-arc-newlib: Likewise.
10954 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10956 * config/arc/arc.md (length): Fix attribute length for conditional
10957 executed instructions with long immediate.
10959 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10961 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10962 type for second alternative.
10964 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
10966 * doc/invoke.texi (Downloading GCC): Mention
10967 contrib/download_prerequisites script.
10969 2015-09-10 Jakub Jelinek <jakub@redhat.com>
10972 * gimplify.c (gimplify_omp_for): If inner stmt is not found
10973 for combined loop, assert seen_error () and return GS_ERROR.
10975 PR middle-end/67521
10976 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10977 if decl is already in outer->variables.
10979 PR middle-end/67517
10980 * gimplify.c (gimplify_scan_omp_clauses): Instead of
10981 asserting that decl is not specified in octx->variables,
10982 break out of the loop if it is.
10985 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10986 iterator is not explicitly determined, but is defined inside
10987 of the combined workshare region, handle it like if it has
10988 DECL_EXPR in OMP_FOR_PRE_BODY.
10990 2015-09-09 Nathan Sidwell <nathan@acm.org>
10992 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10993 (*cmp<mode>): Add assembler spacing.
10994 (setcc_int<mode>, set_cc_float<mode>): Likewise.
10995 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10997 (write_func_decl_from_insn): Refactor argument loops & comma emission.
10998 (nvptx_expand_call): Likewise.
10999 (nvptx_output_call_insn): Likewise.
11000 (nvptx_reorg_subreg): Add spacing.
11002 2015-09-09 Marek Polacek <polacek@redhat.com>
11004 PR middle-end/67512
11005 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
11008 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
11011 * doc/invoke.texi ([Wsubobject-linkage]): Document.
11013 2015-09-09 Tom de Vries <tom@codesourcery.com>
11015 * params-list.h: Add missing copyright notice.
11017 2015-09-09 Nathan Sidwell <nathan@acm.org>
11019 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
11020 sel_truesi, not andsi.
11022 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11024 * config/arm/arm.md (*subsi3_compare0): Rename to...
11025 (subsi3_compare0): ... This.
11026 (modsi3): New define_expand.
11027 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
11028 when operand is power of 2.
11030 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11032 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
11033 (*neg<mode>2_compare0): Rename to...
11034 (neg<mode>2_compare0): ... This.
11035 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
11036 Move check for speed inside the if-then-elses. Reflect
11037 CSNEG sequence in MOD by power of 2 case.
11039 2015-09-09 Alan Modra <amodra@gmail.com>
11042 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
11043 reload replacement for PRE_MODIFY address reg.
11045 2015-09-09 Sebastian Pop <s.pop@samsung.com>
11047 PR tree-optimization/53852
11048 * config.in: Regenerate.
11049 * configure: Regenerate.
11050 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
11051 * graphite-optimize-isl.c (optimize_isl): Stop computation when
11052 PARAM_MAX_ISL_OPERATIONS is reached.
11053 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
11054 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
11055 result equal to isl_stat_ok as the status now can be isl_error_quota.
11056 (subtract_commutative_associative_deps): Same.
11057 (compute_deps): Same.
11059 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11060 Sebastian Pop <s.pop@samsung.com>
11062 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11063 Return the parameter if it was saved in corresponding
11064 parameter_rename_map of the region.
11065 (copy_def): Copy def from sese region to the newly created region.
11066 (copy_internal_parameters): Copy all the internal parameters defined
11067 within a region to the newly created region.
11068 (graphite_regenerate_ast_isl): Copy parameters to the new region before
11069 translating isl to gimple.
11070 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
11071 the loop-nest does not have any data-references.
11072 (build_graphite_scops): Create a scop only when there is at least one
11074 (contains_only_close_phi_nodes): Deleted.
11075 (print_graphite_scop_statistics): Deleted
11076 (print_graphite_statistics): Deleted
11077 (limit_scops): Deleted.
11078 (build_scops): Removed call to limit_scops.
11079 * sese.c (new_sese): Construct.
11080 (free_sese): Destruct.
11081 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
11083 (set_rename): Pass sese region so that parameters inside the region can
11084 be added to its parameter_rename_map.
11085 (rename_uses): Pass sese region.
11086 (graphite_copy_stmts_from_block): Do not copy parameters that have been
11087 generated in the header of the scop. For each SSA_NAME in the
11088 parameter_rename_map rename its usage.
11089 (invariant_in_sese_p_rec): Return false if tree t is defined outside
11091 (scalar_evolution_in_region): If the tree t is invariant just return t.
11092 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
11093 struct sese to keep track of all the parameters which need renaming.
11094 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
11096 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
11098 2015-09-08 Tom de Vries <tom@codesourcery.com>
11100 * Makefile.in (generated_files): Add params.list.
11101 (params.list, s-params.list): Add rule.
11102 * params.h (enum compiler_param): Include params-list.h. Move define
11103 DEFPARAM, include params.def and undef DEFPARAM ...
11104 * params-list.h: ... here. New file.
11106 2015-09-08 David Malcolm <dmalcolm@redhat.com>
11108 * pretty-print.h (printer_fn): Fix typo in comment.
11110 2015-09-07 Jeff Law <law@redhat.com>
11112 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
11114 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11116 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
11117 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
11118 (arm_neon_fp16_hw): New.
11120 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11122 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
11123 UNITS_PER_WORD >= 4.
11125 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11127 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
11128 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
11129 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
11130 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
11131 (aarch64_float_extend_lo_v2df): Rename to...
11132 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
11134 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
11135 (float_extend_lo): Add v4sf.
11137 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
11138 * config/aarch64/iterators.md (VQ_HSF): New iterator.
11139 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
11140 (Vwide): New mode_attr.
11142 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11144 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
11145 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
11146 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
11147 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
11148 V4HF and V8HF variants to iterator.
11150 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
11152 * config/aarch64/iterators.md (VDQF_F16): New.
11153 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11155 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11157 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11158 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11159 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11160 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11161 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11162 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11163 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11164 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11165 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11166 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11167 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11168 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11169 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11170 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11171 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11172 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11173 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11174 vld1q_dup_f16): New.
11176 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11178 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11179 Reparameterize to...
11180 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11181 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11182 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11184 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11186 (float_truncate_lo_): Use BUILTIN_VDF iterator.
11188 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11190 * config/aarch64/iterators.md (VDF, Vdtype): New.
11191 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11193 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11195 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11196 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11197 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11198 Add __builtin_aarch64_simd_hf.
11199 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11200 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11201 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11202 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11203 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11204 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11205 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11206 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11207 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11209 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11210 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11211 (VDC, Vdbl): Add V4HF.
11213 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11215 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11216 V4HFmode and V8HFmode.
11217 (aarch64_split_simd_move): Add case for V8HFmode.
11218 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11219 (aarch64_simd_builtin_std_type): Handle HFmode.
11220 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11222 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11223 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11224 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11226 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11229 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11230 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11232 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11233 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11234 vst1q_lane_f16): New.
11235 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11236 (VALLDI_F16, VALL_F16): New.
11237 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11238 Add cases for V4HF and V8HF.
11239 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11241 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11243 * config/arm/arm-builtins.c (VAR11, VAR12): New.
11244 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11245 vld4_dup): Add v4hf variant.
11246 (vget_high, vget_low): Add v8hf variant.
11247 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11248 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11249 v4hf and v8hf variants.
11251 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11253 (V_DOUBLE): Add case for V4HF.
11255 (V_HALF): Add case for V8HF.
11256 (VDQX): Add V4HF, V8HF.
11257 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11258 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11260 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11261 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11262 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11263 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11264 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11265 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11266 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11267 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11268 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11270 (neon_vcreate, neon_vreinterpretv8qi<mode>,
11271 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11272 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11273 Change VDX to VD_RE.
11275 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11276 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11277 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11279 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11280 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11281 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11282 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11283 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11284 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11285 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11286 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11287 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11289 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11291 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11292 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11293 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11294 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11295 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11296 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11297 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11298 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11299 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11300 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11303 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11305 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11307 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11309 * config/arm/arm-builtins.c (v8hf_UP): New.
11310 (arm_init_simd_builtin_types): Initialise Float16x8_t.
11312 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11314 * config/arm/arm_neon.h (float16x8_t): New typedef.
11316 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11318 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11319 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11320 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11321 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11322 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11323 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11324 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11325 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11326 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11327 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11329 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
11331 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11332 non-alphanumeric characters in the symbol name.
11334 2015-09-07 Marek Polacek <polacek@redhat.com>
11336 PR inline-asm/67448
11337 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11340 2015-09-07 Marek Polacek <polacek@redhat.com>
11342 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11344 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
11346 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11349 2015-09-04 Jakub Jelinek <jakub@redhat.com>
11351 PR middle-end/67452
11352 * tree-ssa-live.c: Include cfgloop.h.
11353 (remove_unused_locals): Clear loop->simduid if simduid is about
11354 to be removed from cfun->local_decls.
11356 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11359 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11362 2015-09-04 Tom de Vries <tom@codesourcery.com>
11364 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11366 2015-09-04 Jeff Law <law@redhat.com>
11368 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11369 unnecessary constructor. It's now trivial and implemented inside...
11370 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11371 constructor. Add comments to various methods. Remove unused
11373 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11374 * tree-vrp.c (identify_jump_threads): Likewise.
11375 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11376 indentation issues.
11377 (thread_across_edge): Similarly.
11378 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11379 arguments in constructor call.
11381 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11383 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11384 temp path contains a '-'.
11386 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11387 Petr Murzin <petr.murzin@intel.com>
11388 Kirill Yukhin <kirill.yukhin@intel.com>
11390 * config/i386/i386-builtin-types.def
11391 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11392 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11393 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11394 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11395 * config/i386/i386.c
11396 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11397 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11398 IX86_BUILTIN_SCATTERALTDIV16SI.
11399 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11400 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11401 __builtin_ia32_scatteraltdiv8si.
11402 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11403 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11404 IX86_BUILTIN_SCATTERALTDIV16SI.
11405 (ix86_vectorize_builtin_scatter): New.
11406 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11407 ix86_vectorize_builtin_scatter.
11409 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11410 Petr Murzin <petr.murzin@intel.com>
11411 Kirill Yukhin <kirill.yukhin@intel.com>
11413 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11414 * doc/tm.texi: Regenerate.
11415 * target.def: Add scatter builtin.
11416 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11417 for loads/stores in case of gather/scatter accordingly.
11418 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11419 STMT_VINFO_GATHER_P(S).
11420 (vect_check_gather): Rename to ...
11421 (vect_check_gather_scatter): this.
11422 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11423 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11424 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11425 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11426 variable and new checkings for it accordingly.
11427 * tree-vect-stmts.c
11428 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11429 STMT_VINFO_GATHER_P(S).
11430 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11431 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11433 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11435 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11437 (mulv16qi3): New define_expand.
11439 2015-09-03 Martin Sebor <msebor@redhat.com>
11442 * doc/extend.texi (Other Builtins): Document when the address
11443 of a built-in function can be taken.
11445 2015-09-03 Richard Biener <rguenther@suse.de>
11447 * dwarf2out.c (flush_limbo_die_list): Split out from ...
11448 (dwarf2out_early_finish): ... here.
11449 (dwarf2out_finish): Do not call dwarf2out_early_finish but
11450 flush_limbo_die_list. Assert we have no deferred asm names.
11452 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11454 * optabs.c (expand_binop): Don't create a broadcast vector with a
11455 source element wider than the inner mode.
11457 2015-09-03 Richard Biener <rguenther@suse.de>
11459 * varasm.c (output_constant): Use fold_convert instead of
11462 2015-09-03 Tom de Vries <tom@codesourcery.com>
11464 PR tree-optimization/65637
11465 * omp-low.c (expand_omp_for_static_chunk): Handle case that
11466 fin_bb has 2 predecessors.
11468 2015-09-03 Tom de Vries <tom@codesourcery.com>
11470 PR tree-optimization/65637
11471 * omp-low.c (find_phi_with_arg_on_edge): New function.
11472 (expand_omp_for_static_chunk): Fix inner loop phi.
11474 2015-09-03 Tom de Vries <tom@codesourcery.com>
11476 PR tree-optimization/65637
11477 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11480 2015-09-03 Tom de Vries <tom@codesourcery.com>
11482 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11484 2015-09-03 Tom de Vries <tom@codesourcery.com>
11486 * doc/invoke.texi (parloops-chunk-size): Add item.
11487 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11488 * tree-parloops.c: Include params.h.
11489 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11490 param parloops-chunk-size is used.
11492 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11494 PR middle-end/67351
11495 * fold-const.c (fold_binary_loc) : Move
11496 Transform (x >> c) << c into x & (-1<<c) or
11497 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11498 types using simplify and match.
11499 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11500 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11502 2015-09-03 Richard Biener <rguenther@suse.de>
11505 * tree-ssa-structalias.c (ctor_for_analysis): New function.
11506 (create_variable_info_for_1): Use ctor_for_analysis instead
11507 of get_constructor.
11508 (create_variable_info_for): Likewise.
11510 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
11513 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11514 in new callgraph edge.
11516 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
11521 * config/aarch64/aarch64-simd.md
11522 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11523 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11524 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11525 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11527 2015-09-02 Alan Modra <amodra@gmail.com>
11529 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11530 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11531 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11533 2015-09-02 Alan Modra <amodra@gmail.com>
11536 * config/rs6000/predicates.md (current_file_function_operand): Don't
11537 return true for weak symbols.
11538 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11540 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
11541 Andrew Bennett <andrew.bennett@imgtec.com>
11543 * config/mips/mips-opts.h (mips_cb_setting): New enum.
11544 * config/mips/mips-protos.h: Add definitions for
11545 mips_output_jump and mips_output_equal_conditional_branch
11546 * config/mips/mips.c (MIPS_JR): Change to support the
11548 (mips_emit_compare): Add support for the MIPS R6 conditional
11550 (mips_process_sync_loop): Likewise.
11551 (mips_output_order_conditional_branch): Likewise.
11552 (mips16_build_call_stub): Change MIPS_CALL to
11554 (mips_print_operand_punctuation): Update 's' case to only
11555 apply to micromips r2.
11556 (mips_adjust_insn_length): Add support for forbidden slot
11558 (mips_avoid_hazard): Likewise.
11559 (mips_reorg_process_insns): Likewise.
11560 (mips_output_jump): New function.
11561 (mips_output_equal_conditional_branch): Likewise.
11562 (mips_output_conditional_branch): Use jrc/bc if compact
11563 branch support is enabled. Ensure the forbidden slots
11564 between the two branch instructions is filled with a nop.
11565 (mips_option_override): Add support to process the compact
11566 branch option and set the correct defaults. Prevent
11567 non-explict relocs being using for MIPS R6.
11568 (mips_trampoline_init): Add compact branch support.
11569 (mips_mult_zero_zero_cost): Allow zero initialisation of
11570 accumulators with TARGET_DSP.
11571 * config/mips/mips.h (TARGET_CB_NEVER): New define.
11572 (TARGET_CB_MAYBE): New define.
11573 (TARGET_CB_ALWAYS): New define.
11574 (ISA_HAS_DELAY_SLOTS): New define.
11575 (ISA_HAS_COMPACT_BRANCHES): New define.
11576 (ISA_HAS_JRC): New define.
11577 (MIPS_BRANCH_C): New define.
11578 (MIPS_CALL): Removed.
11579 (MICROMIPS_J): Removed.
11580 * config/mips/mips.md (compact_form): New attr.
11581 (hazard): Add support for forbidden slots.
11582 (define_delay): Add support for compact branches.
11583 (*branch_order<mode>): Likewise.
11584 (*branch_order<mode>_inverted): Likewise.
11585 (*branch_equality<mode>): Likewise.
11586 (*branch_equality<mode>_inverted): Likewise.
11587 (*jump_absolute): Likewise.
11588 (*jump_pic): Likewise.
11589 (indirect_jump): Use mips_output_jump to produce assembly output.
11590 (tablejump_<mode>"): Likewise.
11591 (*<optab>"): Likewise.
11592 (<optab>_internal): Likewise.
11593 (sibcall_internal): Likewise.
11594 (sibcall_value_internal): Likewise.
11595 (sibcall_value_multiple_internal): Likewise.
11596 (call_internal): Likewise.
11597 (call_split): Likewise.
11598 (call_internal_direct): Likewise.
11599 (call_direct_split): Likewise.
11600 (call_value_internal): Likewise.
11601 (call_value_split): Likewise.
11602 (call_value_internal_direct): Likewise.
11603 (call_value_direct_split): Likewise.
11604 (call_value_multiple_internal): Likewise.
11605 (call_value_multiple_split): Likewise.
11606 (mips_get_fcsr_mips16_<mode>): Likewise.
11607 (mips_set_fcsr_mips16_<mode>): Likewise.
11608 (tls_get_tp_mips16_<mode>): Likewise.
11609 * config/mips/mips.opt: Add -mcompact-branches option.
11610 * config/mips/predicates.md (order_operator): Ensure the
11611 conditional compact branches are only used if the ISA them.
11612 * doc/invoke.texi: Document -mcompact-branches option.
11614 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
11617 * lra-lives.c (process_bb_lives): Process move pseudos with the
11618 same value for copies and preferences
11619 * lra-constraints.c (match_reload): Create match reload pseudo
11620 with the same value from single dying input pseudo.
11622 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11625 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11627 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
11629 * trans-mem.c: Add contributed-by.
11630 * trans-mem.h: Same.
11632 2015-09-01 Richard Biener <rguenther@suse.de>
11634 * expr.c (expand_expr_real_1): For expanding TERed defs
11635 set the current location to that of the def if not UNKNOWN.
11637 2015-09-01 David Sherwood <david.sherwood@arm.com>
11639 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11641 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11643 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11644 then_cost, else_cost fields. Change branch_cost field to unsigned int.
11645 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11646 Include rtl-iter.h.
11647 (noce_simple_bbs): New function.
11648 (noce_try_move): Bail if basic blocks are not simple.
11649 (noce_try_store_flag): Likewise.
11650 (noce_try_store_flag_constants): Likewise.
11651 (noce_try_addcc): Likewise.
11652 (noce_try_store_flag_mask): Likewise.
11653 (noce_try_cmove): Likewise.
11654 (noce_try_minmax): Likewise.
11655 (noce_try_abs): Likewise.
11656 (noce_try_sign_mask): Likewise.
11657 (noce_try_bitop): Likewise.
11658 (bbs_ok_for_cmove_arith): New function.
11659 (noce_emit_all_but_last): Likewise.
11660 (noce_emit_insn): Likewise.
11661 (noce_emit_bb): Likewise.
11662 (noce_try_cmove_arith): Handle non-simple basic blocks.
11663 (insn_valid_noce_process_p): New function.
11664 (contains_mem_rtx_p): Likewise.
11665 (bb_valid_for_noce_process_p): Likewise.
11666 (noce_process_if_block): Allow non-simple basic blocks
11669 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
11671 * tree-ssa-dom.c (record_equivalences_from_phis,
11672 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11673 (lookup_avail_expr): Likewise, and remove comment and unused temp.
11675 2015-09-01 Nick Clifton <nickc@redhat.com>
11677 * config/msp430/msp430.opt (mcpu): Fix typo.
11679 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11681 * config/aarch64/aarch64.c (aarch64_set_current_function):
11682 Re-layout any vector parameters have non-simd layout.
11683 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11685 (aarch64_simd_expand_args): Delete call to the above.
11687 2015-08-31 Mike Frysinger <vapier@gentoo.org>
11689 * doc/invoke.texi (asan-stack): Add space before option.
11691 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11693 * tree.h (zerop): New function.
11694 * tree.c (zerop): Likewise.
11695 (element_precision): Handle expressions.
11696 * match.pd (define_predicates): Add zerop.
11697 (x <= +Inf): Fix comment.
11698 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11699 * fold-const.c (fold_binary_loc): ... here. Remove.
11701 2015-08-31 Richard Biener <rguenther@suse.de>
11703 PR middle-end/67381
11704 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11706 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11708 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11709 (CEXPI): New operator list.
11710 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11711 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11713 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11715 2015-08-31 Tom de Vries <tom@codesourcery.com>
11717 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11718 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11720 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11721 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11722 (rewrite_into_loop_closed_ssa): ... here.
11723 (replace_uses_in_dominated_bbs): Remove function.
11724 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11725 rewrite_into_loop_closed_ssa_1.
11727 2015-08-31 Michael Matz <matz@suse.de>
11729 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11730 enter entry and exit blocks for reverse post order.
11732 2015-08-31 Richard Biener <rguenther@suse.de>
11734 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11735 (lto_location_cache::current_sysp): Likewise.
11736 (output_block::current_sysp): Likewise.
11737 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11738 (lto_location_cache::apply_location_cache): Properly record
11739 system header locations.
11740 (lto_location_cache::input_location): Input whether a file
11741 is a system header.
11742 * lto-streamer-out.c (lto_output_location): Stream whether a file
11743 is a system header.
11745 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11748 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11750 2015-08-31 Tom de Vries <tom@codesourcery.com>
11752 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11753 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11754 Improve function header comments.
11756 2015-08-30 Michael Collison <michael.collison@linaro.org>
11759 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11762 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11764 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11765 special_handling bitfield.
11766 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11767 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11768 that represents a general xxpermdi.
11769 (insn_is_swappable_p): Add handling for vec_concat of two
11770 doublewords, which maps to a specific xxpermdi.
11771 (adjust_xxpermdi): New function.
11772 (adjust_concat): Likewise.
11773 (handle_special_swappables): Call adjust_xxpermdi and
11775 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11777 2015-08-30 Rich Felker <dalias@libc.org>
11779 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11780 case instead of sh[123456ble]-*-*.
11782 2015-08-29 Anatoly Sokolov <aesok@post.ru>
11784 * ira.c (print_unform_and_important_classes,
11785 print_translated_classes): Remove reg_class_names static array.
11786 (print_unform_and_important_classes): Rename to ...
11787 (print_uniform_and_important_classes): ... this.
11788 (ira_debug_allocno_classes): Update accordingly.
11790 2015-08-29 Tom de Vries <tom@codesourcery.com>
11792 PR tree-optimization/46193
11793 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11796 2015-08-28 Jeff Law <law@redhat.com>
11799 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11800 unable to find X NE 0 in the tables, return X as the simplified
11802 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11803 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11805 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11806 after removing the control flow statement and unnecessary edges.
11808 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
11811 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11813 PR tree-optimization/67283
11814 * tree-sra.c (type_consists_of_records_p): Rename to...
11815 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11817 (completely_scalarize_record): Rename to...
11818 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11820 (scalarize_elem): New.
11822 2015-08-28 Jiong Wang <jiong.wang@arm.com>
11824 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11825 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11826 (aarch64_symbol_type): Likewise.
11827 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11829 (aarch64_expand_mov_immediate): Likewise.
11830 (aarch64_print_operand): Likewise.
11831 (aarch64_classify_tls_symbol): Likewise.
11833 2015-08-28 Richard Biener <rguenther@suse.de>
11835 * cgraphunit.c (symbol_table::compile): Move early debug generation
11837 (symbol_table::finalize_compilation_unit): ... back here and
11838 add a !seen_error () guard.
11840 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11842 * toplev.c (process_options): Do not use flag_loop_block,
11843 flag_loop_interchange, and flag_loop_strip_mine. Add check for
11844 flag_loop_optimize_isl.
11846 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11848 * Makefile.in (OBJS): Remove graphite-blocking.o and
11849 graphite-interchange.o.
11850 * common.opt (floop-strip-mine, floop-interchange, floop-block):
11851 Alias of floop-nest-optimize.
11852 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11853 Document as alias of -floop-nest-optimize.
11854 * graphite-blocking.c: Remove.
11855 * graphite-interchange.c: Remove.
11856 * graphite-optimize-isl.c: Include dumpfile.h.
11857 (getScheduleForBand): Add dump for tiled loops. Use
11858 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11859 * graphite-poly.c (scop_max_loop_depth): Remove.
11860 (print_scattering_function_1): Remove.
11861 (print_scattering_function): Remove.
11862 (print_scattering_functions): Remove.
11863 (debug_scattering_function): Remove.
11864 (debug_scattering_functions): Remove.
11865 (apply_poly_transforms): Remove use of flag_loop_block,
11866 flag_loop_strip_mine, and flag_loop_interchange.
11867 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11869 (print_pdr_access_layout): Remove.
11870 (print_pdr): Print ISL representation.
11871 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11872 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11874 (openscop_print_pbb_domain): Remove.
11875 (print_pbb): Remove call to print_scattering_function.
11876 (openscop_print_scop_context): Remove.
11877 (print_scop_context): Do not print matrices anymore.
11878 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11879 SCOP_TRANSFORMED_SCHEDULE.
11880 (print_isl_set): Add printing of a new line.
11881 (print_isl_map): Same.
11882 (print_isl_aff): Same.
11883 (print_isl_constraint): Same.
11884 (loop_to_lst): Remove.
11885 (scop_to_lst): Remove.
11886 (lst_indent_to): Remove.
11887 (print_lst): Remove.
11888 (debug_lst): Remove.
11889 (dot_lst_1): Remove.
11891 (reverse_loop_at_level): Remove.
11892 (reverse_loop_for_pbbs): Remove.
11893 * graphite-poly.h (pdr_dim_iter_domain): Remove.
11894 (pdr_nb_params): Remove.
11895 (pdr_alias_set_dim): Remove.
11896 (pdr_subscript_dim): Remove.
11897 (pdr_iterator_dim): Remove.
11898 (pdr_parameter_dim): Remove.
11899 (same_pdr_p): Remove.
11900 (struct poly_scattering): Remove.
11901 (struct poly_bb): Remove _original, _transformed, _saved.
11902 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11903 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11904 (PBB_NB_LOCAL_VARIABLES): Remove.
11905 (PBB_NB_SCATTERING_TRANSFORM): Remove.
11906 (schedule_to_scattering): Remove.
11907 (number_of_write_pdrs): Remove.
11908 (pbb_dim_iter_domain): Remove.
11909 (pbb_nb_params): Remove.
11910 (pbb_nb_scattering_orig): Remove.
11911 (pbb_nb_scattering_transform): Remove.
11912 (pbb_nb_dynamic_scattering_transform): Remove.
11913 (pbb_nb_local_vars): Remove.
11914 (pbb_iterator_dim): Remove.
11915 (pbb_parameter_dim): Remove.
11916 (psco_scattering_dim): Remove.
11917 (psct_scattering_dim): Remove.
11918 (psct_local_var_dim): Remove.
11919 (psco_iterator_dim): Remove.
11920 (psct_iterator_dim): Remove.
11921 (psco_parameter_dim): Remove.
11922 (psct_parameter_dim): Remove.
11923 (psct_dynamic_dim): Remove.
11924 (psct_static_dim): Remove.
11925 (psct_add_local_variable): Remove.
11926 (new_lst_loop): Remove.
11927 (new_lst_stmt): Remove.
11928 (free_lst): Remove.
11929 (copy_lst): Remove.
11930 (lst_add_loop_under_loop): Remove.
11931 (lst_depth): Remove.
11932 (lst_dewey_number): Remove.
11933 (lst_dewey_number_at_depth): Remove.
11934 (lst_pred): Remove.
11935 (lst_succ): Remove.
11936 (lst_find_pbb): Remove.
11937 (find_lst_loop): Remove.
11938 (lst_find_first_pbb): Remove.
11939 (lst_empty_p): Remove.
11940 (lst_find_last_pbb): Remove.
11941 (lst_contains_p): Remove.
11942 (lst_contains_pbb): Remove.
11943 (lst_create_nest): Remove.
11944 (lst_remove_from_sequence): Remove.
11945 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11946 (lst_niter_for_loop): Remove.
11947 (pbb_update_scattering): Remove.
11948 (lst_update_scattering_under): Remove.
11949 (lst_update_scattering): Remove.
11950 (lst_insert_in_sequence): Remove.
11951 (lst_replace): Remove.
11952 (lst_substitute_3): Remove.
11953 (lst_distribute_lst): Remove.
11954 (lst_remove_all_before_including_pbb): Remove.
11955 (lst_remove_all_before_excluding_pbb): Remove.
11956 (struct scop): Remove original_schedule, transformed_schedule, and
11958 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11959 (SCOP_SAVED_SCHEDULE): Remove.
11960 (poly_scattering_new): Remove.
11961 (poly_scattering_free): Remove.
11962 (poly_scattering_copy): Remove.
11963 (store_scattering_pbb): Remove.
11964 (store_lst_schedule): Remove.
11965 (restore_lst_schedule): Remove.
11966 (store_scattering): Remove.
11967 (restore_scattering_pbb): Remove.
11968 (restore_scattering): Remove.
11969 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11970 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
11971 compute the scattering polyhedron dimension from the dimension of
11973 (build_scop_scattering): Update call to
11974 build_pbb_scattering_polyhedrons.
11975 (build_poly_scop): Remove call to scop_to_lst.
11976 * graphite.c (graphite_transform_loops): Add call to print_scop.
11977 (gate_graphite_transforms): Remove use of flag_loop_block,
11978 flag_loop_interchange, and flag_loop_strip_mine.
11980 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11982 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11983 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11984 -floop-nest-optimize.
11985 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11986 (generate_luj_sepclass): Remove.
11987 (generate_luj_options): Remove.
11988 (set_options): Remove opt_luj.
11989 (scop_to_isl_ast): Remove opt_luj.
11990 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11991 flag_loop_unroll_jam.
11992 (getPrevectorMap_full): Remove.
11993 (getScheduleForBandList): Remove map_sepcl.
11994 (getScheduleMap): Same.
11995 (apply_schedule_map_to_scop): Remove sepcl.
11996 (optimize_isl): Same.
11997 * graphite-poly.c (apply_poly_transforms): Remove check for
11998 flag_loop_unroll_jam.
11999 (new_poly_bb): Remove map_sepclass.
12000 * graphite-poly.h (struct poly_bb): Same.
12001 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
12002 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
12003 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
12004 * toplev.c (process_options): Remove flag_loop_unroll_jam.
12006 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
12009 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
12010 (addqi3_cc): Ditto.
12011 (UNSPEC_ADD_CARRY): Remove.
12012 (addqi3_cconly_overflow): New expander.
12013 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
12014 Adjust for changed add<mode>3_carry.
12015 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
12016 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
12017 (<plusminus_insn><mode>3_carry): Remove expander.
12018 (*<plusminus_insn><mode>3_carry): Split insn pattern to
12019 add<mode>3_carry and sub<mode>3_carry.
12020 (plusminus_carry_mnemonic): Remove code attribute.
12021 (add<mode>3_carry): Canonicalize insn pattern.
12022 (*addsi3_carry_zext): Ditto.
12023 (sub<mode>3_carry): Ditto.
12024 (*subsi3_carry_zext): Ditto.
12025 (adcx<mode>3): Remove insn pattern.
12026 (addcarry<mode>): New insn pattern.
12027 (subborrow<mode>): Ditto.
12028 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
12029 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
12030 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
12031 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
12032 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
12033 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
12034 Rewrite expander to not clobber carry flag chains.
12036 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
12038 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
12039 instead of a rotate.
12041 2015-08-27 Marek Polacek <polacek@redhat.com>
12043 PR middle-end/67005
12044 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
12045 an entry into an irreducible region.
12047 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12049 * configure: Regenerate.
12051 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12053 PR tree-optimization/67283
12054 * tree-sra.c (type_consists_of_records_p): Rename to...
12055 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12057 (completely_scalarize_record): Rename to...
12058 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12059 (scalarize_elem): New.
12061 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12063 * tree-sra.c (completely_scalarize_var): Rename to...
12064 (create_total_scalarization_access): ... Here. Drop call to
12065 completely_scalarize_record.
12067 (analyze_all_variable_accesses): Replace completely_scalarize_var
12068 with create_total_scalarization_access and completely_scalarize_record.
12070 2015-08-27 Alan Modra <amodra@gmail.com>
12073 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
12076 2015-08-27 Richard Biener <rguenther@suse.de>
12078 * passes.c (rest_of_decl_compilation): Guard early_global_decl
12079 call with !seen_error ().
12080 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
12081 early debug generation and finish...
12082 (symbol_table::compile): ... here to put it after a !seen_error ()
12085 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12087 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
12090 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12091 Andre Vieira <andre.simoesdiasvieira@arm.com>
12093 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
12094 (*cb<optab><mode>1): Likewise.
12095 (*tb<optab><mode>1): Likewise.
12096 (*cb<optab><mode>1): Likewise.
12097 * config/aarch64/iterators.md (inv_cb): New code attribute.
12098 (inv_tb): Likewise.
12099 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
12100 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
12102 2015-08-27 Richard Biener <rguenther@suse.de>
12104 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
12106 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12108 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
12111 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12113 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
12116 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
12118 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
12119 floating point in VSX registers.
12120 (rs6000_output_move_128bit): Always print out the set insn if we
12121 can't generate an appropriate 128-bit move.
12122 (rs6000_generate_compare): Add support for IEEE 128-bit floating
12123 point in VSX registers comparisons.
12124 (rs6000_expand_float128_convert): Likewise.
12126 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
12127 predicate for only GPR hard registers.
12129 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
12130 modes to iterators. Add new iterators for moving 128-bit values in
12131 scalar FPR registers and VSX registers.
12132 (FMOVE128): Likewise.
12133 (FMOVE128_FPR): Likewise.
12134 (FMOVE128_GPR): Likewise.
12135 (FMOVE128_VSX): Likewise.
12136 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
12139 (IBM128): Likewise.
12140 (TFIFKF): Likewise.
12141 (RELOAD): Add IEEE 128-bit floating point modes.
12142 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
12143 floating point in VSX registers modes.
12144 (signbit<mode>2, IBM128 iterator): Likewise.
12145 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
12146 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12147 (negtf2): Likewise.
12148 (neg<mode>2, TFIFKF iterator): Likewise.
12149 (negtf2_internal): Likewise.
12150 (abstf2): Likewise.
12151 (abs<mode>2, TFIFKF iterator): Likewise.
12152 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
12153 VSX insn support for negate, absolute value, and negative absolute
12155 (ieee_128bit_vsx_neg<mode>2): Likewise.
12156 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12157 (ieee_128bit_vsx_abs<mode>2): Likewise.
12158 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12159 (ieee_128bit_vsx_nabs<mode>2): Likewise.
12160 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12161 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12162 floating point in VSX registers.
12163 (unpack<mode>_dm): Likewise.
12164 (unpack<mode>_nodm): Likewise.
12165 (pack<mode>): Likewise.
12166 (unpackv1ti): Likewise.
12167 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12168 (packv1ti): Likewise.
12169 (pack<mode>, FMOVE128_VSX iterator): Likewise.
12170 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12172 (extenddftf2_internal): Likewise.
12173 (trunctfdf2): Likewise.
12174 (trunctfdf2_internal2): Likewise.
12175 (fix_trunc_helper): Likewise.
12176 (fix_trunctfdi2"): Likewise.
12177 (floatditf2): Likewise.
12178 (floatuns<mode>tf2): Likewise.
12179 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12180 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12181 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12182 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12183 (float<SDI:mode><IFKF:mode>2): Likewise.
12184 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12186 2015-08-26 Renlin Li <renlin.li@arm.com>
12188 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12190 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12191 Jiong Wang <jiong.wang@arm.com>
12193 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12194 (tlsie_tiny_<mode>): New define_insn.
12195 (tlsie_tiny_sidi): Likewise.
12196 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12198 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12199 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12201 (aarch64_expand_mov_immediate): Likewise.
12202 (aarch64_print_operand): Likewise.
12203 (arch64_classify_tls_symbol): Likewise.
12205 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12207 * config/arm/arm-arches.def: Replace single value flags with
12208 an initializer built from ARM_FSET_MAKE_CPU1.
12209 * config/arm/arm-cores.def: Likewise.
12210 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12211 derivation from the ARM_CORE macro definition, use the given value
12213 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12214 ARM_ARCH macro definition, use the given value instead.
12216 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12218 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12220 (struct builtin_description): Replace field mask with field
12222 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12223 (IWMMXT2_BUILTIN): Likewise.
12224 (IWMMXT2_BUILTIN2): Likewise.
12225 (FP_BUILTIN): Likewise.
12226 (CRC32_BUILTIN): Likewise.
12227 (CRYPTO_BUILTIN): Likewise.
12228 (iwmmx_mbuiltin): Likewise.
12229 (iwmmx2_mbuiltin): Likewise.
12230 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12231 struct builtin_description.
12233 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12235 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12236 (struct builtin_description): Change type of mask to unsigned
12238 * config/arm/arm-protos.h (insn_flags): Declare as type
12240 (tune_flags): Likewise.
12241 * config/arm/arm.c (feature_count): New.
12242 (insn_flags): Define as type arm_feature_set.
12243 (tune_flags): Likewise.
12244 (struct processors): Define field flags as type arm_feature_set.
12245 (all_cores): Update for change to struct processors.
12246 (all_architectures): Likewise.
12247 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12249 (arm_option_override_internal): Likewise.
12250 (arm_option_override): Likewise.
12252 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12253 Jiong Wang <jiong.wang@arm.com>
12255 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12256 tls size for tiny, small, large memory model.
12257 (aarch64_load_symref_appropriately): Support new symbol types.
12258 (aarch64_expand_mov_immediate): Likewise.
12259 (aarch64_print_operand): Likewise.
12260 (aarch64_classify_tls_symbol): Likewise.
12261 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12262 (aarch64_symbol_type): Likewise.
12263 * config/aarch64/aarch64.md (tlsle): Deleted.
12264 (tlsle12_<mode>): New define_insn.
12265 (tlsle24_<mode>): Likewise.
12266 (tlsle32_<mode>): Likewise.
12267 (tlsle48_<mode>): Likewise.
12268 * doc/sourcebuild.texi (AArch64-specific attributes): Document
12271 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12273 * config/arm/arm-protos.h (FL_NONE): New.
12275 (arm_feature_set): New.
12276 (ARM_FSET_MAKE): New.
12277 (ARM_FSET_MAKE_CPU1): New.
12278 (ARM_FSET_MAKE_CPU2): New.
12279 (ARM_FSET_CPU1): New.
12280 (ARM_FSET_CPU2): New.
12281 (ARM_FSET_EMPTY): New.
12282 (ARM_FSET_ANY): New.
12283 (ARM_FSET_HAS_CPU1): New.
12284 (ARM_FSET_HAS_CPU2): New.
12285 (ARM_FSET_HAS_CPU): New.
12286 (ARM_FSET_ADD_CPU1): New.
12287 (ARM_FSET_ADD_CPU2): New.
12288 (ARM_FSET_DEL_CPU1): New.
12289 (ARM_FSET_DEL_CPU2): New.
12290 (ARM_FSET_UNION): New.
12291 (ARM_FSET_INTER): New.
12292 (ARM_FSET_XOR): New.
12293 (ARM_FSET_EXCLUDE): New.
12294 (AFM_FSET_IS_EMPTY): New.
12295 (ARM_FSET_CPU_SUBSET): New.
12297 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12299 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12300 SYMBOL_TLSLE to SYMBOL_TLSLE24.
12301 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12303 (aarch64_expand_mov_immediate): Likewise.
12304 (aarch64_print_operand): Likewise.
12305 (aarch64_classify_symbol): Likewise.
12307 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12309 * config/aarch64/aarch64.opt (mtls-size): New entry.
12310 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12311 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12312 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12314 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12316 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12317 ARM_CORE entry. Fix some white-space.
12318 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12319 ARM_CORE definition.
12321 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12323 * fold-const.c (fold_binary_loc) : Move Optimize
12324 root(x)*root(y) as root(x*y) to match.pd.
12325 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12326 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12327 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12328 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12329 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12330 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12331 (mult (exps:s @0) (exps:s @1)) : New simplifier.
12332 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12333 (rdiv @0 (exps:s @1)) : New simplifier.
12335 2015-08-25 Joseph Myers <joseph@codesourcery.com>
12337 * gcc.c (driver::finalize): Only assign to extra_specs if
12340 2015-08-25 Marek Polacek <polacek@redhat.com>
12342 PR middle-end/67330
12343 * varasm.c (declare_weak): Return after giving an error.
12345 2015-08-25 David Malcolm <dmalcolm@redhat.com>
12347 * gcc-main.c (main): Add params to driver ctor.
12348 * gcc.c (class env_manager): New.
12350 (env_manager::init): New.
12351 (env_manager::get): New.
12352 (env_manager::xput): New.
12353 (env_manager::restore): New.
12354 Poison getenv and putenv.
12355 (DEFAULT_TARGET_SYSTEM_ROOT): New.
12356 (target_system_root): Update initialization to use
12357 DEFAULT_TARGET_SYSTEM_ROOT.
12358 (struct spec_list): Add field "default_ptr".
12359 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12360 (init_spec): Likewise.
12361 (set_spec): Clear field "default_ptr".
12362 (read_specs): Free "spec" and "buffer".
12363 (xputenv): Reimplement in terms of env_manager.
12364 (process_command): Replace ::getenv calls with calls to the
12365 env_manager singleton.
12366 (process_brace_body): Free string in three places.
12367 (driver::driver): New.
12368 (driver::~driver): New.
12369 (used_arg): Convert from a function to...
12370 (class used_arg_t): ...this class, and...
12371 (used_arg): ...this new global instance.
12372 (used_arg_t::finalize): New function.
12373 (getenv_spec_function): Add "const" to local "value". Replace
12374 ::getenv call with call to the env_manager singleton.
12375 (path_prefix_reset): New function.
12376 (driver::finalize): New function.
12377 * gcc.h (driver::driver): New.
12378 (driver::~driver): New.
12379 (driver::finalize): New.
12381 2015-08-25 Nathan Sidwell <nathan@acm.org>
12383 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12384 target doesn't have one.
12386 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12389 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12391 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12394 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12395 a define_insn, remove second alternative.
12397 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
12398 Joseph Myers <joseph@codesourcery.com>
12400 * gcc.c (struct switchstr): Expand comment.
12402 2015-08-25 Nathan Sidwell <nathan@acm.org>
12404 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12405 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12407 2015-08-25 Richard Biener <rguenther@suse.de>
12409 PR middle-end/67306
12410 * genmatch.c (expr::gen_transform): Verify the result of
12411 builtin_decl_implicit.
12412 (dt_simplify::gen_1): Likewise.
12414 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
12416 * config/arm/constraints.md: Also list Cs and US ARM-specific
12417 constraints as used.
12419 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
12422 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12424 (nonpic_symbol_mentioned_p): Likewise.
12425 (sh_delegitimize_address): Likewise.
12426 (sh_function_ok_for_sibcall): Take into account weak symbols.
12427 (sh_expand_sym_label2reg): New.
12428 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12429 * config/sh/sh.md (UNSPEC_PCREL): New enum.
12430 (call_pcrel): Use sh_expand_sym_label2reg.
12431 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12432 (symPCREL_label2reg) New expand.
12434 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12436 * graphite-poly.c: Change type of region from void* to sese.
12437 * graphite-poly.h (struct scop): Changing the type of scop::region
12438 from void* to sese. Change accessor macro accordingly.
12439 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12441 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12443 * graphite-scop-detection.c (stmt_simple_for_scop_p):
12444 Constrain only on INTEGER_TYPE.
12446 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12449 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12450 -mefficient-unaligned-vsx on ISA 2.7.
12452 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12453 option to a masked option.
12455 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12456 logic for -mefficient-unaligned-vsx so that it is set via an arch
12457 ISA option, instead of being set if -mtune=power8 is set. Move
12458 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12459 near other default option handling.
12461 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12463 * genflags.c (gen_macro): Delete.
12464 (gen_proto): Don't create GEN.*CALL.* macros.
12465 * gensupport.h (get_file_location): Declare.
12466 * gensupport.c (rtx_locs): New variable.
12467 (read_md_rtx): Record rtx locations.
12468 (get_file_location): New function.
12469 * target-insns.def (call, call_pop, call_value, call_value_pop)
12470 (sibcall, sibcall_value): New patterns.
12471 * gentarget-def.c (parse_argument): New function.
12472 (def_target_insn): Use it. Handle optional operands. Raise an
12473 error if an .md pattern has the wrong number of operands for the
12474 pattern name. Remove the names of unused operands from the prototype.
12475 * builtins.c (expand_builtin_apply): Use targetm functions
12476 instead of HAVE_call_value and GEN_CALL_VALUE.
12477 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
12478 and sibcall_value_pop.
12479 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12481 * config/alpha/alpha.md (untyped_call): Likewise.
12482 * config/iq2000/iq2000.md (untyped_call): Likewise.
12483 * config/m68k/m68k.md (untyped_call): Likewise.
12484 * config/mips/mips.md (untyped_call): Likewise.
12485 * config/pa/pa.md (untyped_call): Likewise.
12486 * config/rs6000/rs6000.md (untyped_call): Likewise.
12487 * config/sparc/sparc.md (untyped_call): Likewise.
12488 * config/tilegx/tilegx.md (untyped_call): Likewise.
12489 * config/tilepro/tilepro.md (untyped_call): Likewise.
12490 * config/visium/visium.md (untyped_call): Likewise.
12491 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12492 gen_call_value instead of GEN_CALL_VALUE.
12493 * config/arm/arm.md (untyped_call): Likewise.
12494 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12497 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12499 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12500 (have_cbranchcc4): New variable.
12501 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12502 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12503 (if_convert): Initialize have_cbranchcc4.
12505 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12507 * builtins.c (expand_cmpstrn): Rename to...
12508 (expand_cmpstrn_or_cmpmem): ...this.
12509 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12510 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12511 Remove mode argument.
12512 (expand_builtin): Update accordingly.
12514 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12516 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12517 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
12518 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12519 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12520 Add predicates for operands 0 and 3.
12521 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12523 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12524 immediate_operand to nonmemory_operand.
12526 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12528 * df-scan.c (df_insn_info_init_fields): New function, split out
12530 (df_insn_create_insn_record): ...here.
12531 (df_insn_info_free_fields): New function, split out from...
12532 (df_insn_info_delete): ...here.
12533 (df_insn_rescan): Use the new functions instead of freeing and
12534 reallocating the df_insn_info.
12536 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12538 * doc/install.texi (Binaries): Remove links no longer valid.
12540 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12542 * config/nvptx/mkoffload.c (process): Replace
12543 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12545 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
12548 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12550 2015-08-24 Renlin Li <renlin.li@arm.com>
12552 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12553 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12554 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12555 * config/arm/constraints.md ("j"): Add check for high code.
12557 2015-08-24 Tom de Vries <tom@codesourcery.com>
12559 PR tree-optimization/65468
12560 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12563 2015-08-24 Nathan Sidwell <nathan@acm.org>
12565 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12566 change to nvptx_type_from_mode call. Use arg_promotion for both
12567 split and non-split args.
12569 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12571 * target-insns.def (movstr): New pattern.
12572 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12573 (expand_movstr): Use targetm rather than HAVE_movstr/
12576 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12578 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12581 2015-08-24 Andrew Pinski <apinski@cavium.com>
12583 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12584 AARCH64_EXTRA_TUNING_OPTION.
12585 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12587 (aarch64_extra_tuning_flags): Base the shifted value on the index
12588 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12589 * config/aarch64/aarch64.c: Remove the last argument to
12590 AARCH64_EXTRA_TUNING_OPTION.
12592 2015-08-23 Nathan Sidwell <nathan@acm.org>
12594 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12596 (nvptx_declare_function_name): Insert formatting tabs for
12599 2015-08-23 Tom de Vries <tom@codesourcery.com>
12601 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12602 parm_decl, rather than generating a dummy default def in cfun.
12603 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
12604 ssa_name from cfun and child_fn do not share a stmt as def stmt.
12605 (move_stmt_op): Handle PARM_DECl.
12606 (gather_ssa_name_hash_map_from): New function.
12607 (move_sese_region_to_fn): Add default defs for function params, and add
12608 them to vars_map. Release copied ssa names.
12609 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12611 2015-08-23 Tom de Vries <tom@codesourcery.com>
12613 * doc/sourcebuild.texi: Rename vect_no_int_max with
12614 vect_no_int_min_max. Update description.
12616 2015-08-22 Andrew Pinski <apinski@cavium.com>
12618 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12619 * config/aarch64/aarch64-protos.h
12620 (aarch64_fusion_pairs_index): New enum.
12621 (aarch64_fusion_pairs): Base the shifted value on the index instead
12622 Rewrite AARCH64_FUSE_ALL to be based on the end index.
12623 of the argument to AARCH64_FUSION_PAIR.
12624 * config/aarch64/aarch64.c: Remove the last argument to
12625 AARCH64_FUSION_PAIR.
12627 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
12629 * dominance.c (new_zero_array): Define.
12630 (dom_info): Redefine as class with proper encapsulation.
12631 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12633 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
12634 allocations/deallocations. Pass function as parameter (instead of
12636 (dom_info::get_idom): Define accessor method.
12637 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12638 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
12639 (calculate_dominance_info): Adjust to use dom_info class.
12640 (verify_dominators): Likewise.
12642 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
12644 * print-rtl.c (print_rtx): Check the correct range for
12645 flag_dump_unnumbered_links to behave as documented.
12647 PR rtl-optimization/67227
12648 PR rtl-optimization/64164
12649 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12650 (nonoverlapping_memrefs_p): Test offsets and sizes when given
12651 identical gimple_reg exprs.
12653 2015-08-21 Nathan Sidwell <nathan@acm.org>
12655 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12657 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12658 crtl->stack_alignment_needed to determine alignment.
12659 (nvptx_get_drap_rtx): New.
12660 (TARGET_GET_DRAP_RTX): Override.
12661 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12663 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12665 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12667 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12669 * configure.ac: Remove uwin* cases.
12670 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12671 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12672 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12673 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12674 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12675 i[34567]86-*-uwin*, powerpc-*-beos*.
12677 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
12679 * gencodes.c (gencodes): Print the comma for the preceding
12680 enum value rather than the current one. Use aliased enum values
12681 rather than #defines for compiled-out patterns.
12682 (main): Update accordingly. Replace LAST_INSN_CODE with
12684 * lra.c (insn_code_data): Update accordingly.
12685 (finish_insn_code_data_once, get_static_insn_data): Likewise.
12686 * recog.h (target_recog): Likewise.
12687 (preprocess_insn_constraints): Change parameter to unsigned int.
12688 * recog.c (preprocess_insn_constraints): Likewise.
12689 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12690 * tree-vect-stmts.c (vectorizable_operation): Simplify.
12692 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
12694 PR rtl-optimization/61657
12695 * loop-iv.c (iv_number_of_iterations): Declare up and down as
12696 unsigned. Remove superflous uint64_t cast.
12698 2014-08-21 Felix Yang <felix.yang@huawei.com>
12699 Jiji Jiang <jiangjiji@huawei.com>
12701 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12702 argument and get builtin function code directly from CALL.
12703 (gimple_stringop_fixed_value): Modified accordingly.
12704 (gimple_stringops_transform, gimple_stringops_values_to_profile):
12705 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12707 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
12709 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12711 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12713 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12715 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12716 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12717 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12718 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12719 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12720 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12721 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12722 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12723 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12724 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12726 * match.pd (SIN ) : New Operator.
12727 (TAN) : New Operator.
12728 (mult (SQRT@1 @0) @1) : New simplifier.
12729 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12730 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12731 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12732 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12733 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12734 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12735 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12736 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12737 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12738 (rdiv @0 (POW:s @1 @2)) : New simplifier.
12740 2015-08-21 Bin Cheng <bin.cheng@arm.com>
12742 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12743 loop if EXPR is simplified to const value.
12745 2015-08-21 Yury Gribov <y.gribov@samsung.com>
12747 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12748 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12750 2015-08-21 Richard Biener <rguenther@suse.de>
12752 PR middle-end/67285
12753 * gimple-fold.c (replace_stmt_with_simplification): Assert
12754 seq is empty when replacing a call with itself but different
12756 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12757 a call require that it is const.
12759 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12761 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12762 * builtins.c (get_object_alignment_2): Adjust.
12763 * varasm.c (align_variable): Likewise.
12764 (get_variable_align): Likewise.
12765 (build_constant_desc): Likewise.
12766 (force_const_mem): Likewise.
12767 * doc/tm.texi.in: Likewise.
12768 * doc/tm.texi: Regenerate.
12770 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12772 * genconfig.c (main): Always define HAVE_cc0.
12773 * recog.c (rest_of_handle_peephole2): Adjust.
12775 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12777 * reorg.c (relax_delay_slots): Don't use #if to check value of
12780 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12782 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12783 * targhooks.c (default_have_conditional_execution): Adjust.
12785 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12787 * rtl.h (rtvec_all_equal_p): Declare.
12788 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12789 * rtl.c (rtvec_all_equal_p): New function.
12790 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12791 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12792 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12793 * config/arm/arm.c (neon_vdup_constant): Likewise.
12794 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12795 * config/tilegx/constraints.md (W, Y): Likewise.
12796 * config/tilepro/constraints.md (W, Y): Likewise.
12797 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12798 (classify_immediate): Use unwrap_const_vec_duplicate.
12799 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12800 (reg_or_v2s8bit_operand): Likewise.
12801 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12802 (reg_or_v4s8bit_operand): Likewise.
12804 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12806 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12807 (vec_shasigma_be): New #define.
12808 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12809 (VPMSUMH): Likewise.
12810 (VPMSUMW): Likewise.
12811 (VPMSUMD): Likewise.
12812 (VPMSUM): New BU_P8V_OVERLOAD_2.
12813 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12814 entries for VEC_MADD and VEC_VPMSUM.
12816 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
12818 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12819 Multiply argument avr_n_flash by 64 to match unit of "KiB".
12820 (avr_pgm_check_var_decl): Same.
12822 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
12824 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12825 initialization of HFmode scalar type (float16_t) to...
12826 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12829 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12831 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12832 having an -mfp16-format.
12834 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12836 * config/i386/predicates.md (vector_all_ones_operand): Use
12837 CONSTM1_RTX to simplify definition.
12839 2015-08-20 Richard Biener <rguenther@suse.de>
12841 * toplev.c (compile_file): Remove loop calling late_global_decl
12843 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12844 on decls we assembled.
12846 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
12848 * common/config/aarch64/aarch64-common.c
12849 (AARCH64_CPU_NAME_LENGTH): Delete.
12850 (aarch64_option_extension): New.
12851 (all_extensions): Likewise.
12852 (processor_name_to_arch): Likewise.
12853 (arch_to_arch_name): Likewise.
12855 (all_architectures): Likewise.
12856 (aarch64_get_extension_string_for_isa_flags): Likewise.
12857 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12858 architecture names.
12859 * config/aarch64/aarch64-protos.h
12860 (aarch64_get_extension_string_for_isa_flags): New.
12861 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12862 (aarch64_option_print): Get the string to print from
12863 aarch64_get_extension_string_for_isa_flags.
12864 (aarch64_declare_function_name): Likewise.
12865 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12866 (MCPU_TO_MARCH_SPEC): This.
12867 (ASM_CPU_SPEC): Use it.
12868 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12869 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12870 (EXTRA_SPEC_FUNCTIONS): Use it.
12872 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
12874 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12875 expansion when !ISA_HAS_LWL_LWR.
12876 (mips_block_move_straight): Update the size of elements copied to
12877 account for alignment when !ISA_HAS_LWL_LWR.
12878 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12880 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12882 * expr.c (expand_expr_real_2): Check gimple statement during
12883 LSHIFT_EXPR expand.
12885 2015-08-19 Magnus Granberg <zorry@gentoo.org>
12887 * common.opt (fstack-protector): Initialize to -1.
12888 (fstack-protector-all): Likewise.
12889 (fstack-protector-strong): Likewise.
12890 (fstack-protector-explicit): Likewise.
12891 * configure.ac: Add --enable-default-ssp.
12892 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
12893 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12895 * doc/install.texi: Document --enable-default-ssp.
12896 * config.in: Regenerated.
12897 * configure: Likewise.
12899 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
12901 PR rtl-optimization/64164
12902 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12903 (parm_in_stack_slot_p): ... this. Disregard mode, what
12904 matters is whether the parm will live in a pseudo or a stack
12906 (expand_one_ssa_partition): Deal with params without a default
12907 def. Disregard mode.
12908 * cfgexpand.h: Renamed function declaration.
12909 * tree-ssa-coalesce.c: Adjust.
12910 * function.c (split_complex_args): Allocate stack slot for
12911 unassigned parms before splitting.
12912 (parm_in_unassigned_mem_p): New. Use it instead of
12913 parm_maybe_byref_p throughout this file.
12914 (assign_parm_setup_block): Use it. Accept pseudos in the
12915 expand-assigned rtl.
12916 (assign_parm_setup_reg): Drop BLKmode requirement.
12917 (assign_parm_setup_stack): Allocate and fill in the address of
12918 unassigned MEM parms.
12920 2015-08-19 David Sherwood <david.sherwood@arm.com>
12922 * genmodes.c (emit_mode_unit_size_inline): New function.
12923 (emit_mode_unit_precision_inline): New function.
12924 (emit_insn_modes_h): Emit new #define. Emit new functions.
12925 (emit_mode_unit_size): New function.
12926 (emit_mode_unit_precision): New function.
12927 (emit_mode_adjustments): Add mode_unit_size adjustments.
12928 (emit_insn_modes_c): Emit new arrays.
12929 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12930 use new inline methods.
12932 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12934 * config/aarch64/aarch64.c (bit_count): Delete prototype
12936 (aarch64_print_operand): Use popcount_hwi instead of the above.
12938 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12940 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12943 2015-08-19 Marek Polacek <polacek@redhat.com>
12945 PR middle-end/67133
12946 * gimple-ssa-isolate-paths.c
12947 (insert_trap_and_remove_trailing_statements): Rename to ...
12948 (insert_trap): ... this. Don't remove trailing statements; split
12950 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12952 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
12955 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12956 conditionalize the whole on __GNUC__. Add fallback code
12957 depending neither on undefined nor implementation-defined behaviour.
12959 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12961 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12962 whitespaces with tab.
12964 2015-08-19 Florian Weimer <fweimer@redhat.com>
12966 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12967 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12968 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12969 Move Name_Ids instantiation to the Prj.Proc package, to avoid
12972 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12974 * config/arm/arm.c (bounds_check): Use %wd print format
12975 for HOST_WIDE_INT arguments.
12977 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
12979 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12980 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12981 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12982 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12983 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12984 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12985 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12986 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12987 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12990 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
12992 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12993 function.c, graphite-scop-detection.c, haifa-sched.c,
12994 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12995 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12996 varasm.c: Remove typedefs of structs.
12998 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13000 * config/rs6000/altivec.h (vec_adde): New define.
13001 (vec_addec): Likewise.
13002 (vec_double): Likewise.
13003 (vec_bperm): Likewise.
13004 (vec_gb): Likewise.
13005 * config/rs6000/rs6000-builtin.def (ADDE): New
13006 BU_ALTIVEC_OVERLOAD_3.
13008 (DOUBLE): New BU_VSX_OVERLOAD_1.
13009 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
13010 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
13011 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
13012 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
13013 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
13014 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
13015 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
13016 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
13017 and P8V_BUILTIN_VEC_VBPERMQ.
13019 2015-08-18 Jason Merrill <jason@redhat.com>
13021 * print-tree.c (print_node): Handle TREE_BINFO.
13023 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13025 PR middle-end/36757
13026 * builtins.c (expand_builtin_signbit): Add asserts to make sure
13027 we can expand BUILT_IN_SIGNBIT inline.
13028 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
13029 * doc/extend.texi: Document the type-generic __builtin_signbit.
13031 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
13033 PR rtl-optimization/67218
13034 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
13035 (simplify_unary_operation_1): Use it.
13037 2015-08-18 Marek Polacek <polacek@redhat.com>
13039 PR middle-end/67222
13040 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
13041 if the call isn't valid.
13042 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
13043 gimple_call_builtin_p.
13044 (call_may_clobber_ref_p_1): Likewise.
13045 (stmt_kills_ref_p): Likewise.
13047 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
13049 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
13050 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
13051 (mips_hard_regno_scratch_ok): Likewise.
13052 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
13053 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
13055 2015-08-18 Bin Cheng <bin.cheng@arm.com>
13057 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
13058 (determine_value_range): Call refine_value_range_using_guard for
13059 each loop initial condition to improve value range.
13061 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
13063 * config/i386/i386.c: Remove include of fibheap.h.
13065 2015-08-17 Richard Biener <rguenther@suse.de>
13067 PR tree-optimization/67221
13068 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
13069 (sccvn_dom_walker::before_dom_children): Mark backedges of
13070 non-executable blocks as not executable.
13072 2015-08-17 David Sherwood <david.sherwood@arm.com>
13074 * config/arm/arm.c (neon_element_bits): Replace call to
13075 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
13076 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
13077 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
13078 (neon_vdup_lane<mode>): Likewise.
13079 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
13080 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
13081 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
13082 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13083 * config/spu/spu.c (arith_immediate_p): Likewise.
13084 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13085 * expr.c (expand_expr_real_2): Likewise.
13086 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
13087 * simplify-rtx.c (simplify_immed_subreg): Likewise.
13088 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
13089 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
13091 * fold-const.c (fold_binary_loc): Replace call to
13092 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
13093 GET_MODE_UNIT_PRECISION (m).
13095 2015-08-17 Mike Stump <mikestump@comcast.net>
13097 * config/arm/arm.c (arm_block_move_unaligned_straight):
13098 Emit normal move instead of unaligned load when source or destination
13099 are appropriately aligned.
13101 2015-08-17 Richard Biener <rguenther@suse.de>
13102 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13104 PR middle-end/16107
13105 * match.pd (div (coss (op @0) : New simplifier.
13107 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
13109 PR rtl-optimization/64164
13111 PR middle-end/66983
13112 PR rtl-optimization/67000
13113 PR middle-end/67034
13114 PR middle-end/67035
13115 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13116 * tree-ssa-copyrename.c: Removed.
13117 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13118 -ftree-coalesce-vars.
13119 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13120 * common.opt (ftree-copyrename): Ignore.
13121 (ftree-coalesce-inlined-vars): Likewise.
13122 * doc/invoke.texi: Remove the ignored options above.
13123 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13124 * tree-ssa-coalesce.h: ... here.
13125 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13126 headers required by it.
13127 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13128 across variables when flag_tree_coalesce_vars. Check register
13129 use and promoted modes to allow coalescing. Do not coalesce
13130 maybe-byref parms with SSA_NAMEs of other variables, or
13131 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
13132 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13133 with its member functions to tree-ssa-coalesce.c.
13134 (var_map_base_init): Likewise. Renamed to
13135 compute_samebase_partition_bases.
13136 (partition_view_normal): Drop want_bases parameter.
13137 (partition_view_bitmap): Likewise.
13138 * tree-ssa-live.h: Adjust declarations.
13139 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
13140 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13141 default defs at the entry point.
13142 (dump_part_var_map): New.
13143 (compute_optimized_partition_bases): New, called by...
13144 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13145 of compute_samebase_partition_bases. Adjust.
13146 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13147 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
13148 (ssa_default_def_partition): New.
13149 (get_rtl_for_parm_ssa_default_def): New.
13150 (align_local_variable, add_stack_var): Support anonymous SSA
13152 (defer_stack_allocation): Likewise. Declare earlier.
13153 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13154 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13155 Do no record deferred-allocation marker in
13156 SA.partition_to_pseudo.
13157 (expand_stack_vars): Adjust check for the marker in it.
13158 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13159 redundant MEM attr setting.
13160 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13162 (expand_one_stack_var): ... this. New wrapper to check and
13163 skip already expanded SSA partitions.
13164 (record_alignment_for_reg_var): New, factored out of...
13165 (expand_one_var): ... this.
13166 (expand_one_ssa_partition): New.
13167 (adjust_one_expanded_partition_var): New.
13168 (expand_one_register_var): Check and skip already expanded SSA
13170 (expand_used_vars): Don't create DECLs for anonymous SSA
13171 names. Expand all SSA partitions, then adjust all SSA names.
13172 (pass::execute): Replace the loops that set
13173 SA.partition_to_pseudo from partition leaders and cleared
13174 DECL_RTL for multi-location variables, and that which used to
13175 rename vars and set attrs, with one that clears DECL_RTL and
13176 checks that PARMs and RESULTs default_defs match DECL_RTL.
13177 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13178 * emit-rtl.c: Include stor-layout.h.
13179 (set_reg_attrs_for_parm): Handle NULL decl.
13180 (set_reg_attrs_for_decl_rtl): Take mode from expression if
13182 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13183 rather than its possibly-NULL DECL.
13184 * explow.c (promote_ssa_mode): New.
13185 * explow.h (promote_ssa_mode): Declare.
13186 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13187 (read_complex_part): Export.
13188 * expr.h (read_complex_part): Declare.
13189 * cfgexpand.h (parm_maybe_byref_p): Declare.
13190 * function.c: Include cfgexpand.h.
13191 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13192 (use_register_for_parm_decl): Wrapper for the above to
13193 special-case the result_ptr.
13194 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13195 (split_complex_args): Take assign_parm_data_all argument.
13196 Pass it to rtl_for_parm. Set up rtl and context for split
13197 args. Reset complex parm before fetching its default decl
13199 (assign_parms_unsplit_complex): Use the default-def complex
13200 parm rtl if it matches the components.
13201 (assign_parms_augmented_arg_list): Adjust.
13202 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13203 multiple locations. Recognize split complex args.
13204 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13205 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13206 (assign_parm_setup_block): Prefer SSA-assigned location, and
13207 fill in its address if the memory location of a maybe-byref
13208 parm was not assigned by cfgexpand.
13209 (assign_parm_setup_reg): Likewise. Adjust its mode as
13210 needed. Use entry_parm for equiv if stack_parm is NULL. Make
13211 sure passed_pointer parms don't need conversion. Copy address
13212 or value as needed.
13213 (assign_parm_setup_stack): Prefer SSA-assigned location.
13214 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13215 rtl before testing for pointer bounds. Special-case result_ptr.
13216 (expand_function_start): Maybe reset DECL_RTL of result.
13217 Prefer SSA-assigned location for result and static chain.
13218 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
13219 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
13220 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13221 anonymous SSA names. Use promote_ssa_mode.
13222 (get_temp_reg): Likewise.
13223 (remove_ssa_form): Adjust.
13224 * stor-layout.c (layout_decl): Don't set mem attributes of
13226 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13227 and get its reg_usage for reg invalidation.
13228 (compute_bb_dataflow): Pass it insn.
13229 (emit_notes_in_bb): Likewise.
13231 2015-08-14 Marek Polacek <polacek@redhat.com>
13233 * tree-core.h (tree_base): Fix typo.
13235 2015-08-14 Marek Polacek <polacek@redhat.com>
13237 PR middle-end/67133
13238 * gimple.c (infer_nonnull_range_by_attribute): Check that the
13239 nonnull argument position is not outside function arguments.
13241 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
13244 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13245 'lconst_atomic' with 'const_atomic'.
13246 (atomic_fetch_<optab><mode>): Likewise.
13247 (atomic_<optab>_fetch<mode>): Likewise.
13248 * config/aarch64/iterators.md (lconst-atomic): Move below
13250 (const_atomic): New.
13252 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
13253 Bernd Schmidt <bernds@codesourcery.com>
13255 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13257 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13258 (DWARF2_DEBUGGING_INFO): Don't define.
13259 * debug.h (dwarf2_lineno_debug_hooks): Declare.
13260 * toplev.c (process_options): Add a case for it.
13261 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13262 (dwarf2out_init): Skip most initializations if
13263 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13265 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13266 DWARF2_LINENO_DEBUGGING_INFO.
13267 * opts.c (set_debug_level): Likewise.
13269 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
13271 * config/arm/types.md (is_neon_type): Add missing types.
13273 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13275 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13277 * config/i386/i386.c (PTA_SKYLAKE): New macros.
13278 (processor_alias_table): Add skylake description.
13279 (enum processor_model): Add skylake processor.
13280 (arch_names_table): Add skylake record.
13281 * doc/invoke.texi: Add skylake item.
13283 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
13285 * ira-int.h: Include recog.h.
13286 * ira-build.c: Don't include recog.h.
13287 * ira-color.c: Likewise.
13288 * ira-conflicts.c: Likewise.
13289 * ira-costs.c: Likewise.
13290 * ira-emit.c: Likewise.
13291 * ira-lives.c: Likewise.
13293 * sched-deps.c: Likewise.
13294 * sel-sched.c: Likewise.
13295 * target-globals.c: Likewise.
13297 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
13300 * reload1.c (elimination_costs_in_insn): Make it obvious to the
13301 compiler that the n_dups and n_operands loop bounds are invariant.
13303 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13305 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13306 expressions in A and B.
13308 2015-08-13 Richard Biener <rguenther@suse.de>
13310 * tree.c (nonnull_arg_p): Move from ...
13311 * tree-vrp.c (nonnull_arg_p): ... here.
13312 * tree.h (nonnull_arg_p): Declare.
13313 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13314 here, register ptr != 0 for nonnull_arg_p pointer arguments.
13315 Properly initialize static chain and by-reference result pointer.
13316 (run_scc_vn): Adjust.
13318 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13320 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13323 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13325 * config/aarch64/aarch64-protos.h
13326 (aarch64_gen_atomic_cas): Declare.
13327 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13328 Choose appropriate instruction pattern for the target.
13329 (aarch64_gen_atomic_cas): New.
13330 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13331 (atomic_compare_and_swap<mode>_1): Rename to
13332 aarch64_compare_and_swap<mode>. Fix some indentation.
13333 (aarch64_compare_and_swap<mode>_lse): New.
13334 (aarch64_atomic_cas<mode>): New.
13336 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13338 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13341 2015-08-13 Richard Biener <rguenther@suse.de>
13343 PR tree-optimization/67191
13344 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13345 assert we value-numbered last stmts operand because it can validly
13346 trigger for unreachable code.
13348 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13350 PR rtl-optimization/67103
13351 * ifcvt.c (noce_try_store_flag_constants): Move
13352 x = (-(test != 0) & (b - a)) + a transformation to...
13353 (noce_try_cmove): ... Here. Try it if normal conditional
13356 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13358 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13360 * config/mips/mips.md (processor): Remove w32 and w64.
13362 2015-08-13 Richard Biener <rguenther@suse.de>
13364 PR tree-optimization/66502
13365 PR tree-optimization/67167
13366 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13367 backedge arguments.
13368 (vn_phi_lookup): Adjust.
13369 (vn_phi_insert): Likewise.
13370 (visit_phi): Prefer to value-number to another PHI node
13371 over value-numbering to a PHI argument.
13372 (init_scc_vn): Mark DFS back edges.
13374 2015-08-13 Richard Biener <rguenther@suse.de>
13376 * gimple.h (gcall::code_): New constant static member.
13377 (gcond::code_): Likewise.
13378 * gimple.c (gcall::code_): Define.
13379 (gcond::code_): Likewise.
13380 (is_a_helper <const gcond *>): Add.
13381 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13382 and forward to a new gcall overload with less checking and a
13383 cheaper way to access the operand.
13384 (gimple_call_lhs_ptr): Likewise.
13385 (gimple_call_set_lhs): Likewise.
13386 (gimple_call_internal_p): Likewise.
13387 (gimple_call_with_bounds_p): Likewise.
13388 (gimple_call_set_with_bounds): Likewise.
13389 (gimple_call_internal_fn): Likewise.
13390 (gimple_call_set_ctrl_altering): Likewise.
13391 (gimple_call_ctrl_altering_p): Likewise.
13392 (gimple_call_fntype): Likewise.
13393 (gimple_call_fn): Likewise.
13394 (gimple_call_fn_ptr): Likewise.
13395 (gimple_call_set_fndecl): Likewise.
13396 (gimple_call_fndecl): Likewise.
13397 (gimple_call_chain): Likewise.
13398 (gimple_call_num_args): Likewise.
13399 (gimple_call_arg): Likewise.
13400 (gimple_call_arg_ptr): Likewise.
13401 (gimple_call_set_arg): Likewise.
13402 (gimple_call_noreturn_p): Likewise.
13403 (gimple_cond_code): Likewise.
13404 (gimple_cond_lhs): Likewise.
13405 (gimple_cond_rhs): Likewise.
13406 (gimple_has_lhs): Reduce checking.
13408 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13410 PR middle-end/25529
13411 * match.pd (div (mult @0 @1) @1) : New simplifier.
13413 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13416 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13417 predicate to allow construction of vector constants using the
13418 VSLDOI vector shift instruction.
13420 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13423 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13424 the number of bytes to be shifted left and filled in with either
13425 all zero or all one bits.
13426 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13428 (output_vec_const_move): On power8, generate XXLORC to generate
13429 a vector constant with all 1's. Do a split if we need to use a
13430 VSLDOI instruction.
13432 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13433 properly test for the MSB.
13435 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13436 vector constants that can be created with VSLDOI.
13438 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13441 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13442 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13443 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13444 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13445 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13446 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13447 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13448 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13449 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13451 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
13453 * config/xtensa/constraints.md (define_constraint "Y"): New
13455 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13456 * config/xtensa/linux.h (ASM_SPEC): Likewise.
13457 * config/xtensa/predicates.md (move_operand): Match constants
13458 and symbols in the presence of TARGET_AUTO_LITPOOLS.
13459 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13460 immediate references to TLS data.
13461 (xtensa_emit_move_sequence): Don't force constants to memory in
13462 the presence of TARGET_AUTO_LITPOOLS.
13463 (print_operand): Add 'y' format, same as default, but capable of
13464 printing SF mode constants as well.
13465 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13466 (movsf_internal): Add movi pattern that loads literal.
13467 (movsf, movdf): Don't force constants to memory in the presence
13468 of TARGET_AUTO_LITPOOLS.
13469 (movdf_internal): Add 'Y' constraint.
13470 * config/xtensa/xtensa.opt (mauto-litpools): New option.
13471 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13473 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13475 * config/arm/arm-fpus.def: Replace booleans with feature flags.
13477 * config/arm/arm.c (ARM_FPU): Update macro.
13478 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13479 (TARGET_FP16): Likewise.
13480 (TARGET_CRYPTO): Likewise.
13481 (TARGET_NEON): Likewise.
13482 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
13485 2015-08-12 Tom de Vries <tom@codesourcery.com>
13489 * doc/install.texi: Remove --with_host_libstdcxx item. Update
13490 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13491 accordingly. Mention default for --with-stage1-ldflags.
13493 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13495 * config/arm/arm.h (arm_fpu_feature_set): New.
13496 (ARM_FPU_FSET_HAS): New.
13497 (FPU_FL_NONE): New.
13498 (FPU_FL_NEON): New.
13499 (FPU_FL_FP16): New.
13500 (FPU_FL_CRYPTO): New.
13502 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13504 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13505 after -mcmodel=large -fPIC sorry.
13507 2015-08-12 Richard Biener <rguenther@suse.de>
13509 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13510 comparison operand order and commutative ternary op operand order.
13511 (sccvn_dom_walker::cond_stack): New state to track temporary
13513 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13515 (sccvn_dom_walker::record_cond): Add a single temporary conditional
13517 (sccvn_dom_walker::record_conds): Add a temporary conditional
13518 expressions and all related expressions also true/false.
13519 (sccvn_dom_walker::before_dom_children): Record temporary
13520 expressions based on the controlling condition of a single
13521 predecessor. When trying to simplify a conditional statement
13522 lookup expressions we might have inserted earlier.
13524 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
13527 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13528 to ARM core registers.
13530 2015-08-12 Nathan Sidwell <nathan@acm.org>
13532 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13533 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13535 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
13537 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13538 line with comments.
13539 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13541 2015-08-12 Richard Biener <rguenther@suse.de>
13543 * gimple.h (remove_pointer): New trait.
13544 (GIMPLE_CHECK2): New inline template function.
13545 (gassign::code_): New constant static member.
13546 (is_a_helper<const gassign *>): Add.
13547 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13548 and forward to a new gassign overload with less checking and a
13549 cheaper way to access the operand.
13550 (gimple_assign_lhs_ptr): Likewise.
13551 (gimple_assign_set_lhs): Likewise.
13552 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13554 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13556 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13558 (gimple_assign_rhs_code): Likewise.
13559 * gimple.c (gassign::code_): Define.
13561 2015-08-12 Richard Biener <rguenther@suse.de>
13563 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13564 Eliminate edges marked as not executable by SCCVN.
13565 * tree-ssa-sccvn.c: Include gimple-iterator.h.
13566 (cond_dom_walker): Rename to sccvn_dom_walker.
13567 (sccvn_dom_walker::before_dom_children): Value-number defs
13569 (run_scc_vn): Remove loop value-numbering all SSA names.
13570 Drop not visited SSA names to varying.
13572 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13574 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13575 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13576 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13577 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13578 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13579 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13580 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13581 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13582 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13584 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
13587 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13588 to enum feature_priority and feature_list.
13589 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13590 and isa_names_table.
13592 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13594 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13595 vect_induction_def.
13597 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13601 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13602 account when deciding what was the command-line status.
13604 2015-08-11 Nathan Sidwell <nathan@acm.org>
13606 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13608 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13609 we're not the only contributor to target phi.
13611 2015-08-11 Jiong Wang <jiong.wang@arm.com>
13613 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13616 2015-08-11 Tom de Vries <tom@codesourcery.com>
13618 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13620 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
13622 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13624 * config/i386/i386.md (cpu): Remove knl.
13626 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13629 PR middle-end/66332
13630 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13631 open-coded sequence.
13632 * omp-low.c (oacc_process_reduction_data): Remove handline of
13633 GOMP_DEVICE_HOST_NONSHM.
13635 * lto-streamer-in.c (lto_input_mode_table): Adjust to
13636 GET_MODE_INNER changes.
13638 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13639 Ilya Verbin <ilya.verbin@intel.com>
13641 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13643 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13645 * doc/options.texi (EnabledBy): Document that the argument must be
13647 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13648 Not enabled by -Wall.
13649 * optc-gen.awk: Give nicer error messages. Detect if the argument
13650 of EnabledBy is not a Common option.
13651 * common.opt (Wnull-dereference): Not enabled by -Wall.
13652 * opt-functions.awk (lang_enabled_by): Nicer error messages.
13654 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
13656 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13657 model == 0x4f as Broadwell.
13659 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13661 PR rtl-optimization/67028
13662 * combine.c (simplify_comparison): Fix comment. Rearrange code.
13663 Add test to see if a const_int fits in the new mode.
13665 2015-08-07 DJ Delorie <dj@redhat.com>
13667 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13669 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
13671 PR rtl-optimization/67029
13672 * ira-color.c: Include "recog.h" before including "ira-int.h".
13673 * target-globals.c: Likewise.
13674 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13675 adds an alternative_mask argument and use it instead of
13676 preferred_alternatives.
13677 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13678 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13679 * sched-deps.c: Include "ira-int.h" after including "ira.h".
13680 (sched_analyze_insn): Update call to
13681 ira_implicitly_set_insn_hard_regs.
13682 * sel-sched.c: Include "ira-int.h" after including "ira.h".
13683 (implicit_clobber_conflict_p): Update call to
13684 ira_implicitly_set_insn_hard_regs.
13686 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13688 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13690 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
13693 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13694 currently_expanding_to_rtl is set.
13696 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
13698 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13699 * configure: Regenerate.
13701 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13702 Jiong Wang <jiong.wang@arm.com>
13704 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13705 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13706 (REG_CLASS_NAMES): Likewise.
13707 (REG_CLASS_CONTENTS): Likewise.
13708 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13709 (aarch64_register_move_cost): Likewise.
13710 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13712 * config/aarch64/constraints.md (Uc0): New constraint.
13714 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13716 * config/aarch64/constraints.md (Usf): Add the test of
13717 aarch64_is_noplt_call_p.
13719 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13721 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13723 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13724 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13725 (call_symbol): Likewise.
13727 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13729 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13730 for vectorizing multiplication patterns.
13731 * tree-vectorizer.h: Adjust the number of patterns.
13733 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13735 * config/i386/sse.md (*vec_concatv2df): Declare added
13736 alternatives as sselog type.
13738 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13740 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13743 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13745 * config/s390/s390.c (s390_expand_tbegin): Expand either
13746 tbegin_1_z13 or tbegin_1 depending on VX flag.
13747 * config/s390/s390.md ("tbegin_1_z13"): New expander.
13749 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13751 * config/s390/s390.opt: Clarify description for -mzvector
13752 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13755 2015-08-06 Richard Biener <rguenther@suse.de>
13757 * gimple.h (gimple_call_set_fn): Access op member directly.
13758 (gimple_call_chain_ptr): Likewise.
13759 (gimple_call_set_chain): Likewise.
13760 (gimple_cond_lhs_ptr): Likewise.
13761 (gimple_cond_set_lhs): Likewise.
13762 (gimple_cond_rhs_ptr): Likewise.
13763 (gimple_cond_set_rhs): Likewise.
13764 (gimple_cond_true_label): Likewise.
13765 (gimple_cond_set_true_label): Likewise.
13766 (gimple_cond_set_false_label): Likewise.
13767 (gimple_cond_false_label): Likewise.
13768 (gimple_label_label): Likewise.
13769 (gimple_label_set_label): Likewise.
13770 (gimple_goto_set_dest): Likewise.
13771 (gimple_asm_input_op): Likewise.
13772 (gimple_asm_input_op_ptr): Likewise.
13773 (gimple_asm_set_input_op): Likewise.
13774 (gimple_asm_output_op): Likewise.
13775 (gimple_asm_output_op_ptr): Likewise.
13776 (gimple_asm_set_output_op): Likewise.
13777 (gimple_asm_clobber_op): Likewise.
13778 (gimple_asm_set_clobber_op): Likewise.
13779 (gimple_asm_label_op): Likewise.
13780 (gimple_asm_set_label_op): Likewise.
13781 (gimple_switch_index): Likewise.
13782 (gimple_switch_index_ptr): Likewise.
13783 (gimple_return_retval_ptr): Likewise.
13784 (gimple_return_retval): Likewise.
13785 (gimple_return_set_retval): Likewise.
13786 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
13787 (gimple_switch_label): Likewise.
13788 (gimple_switch_set_label): Likewise.
13790 2015-08-06 Richard Biener <rguenther@suse.de>
13792 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13793 bool comparison canonicalization and restrict to integers.
13795 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
13797 * coretypes.h (enum symbol_visibility): Relocate here.
13798 * flag-types.h (enum symbol_visibility): Remove.
13799 * tree-core.h (enum symbol_visibility): Remove.
13801 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
13804 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13805 for no_split_stack function attribute along with
13807 (rs6000_expand_split_stack_prologue): Likewise.
13809 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
13810 Jeff Law <law@redhat.com>
13813 * doc/invoke.texi (Wnull-dereference): New.
13814 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13815 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13816 Warn for potential NULL dereferences.
13817 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13818 * ubsan.c (instrument_nonnull_arg): Call
13819 infer_nonnull_range_by_attribute.
13820 (instrument_nonnull_return): Likewise.
13821 * common.opt (Wnull-dereference); New.
13822 * gimple.c (infer_nonnull_range): Remove bool arguments.
13823 (infer_nonnull_range_by_dereference): New.
13824 (infer_nonnull_range_by_attribute): New.
13825 * gimple.h: Update declarations.
13827 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13829 * gensupport.c (sequence_num): Replace with...
13830 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13831 ...these new variables.
13832 (init_rtx_reader_args_cb): Update accordingly.
13833 (get_num_code_insns): Likewise.
13834 (read_md_rtx): Rework to use a while loop and get_c_test.
13835 Use the new counters. Remove redundant DEFINE_SUBST case.
13836 * genoutput.c (gen_split): Delete.
13837 (main): Don't call it.
13839 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13841 * gensupport.h (get_c_test): Declare.
13842 * gensupport.c (get_c_test): New function.
13843 * genconditions.c (main): Use it.
13844 * genrecog.c (validate_pattern): Likewise.
13845 (match_pattern_1): Likewise. Remove c_test argument.
13846 (match_pattern): Update accordingly and remove c_test argument.
13847 (main): Update accordingly.
13849 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13851 * gensupport.h (get_num_insn_codes): Declare.
13852 * gensupport.c (get_num_insn_codes): New function.
13853 * genattrtab.c (optimize_attrs): Rename max_insn_code to
13855 (main): Likewise. Use get_num_insn_codes.
13856 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13858 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13860 PR middle-end/66311
13861 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13862 is zero- rather than sign-extended.
13864 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13866 * target-insns.def (can_extend): Delete.
13868 2015-08-05 Richard Biener <rguenther@suse.de>
13870 PR tree-optimization/67121
13871 * tree-if-conv.c (combine_blocks): Clear range-info produced
13872 by stmts no longer executed conditionally.
13874 2015-08-05 Nick Clifton <nickc@redhat.com>
13876 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13877 to allow identical far pointers to remain.
13879 2015-08-05 Richard Biener <rguenther@suse.de>
13881 PR middle-end/67120
13882 * match.pd: Compare address bases with == if they are decls
13883 or SSA names, not operand_equal_p. Otherwise fail.
13885 2015-08-05 Richard Biener <rguenther@suse.de>
13887 PR tree-optimization/67055
13888 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13891 * g++.dg/torture/pr67055.C: New testcase.
13893 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13895 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13897 (define_attr "enabled"): Handle avx521vl and noavx512vl.
13898 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13899 AVX-512 alternative out of SSE.
13900 (define_insn "*vec_concatv2df"): Ditto.
13902 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13904 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13905 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13906 CODE_FOR_avx_ptestv4di.
13907 * config/i386/sse.md (define_mode_iterator V_AVX): New.
13908 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13909 (define_insn "avx_ptest256"): Merge this ...
13910 (define_insn "sse4_1_ptest"): And this ...
13911 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13913 2015-08-05 Richard Biener <rguenther@suse.de>
13915 PR tree-optimization/67109
13916 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13917 against too big groups. Print whether this is a load or store
13918 group. Rename from ...
13919 (vect_analyze_group_access): ... this which is now a wrapper
13920 dissolving an invalid group.
13921 (vect_analyze_data_ref_accesses): Print whether this is a load
13924 2015-08-05 Richard Biener <rguenther@suse.de>
13926 PR middle-end/67107
13927 * match.pd: Guard const_binop result checking against NULL_TREE
13930 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
13932 * cse.c (cse_insn): Restoring old behaviour for src_eqv
13933 when dest and value in the REG_EQUAL are same and dest
13934 is STRICT_LOW_PART.
13936 2015-08-04 Anatoly Sokolov <aesok@post.ru>
13938 * config/moxie/moxie.h (PRINT_OPERAND,
13939 PRINT_OPERAND_ADDRESS): Remove macros.
13940 * config/moxie/moxie-protos.h (moxie_print_operand,
13941 moxie_print_operand_address): Remove declaration.
13942 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13943 TARGET_PRINT_OPERAND_ADDRESS): Define.
13944 (moxie_print_operand, moxie_print_operand_address): Make static.
13946 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
13949 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13950 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13952 2015-08-04 Richard Biener <rguenther@suse.de>
13954 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13956 (dt_operand::gen_gimple_expr): Adjust.
13958 2015-08-04 Richard Biener <rguenther@suse.de>
13960 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13961 bool compares on RHS.
13962 * match.pd: Add X ==/!= !X is false/true pattern.
13964 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
13966 * config/aarch64/aarch64.c: Change inner loop statement cost
13967 to be consistent with other targets.
13969 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
13971 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13974 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
13976 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13977 (machine_function): Remove pseudos field.
13979 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13981 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13982 Exit early and use target_option_current_node if processing current
13985 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13987 * doc/extend.texi (AArch64 Function Attributes): New node.
13988 (AArch64 Pragmas): Likewise.
13990 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13992 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13993 Initialize simd builtins if TARGET_SIMD.
13994 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13995 Make sure that the builtins are initialized only once no matter how
13996 many times the function is called.
13997 (aarch64_init_builtins): Unconditionally initialize crc builtins.
13998 (aarch64_relayout_simd_param): New function.
13999 (aarch64_simd_expand_args): Use above during argument expansion.
14000 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
14001 simd builtins if TARGET_SIMD.
14002 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
14004 (aarch64_relayout_simd_types): Likewise.
14006 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14008 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
14009 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
14010 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
14011 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14013 (aarch64_reset_previous_fndecl): New function.
14014 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
14016 * config/aarch64/aarch64-c.c: New file.
14017 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
14018 Push and pop options at beginning and end. Remove ifdef
14019 __ARM_FEATURE_CRC32.
14020 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
14021 Add pragma +nothing+simd and +nothing+crypto where appropriate.
14022 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
14023 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
14025 (aarch64_register_pragmas): Likewise.
14026 (aarch64_reset_previous_fndecl): Likewise.
14027 (aarch64_process_target_attr): Likewise.
14028 (aarch64_override_options_internal): Likewise.
14030 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14032 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
14034 (aarch64_can_inline_p): Likewise.
14035 (TARGET_CAN_INLINE_P): Define.
14037 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14039 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14040 Remove static. Handle OPT_mgeneral_regs_only,
14041 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
14042 OPT_momit_leaf_frame_pointer.
14043 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
14044 (aarch64_attr_opt_type): New enum.
14045 (aarch64_attribute_info): New struct.
14046 (aarch64_handle_attr_arch): New function.
14047 (aarch64_handle_attr_cpu): Likewise.
14048 (aarch64_handle_attr_tune): Likewise.
14049 (aarch64_handle_attr_isa_flags): Likewise.
14050 (aarch64_attributes): New table.
14051 (aarch64_process_one_target_attr): New function.
14052 (num_occurences_in_str): Likewise.
14053 (aarch64_process_target_attr): Likewise.
14054 (aarch64_option_valid_attribute_p): Likewise.
14055 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14056 * config/aarch64/aarch64-protos.h: Include input.h
14057 (aarch64_handle_option): Declare prototype.
14059 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14061 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
14062 * config/aarch64/aarch64.c: Include target-globals.h
14063 (aarch64_previous_fndecl): New variable.
14064 (aarch64_set_current_function): New function.
14065 (TARGET_SET_CURRENT_FUNCTION): Define.
14067 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14069 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
14070 (explicit_arch): Likewise.
14071 (x_aarch64_isa_flags): Likewise.
14072 (mgeneral-regs-only): Mark as Save.
14073 (mfix-cortex-a53-835769): Likewise.
14074 (mcmodel=): Likewise.
14075 (mstrict-align): Likewise.
14076 (momit-leaf-frame-pointer): Likewise.
14077 (mtls-dialect): Likewise.
14078 (master=): Likewise.
14079 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
14080 (aarch64_isa_flags): Remove extern declaration.
14081 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
14082 to indicate success or failure.
14083 (aarch64_validate_march): Likewise.
14084 (aarch64_validate_mtune): Likewise.
14085 (aarch64_isa_flags): Delete.
14086 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
14087 instead of aarch64_isa_flags.
14088 (aarch64_get_tune_cpu): New function.
14089 (aarch64_get_arch): Likewise.
14090 (aarch64_override_options): Use above and set up explicit_tune_core
14092 (aarch64_print_extension): Move earlier in file. Add isa_flags
14093 argument and use that instead of the global aarch64_isa_flags.
14094 (aarch64_option_save): New function.
14095 (aarch64_option_restore): Likewise.
14096 (aarch64_option_print): Likewise.
14097 (aarch64_declare_function_name): Likewise.
14098 (aarch64_start_file): Delete.
14099 (TARGET_ASM_FILE_START): Do not define.
14100 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
14101 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
14104 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14106 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
14107 flag_omit_leaf_frame_pointer to 2.
14109 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14111 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
14113 (TARGET_FIX_ERR_A53_835769): New macro.
14114 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14115 handling of opts->x_aarch64_fix_a53_err835769.
14116 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
14117 than aarch64_fix_a53_err835769.
14118 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
14119 * config/aarch64/aarch64-linux.h: Likewise.
14121 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
14123 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
14124 ix86_expand_int_movcc as boolean.
14126 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14128 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
14129 (aarch64_cpu_string): Likewise.
14130 (aarch64_tune_string): Likewise.
14131 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
14132 (aarch64_parse_extension): Return aarch64_parse_opt_result.
14133 Add extra argument to put result into.
14134 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
14135 (aarch64_parse_cpu): Add arguments to put results into. Return
14136 aarch64_parse_opt_result.
14137 (aarch64_parse_tune): Likewise.
14138 (aarch64_override_options_after_change_1): New function.
14139 (aarch64_override_options_internal): New function.
14140 (aarch64_validate_mcpu): Likewise.
14141 (aarch64_validate_march): Likewise.
14142 (aarch64_validate_mtune): Likewise.
14143 (aarch64_override_options): Update to reflect above changes.
14144 Move some logic into aarch64_override_options_internal.
14145 Initialize target_option_default_node and target_option_current_node.
14146 (aarch64_override_options_after_change): Move logic into
14147 aarch64_override_options_after_change_1 and call it with global_options.
14148 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
14149 flag values from that.
14151 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14153 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14154 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14155 * config/aarch64/aarch64.c (struct processor): Add arch field.
14156 (all_architectures): Handle above, move above all_cores.
14157 (all_cores): Handle above.
14158 (aarch64_parse_arch): Handle above changes.
14159 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14160 above. Update comments.
14161 (armv8.1-a): Likewise.
14162 * config/aarch64/aarch64-cores.def: Update according to above.
14163 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14164 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14165 aarch64_arch_driver_info.
14167 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14169 * config/aarch64/aarch64.c (struct processor): Add ident field.
14170 Rename core sched_core.
14171 (all_cores): Handle above changes.
14172 (all_architectures): Likewise.
14173 (aarch64_parse_arch): Likewise.
14174 (aarch64_override_options): Likewise.
14176 2015-08-04 Richard Biener <rguenther@suse.de>
14178 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14179 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14180 comparisons embedded in [VEC_]COND_EXPRs.
14182 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
14184 * tree-if-conv.c: Fix various typos in comments.
14185 * tree-vect-stmts.c: Likewise.
14187 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14189 PR tree-optimization/67043
14190 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14191 preheader after hoisting invariant in it.
14192 (find_defs): Force recomputation of all luids.
14194 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
14196 * config/rs6000/htm.md (tabort.): Restrict the source operand to
14197 using a base register.
14199 2015-08-03 David Malcolm <dmalcolm@redhat.com>
14201 * main.c (main): Pass in NULL for toplev's external_timer.
14202 * timevar.c: Include coretypes.h.
14203 (class timer::named_items): New.
14204 (timer::named_items::named_items): New.
14205 (timer::named_items::~named_items): New.
14206 (timer::named_items::push): New.
14207 (timer::named_items::pop): New.
14208 (timer::named_items::print): New.
14209 (timer::timer): Initialize field "m_jit_client_items".
14210 (timer::~timer): New.
14211 (timer::push): Move bulk of implementation to...
14212 (timer::push_internal): ...here. New function.
14213 (timer::pop): Move bulk of implementation to...
14214 (timer::pop_internal): ...here. New function.
14215 (timer::push_client_item): New.
14216 (timer::pop_client_item): New.
14217 (timer::print_row): New function, taken from timer::print.
14218 (timer::print): Print "GCC items" header if we also have client
14219 items. Move row-printing to timer::print_row. Print any client
14221 (timer::get_topmost_item_name): New method.
14222 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14223 (TV_JIT_CLIENT_CODE): New.
14224 * timevar.h (timer::push_client_item): New declaration.
14225 (timer::pop_client_item): New declaration.
14226 (timer::get_topmost_item_name): New method.
14227 (timer::push_internal): New declaration.
14228 (timer::pop_internal): New declaration.
14229 (timer::print_row): New declaration.
14230 (timer::named_items): New declaration.
14231 (timer::m_jit_client_items): New field.
14232 (timer): Add friend class named_items.
14233 (auto_timevar::auto_timevar): Add timer param.
14234 (auto_timevar::~auto_timevar): Use field "m_timer".
14235 (auto_timevar::m_timer): New field.
14236 * toplev.c (initialize_rtl): Add g_timer as param when
14237 constructing auto_timevar instance.
14238 (toplev::toplev): Add "external_timer" param, and use it to
14239 initialize the "g_timer" global if non-NULL.
14240 (toplev::~toplev): If this created "g_timer", delete it.
14241 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14242 with "external_timer" timer *.
14244 2015-08-03 Alexander Basov <coohpt@gmail.com>
14246 PR middle-end/64744
14247 PR middle-end/48470
14248 PR middle-end/43404
14249 * cfgexpand.c (expand_one_var): Add check if stack is going to
14250 be used in naked function.
14251 * expr.c (expand_expr_addr_expr_1): Remove excess checking
14252 whether expression should not reside in MEM.
14253 * function.c (use_register_for_decl): Do not use registers for
14254 non-register things (volatile, float, BLKMode) in naked functions.
14256 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
14259 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14260 Adjust splits to match new pattern.
14262 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14264 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14267 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14268 point in VSX registers.
14270 * config/rs6000/constraints.md (wb constraint): Document unused
14272 (we constraint): Likewise.
14273 (wo constraint): Likewise.
14274 (wp constraint): New constraint for IEEE 128-bit floating point in
14276 (wq constraint): Likewise.
14278 * config/rs6000/predicates.md (easy_fp_constant): Add support for
14279 IEEE 128-bit floating point in VSX registers.
14280 (easy_scalar_constant): Likewise.
14282 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14283 constraints (wp, wq) for IEEE 128-bit floating point in VSX
14285 (rs6000_init_hard_regno_mode_ok): Likewise.
14287 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14288 floating point in VSX registers.
14291 (VSX_M2): Likewise.
14297 (vsx_le_permute_<mode>): Add support to properly swap bytes for
14298 IEEE 128-bit floating point in VSX registers on little endian.
14299 (vsx_le_undo_permute_<mode>): Likewise.
14300 (vsx_le_perm_load_<mode>): Likewise.
14301 (vsx_le_perm_store_<mode>): Likewise.
14302 (splitters for IEEE 128-bit fp moves): Likewise.
14304 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14307 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14308 floating point in VSX registers.
14311 * doc/md.text (Machine Constraints): Document wp and wq
14312 constraints on PowerPC.
14314 2015-08-03 Jeff Law <law@redhat.com>
14316 PR middle-end/66314
14317 PR gcov-profile/66899
14318 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14319 iterate over the jump threading paths when an element in the
14320 jump threading paths array is eliminated.
14322 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
14324 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14326 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
14328 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14329 is_use_properly_guarded the variable def_preds. Free its
14330 contents before returning.
14331 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14332 (is_use_properly_guarded): Replace local variable def_preds with
14333 a parameter. Adjust accordingly. Only update *def_preds if it's
14336 2015-08-03 Richard Biener <rguenther@suse.de>
14338 * genmatch.c (simplify::for_subst_vec): New member.
14339 (binary_ok): New helper for for lowering.
14340 (lower_for): Delay substituting operators into result expressions
14341 if we can merge the results eventually again.
14342 (capture_info::walk_result): Adjust for user_id appearing as
14343 result expression operator.
14344 (expr::gen_transform): Likewise.
14345 (dt_simplify::gen_1): Likewise.
14346 (dt_simplify::gen): Pass not substituted operators to tail
14347 functions or initialize local variable with it.
14348 (decision_tree::gen): Adjust function signature.
14349 * match.pd: Fix tests against global code and add default
14350 cases to switch stmts.
14352 2015-08-03 Richard Biener <rguenther@suse.de>
14354 * genmatch.c (dt_simplify::gen): Create captures array
14355 with an initializer.
14357 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14359 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14360 the host compiler is affected by placement new aliasing bug.
14361 * configure: Regenerate.
14362 * Makefile.in (ALIASING_FLAGS): New variable.
14363 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14365 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14368 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14369 (negmulsf3_vfp): Likewise.
14370 (muldf3negdf_vfp): Disable for -frounding-math.
14371 (mulsf3negsf_vfp): Likewise.
14372 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14373 fix MULT cost with -frounding-math.
14375 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14377 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14378 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14379 explicit. Prefer to add the flag whenever possible.
14380 (noce_process_if_block): Try noce_try_store_flag_constants before
14383 2015-08-03 Richard Biener <rguenther@suse.de>
14385 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14386 New hash-map to record equivalent transforms.
14387 (dt_node::analyze): Populate the equivalent transforms hash-map.
14388 (dt_simplify::info): Add reference to hash-map entry.
14389 (dt_simplify::gen): If we have split out a function for the
14390 transform, generate a call to it.
14391 (sinfo_hashmap_traits::hash): New function.
14392 (compare_op): New helper function for ...
14393 (sinfo_hashmap_traits::equal_keys): ... this new function.
14394 (decision_tree::gen): Split out common equivalent transforms
14397 2015-08-03 Richard Biener <rguenther@suse.de>
14399 * gimple-fold.c (fold_gimple_assign): Remove folding of
14400 the comparison in COND_EXPRs.
14402 2015-08-03 Richard Biener <rguenther@suse.de>
14404 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14405 on the rhs of assignments first simplify the embedded
14408 2015-08-03 Richard Biener <rguenther@suse.de>
14410 PR tree-optimization/66917
14411 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14413 (DR_VECT_AUX): New macro.
14414 (set_dr_misalignment): Adjust.
14415 (dr_misalignment): Likewise.
14416 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14417 Compute whether the base is at least element aligned.
14418 * tree-vect-stmts.c (ensure_base_align): Adjust.
14419 (vectorizable_store): If the base is not element aligned
14420 preserve alignment of the original access if misalignment is unknown.
14421 (vectorizable_load): Likewise.
14423 2015-08-02 Martin Sebor <msebor@redhat.com>
14425 * c-family/c.opt (-Wframe-address): New warning option.
14426 * doc/invoke.texi (Wframe-address): Document it.
14427 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14428 Clarify possible effects of calling the functions with non-zero
14429 arguments and mention -Wframe-address.
14430 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14432 2015-08-01 Michael Collison <michael.collison@linaro.org
14433 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14435 * config/arm/arm.md (*arm_smin_cmp): New pattern.
14436 (*arm_umin_cmp): Likewise.
14438 2015-08-01 Caroline Tice <cmtice@google.com>
14441 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14443 (vtbl_find_mangled_name): New function.
14444 (vtbl_register_mangled_name): New function.
14445 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
14446 mangled name in mangled name vectors.
14447 (find_or_create_vtbl_map_node): Ditto.
14448 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
14449 update recursion_depth on function entry; pass it to every recursive
14450 call; automatically exit if depth > 25 (give up looking at that point).
14451 (verify_bb_vtables): Initialize recursion_depth and pass it to
14452 var_is_used_for_virtual_call_p.
14453 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14454 global variable decls.
14455 (vtbl_register_mangled_name): New extern function decl.
14457 2015-08-01 Tom de Vries <tom@codesourcery.com>
14459 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14461 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14463 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14464 operation_no_trapping_overflow. Allow non-overflow operations.
14465 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14468 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
14471 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14473 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14475 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14476 Enable for TARGET_32BIT.
14477 (*if_move_neg): Likewise.
14479 2015-07-31 Nick Clifton <nickc@redhat.com>
14481 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14482 Returns true for __model__.
14483 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14485 2015-07-31 Alan Modra <amodra@gmail.com>
14488 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14489 (rs6000_emit_prologue): Set it.
14490 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14492 2015-07-31 Richard Biener <rguenther@suse.de>
14494 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14495 -> X == (C1 ^ C2) which is already implemented in match.pd.
14496 Remove redundant dispatching to fold_relational_const.
14497 Move unordered self and NaN compares ...
14498 * match.pd: ... as patterns here. Remove some stray captures
14501 2015-07-31 Petr Murzin <petr.murzin@intel.com>
14503 * config/i386/i386.c
14504 (bdesc_special_args): Convert mask type from signed to unsigned for
14506 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14507 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14508 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14509 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14510 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14511 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14512 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14513 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14514 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14515 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14516 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14517 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14518 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14519 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14520 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14521 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14522 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14523 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14524 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14525 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14526 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14527 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14528 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14529 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14530 * config/i386/i386-builtin-types.def
14531 (V16QI_FTYPE_V16SI): Remove.
14532 (V8DF_FTYPE_V8SI): Ditto.
14533 (V8HI_FTYPE_V8DI): Ditto.
14534 (V8SI_FTYPE_V8DI): Ditto.
14535 (V8SF_FTYPE_V8DF): Ditto.
14536 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14537 (V16HI_FTYPE_V16SI): Ditto.
14538 (V16SF_FTYPE_V16HI): Ditto.
14539 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14540 (V16SF_FTYPE_V16SI): Ditto.
14541 (V4DI_FTYPE_V4DI): Ditto.
14542 (V16SI_FTYPE_V16SF): Ditto.
14543 (V16SF_FTYPE_FLOAT): Ditto.
14544 (V8DF_FTYPE_DOUBLE): Ditto.
14545 (V8DI_FTYPE_INT64): Ditto.
14546 (V8DI_FTYPE_V4DI): Ditto.
14547 (V16QI_FTYPE_V8DI): Ditto.
14548 (UINT_FTYPE_V4SF): Ditto.
14549 (UINT64_FTYPE_V4SF): Ditto.
14550 (UINT_FTYPE_V2DF): Ditto.
14551 (UINT64_FTYPE_V2DF): Ditto.
14552 (V16SI_FTYPE_V16SI): Ditto.
14553 (V8DI_FTYPE_V8DI): Ditto.
14554 (V16SI_FTYPE_PV4SI): Ditto.
14555 (V16SF_FTYPE_PV4SF): Ditto.
14556 (V8DI_FTYPE_PV2DI): Ditto.
14557 (V8DF_FTYPE_PV2DF): Ditto.
14558 (V4DI_FTYPE_PV2DI): Ditto.
14559 (V4DF_FTYPE_PV2DF): Ditto.
14560 (V16SI_FTYPE_PV2SI): Ditto.
14561 (V16SF_FTYPE_PV2SF): Ditto.
14562 (V8DI_FTYPE_PV4DI): Ditto.
14563 (V8DF_FTYPE_PV4DF): Ditto.
14564 (V8SF_FTYPE_FLOAT): Ditto.
14565 (V4SF_FTYPE_FLOAT): Ditto.
14566 (V4DF_FTYPE_DOUBLE): Ditto.
14567 (V8SF_FTYPE_PV4SF): Ditto.
14568 (V8SI_FTYPE_PV4SI): Ditto.
14569 (V4SI_FTYPE_PV2SI): Ditto.
14570 (V8SF_FTYPE_PV2SF): Ditto.
14571 (V8SI_FTYPE_PV2SI): Ditto.
14572 (V16SF_FTYPE_PV8SF): Ditto.
14573 (V16SI_FTYPE_PV8SI): Ditto.
14574 (V8DI_FTYPE_V8SF): Ditto.
14575 (V4DI_FTYPE_V4SF): Ditto.
14576 (V2DI_FTYPE_V4SF): Ditto.
14577 (V64QI_FTYPE_QI): Ditto.
14578 (V32HI_FTYPE_HI): Ditto.
14579 (V8UHI_FTYPE_V8UHI): Ditto.
14580 (V16UHI_FTYPE_V16UHI): Ditto.
14581 (V32UHI_FTYPE_V32UHI): Ditto.
14582 (V2UDI_FTYPE_V2UDI): Ditto.
14583 (V4UDI_FTYPE_V4UDI): Ditto.
14584 (V8UDI_FTYPE_V8UDI): Ditto.
14585 (V4USI_FTYPE_V4USI): Ditto.
14586 (V8USI_FTYPE_V8USI): Ditto.
14587 (V16USI_FTYPE_V16USI): Ditto.
14588 (V2DF_FTYPE_V2DF_UINT64): Ditto.
14589 (V2DI_FTYPE_V2DF_V2DF): Ditto.
14590 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14591 (V8DF_FTYPE_V8DF_V8DI): Ditto.
14592 (V4SF_FTYPE_V4SF_UINT64): Ditto.
14593 (V4SI_FTYPE_V4SF_V4SF): Ditto.
14594 (V16SF_FTYPE_V16SF_V16SI): Ditto.
14595 (V64QI_FTYPE_V32HI_V32HI): Ditto.
14596 (V32HI_FTYPE_V16SI_V16SI): Ditto.
14597 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14598 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14599 (V32HI_FTYPE_V64QI_V64QI): Ditto.
14600 (V32HI_FTYPE_V32HI_V32HI): Ditto.
14601 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14602 (V16SI_FTYPE_V16SI_V4SI): Ditto.
14603 (V16SI_FTYPE_V16SI_V16SI): Ditto.
14604 (V16SI_FTYPE_V32HI_V32HI): Ditto.
14605 (V16SI_FTYPE_V16SI_SI): Ditto.
14606 (V8DI_FTYPE_V8DI_V8DI): Ditto.
14607 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14608 (V8DI_FTYPE_V16SI_V16SI): Ditto.
14609 (V8DI_FTYPE_V8DI_V2DI): Ditto.
14610 (QI_FTYPE_QI): Ditto.
14611 (SI_FTYPE_SI): Ditto.
14612 (DI_FTYPE_DI): Ditto.
14613 (QI_FTYPE_QI_QI): Ditto.
14614 (QI_FTYPE_QI_INT): Ditto.
14615 (HI_FTYPE_HI_INT): Ditto.
14616 (SI_FTYPE_SI_INT): Ditto.
14617 (DI_FTYPE_DI_INT): Ditto.
14618 (HI_FTYPE_V16QI_V16QI): Ditto.
14619 (SI_FTYPE_V32QI_V32QI): Ditto.
14620 (DI_FTYPE_V64QI_V64QI): Ditto.
14621 (QI_FTYPE_V8HI_V8HI): Ditto.
14622 (HI_FTYPE_V16HI_V16HI): Ditto.
14623 (SI_FTYPE_V32HI_V32HI): Ditto.
14624 (QI_FTYPE_V4SI_V4SI): Ditto.
14625 (QI_FTYPE_V8SI_V8SI): Ditto.
14626 (QI_FTYPE_V2DI_V2DI): Ditto.
14627 (QI_FTYPE_V4DI_V4DI): Ditto.
14628 (QI_FTYPE_V8DI_V8DI): Ditto.
14629 (HI_FTYPE_V16SI_V16SI): Ditto.
14630 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14631 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14632 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14633 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14634 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14635 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14636 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14637 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14638 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14639 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14640 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14641 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14642 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14643 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14644 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14645 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14646 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14647 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14648 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14649 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14650 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14651 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14652 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14653 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14654 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14655 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14656 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14657 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14658 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14659 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14660 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14661 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14662 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14663 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14664 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14665 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14666 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14667 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14668 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14669 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14670 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14671 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14672 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14673 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14674 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14675 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14676 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14677 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14678 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14679 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14680 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14681 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14682 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14683 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14684 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14685 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14686 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14687 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14688 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14689 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14690 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14691 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14692 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14693 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14694 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14695 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14696 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14697 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14698 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14699 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14700 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14701 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14702 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14703 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14704 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14705 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14706 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14707 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14708 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14709 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14710 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14711 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14712 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14713 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14714 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14715 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14716 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14717 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14718 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14719 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14720 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14721 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14722 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14723 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14724 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14725 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14726 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14727 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14728 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14729 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14730 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14731 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14732 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14733 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14734 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14735 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14736 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14737 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14738 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14739 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14740 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14741 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14742 (HI_FTYPE_HI): Ditto.
14743 (HI_FTYPE_V16QI): Ditto.
14744 (SI_FTYPE_V32QI): Ditto.
14745 (DI_FTYPE_V64QI): Ditto.
14746 (QI_FTYPE_V8HI): Ditto.
14747 (HI_FTYPE_V16HI): Ditto.
14748 (SI_FTYPE_V32HI): Ditto.
14749 (QI_FTYPE_V4SI): Ditto.
14750 (QI_FTYPE_V8SI): Ditto.
14751 (HI_FTYPE_V16SI): Ditto.
14752 (QI_FTYPE_V2DI): Ditto.
14753 (QI_FTYPE_V4DI): Ditto.
14754 (QI_FTYPE_V8DI): Ditto.
14755 (V16QI_FTYPE_HI): Ditto.
14756 (V32QI_FTYPE_SI): Ditto.
14757 (V64QI_FTYPE_DI): Ditto.
14758 (V8HI_FTYPE_QI): Ditto.
14759 (V16HI_FTYPE_HI): Ditto.
14760 (V32HI_FTYPE_SI): Ditto.
14761 (V4SI_FTYPE_QI): Ditto.
14762 (V4SI_FTYPE_HI): Ditto.
14763 (V8SI_FTYPE_QI): Ditto.
14764 (V8SI_FTYPE_HI): Ditto.
14765 (V2DI_FTYPE_QI): Ditto.
14766 (V4DI_FTYPE_QI): Ditto.
14767 (HI_FTYPE_HI_HI): Ditto.
14768 (SI_FTYPE_SI_SI): Ditto.
14769 (DI_FTYPE_DI_DI): Ditto.
14770 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14771 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14772 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14773 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14774 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14775 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14776 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14777 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14778 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14779 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14780 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14781 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14782 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14783 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14784 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14785 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14786 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14787 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14788 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14789 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14790 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14791 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14792 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14793 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14794 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14795 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14796 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14797 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14798 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14799 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14800 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14801 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14802 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14803 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14804 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14805 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14806 (V16SI_FTYPE_HI): Ditto.
14807 (V8DI_FTYPE_QI): Ditto.
14808 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14809 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14810 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14811 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14812 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14813 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14814 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14815 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14816 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14817 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14818 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14819 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14820 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14821 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14822 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14823 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14824 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14825 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14826 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14827 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14828 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14829 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14830 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14831 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14832 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14833 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14834 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14835 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14836 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14837 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14838 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14839 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14840 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14841 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14842 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14843 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14844 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14845 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14846 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14847 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14848 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14849 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14850 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14851 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14852 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14853 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14854 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14855 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14856 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14857 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14858 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14859 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14860 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14861 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14862 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14863 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14864 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14865 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14866 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14867 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14868 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14869 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14870 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14871 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14872 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14873 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14874 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14875 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14876 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14877 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14878 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14879 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14880 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14881 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14882 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14883 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14884 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14885 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14886 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14887 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14888 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14889 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14890 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14891 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14892 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14893 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14894 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14895 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14896 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14897 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14898 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14899 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14900 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14901 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14902 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14903 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14904 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14905 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14906 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14907 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14908 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14909 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14910 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14911 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14912 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14913 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14914 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14915 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14916 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14917 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14918 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14919 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14920 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14921 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14922 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14923 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14924 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14925 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14926 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14927 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14928 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14929 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14930 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14931 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14932 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14933 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14934 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14935 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14936 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14937 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14938 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14939 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14940 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14941 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14942 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14943 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14944 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14945 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14946 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14947 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14948 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14949 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14950 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14951 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14952 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14953 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14954 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14955 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14956 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14957 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14958 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14959 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14960 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14961 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14962 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14963 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14964 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14965 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14966 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14967 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14968 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14969 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14970 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14971 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14972 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14973 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14974 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14975 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14976 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14977 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14978 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14979 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14980 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14981 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14982 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14983 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14984 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14985 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14986 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14987 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14988 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14989 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14990 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14991 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14992 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14993 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14994 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14995 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14996 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14997 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14998 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14999 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
15000 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
15001 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
15002 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
15003 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
15004 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
15005 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
15006 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
15007 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
15008 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
15009 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
15010 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
15011 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
15012 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
15013 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
15014 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
15015 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
15016 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
15017 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
15018 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
15019 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
15020 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
15021 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
15022 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
15023 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
15024 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
15025 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
15026 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
15027 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
15028 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
15029 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
15030 (QI_FTYPE_V8DF_INT_QI): Ditto.
15031 (QI_FTYPE_V4DF_INT_QI): Ditto.
15032 (QI_FTYPE_V2DF_INT_QI): Ditto.
15033 (HI_FTYPE_V16SF_INT_HI): Ditto.
15034 (QI_FTYPE_V8SF_INT_QI): Ditto.
15035 (QI_FTYPE_V4SF_INT_QI): Ditto.
15036 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
15038 2015-07-31 Richard Biener <rguenther@suse.de>
15040 * gimple-fold.c (fold_gimple_assign): Remove folding of
15043 2015-07-31 Tom de Vries <tom@codesourcery.com>
15045 PR tree-optimization/66846
15046 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
15047 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
15048 (expand_omp_target) [ENABLE_CHECKING]: Same.
15049 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
15050 cfun if !LOOPS_NEED_FIXUP.
15051 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
15052 that omp_for already has its own loop struct.
15053 * tree-parloops.c (create_phi_for_local_result)
15054 (create_call_for_reduction): Handle simple latch bb.
15055 (create_parallel_loop): Add simple latch bb to preserve
15056 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
15057 (gen_parallel_loop): Remove call to cancel_loop_tree.
15058 (parallelize_loops): Skip loops that are inner loops of parallelized
15060 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
15061 verify_loop_structure.
15063 2015-07-30 Anatoly Sokolov <aesok@post.ru>
15065 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
15066 * config/v850/v850.md (RV_REGNUM): New constants.
15067 * config/v850/v850.c (v850_libcall_value): New functions.
15068 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
15069 (TARGET_LIBCALL_VALUE): Define.
15071 2015-07-30 Anatoly Sokolov <aesok@post.ru>
15073 * rtl.h (lowpart_subreg): Move in file.
15074 * loop-iv.c (lowpart_subreg): Move to...
15075 * simplify-rtx.c (lowpart_subreg): ...here.
15076 (simplify_binary_operation_1): Use lowpart_subreg instead of
15077 simplify_gen_subreg.
15078 * expr.c (expand_expr_real_2): Ditto.
15079 * emit-rtl.c (gen_lowpart_common): Ditto.
15080 * combine.c (gen_lowpart_for_combine): Ditto.
15081 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
15082 expand_debug_source_expr): Ditto.
15084 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
15086 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
15087 (expand_builtin_atomic_clear): Remove support for atomic_clear
15090 2015-07-30 Richard Biener <rguenther@suse.de>
15092 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
15093 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
15094 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
15095 redundant operand canonicalization.
15097 2015-07-30 David Sherwood <david.sherwood@arm.com>
15099 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
15100 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
15101 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
15102 * config/arm/arm.c (neon_valid_immediate): Likewise.
15103 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
15104 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
15105 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
15106 (expand_vec_perm_vpshufb2_vpermq): Likewise.
15107 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
15108 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
15109 * config/i386/sse.md
15110 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
15111 (*ssse3_palignr<mode>_perm): Likewise.
15112 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
15113 * config/spu/spu.c (arith_immediate_p): Likewise.
15114 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15115 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
15117 2015-07-30 Richard Biener <rguenther@suse.de>
15119 * genmatch.c (decision_tree::gen_gimple): Merge with ...
15120 (decision_tree::gen_generic): ... this into ...
15121 (decision_tree::gen): ... this.
15122 (main): Adjust callers.
15124 2015-07-30 Richard Biener <rguenther@suse.de>
15126 * genmatch.c (verbose): New global.
15127 (warning_at): Add overload with source_location.
15128 (capture_info::capture_info): Add bool whether generating gimple
15129 or generic. Add gimple member.
15130 (capture_info::cinfo): Add capture member.
15131 (capture_info::walk_match): Record capture. Warn on
15132 non-captured leafs.
15133 (capture_info::walk_c_expr): Add more fragments captures cannot
15134 escape through. Warn on escaped captures.
15135 (dt_simplify::gen_1): Warn on operands we force to have no
15137 (main): Initialize verbose.
15138 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
15140 2015-07-30 Richard Biener <rguenther@suse.de>
15142 PR middle-end/67053
15143 * match.pd: Allow both operands to independently have conversion
15144 when simplifying compares of addresses.
15146 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15150 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
15151 around those cases that need one.
15153 2015-07-29 Aditya Kumar <hiraditya@msn.com>
15155 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15157 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
15159 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15160 New. Copied from config/i386/gnu-user.h.
15161 (ASM_COMMENT_START): Likewise.
15162 (DBX_REGISTER_NUMBER): Likewise.
15164 2015-07-29 Richard Biener <rguenther@suse.de>
15166 * gimple-fold.c (fold_gimple_cond): Remove.
15167 (fold_stmt_1): Do not call it.
15169 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
15171 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15172 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15174 * config/aarch64/aarch64-modes.def: Add HFmode.
15176 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15177 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15179 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15180 aarch64_promoted_type): New.
15182 (aarch64_float_const_representable_p): Disable HFmode.
15183 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15184 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15185 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15187 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15188 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15190 * config/aarch64/iterators.md (GPF_F16): New.
15192 2015-07-29 Richard Biener <rguenther@suse.de>
15194 * match.pd: Merge address comparison patterns and make them
15195 handle some more cases.
15197 2015-07-29 Richard Biener <rguenther@suse.de>
15199 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15200 (parser::parse_capture): Add bool argument on whether to reject
15202 (parser::parse_expr): Adjust.
15203 (parser::parse_op): Likewise.
15204 (parser::parse_pattern): Likewise.
15206 2015-07-29 Richard Biener <rguenther@suse.de>
15208 * gimple-fold.c (has_use_on_stmt): New function.
15209 (replace_stmt_with_simplification): Use it to allow
15210 abnormals originally referenced in the stmt.
15211 (fold_stmt_1): Canonicalize operand order.
15213 2015-07-28 David Sherwood <david.sherwood@arm.com>
15215 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15216 GET_MODE_INNER unconditionally.
15217 * config/spu/spu.c (arith_immediate_p): Likewise.
15218 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15219 * expmed.c (synth_mult): Remove check for VOIDmode result from
15221 (expand_mult_const): Likewise.
15222 * fold-const.c (fold_binary_loc): Replace call to element_precision
15223 with call to GET_MODE_PRECISION.
15224 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15226 (emit_mode_inner): Likewise.
15227 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15229 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15230 (GET_MODE_UNIT_PRECISION): Likewise.
15231 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15232 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15233 * stor-layout.c (bitwise_type_for_mode): Update assert.
15234 (element_precision): Remove.
15236 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15238 * target-insns.def (reload_load_address): New targetm instruction
15240 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15242 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15244 * target-insns.def (atomic_test_and_set): New targetm instruction
15246 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15247 HAVE_*/gen_* interface.
15249 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15251 * target-insns.def (can_extend, ptr_extend): New targetm instruction
15253 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15254 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15255 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15256 * rtlanal.c (nonzero_bits1): Likewise.
15257 (num_sign_bit_copies1): Likewise.
15259 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15261 * target-insns.def (eh_return): New targetm instruction pattern.
15262 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15264 * function.c (thread_prologue_and_epilogue_insns): Remove
15265 preprocessor condition.
15267 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15269 * target-insns.def (indirect_jump): New targetm instruction pattern.
15270 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15273 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15275 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15276 instead of nonimmediate_operand. Remove C condiition.
15278 2015-07-28 Richard Biener <rguenther@suse.de>
15280 * match.pd: Add more simplification of address comparisons.
15282 2015-07-28 Richard Biener <rguenther@suse.de>
15284 * match.pd: Re-order two cases in comparison with max/min
15285 value simplification to make it apply for bools.
15287 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15289 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15290 Handle simple SIGN_EXTEND or ZERO_EXTEND.
15291 (aarch64_rtx_costs): Properly strip extend or extract before
15292 passing down to rtx costs again.
15294 2015-07-28 Nick Clifton <nickc@redhat.com>
15296 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15297 Optimizes the case where -mes0 is active and a constant symbolic
15299 * config/rl78/rl78-protos.h: Prototype the new function.
15300 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15302 2015-07-28 Tom de Vries <tom@codesourcery.com>
15304 * tree-parloops.c (reduc_stmt_res): New function.
15305 (initialize_reductions, add_field_for_reduction)
15306 (create_phi_for_local_result, create_loads_for_reductions)
15307 (create_stores_for_reduction, build_new_reduction): Handle case that
15308 reduc_stmt is a phi.
15309 (gather_scalar_reductions): Allow double_reduc reductions.
15311 2015-07-28 Richard Biener <rguenther@suse.de>
15313 * fold-const.c (fold_comparison): Remove equality folding
15314 of decl addresses ...
15315 * match.pd: ... here and merge with existing pattern.
15317 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15319 PR tree-optimization/66828
15320 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15321 from int64_t to uint64_t.
15323 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
15325 * opts-common.c (read_cmdline_option): List DriverOnly enum values
15326 as valid only in the error message of the driver, not in the
15327 messages of the language compilers.
15329 2015-07-27 Tom de Vries <tom@codesourcery.com>
15331 * tree-parloops.c (gather_scalar_reductions): Simplify function
15334 2015-07-27 Marek Polacek <polacek@redhat.com>
15336 * ipa-devirt.c (types_same_for_odr): Fix typo.
15338 2015-07-27 Jason Merrill <jason@redhat.com>
15341 * dwarf2out.c (gen_inlined_subroutine_die): Check
15342 cgraph_function_possibly_inlined_p.
15344 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15346 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15347 Place integer variant first.
15348 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15350 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15353 * config/arm/arm-builtins.c (enum arm_builtins):
15354 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15355 (ARM_BUILTIN_NEON_BASE): Rename macro to....
15356 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15357 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15358 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15360 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15363 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15364 Add qualifier_lane_index.
15365 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15366 (arm_getlane_qualifiers): Use qualifier_lane_index.
15367 (arm_lanemac_qualifiers): Rename to...
15368 (arm_mac_n_qualifiers): ...this.
15369 (LANEMAC_QUALIFIERS): Rename to...
15370 (MAC_N_QUALIFIERS): ...this.
15371 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15372 (arm_setlane_qualifiers): Use qualifier_lane_index.
15373 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15374 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15375 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15376 (arm_expand_neon_builtin): Handle qualifier_lane_index.
15378 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15379 * config/arm/arm.c (bounds_check): Likewise, improve error message.
15380 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15381 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15382 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15383 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15384 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15385 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15386 qualifiers to TERNOP_IMM.
15387 (vdup_lane): Change qualifiers to GETLANE.
15388 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15389 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15390 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15391 vqdmlsl_n): Change qualifiers to MAC_N.
15393 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15394 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15395 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15396 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15397 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15398 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15399 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15400 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15401 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15402 Remove call to neon_lane_bounds.
15404 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15406 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15407 Place integer variant first.
15409 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
15411 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15412 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15413 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15414 for armv6kz targets.
15415 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15416 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15417 (FL_FOR_ARCH6ZK): Remove.
15418 (FL_FOR_ARCH6KZ): New.
15419 (arm_arch6zk): New declaration.
15420 * config/arm/arm-tables.opt: Regenerate.
15421 * config/arm/arm.c (arm_arch6kz): New.
15422 (arm_option_override): Set arm_arch6kz.
15423 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15424 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15425 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15427 2015-07-27 Marek Polacek <polacek@redhat.com>
15431 * doc/invoke.texi: Document -Wtautological-compare.
15433 2015-07-27 Richard Biener <rguenther@suse.de>
15435 * genmatch.c (decision_tree::gen_gimple): Split out large
15436 subtrees into separate functions.
15437 (decision_tree::gen_generic): Likewise.
15439 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
15441 * config/alpha/alpha.c: Use SUBREG_P predicate.
15442 * config/alpha/predicates.md: Ditto.
15444 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
15446 * config.host (s390*-*-*): Include driver-native.c only when
15447 building with s390* as host *and* target.
15449 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
15452 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15453 T bit register modified_between_p check.
15455 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15457 * config/i386/i386.c: Use SUBREG_P predicate.
15458 * config/i386/i386.md: Ditto.
15459 * config/i386/sse.md: Ditto.
15460 * config/i386/predicates.md: Ditto.
15462 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15465 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15466 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15468 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15470 * Makefile.in: Remove use of TREEBROWSER.
15471 * config.in: Regenerated.
15472 * configure: Regenerated.
15473 * configure.ac: Remove definition of TREEBROWSER.
15474 * tree-browser.c: Removed.
15475 * tree-browser.def: Removed.
15477 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15479 * graphite-scop-detection.c: Include gimple-pretty-print.h.
15480 (stmt_simple_for_scop_p): Print when a stmt is not handled in
15482 (scopdet_basic_block_info): Print when a loop or bb cannot be
15483 represented in Graphite.
15485 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15488 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15489 execution guard when min_size is less than size_needed.
15491 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15493 * doc/install.texi: Document supported versions of ISL.
15495 2015-07-25 Jeff Law <law@redhat.com>
15499 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15500 unable to find X NE 0 in the tables, return X as the simplified
15502 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15503 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15504 to VISISTED_BBS. */
15505 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15506 after removing the control flow statement and unnecessary edges.
15508 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
15511 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15513 PR rtl-optimization/64164
15514 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15515 * tree-ssa-copyrename.c: Removed.
15516 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15517 -ftree-coalesce-vars.
15518 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15519 * common.opt (ftree-copyrename): Ignore.
15520 (ftree-coalesce-inlined-vars): Likewise.
15521 * doc/invoke.texi: Remove the ignored options above.
15522 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15523 * tree-ssa-coalesce.h: ... here.
15524 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15525 headers required by it.
15526 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15527 across variables when flag_tree_coalesce_vars. Check register
15528 use and promoted modes to allow coalescing. Moved to
15529 tree-ssa-coalesce.c.
15530 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15531 with its member functions to tree-ssa-coalesce.c.
15532 (var_map_base_init): Likewise. Renamed to
15533 compute_samebase_partition_bases.
15534 (partition_view_normal): Drop want_bases parameter.
15535 (partition_view_bitmap): Likewise.
15536 * tree-ssa-live.h: Adjust declarations.
15537 * tree-ssa-coalesce.c: Include explow.h.
15538 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15539 default defs at the entry point.
15540 (dump_part_var_map): New.
15541 (compute_optimized_partition_bases): New, called by...
15542 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15543 of compute_samebase_partition_bases. Adjust.
15544 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15545 * cfgexpand.c (leader_merge): New.
15546 (get_rtl_for_parm_ssa_default_def): New.
15547 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15548 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15549 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15550 redundant MEM attr setting.
15551 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15553 (expand_one_stack_var): ... this. New wrapper to check and
15554 skip already expanded SSA partitions.
15555 (record_alignment_for_reg_var): New, factored out of...
15556 (expand_one_var): ... this.
15557 (expand_one_ssa_partition): New.
15558 (adjust_one_expanded_partition_var): New.
15559 (expand_one_register_var): Check and skip already expanded SSA
15561 (expand_used_vars): Don't create DECLs for anonymous SSA
15562 names. Expand all SSA partitions, then adjust all SSA names.
15563 (pass::execute): Replace the loops that set
15564 SA.partition_to_pseudo from partition leaders and cleared
15565 DECL_RTL for multi-location variables, and that which used to
15566 rename vars and set attrs, with one that clears DECL_RTL and
15567 checks that PARMs and RESULTs default_defs match DECL_RTL.
15568 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15569 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15570 * explow.c (promote_ssa_mode): New.
15571 * explow.h (promote_ssa_mode): Declare.
15572 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15573 * function.c: Include cfgexpand.h.
15574 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15575 (use_register_for_parm_decl): Wrapper for the above to
15576 special-case the result_ptr.
15577 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15578 (split_complex_args): Take assign_parm_data_all argument.
15579 Pass it to rtl_for_parm. Set up rtl and context for split
15581 (assign_parms_augmented_arg_list): Adjust.
15582 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15583 multiple locations. Recognize split complex args.
15584 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15585 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15586 (assign_parm_setup_block): Prefer SSA-assigned location.
15587 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15588 if stack_parm is NULL.
15589 (assign_parm_setup_stack): Prefer SSA-assigned location.
15590 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15591 rtl before testing for pointer bounds. Special-case result_ptr.
15592 (expand_function_start): Maybe reset DECL_RTL of result.
15593 Prefer SSA-assigned location for result and static chain.
15594 Factor out DECL_RESULT and SET_DECL_RTL.
15595 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15596 anonymous SSA names. Use promote_ssa_mode.
15597 (get_temp_reg): Likewise.
15598 (remove_ssa_form): Adjust.
15599 * stor-layout.c (layout_decl): Don't set mem attributes of
15601 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15602 and get its reg_usage for reg invalidation.
15603 (compute_bb_dataflow): Pass it insn.
15604 (emit_notes_in_bb): Likewise.
15606 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15608 * config/i386/i386.c (ix86_va_start): Remove
15609 unneeded !TARGET_64BIT check.
15610 (ix86_gimplify_va_arg): Ditto.
15612 2015-07-24 Tom de Vries <tom@codesourcery.com>
15614 * graphite-sese-to-poly.c (build_poly_scop): Always call
15615 rewrite_commutative_reductions_out_of_ssa.
15617 2015-07-24 Tom de Vries <tom@codesourcery.com>
15619 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15620 flag_associative_math to FLOAT_TYPE_P. Honour
15621 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15623 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15626 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15627 and "%qD" in warning_at instead of "%q+D" in warning.
15629 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15631 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15632 (ix86_function_abi): Cleanup.
15634 2015-07-24 Michael Darling <darlingm@gmail.com>
15637 * acinclude.m4: Reflects renaming of configure.in to configure.ac
15638 * configure: Likewise
15639 * configure.ac: Likewise
15640 * doc/install.texi: Likewise
15641 * doc/tm.texi: Likewise
15642 * doc/tm.texi.in: Likewise
15644 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15646 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15647 manually swapping values.
15648 * cse.c (fold_rtx): Likewise.
15649 * lra-eliminations.c (form_sum): Likewise.
15651 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15654 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15655 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15656 (*jcc_1, *jcc_2, jump, simple_return_internal)
15657 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15658 Set length_nobnd attribute instead of length attribute.
15659 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15660 (length_nobnd): Remove attribute.
15661 (length): Remove length_nobnd processing.
15663 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
15665 * gimplify.c (omp_default_clause): New function. Reorganize flow
15666 for clarity. Broken out of ...
15667 (omp_notice_variable): ... here.
15669 2015-07-24 Gary Funck <gary@intrepid.com>
15671 PR middle-end/66984
15672 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15673 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15675 2015-07-24 Tom de Vries <tom@codesourcery.com>
15677 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15678 exit-first loop transform.
15680 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15683 * tree-cfg.c (struct replace_decls_d): New struct.
15684 (replace_block_vars_by_duplicates_1): New function.
15685 (replace_block_vars_by_duplicates): Use it to replace the decls
15686 in the value exprs by duplicates.
15688 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15690 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15691 -shared, -symbolic, -rdynamic.
15693 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15696 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15697 -dynamic-linker within %{!static %{!shared, and -rdynamic within
15700 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15703 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15704 edge summary is available.
15706 2015-07-24 Richard Biener <rguenther@suse.de>
15708 * genmatch.c (struct dt_node): Add statistic fields.
15709 (dt_node::analyze): New method.
15710 (decision_tree::gen_gimple): Call analyze on the root node
15711 and print statistics to stderr.
15712 (decision_tree::gen_generic): Likewise.
15714 2015-07-24 Richard Biener <rguenther@suse.de>
15716 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15717 against the highest or lowest possible integer ...
15718 * match.pd: ... as patterns here.
15720 2015-07-24 Richard Biener <rguenther@suse.de>
15722 * genmatch.c (struct capture_info): Add same_as field.
15723 (capture_info::capture_info): Initialize same_as.
15724 (capture_info::walk_match): Compute same_as.
15725 (capture_info::walk_result): Compute stuff for the leader.
15726 (capture_info::walk_c_expr): Likewise.
15727 (dt_simplify::gen_1): Only look at leaders when deciding
15728 to force no side-effects or emit side-effects of omitted operands.
15730 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15732 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15733 reg note to the GPR -> FPR save instructions.
15735 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15737 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15739 (s390_expand_insv): Don't generate risbg pattern for constant zero
15741 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15742 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
15745 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15747 * config/s390/s390.c (s390_reorg): Clean up handling of processors
15750 (s390_issue_rate): Likewise.
15751 (s390_sched_reorder): Likewise.
15752 (s390_sched_variable_issue): Likewise.
15753 (s390_loop_unroll_adjust): Likewise.
15754 (s390_option_override): Likewise.
15756 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15758 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15759 processor capabilities with -march=native.
15760 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15761 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
15762 (S390_TARGET_BITS_STRING): Macro to simplify specs.
15764 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15766 * config/s390/s390.c (s390_issue_rate): Handle
15767 PROCESSOR_2094_Z9_EC.
15768 (s390_option_override): Likewise.
15769 (s390_adjust_priority): Likewise.
15771 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15773 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15774 when cross compiling.
15776 2015-07-24 Richard Biener <rguenther@suse.de>
15778 * fold-const.c (maybe_canonicalize_comparison_1): Move
15779 A code CST canonicalization ...
15780 * match.pd: ... to a pattern here.
15782 2015-07-24 Jiong Wang <jiong.wang@arm.com>
15785 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15787 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15788 (HONOR_REG_ALLOC_ORDER): Define.
15790 2015-07-24 Richard Biener <rguenther@suse.de>
15792 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15793 * fold-const.c (fold_comparison): Move parameter does not
15794 alias &local simplification ...
15795 * match.pd: ... as a pattern here.
15797 2015-07-24 Richard Biener <rguenther@suse.de>
15799 * gimple-fold.c (replace_stmt_with_simplification): Special-case
15800 valueizing call operands.
15801 * gimple-match-head.c (maybe_push_res_to_seq): Take
15802 number of call arguments from ops array.
15803 (do_valueize): New function.
15804 (gimple_simplify): Return true if valueization changed
15805 any operand even if the result didn't simplify further.
15807 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15809 PR middle-end/25530
15810 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15812 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15814 PR middle-end/25529
15815 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15817 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15819 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15822 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15824 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15827 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
15829 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15830 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
15832 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15833 ms_va_list_type_node initialization.
15835 2015-07-23 Jeff Law <law@redhat.com>
15838 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15839 unable to find X NE 0 in the tables, return X as the simplified
15841 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15842 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15843 to VISISTED_BBS. */
15844 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15845 after removing the control flow statement and unnecessary edges.
15847 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15849 * tree-pass.h (get_current_pass_name): Removed.
15851 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15853 PR rtl-optimization/64164
15854 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15855 * tree-ssa-copyrename.c: Removed.
15856 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15857 -ftree-coalesce-vars.
15858 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15859 * common.opt (ftree-copyrename): Ignore.
15860 (ftree-coalesce-inlined-vars): Likewise.
15861 * doc/invoke.texi: Remove the ignored options above.
15862 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15863 * tree-ssa-coalesce.h: ... here.
15864 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15865 headers required by it.
15866 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15867 across variables when flag_tree_coalesce_vars. Check register
15868 use and promoted modes to allow coalescing. Moved to
15869 tree-ssa-coalesce.c.
15870 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15871 with its member functions to tree-ssa-coalesce.c.
15872 (var_map_base_init): Likewise. Renamed to
15873 compute_samebase_partition_bases.
15874 (partition_view_normal): Drop want_bases parameter.
15875 (partition_view_bitmap): Likewise.
15876 * tree-ssa-live.h: Adjust declarations.
15877 * tree-ssa-coalesce.c: Include explow.h.
15878 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15879 default defs at the entry point.
15880 (dump_part_var_map): New.
15881 (compute_optimized_partition_bases): New, called by...
15882 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15883 of compute_samebase_partition_bases. Adjust.
15884 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15885 * cfgexpand.c (leader_merge): New.
15886 (get_rtl_for_parm_ssa_default_def): New.
15887 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15888 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15889 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15890 redundant MEM attr setting.
15891 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15893 (expand_one_stack_var): ... this. New wrapper to check and
15894 skip already expanded SSA partitions.
15895 (record_alignment_for_reg_var): New, factored out of...
15896 (expand_one_var): ... this.
15897 (expand_one_ssa_partition): New.
15898 (adjust_one_expanded_partition_var): New.
15899 (expand_one_register_var): Check and skip already expanded SSA
15901 (expand_used_vars): Don't create DECLs for anonymous SSA
15902 names. Expand all SSA partitions, then adjust all SSA names.
15903 (pass::execute): Replace the loops that set
15904 SA.partition_to_pseudo from partition leaders and cleared
15905 DECL_RTL for multi-location variables, and that which used to
15906 rename vars and set attrs, with one that clears DECL_RTL and
15907 checks that PARMs and RESULTs default_defs match DECL_RTL.
15908 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15909 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15910 * explow.c (promote_ssa_mode): New.
15911 * explow.h (promote_ssa_mode): Declare.
15912 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15913 * function.c: Include cfgexpand.h.
15914 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15915 (use_register_for_parm_decl): Wrapper for the above to
15916 special-case the result_ptr.
15917 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15918 (split_complex_args): Take assign_parm_data_all argument.
15919 Pass it to rtl_for_parm. Set up rtl and context for split
15921 (assign_parms_augmented_arg_list): Adjust.
15922 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15923 multiple locations. Recognize split complex args.
15924 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15925 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15926 (assign_parm_setup_block): Prefer SSA-assigned location.
15927 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15928 if stack_parm is NULL.
15929 (assign_parm_setup_stack): Prefer SSA-assigned location.
15930 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15931 rtl before testing for pointer bounds. Special-case result_ptr.
15932 (expand_function_start): Maybe reset DECL_RTL of result.
15933 Prefer SSA-assigned location for result and static chain.
15934 Factor out DECL_RESULT and SET_DECL_RTL.
15935 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15936 anonymous SSA names. Use promote_ssa_mode.
15937 (get_temp_reg): Likewise.
15938 (remove_ssa_form): Adjust.
15939 * stor-layout.c (layout_decl): Don't set mem attributes of
15941 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15942 and get its reg_usage for reg invalidation.
15943 (compute_bb_dataflow): Pass it insn.
15944 (emit_notes_in_bb): Likewise.
15946 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15949 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15951 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15952 (rs6000_emit_2insn_and): Handle dot forms.
15953 * config/rs6000/rs6000.md (and<mode>3): Adjust.
15954 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
15955 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15957 2015-07-23 Richard Biener <rguenther@suse.de>
15959 * generic-match-head.c: Include cgraph.h.
15960 * gimple-match-head.c: Likewise.
15961 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15963 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15964 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
15967 2015-07-23 Richard Biener <rguenther@suse.de>
15969 * gimple-fold.c (fold_gimple_cond): Do not require folding
15970 results to pass valid_gimple_rhs_p.
15971 * tree-cfg.h (fold_cond_expr_cond): Remove.
15972 * tree-cfg.c (fold_cond_expr_cond): Likewise.
15973 (make_edges): Do not call it.
15974 * tree-inline.c (tree_function_versioning): Likewise.
15976 2015-07-23 Tom de Vries <tom@codesourcery.com>
15978 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15979 vect_force_simple_reduction.
15980 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15981 (vect_is_simple_reduction_1): Add and handle
15982 need_wrapping_integral_overflow parameter.
15983 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15984 need_wrapping_integral_overflow parameter.
15985 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15986 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15989 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
15991 PR tree-optimization/66926,66951
15992 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15993 INNER_LOOP and fix up condition for renaming virtual operands.
15995 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15997 * combine.c (try_combine): Use std::swap instead of manually
16000 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
16002 * config/mips/i6400.md: New file.
16003 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
16004 (mips64r6): Likewise.
16006 * config/mips/mips-tables.opt: Regenerate.
16007 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
16008 (mips_issue_rate): Add support for i6400.
16009 (mips_multipass_dfa_lookahead): Likewise.
16010 * config/mips/mips.h (TUNE_I6400): Define.
16011 * config/mips/mips.md: Include i6400.md.
16012 (processor): Add i6400.
16013 * doc/invoke.texi (-march=@var{arch}): Add i6400.
16015 2015-07-23 Richard Biener <rguenther@suse.de>
16017 PR middle-end/66916
16018 * match.pd: Guard widen and sign-change comparison simplification
16021 2015-07-23 Richard Biener <rguenther@suse.de>
16023 PR tree-optimization/66945
16024 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
16025 ::before_dom_children): Force the propagators idea of
16026 non-executable edges to materialize, not what the folder
16029 2015-07-23 Richard Biener <rguenther@suse.de>
16031 * gimple.h (gimple_cond_make_false): Use 0 != 0.
16032 (gimple_cond_make_true): Use 1 != 0.
16034 2015-07-22 DJ Delorie <dj@redhat.com>
16036 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
16039 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
16040 (ashrhi3): Likewise.
16041 (lshrhi3): Likewise.
16042 (movhi): Take advantage of zero-extend to load small constants.
16043 (movpsi): Likewise.
16044 (and<mode>3): Likewise.
16045 (zero_extendqihi2): Likewise.
16046 (zero_extendqisi2): New.
16047 * config/msp430/constraints.md (N,O): New.
16048 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
16050 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
16053 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
16054 to enum feature_priority and feature_list.
16055 (fold_builtin_cpu): Add F_AES to enum processor_features
16056 and isa_names_table.
16058 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
16061 * config/i386/linux-common.h (MPX_SPEC): Use linker option
16062 for 64bit target only.
16064 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
16066 * config/nvptx/nvptx.c: Expand some comments.
16068 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
16070 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
16071 (cortex_a53_advsimd): ...This.
16073 2015-07-22 Richard Biener <rguenther@suse.de>
16075 * genmatch.c (expr::gen_transform): Clarify error message
16076 and display location.
16078 2015-07-22 Richard Biener <rguenther@suse.de>
16080 * genmatch.c (struct operand): Add location member.
16081 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
16083 (struct simplify): Remove match_location and result_location
16085 (elsehwere): Adjust.
16087 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
16089 * config/mips/m5100.md: New file.
16090 * config/mips/mips-cpus.def (m5100, m5101): Define.
16091 * config/mips/mips-tables.opt: Regenerate.
16092 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
16093 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
16094 -march=m5101 to -mips32r5.
16095 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
16096 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
16098 * config/mips/mips.md: Include m5100.md.
16099 (processor): Add m5100.
16100 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
16102 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
16104 * config/mips/mips-cpus.def (interaptiv): Define.
16105 * config/mips/mips-tables.opt: Regenerate.
16106 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
16108 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
16109 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
16111 2015-07-22 Jiong Wang <jiong.wang@arm.com>
16114 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16115 (HONOR_REG_ALLOC_ORDER): Define.
16117 2015-07-22 Richard Biener <rguenther@suse.de>
16119 PR tree-optimization/66952
16120 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
16121 blocks we end up executing unconditionally reset all SSA
16122 info such as range and alignment.
16123 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
16124 * tree-ssanames.c (reset_flow_sensitive_info): New function.
16126 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
16128 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
16131 2015-07-22 Richard Biener <rguenther@suse.de>
16133 * genmatch.c (parser::parse_result): Properly handle
16134 match with result operands and conditions.
16136 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
16139 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16140 Add qualifier_struct_load_store_lane_index.
16141 (aarch64_types_loadstruct_lane_qualifiers): Use
16142 qualifier_struct_load_store_lane_index for lane index argument for
16144 (aarch64_types_storestruct_lane_qualifiers): Ditto.
16145 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16146 (aarch64_simd_expand_args): Add new argument describing mode of
16147 builtin. Check lane bounds for arguments with
16148 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16149 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
16150 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16151 (aarch64_simd_expand_builtin): Handle arguments with
16152 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
16153 aarch64_simd_expand_args.
16154 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16155 vst[234]_lane with BUILTIN_VALLDIF.
16156 * config/aarch64/aarch64-simd.md:
16157 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16158 endianness reversal on lane index.
16159 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16160 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16161 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16162 (vec_store_lanesci_lane<mode>): Ditto.
16163 (vec_store_lanesxi_lane<mode>): Ditto.
16164 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16165 reversal of lane index.
16166 (aarch64_ld3_lane<mode>): Ditto.
16167 (aarch64_ld4_lane<mode>): Ditto.
16168 (aarch64_st2_lane<mode>): Ditto.
16169 (aarch64_st3_lane<mode>): Ditto.
16170 (aarch64_st4_lane<mode>): Ditto.
16171 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16172 to qmode. Add new mode parameter. Update uses.
16173 (__LD3_LANE_FUNC): Ditto.
16174 (__LD4_LANE_FUNC): Ditto.
16175 (__ST2_LANE_FUNC): Ditto.
16176 (__ST3_LANE_FUNC): Ditto.
16177 (__ST4_LANE_FUNC): Ditto.
16179 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
16181 * doc/invoke.texi (Language Independent Options): Rename node to
16182 Diagnostic Message Formatting Options.
16184 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
16187 * lra-remat.c (operand_to_remat): Prevent using insns with input
16188 subregs processed separately by IRA.
16190 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
16192 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16194 (single_imm_use): Check for iterator node.
16195 (num_imm_uses): Likewise.
16196 * tree-ssa-operands.c (has_zero_uses_1): Delete.
16197 (single_imm_use_1): Check for iterator node.
16199 2015-07-21 Mike Frysinger <vapier@gentoo.org>
16200 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16202 * configure.ac: Add check for new options in isl-0.15.
16203 * config.in, configure: Rebuilt.
16204 * graphite-blocking.c: Include <isl/constraint.h>
16205 * graphite-interchange.c, graphite-poly.c: Likewise.
16206 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16207 * graphite.c: Likewise.
16208 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16210 * graphite-dependences.c: Include <isl/constraint.h>.
16211 (max_number_of_out_dimensions): Returns isl_stat.
16212 (extend_schedule_1): Likewise
16213 (extend_schedule): Corresponding changes.
16214 * graphite-optimize-isl.c: Include <isl/constraint.h> and
16216 (getSingleMap): Change return type of isl_stat.
16217 (optimize_isl): Conditionally use
16218 isl_options_set_schedule_serialize_sccs.
16219 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16220 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16222 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
16225 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16226 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16228 2015-07-21 Richard Biener <rguenther@suse.de>
16230 PR tree-optimization/66948
16231 * genmatch.c (capture_info::walk_match): Also recurse to
16232 captures. Properly compute expr state from captures of
16234 * match.pd: Add single-use guards to
16235 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16237 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
16239 * config/nvptx/mkoffload.c (process): Add static destructor call.
16241 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16243 PR middle-end/66915
16244 * match.pd (A - B -> A + (-B)): Don't allow folding
16245 when type if a fixed-point type.
16247 2015-07-20 DJ Delorie <dj@redhat.com>
16249 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16250 (iorqi3_real): Likewise for set1.
16252 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
16254 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16257 2015-07-20 Aditya Kumar <hiraditya@msn.com>
16259 * graphite-isl-ast-to-gimple.c:
16260 Refactor so that each function can access 'region'. This will help
16261 maintain a parameter rename_map within a region.
16263 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16265 * config/rs6000/rs6000.md (*lt0_disi): New.
16267 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16270 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
16271 "available letters" comment.
16272 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16273 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16274 and_2rld_operand): Delete.
16275 (and_operand): Adjust.
16276 (rotate_mask_operator): New.
16277 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16278 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16279 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16280 extract_ME): Delete.
16281 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16282 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16283 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16284 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16285 rs6000_emit_2insn_and): New.
16286 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16287 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16288 includes_rldic_lshift_p, includes_rldicr_lshift_p,
16289 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16290 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16291 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16292 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16293 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16294 rs6000_emit_2insn_and): New.
16295 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16296 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16298 <NOT>: Don't fall through to next case.
16299 <AND>: Handle the various rotate-and-mask cases directly.
16300 <IOR>: Always cost as one insn.
16301 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16302 (and<mode>3): Adjust expander for the new patterns.
16303 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16304 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16305 (*and<mode>3_imm_dot_shifted): New.
16306 (*and<mode>3_mask): Delete, rewrite as ...
16307 (and<mode>3_mask): ... New.
16308 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16309 (andsi3_internal0_nomc): Delete.
16310 (*andsi3_internal6): Delete.
16311 (*and<mode>3_2insn): New.
16312 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16313 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16314 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16315 *insvdi_internal3): Delete.
16316 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16317 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16318 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16319 *ior<mode>_mask): New.
16320 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16321 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16322 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16323 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16325 (ashr<mode>3): Delete expander.
16326 (*ashr<mode>3): Rename to ...
16327 (ashr<mode>3): ... This.
16328 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16329 (*rotldi3_internal4, *rotldi3_internal5 and split,
16330 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16331 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16332 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16333 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16334 (splitter for loading a mask): Adjust.
16335 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16337 2015-07-20 Marek Polacek <polacek@redhat.com>
16339 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16340 output_add_clobbers, output_added_clobbers_hard_reg_p,
16341 gen_rtx_scratch): Remove declarations.
16343 2015-07-20 Marek Polacek <polacek@redhat.com>
16346 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16348 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16350 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16351 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16353 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16355 * combine.c (combine_simplify_rtx): Move simplification step
16356 before various transformations/substitutions.
16358 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
16360 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16361 (struct int_traits): Likewise.
16363 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16365 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16366 function to vmsdbgout_function_decl.
16368 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16371 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16372 from misaligned positions.
16373 (ix86_expand_pinsr): Reject insertions to misaligned positions.
16375 2015-07-18 Sebastian Pop <s.pop@samsung.com>
16377 PR middle-end/46851
16378 PR middle-end/60340
16379 * Makefile.in: Removed omega.o.
16380 * common.opt: Document flag fcheck-data-deps as deprecated.
16381 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16382 its associated params: omega-max-vars, omega-max-geqs,
16383 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16384 omega-max-keys, omega-eliminate-redundant-constraints.
16385 * doc/loop.texi: Remove all the section on Omega.
16386 * graphite-blocking.c: Include missing params.h: it used to be
16387 included through tree-data-ref.h and omega.h.
16388 * graphite-isl-ast-to-gimple.c: Same.
16389 * graphite-optimize-isl.c: Same.
16390 * graphite-sese-to-poly.c: Same.
16391 * graphite.c: Same.
16394 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16395 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16396 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16397 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16398 * passes.def: Remove pass_check_data_deps.
16399 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16400 (dump_conflict_function): Same.
16401 (dump_subscript): Same.
16402 (print_direction_vector): Same.
16403 (print_dir_vectors): Same.
16404 (print_lambda_vector): Same.
16405 (print_dist_vectors): Same.
16406 (dump_data_dependence_relation): Same.
16407 (dump_data_dependence_relations): Same.
16408 (dump_dist_dir_vectors): Same.
16410 (init_omega_eq_with_af): Removed.
16411 (omega_extract_distance_vectors): Removed.
16412 (omega_setup_subscript): Removed.
16413 (init_omega_for_ddr_1): Removed.
16414 (init_omega_for_ddr): Removed.
16415 (ddr_consistent_p): Removed.
16416 (compute_affine_dependence): Do not use omega to check data
16418 (compute_data_dependences_for_bb): Removed.
16419 (analyze_all_data_dependences): Removed.
16420 (tree_check_data_deps): Removed.
16421 * tree-data-ref.h: Do not include omega.h.
16422 (compute_data_dependences_for_bb): Removed.
16423 (tree_check_data_deps): Removed.
16424 * tree-ssa-loop.c (pass_check_data_deps): Removed.
16425 (make_pass_check_data_deps): Removed.
16426 * tree-ssa-phiopt.c: Include params.h.
16427 * tree-vect-data-refs.c: Same.
16428 * tree-vect-slp.c: Same.
16430 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16432 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16433 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
16434 (mem->fpreg splitters): Ditto.
16435 (general_operand->nonimmediate_operand splitter): Use explicit modes.
16436 Disable DFmode for TARGET_64BIT.
16438 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
16441 * config/i386/i386.c (ix86_expand_prologue): Replicate static
16442 chain on the stack.
16444 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16446 * config/nvptx/mkoffload.c (process): Constify host data.
16447 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16448 Constify host data.
16449 (generate_host_descr_file): Likewise.
16451 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
16452 Sebastian Pop <s.pop@samsung.com>
16454 PR middle-end/61929
16455 * graphite-dependences.c (add_pdr_constraints): Renamed
16456 pdr->extent to pdr->subscript_sizes.
16457 * graphite-interchange.c (build_linearized_memory_access): Add
16458 back all gcc_assert's that the "isl_int to isl_val conversion"
16459 patch has removed. Refactored.
16460 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16461 * graphite-poly.c (new_poly_dr): Same.
16462 (free_poly_dr): Same.
16463 * graphite-poly.h (struct poly_dr): Same.
16464 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16465 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16466 * graphite-scop-detection.h: Fix space.
16467 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16468 back all gcc_assert's removed by a previous patch.
16469 (wrap): Remove the_isl_ctx global variable that the same patch has
16471 (build_loop_iteration_domains): Same.
16472 (add_param_constraints): Same.
16473 (pdr_add_data_dimensions): Same. Refactored.
16474 (build_poly_dr): Renamed extent to subscript_sizes.
16476 2015-07-17 Marek Polacek <polacek@redhat.com>
16478 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16479 * match.pd: ... here.
16481 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16483 * config/nvptx/mkoffload.c (process): Constify target data.
16484 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16485 Constify target data.
16486 (generate_target_offloadend_file): Likewise.
16488 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16490 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16491 to allow renaming of PHI arguments on edges incoming from outer
16492 loop header, add corresponding check before start PHI iterator.
16493 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16494 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16495 with true force_vectorize. Set-up dominator for outer loop too.
16496 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16497 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16498 was marked with force_vectorize and has restricted cfg.
16499 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16501 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16502 do peeling for outer loops.
16504 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
16505 Matthias Klose <doko@ubuntu.com>
16507 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16508 build-sysroot, sysroot from the `Miscenalleous configure options' to
16509 the `Directories' section and strip trailing `/' from with_sysroot.
16510 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16511 * configure: Regenerated.
16513 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16516 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16517 (TARGET_HARD_DF_REGS): Ditto.
16518 (TARGET_HARD_XF_REGS): Ditto.
16519 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16520 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16521 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16522 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16523 (*movsf_internal): Add alternatives 16 and 17. Enable
16524 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16526 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16528 PR rtl-optimization/66891
16529 * calls.c (expand_call): Wrap precompute_register_parameters with
16530 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16532 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
16534 * config/nvptx/mkoffload.c (process): Constify mapping variables.
16535 Define target data struct and initialize it.
16537 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
16539 PR rtl-optimization/66626
16540 * ira.h (emit-rtl.h): Include.
16541 (non_spilled_static_chain_regno_p): New.
16542 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16543 unless it is non spilled static chain pseudo.
16544 (assign_hard_rego): Spill memory profitable allocno unless it is
16545 non spilled static chain pseudo.
16546 (allocno_spill_priority_compare): Put non spilled static chain
16547 pseudo at the end of sorted array.
16548 (improve_allocation): Do nothing if we have static chain and
16550 (allocno__priority_compare_func): Put non spilled static chain
16551 pseudo at the beginning of sorted array.
16552 (move_spill_restore): Ignore non spilled static chain pseudo.
16553 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16554 to non spilled static chain pseudo.
16555 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16556 pseudo at the beginning of sorted array.
16557 (spill_for): Spill non spilled static chain pseudo last.
16558 * lra-constraints.c (lra_constraints): Remove static chain pseudo
16559 check for equivalence.
16561 2015-07-16 Martin Liska <mliska@suse.cz>
16564 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16565 dst_ctx if it does not exist.
16567 2015-07-16 Martin Liska <mliska@suse.cz>
16569 * hash-set.h (remove): New function.
16570 (iterator): New iteration class for hash_set.
16572 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16574 * genattrtab.c (make_canonical): Add a file_location parameter.
16575 Use fatal_at rather than fatal.
16576 (get_attr_value): Likewise. Update call to make_canonical.
16577 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16578 (make_internal_attr): Update calls accordingly.
16580 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16582 * read-md.h (message_with_line, error_with_line): Delete.
16583 * read-md.c (message_with_line, error_with_line): Delete.
16584 * gensupport.h: Include read-md.h.
16585 (md_rtx_info): New structure.
16586 (read_md_rtx): Use it. Return a bool success value.
16587 * gensupport.c (read_md_rtx): Likewise.
16588 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16589 (main): Update after interface changes.
16590 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16591 (main): Update after interface changes.
16592 * genattrtab.c (insn_code_number): Delete.
16593 (optimize_attrs): Add a max_insn_code parameter and use it instead
16594 of insn_code_number.
16595 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16596 Use *_at rather than *_with_line functions.
16597 (gen_insn): Likewise.
16598 (gen_delay): Likewise.
16599 (gen_insn_reserv): Likewise.
16600 (gen_bypass): Take an md_rtx_info rather than an rtx.
16601 (main): Update after interface changes. Use a local max_insn_code
16602 variable instead of insn_code_number.
16603 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16604 an rtx. Use fatal_at rather than fatal.
16605 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16606 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16607 (gen_absence_set, gen_final_absence_set, gen_automaton)
16608 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16609 (main): Update after interface changes.
16610 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16612 (main): Update after interface changes.
16613 * genconditions.c (main): Use new read_md_rtx interface.
16614 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16615 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16616 (main): Update after interface changes.
16617 * genemit.c (insn_code_number, insn_index_number): Delete.
16618 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16619 Use fatal_at rather than fatal.
16620 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
16622 (gen_split): Likewise.
16623 (main): Update after interface changes.
16624 * genextract.c (line_no): Delete.
16625 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16626 Update call to walk_rtx.
16627 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
16628 rather than message_with_line.
16629 (walk_rtx): Add an md_rtx_info argument. Update call to
16630 VEC_safe_set_locstr.
16631 (main): Update after interface changes.
16632 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16633 and lineno. Use error_at rather than separate message_with_line
16634 calls and have_error assignments.
16635 (main): Update after interface changes.
16636 * genmddump.c (main): Use new read_md_rtx interface.
16637 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16638 (main): Update after interface changes.
16639 * genoutput.c (next_code_number): Delete.
16640 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16641 (gen_peephole, gen_expand, gen_split): Likewise.
16642 (note_constraint): Likewise. Use *_at rather than *_with_line
16644 (main): Update after interface changes.
16645 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16647 (main): Update after interface changes.
16648 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16649 than an rtx and lineno.
16650 (process_define_constraint): Likewise.
16651 (process_define_register_constraint): Likewise.
16652 (main): Update after interface changes.
16653 * genrecog.c (next_insn_code, pattern_lineno): Delete.
16654 (validate_pattern): Replace top-level rtx with an md_rtx_info.
16655 Use *_at rather than *_with_line functions.
16656 (match_pattern_2): Likewise.
16657 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16658 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16659 Use *_at rather than *_with_line functions.
16660 * gentarget-def.c (add_insn): New function.
16661 (main): Use it. Use new read_md_rtx interface.
16663 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16665 * gensupport.h (compute_test_codes): Take a file_location rather
16666 than a line number.
16667 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
16668 rather than *_with_line functions.
16669 (process_define_predicate): Update call to compute_test_codes.
16670 * genpreds.c (validate_exp): Take a file_location rather than a
16671 line number. Use *_at functions rather than *_with_line functions.
16672 (process_define_predicate): Update call to validate_exp.
16673 (constraint_data): Replace lineno field with a file_location.
16674 (add_constraint): Take a file_location rather than a line number.
16675 Use *_at functions rather than *_with_line functions. Fix error
16676 message for address constraints. Update after changes to
16677 validate_exp, constraint_data and compute_test_codes.
16678 (process_define_constraint): Update accordingly.
16679 (process_define_register_constraint): Likewise.
16681 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16683 * genoutput.c (data): Use a file_location to record the source
16686 (idata, idata_end): Remove initialization.
16687 (constraint_data): Replace lineno with a file_location.
16688 (output_insn_data): Update after changes to data.
16689 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16690 (scan_operands): Likewise, using *_at rather than *_with_line
16692 (process_template): Likewise.
16693 (validate_insn_alternatives): Likewise.
16694 (validate_insn_operands): Likewise.
16695 (validate_optab_operands): Likewise.
16696 (init_insn_for_nothing): Initialize idata and idata_end.
16697 (note_constraint): Update after changes to constraint_data,
16698 using at rather than with_line functions.
16699 (mdep_constraint_len): Take a file_location rather than a
16700 line number. Use at rather than with_line functions.
16702 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16704 * read-md.h (fatal_at): Declare.
16705 * read-md.c (fatal_at): New function.
16706 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16707 to record the source position.
16708 (check_attr_test): Take a file_location instead of a line number.
16709 Use fatal_at instead of fatal.
16710 (check_attr_value): Update after above changes, using "at"
16711 rather than "with_line" reporting functions.
16712 (convert_set_attr_alternative): Likewise.
16713 (gen_attr): Likewise.
16714 (check_defs): Likewise. Don't assign to read_md_filename.
16715 (gen_insn): Update initialization after above changes.
16716 (gen_delay): Likewise.
16717 (write_insn_cases): Print the filename for a define_peephole.
16718 (gen_insn_reserv): Take a line number as argument and update
16719 the call to check_attr_test.
16720 (main): Pass a line number to gen_insn_reserv.
16722 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16724 * read-md.h (file_location): New structure.
16725 (directive_handler_t): Take a file_location rather than a line number.
16726 (message_at, error_at): Declare.
16727 (read_skip_construct): Delete.
16728 * read-md.c (message_with_line_1): Replace with...
16729 (message_at_1): ...this new function.
16730 (message_at, error_at): New functions.
16731 (message_with_line, error_with_line): Update to use message_at_1.
16732 (handle_enum): Take a file_location rather than a line number
16733 and use error_at for error reporting.
16734 (handle_include): Likewise.
16735 (read_skip_construct): Likewise. Make static.
16736 (handle_file): Update after above changes. Pass a file_location
16737 rather than a line number to handle_directive.
16738 * gensupport.c (queue_elem): Replace separate filename and lineno
16739 with a file_location.
16740 (queue_pattern): Replace filename and lineno arguments with a
16741 file_location. Update after change to queue_elem.
16742 (process_define_predicate): Replace lineno argument with a
16743 file_location and use error_at for error reporting. Update
16744 after above changes.
16745 (process_rtx): Likewise.
16746 (subst_pattern_match): Likewise.
16747 (get_alternatives_number): Likewise.
16748 (alter_predicate_for_insn): Likewise.
16749 (rtx_handle_directive): Likewise.
16750 (is_predicable): Update after above changes, using error_at rather
16751 than error_with_line.
16752 (has_subst_attribute): Likewise.
16753 (identify_predicable_attribute): Likewise.
16754 (alter_attrs_for_subst_insn): Likewise.
16755 (process_one_cond_exec): Likewise.
16756 (process_substs_on_one_elem): Likewise.
16757 (process_define_subst): Likewise.
16758 (check_define_attr_duplicates): Likewise.
16759 (read_md_rtx): Update after change to queue_elem.
16761 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16763 * genoutput.c (next_index_number): Delete.
16764 (data): Remove index_number.
16765 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16766 (main): Remove manipulation of next_index_number.
16768 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16770 * genattrtab.c (check_attr_value): Remove handling of null attrs.
16771 (make_canonical): Likewise.
16773 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
16775 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16776 instead of adjust_address_nv.
16777 (restore_stack_nonlocal): Likewise.
16778 (nonlocal_goto): Likewise.
16780 2015-07-16 Tom de Vries <tom@codesourcery.com>
16782 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16783 not have a corresponding loop header phi.
16785 2015-07-16 Tom de Vries <tom@codesourcery.com>
16787 * tree-parloops.c (create_loads_for_reductions): Handle case that
16788 reduction is unused.
16790 2015-07-16 Richard Biener <rguenther@suse.de>
16792 PR tree-optimization/66894
16793 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16794 about deriving NE_EXPR from truncated values.
16796 2015-07-16 Martin Liska <mliska@suse.cz>
16799 (object_allocator): Add new class.
16800 (pool_allocator::initialize): Use the underlying class.
16801 (pool_allocator::allocate): Likewise.
16802 (pool_allocator::remove): Likewise.
16803 (operator new): A new generic allocator.
16804 * asan.c (struct asan_mem_ref): Remove unused members.
16805 (asan_mem_ref_new): Replace new operator with
16806 object_allocator::allocate.
16807 (free_mem_ref_resources): Change deallocation.
16808 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16809 with object_allocator.
16810 * config/sh/sh.c (add_constant): Replace new operator with
16811 object_allocator::allocate.
16812 (sh_reorg): Change call to a release method.
16813 * cselib.c (struct elt_list): Remove unused members.
16814 (new_elt_list): Replace new operator with
16815 object_allocator::allocate.
16816 (new_elt_loc_list): Likewise.
16817 (new_cselib_val): Likewise.
16818 (unchain_one_elt_list): Change delete operator with remove method.
16819 (unchain_one_elt_loc_list): Likewise.
16820 (unchain_one_value): Likewise.
16821 (cselib_finish): Release newly added static allocators.
16822 * cselib.h (struct cselib_val): Remove unused members.
16823 (struct elt_loc_list): Likewise.
16824 * df-problems.c (df_chain_alloc): Replace pool_allocator with
16826 * df-scan.c (struct df_scan_problem_data): Likewise.
16827 (df_scan_alloc): Likewise.
16828 * df.h (struct dataflow): Likewise.
16829 * dse.c (struct read_info_type): Likewise.
16830 (struct insn_info_type): Likewise.
16831 (struct dse_bb_info_type): Likewise.
16832 (struct group_info): Likewise.
16833 (struct deferred_change): Likewise.
16834 (get_group_info): Likewise.
16835 (delete_dead_store_insn): Likewise.
16836 (free_read_records): Likewise.
16837 (replace_read): Likewise.
16838 (check_mem_read_rtx): Likewise.
16839 (scan_insn): Likewise.
16840 (dse_step1): Likewise.
16841 (dse_step7): Likewise.
16842 * et-forest.c (struct et_occ): Remove unused members.
16843 (et_new_occ): Use allocate instead of new operator.
16844 (et_new_tree): Likewise.
16845 (et_free_tree): Call release method explicitly.
16846 (et_free_tree_force): Likewise.
16847 (et_free_pools): Likewise.
16848 (et_split): Use remove instead of delete operator.
16849 * et-forest.h (struct et_node): Remove unused members.
16850 * ipa-cp.c: Change pool_allocator to object_allocator.
16851 * ipa-inline-analysis.c: Likewise.
16852 * ipa-profile.c: Likewise.
16853 * ipa-prop.c: Likewise.
16854 * ipa-prop.h: Likewise.
16855 * ira-build.c (initiate_cost_vectors): Cast return value.
16856 (ira_allocate_cost_vector): Likewise.
16857 * ira-color.c (struct update_cost_record): Remove unused members.
16858 * lra-int.h (struct lra_live_range): Likewise.
16859 (struct lra_copy): Likewise.
16860 (struct lra_insn_reg): Likewise.
16861 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16862 * lra.c (new_insn_reg): Replace new operator with allocate method.
16863 (free_insn_regs): Same for operator delete.
16864 (finish_insn_regs): Release new static allocator.
16865 (finish_insn_recog_data): Likewise.
16866 (lra_free_copies): Replace delete operator with remove method.
16867 (lra_create_copy): Replace operator new with allocate method.
16868 (invalidate_insn_data_regno_info): Same for remove method.
16869 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16870 (free_debug_insn_changes): Replace delete operator with remove method.
16871 (replace_oldest_value_reg): Replace operator new with allocate method.
16872 (pass_cprop_hardreg::execute): Release new static variable.
16873 * sched-deps.c (sched_deps_init): Change pool_allocator to
16875 * sel-sched-ir.c: Likewise.
16876 * sel-sched-ir.h: Likewise.
16877 * stmt.c (expand_case): Likewise.
16878 (expand_sjlj_dispatch_table): Likewise.
16879 * tree-sra.c (struct access): Remove unused members.
16880 (struct assign_link): Likewise.
16881 (sra_deinitialize): Release newly added static pools.
16882 (create_access_1):Replace operator new with allocate method.
16883 (build_accesses_from_assign): Likewise.
16884 (create_artificial_child_access): Likewise.
16885 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16886 pool_allocator to object_allocator.
16887 * tree-ssa-pre.c: Likewise.
16888 * tree-ssa-reassoc.c: Likewise.
16889 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16890 * tree-ssa-strlen.c: Likewise.
16891 * tree-ssa-structalias.c: Likewise.
16892 * var-tracking.c (onepart_pool_allocate): New function.
16893 (unshare_variable): Use the newly added function.
16894 (variable_merge_over_cur): Likewise.
16895 (variable_from_dropped): Likewise.
16896 (variable_was_changed): Likewise.
16897 (set_slot_part): Likewise.
16898 (emit_notes_for_differences_1): Likewise.
16899 (vt_finalize): Release newly added static pools.
16901 2015-07-16 Martin Jambor <mjambor@suse.cz>
16903 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
16904 all uses. Fix two typos in its general comment.
16905 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
16907 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
16909 * config/i386/linux-common.h (LINK_MPX): New.
16910 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16911 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16912 indicating '-z bndplt' support by linker.
16913 * configure: Regenerate.
16914 * config.in: Regenerate.
16916 2015-07-16 Richard Biener <rguenther@suse.de>
16918 * fold-const.c (fold_widened_comparison): Remove.
16919 (fold_sign_changed_comparison): Likewise.
16920 (fold_comparison): Move widened and sign-changed comparison
16922 * match.pd: ... to patterns here.
16923 * generic-match-head.c: Include target.h.
16924 * gimple-match-head.c: Likewise.
16926 2015-07-16 Richard Biener <rguenther@suse.de>
16928 * tree-ssa-dom.c (dom_valueize): New function.
16929 (record_temporary_equivalences): Also record equivalences
16930 for dominating stmts that have uses of equivalences we are
16933 2015-07-16 Bin Cheng <bin.cheng@arm.com>
16935 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16936 add_autoinc_candidates.
16937 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16938 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16939 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16940 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16942 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16943 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16944 Remove parameter struct iv*. Call add_autoinc_candidates here.
16945 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16946 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16948 (find_iv_candidates): Call new functions.
16950 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
16952 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16953 uninitialized-variable warning.
16955 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
16958 * config/sh/sh.md (movdi): Split simple reg move to two movsi
16959 when the destination is R0.
16961 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
16964 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16965 * config/i386/i386.c (ix86_expand_pextr): New function.
16966 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
16967 for non-lowpart subregs.
16968 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16969 (insv<mode>): Use SWI248 mode iterator.
16970 (insv<mode>_1): Ditto.
16972 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16973 Sebastian Pop <s.pop@samsung.com>
16975 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16976 iterator to use_stmt.
16978 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16979 Sebastian Pop <s.pop@samsung.com>
16981 * graphite-scop-detection.c (build_scops_1): Discard scops for
16984 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16985 Sebastian Pop <s.pop@samsung.com>
16987 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16988 case of a return statement in scop.
16990 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16991 Sebastian Pop <s.pop@samsung.com>
16993 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16994 INTEGER_TYPE parameters.
16995 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16996 VECTOR_CST in scan_tree_for_params.
16997 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16999 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
17001 * gimple-pretty-print.h: Don't include pretty-print.h.
17002 * tree-streamer.h: Don't include lto-streamer.h.
17003 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
17004 * gimple-streamer-in.c: Remove redundant includes.
17005 * gimple-streamer-out.c: Likewise.
17006 * ipa-devirt.c: Likewise.
17007 * ipa-icf.c: Likewise.
17008 * ipa-inline-analysis.c: Likewise.
17009 * ipa-polymorphic-call.c: Likewise.
17010 * ipa-profile.c: Likewise.
17011 * ipa-prop.c: Likewise.
17012 * ipa-pure-const.c: Likewise.
17013 * lto-cgraph.c: Likewise.
17014 * lto-streamer-in.c: Likewise.
17015 * lto-streamer-out.c: Likewise.
17016 * lto-streamer.c: Likewise.
17017 * tree-streamer-in.c: Likewise.
17018 * tree-streamer-out.c: Likewise.
17019 * tree-streamer.c: Likewise.
17021 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
17023 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
17025 * opts.c: Remove multiline #include comment.
17027 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
17029 * config/nvptx/mkoffload.c (process): Add C++ protection to
17032 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17035 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
17036 null before IEEE 128-bit floating point support patch.
17038 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17040 * simplify-rtx.c (simplify_ternary_operation): Add simplification
17041 for (!c) != {0,...,0} ? a : b for vector modes.
17043 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
17044 Martin Jambor <mjambor@suse.cz>
17046 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
17047 struct func_body_info* instead of struct ipa_node_params*, expecting
17048 fbi->info to be filled in. Replace throughout. Adjust call to
17049 ipa_load_from_parm_agg.
17050 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
17051 instead of struct ipa_node_params*. Adjust calls to other functions
17052 so that they pass either fbi or fbi->info.
17053 (set_switch_stmt_execution_predicate): Likewise.
17054 (will_be_nonconstant_predicate): Likewise.
17055 (compute_bb_predicates): Likewise.
17056 (estimate_function_body_sizes): Move asserts earlier. Fill in
17057 struct func_body_info, replace parms_info with fbi.info. Adjust
17058 calls to functions that now accept struct func_body_info.
17059 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
17060 (struct func_body_info): Likewise.
17061 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
17062 remove static. Adjust callers.
17063 (ipa_load_from_parm_agg): Remove.
17064 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
17065 (func_body_info): Likewise.
17066 (ipa_load_from_parm_agg): Adjust prototype.
17068 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17070 * gensupport.c (rtx_handle_directive): Adjust.
17071 * read-rtl.c (apply_iterators): Take vector to add rtxs to
17072 instead of expr list rtx.
17073 (add_define_attr_for_define_subst): Likewise.
17074 (add_define_subst_attr): Likewise.
17075 (read_subst_mapping): Likewise.
17076 (read_rtx): Likewise.
17077 * rtl.h (read_rtx): Adjust.
17079 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17081 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
17083 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17086 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
17087 (*tls_local_dynamic_base_64_<mode>): Ditto.
17088 (*tls_local_dynamic_base_64_largepic): Ditto.
17089 (tls_global_dynamic_64_<mode>): Update expander pattern.
17090 (tls_local_dynamic_base_64_<mode>): Ditto.
17092 2015-07-15 Richard Biener <rguenther@suse.de>
17094 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
17095 and bool_var == 1 -> bool_var simplifications ...
17096 * match.pd: ... to patterns here. Factor out negate_expr_p
17097 cases from the A - B -> A + (-B) patterns as negate_expr_p
17098 predicate and add a -(A + B) -> (-B) - A pattern.
17100 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
17102 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
17104 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
17105 Robert Suchanek <robert.suchanek@imgtec.com>
17107 * config/mips/mips.c (mips_int_mask): New enum.
17108 (mips_shadow_set): Likewise.
17109 (int_mask): New variable.
17110 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
17111 (machine_function): Add int_mask and use_shadow_register_set.
17112 (mips_attribute_table): Add attribute handlers for interrupt and
17113 use_shadow_register_set.
17114 (mips_interrupt_mask): New static function.
17115 (mips_handle_interrupt_attr): Likewise.
17116 (mips_handle_use_shadow_register_set_attr): Likewise.
17117 (mips_use_shadow_register_set): Change return type to enum
17118 mips_shadow_set. Add argument handling for use_shadow_register_set
17120 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
17121 compare with mips_shadow_set enum.
17122 (mips_compute_frame_info): Add interrupt mask and
17123 use_shadow_register_set to per-function information structure.
17124 Add a stack slot for EPC unconditionally.
17125 (mips_expand_prologue): Compare use_shadow_register_set value
17126 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
17127 masked interrupt register but in EIC mode use K0 and save Cause in K0.
17128 EPC saved and restored unconditionally. Use PMODE_INSN macro when
17129 copying the stack pointer from the shadow register set.
17130 * config/mips/mips.h (SR_IM0): New define.
17131 * config/mips/mips.md (mips_rdpgpr): Rename to...
17132 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
17133 * doc/extend.texi (Declaring Attributes of Functions): Document
17134 optional arguments for interrupt and use_shadow_register_set
17137 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
17139 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
17140 interrupt attribute.
17141 (mips_expand_prologue): Disable the floating point unit in an ISR.
17142 * config/mips/mips.h (SR_COP1): New define.
17144 2015-07-15 Richard Biener <rguenther@suse.de>
17146 * genmatch.c (parser::peek, parser::peek_ident): Add argument
17147 to tell how many tokens to peek ahead (default 1).
17148 (parser::eat_token, parser::eat_ident): Return token consumed.
17149 (parser::parse_result): Parse new switch statement.
17150 * match.pd: Use case statements where appropriate.
17152 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17154 PR rtl-optimization/58066
17155 * calls.c (expand_call): Precompute register parameters before stack
17156 alignment is performed.
17158 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17160 PR rtl-optimization/66838
17161 * postreload.c (reload_cse_move2add): Also process
17162 CALL_INSN_FUNCTION_USAGE when resetting information of
17163 call-clobbered registers.
17165 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17166 Cesar Philippidis <cesar@codesourcery.com>
17167 Chung-Lin Tang <cltang@codesourcery.com>
17169 * config/nios2/constraints.md (U, v): New constraints.
17170 * config/nios2/predicates.md (rdprs_dcache_operand): New.
17171 (ldstex_memory_operand): New.
17172 * config/nios2/sync.md: New file.
17173 * config/nios2/nios2.md (unspecv): Add new builtin function
17175 (rdprs, flushd, flushda, wrpie, eni): New patterns.
17176 (top-level): Include sync.md.
17177 * config/nios2/nios2.c (N2_FTYPES): Add function types for
17179 (N2_BUILTINS): Add arch field setting, add new builtins.
17180 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17182 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17183 Also handle ldex/stex/ldsex/stsex builtins.
17184 (nios2_expand_rdprs_builtin): New function.
17185 (nios2_expand_cache_builtin): New function.
17186 (nios2_expand_wrpie_builtin): New function.
17187 (nios2_expand_eni_builtin): New function.
17188 (nios2_expand_builtin): Add arch field handling and new builtin
17190 * doc/extend.texi (Altera Nios II Built-in Functions): Document
17192 * doc/md.texi (Machine Constraints): Document U and v constraints.
17194 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17195 Cesar Philippidis <cesar@codesourcery.com>
17196 Chung-Lin Tang <cltang@codesourcery.com>
17198 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17199 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17200 callee_save_reg_size and uses_anonymous_args fields.
17201 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17202 (nios2_create_cfa_notes): New function.
17203 (nios2_adjust_stack): New function for adjusting stack.
17204 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17205 Use nios2_adjust_stack.
17206 (nios2_expand_epilogue): Likewise.
17207 (nios2_expand_return): New function.
17208 (nios2_can_use_return_insn): Update for CDX pop.n usage.
17209 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17210 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17211 * config/nios2/nios2.md (return): Use nios2_expand_return.
17213 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17214 Cesar Philippidis <cesar@codesourcery.com>
17215 Chung-Lin Tang <cltang@codesourcery.com>
17217 * config/nios2/predicates.md (pop_operation): New.
17218 (ldwm_operation, stwm_operation): New.
17219 (nios2_hard_register_operand): New.
17220 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17221 (ldstwm_operation_p): Declare.
17222 (gen_ldstwm_peep): Declare.
17223 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17224 (base_reg_adjustment_p): New.
17225 (pop_operation_p): New.
17226 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17227 (nios2_ldstwm_regset_p): New.
17228 (ldstwm_operation_p): New.
17230 (nios2_ldst_parallel): New.
17231 (struct ldswm_operand): Declare.
17232 (compare_ldstwm_operands): New.
17233 (can_use_cdx_ldstw): New.
17234 (gen_ldstwm_peep): New.
17235 * config/nios2/nios2-ldstwm.sml: New.
17236 * config/nios2/nios2.md: Include ldstwm.md.
17237 * config/nios2/ldstwm.md: Generated.
17239 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17240 Cesar Philippidis <cesar@codesourcery.com>
17241 Chung-Lin Tang <cltang@codesourcery.com>
17243 * config/nios2/nios2.h (LABEL_ALIGN): Define.
17244 (REG_ALLOC_ORDER): Define.
17245 (ADJUST_REG_ALLOC_ORDER): Define.
17246 (HONOR_REG_ALLOC_ORDER): Define.
17247 (CDX_REG_P): Define.
17248 (ANDCLEAR_INT): Define.
17249 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17250 (nios2_label_align): Declare.
17251 (nios2_cdx_narrow_form_p): Declare.
17252 (nios2_adjust_reg_alloc_order): Declare.
17253 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17255 (nios2_large_unspec_reloc_p): New function, split from...
17256 (nios2_legitimate_pic_operand_p): ...here.
17257 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17258 (nios2_print_operand_punct_valid_p): New.
17259 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
17260 (split_mem_address): New.
17261 (split_alu_insn): New.
17263 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17264 (enum nios2_add_insn_kind): New.
17265 (nios2_add_insn_names, nios2_add_insn_narrow): New.
17266 (nios2_add_insn_classify): New.
17267 (nios2_add_insn_asm): New.
17268 (nios2_cdx_narrow_form_p): New.
17269 (label_align, min_labelno, max_labelno): New.
17270 (nios2_reorg): New.
17271 (nios2_label_align): New.
17272 (nios2_adjust_reg_alloc_order): New.
17273 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17274 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17275 * config/nios2/constraints.md (P): New constraint.
17276 * config/nios2/predicates.md (const_and_operand): New.
17277 (and_operand): New.
17278 (stack_memory_operand): New.
17279 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17280 (length): Update to use nios2_cdx_narrow_form_p().
17281 (type): Add new insn type values.
17282 (control, alu, st, ld, shift): Update insn reservations with
17283 new insn type values.
17284 (*high, *lo_sum): Define new insn patterns for constant generation.
17285 (movqi_internal, movhi_internal, movsi_internal): Reduce
17286 alternatives, update asm template to handle CDX variants, update
17288 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17289 template, update type attributes.
17290 (extendhisi2, extendqi<mode>2): Likewise.
17291 (addsi3): Change to use function for asm string.
17292 (subsi3): Add CDX notation to asm template, update type attributes.
17293 (negsi3, one_cmplsi3): Likewise.
17294 (andsi3): New pattern, specialized from logical patterns.
17295 (<code>si3): Remove and case, combine alternatives, update asm
17297 (<shift_op>si3): Add CDX notation, update type attributes.
17298 (rotrsi3): Update type attribute.
17299 (*merge, extzv, insv): New insn patterns.
17300 (return): Change to define_expand.
17301 (simple_return): Add CDX notation, update type attributes.
17302 (indirect_jump): Add CDX notation.
17303 (jump): Update asm cases, update length attribute expression.
17304 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17305 (nios2_cbranch): Update asm cases and length attribute expression
17306 to handle CDX variants.
17307 (nios2_cmp<code>): Update asm template.
17308 (nop): Add CDX notation, update type attributes.
17309 (trap): Add CDX notation.
17310 (ctrapsi4): Update asm cases and length attribute expression to
17311 handle CDX variant.
17312 * doc/md.texi (Machine Constraints): Document P constraint.
17314 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17315 Cesar Philippidis <cesar@codesourcery.com>
17316 Chung-Lin Tang <cltang@codesourcery.com>
17318 * config/nios2/nios2.h (SMALL_INT12): New macro.
17319 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17320 (nios2_valid_addr_expr_p): Use it.
17321 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17322 with implicit "io" instructions on R2.
17323 * config/nios2/constraints.md (w): New constraint.
17324 * config/nios2/predicates.md (ldstio_memory_operand): New.
17325 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17326 operand predicate and constraint.
17327 (ld<bh>io_signed, st<bhw>io>): Likewise.
17328 * doc/md.texi (Machine Constraints): Document w constraint.
17330 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17331 Cesar Philippidis <cesar@codesourcery.com>
17332 Chung-Lin Tang <cltang@codesourcery.com>
17334 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17335 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17336 Nios II architecture level.
17337 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17338 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17339 (OPTION_DEFAULT_SPECS): Define.
17340 (ASM_SPEC): Add -march= spec strings.
17341 * config/nios2/nios2.c (nios2_option_override): Check for
17342 conflicts involving new options.
17343 * config.gcc (nios2*-*-*): Support --with-arch=.
17344 * doc/invoke.texi (Option Summary, Nios II Options): Document
17345 -march=, -mbmx, and -mcdx.
17347 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
17349 PR rtl-optimization/66626
17350 * lra-constraints.c (lra_constraints): Prevent equivalence
17351 substitution for static chain pseudo in functions with nonlocal
17354 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17356 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17357 (nios2_emit_stack_limit_check): Add size parameter. Handle
17358 -fstack-limit-symbol as well as -fstack-limit-register.
17359 (nios2_expand_prologue): Emit only a single stack limit check,
17360 even if multiple stack adjustments are required.
17361 (nios2_option_override): Diagnose unsupported combination of -fpic
17362 and -stack-limit-symbol.
17364 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
17366 * Makefile.in (top_srcdir): New.
17367 * configure.ac: Use AM_ZLIB.
17368 * configure: Regeneated.
17370 2015-07-14 Matthias Klose <doko@ubuntu.com>
17373 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17375 2015-07-14 Richard Biener <rguenther@suse.de>
17377 PR tree-optimization/66863
17378 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17379 what we record for conversion use stmt lhs inequalities.
17381 2015-07-14 Richard Biener <rguenther@suse.de>
17383 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17384 (decision_tree::gen_gimple): Likewise.
17386 2015-07-14 Tom de Vries <tom@codesourcery.com>
17388 * gcc.c (greater_than_spec_func): Declare forward.
17389 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17390 -ftree-parallelize-loops={0,1}.
17391 (static_spec_functions): Add greater_than_spec_func function with name
17393 (greater_than_spec_func): New function.
17395 2015-07-14 Richard Biener <rguenther@suse.de>
17397 * tree-ssa-dom.c (record_temporary_equivalences): Merge
17398 wideing type conversion case from record_equivalences_from_incoming_edge
17399 and use record_equality to record equivalences.
17400 (record_equivalences_from_incoming_edge): Call
17401 record_temporary_equivalences.
17403 2015-07-14 Richard Biener <rguenther@suse.de>
17405 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17406 (struct if_expr): New.
17407 (struct with_expr): Likewise.
17408 (is_a_helper): Add helpers for if_expr and with_expr.
17409 (struct simplify): Add simplify_kind enum and member. Remove
17411 (simplify::simplify): Adjust.
17412 (lower_commutative): Adjust.
17413 (lower_opt_convert): Likewise.
17414 (lower_cond): Likewise.
17415 (replace_id): Handle with_expr and if_expr.
17416 (lower_for): Adjust.
17417 (dt_simplify::gen_1): New recursive worker, split out from ...
17418 (dt_simplify::gen): ... here. Deal with if and with expansion
17420 (capture_info::capture_info): Take context argument
17421 (capture_info::walk_result): Only analyze specific result.
17422 (parser::parse_result): New function.
17423 (parser::parse_simplify): Adjust to parse ifs with then end
17425 (parser::parse_if): Simplify.
17426 (parser::parse_pattern): Pass down simplify kind.
17427 * match.pd: Convert if structure to new syntax.
17429 2015-07-13 Marek Polacek <polacek@redhat.com>
17431 * rtl.c (rtx_equal_p_cb): Fix typo.
17433 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
17435 * omega.h: Don't include config.h, don't include params.h again if
17436 omega.h has already been included.
17437 * graphite-poly.h: Include sese.h.
17438 * graphite.c: Don't include sese.h, remove needless includes and
17439 minimize includes outside #ifdef HAVE_isl block.
17440 * graphite-blocking.c: Don't include sese.h, remove needless includes,
17441 and wrap entire file in #ifdef HAVE_isl
17442 * graphite-dependences.c: Likewise.
17443 * graphite-interchange.c: Likewise.
17444 * graphite-isl-ast-to-gimple.c: Likewise.
17445 * graphite-optimize-isl.c: Likewise.
17446 * graphite-poly.c: Likewise.
17447 * graphite-scop-detection.c: Likewise.
17448 * graphite-sese-to-poly.c: Likewise.
17450 2015-07-13 Tom de Vries <tom@codesourcery.com>
17452 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17454 2015-07-13 Renlin Li <renlin.li@arm.com>
17457 * simplify-rtx.c (simplify_const_relational_operation): Add
17458 side_effects_p checks.
17460 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
17462 * bitmap.h: Fix double word typos.
17463 * builtins.c: Same.
17465 * cfgloopmanip.c: Same.
17468 * cgraphclones.c: Same.
17470 * config/aarch64/aarch64-protos.h: Same.
17471 * config/aarch64/aarch64.c: Same.
17472 * config/aarch64/aarch64.md: Same.
17473 * config/arm/arm.md: Same.
17474 * config/arm/arm1020e.md: Same.
17475 * config/arm/arm1026ejs.md: Same.
17476 * config/arm/arm926ejs.md: Same.
17477 * config/arm/fa526.md: Same.
17478 * config/arm/fa606te.md: Same.
17479 * config/arm/fa626te.md: Same.
17480 * config/arm/fa726te.md: Same.
17481 * config/arm/fmp626.md: Same.
17482 * config/darwin.c: Same.
17483 * config/epiphany/epiphany.c: Same.
17484 * config/frv/frv.c: Same.
17485 * config/ft32/ft32.c: Same.
17486 * config/gnu-user.h: Same.
17487 * config/h8300/constraints.md: Same.
17488 * config/i386/i386.c: Same.
17489 * config/i386/i386.md: Same.
17490 * config/iq2000/iq2000.md: Same.
17491 * config/mips/mips.c: Same.
17492 * config/mmix/mmix.md: Same.
17493 * config/moxie/moxie.c: Same.
17494 * config/nds32/nds32.md: Same.
17495 * config/pa/pa.h: Same.
17496 * config/rs6000/aix.h: Same.
17497 * config/rs6000/rs6000.h: Same.
17498 * config/sh/sh.c: Same.
17499 * config/tilegx/tilegx.md: Same.
17500 * config/tilepro/gen-mul-tables.cc: Same.
17503 * doc/invoke.texi: Same.
17505 * dwarf2out.c: Same.
17508 * genmatch.c: Same.
17509 * gimplify.c: Same.
17510 * hash-table.h: Same.
17511 * internal-fn.c: Same.
17513 * ipa-devirt.c: Same.
17516 * ipa-profile.c: Same.
17517 * ipa-prop.c: Same.
17518 * ipa-prop.h: Same.
17521 * reg-stack.c: Same.
17522 * regcprop.c: Same.
17527 * tree-inline.c: Same.
17528 * tree-sra.c: Same.
17529 * tree-ssa-dom.c: Same.
17530 * tree-ssa-loop-ivopts.c: Same.
17531 * tree-ssa-structalias.c: Same.
17532 * tree-ssa-tail-merge.c: Same.
17533 * tree-ssa-ter.c: Same.
17534 * tree-ssa-threadupdate.c: Same.
17535 * tree-ssa-uninit.c: Same.
17536 * tree-ssanames.c: Same.
17537 * tree-vect-loop-manip.c: Same.
17538 * tree-vrp.c: Same.
17540 * valtrack.c: Same.
17543 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17545 PR middle-end/66726
17546 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17547 tree_ssa_phiopt_worker): Call it.
17549 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17551 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17552 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17555 2015-07-11 Marek Polacek <polacek@redhat.com>
17557 PR middle-end/66353
17558 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17559 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17560 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17561 rather than bb_has_abnormal_call_pred.
17562 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17563 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17564 rather than bb_has_abnormal_call_pred.
17566 2015-07-10 Anatoly Sokolov <aesok@post.ru>
17568 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17569 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17570 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17571 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17572 v850_legitimate_address_p): New functions.
17573 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17575 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
17578 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17579 indirect sibcall with register arguments if register available
17580 for argument passing.
17581 (init_cumulative_args): Set cfun->machine->arg_reg_available
17582 to (cum->nregs > 0) or to true if function has a variable
17584 (function_arg_advance_32): Set cfun->machine->arg_reg_available
17585 to false if cum->nregs <= 0.
17586 * config/i386/i386.h (machine_function): Add arg_reg_available.
17588 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17590 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17591 and gen_higpart instead of gen_rtx_SUBREG.
17592 * config/i386/i386.md
17593 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17594 (read-modify peephole2): Use gen_lowpart instead of
17595 gen_rtx_SUBREG for operand 5.
17597 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17599 * config/tilepro/gen-mul-tables.cc (main): Change include list for
17601 * config/tilepro/mul-tables.c: Regenerate.
17602 * config/tilegx/mul-tables.c: Regenerate.
17604 2015-07-10 Richard Biener <rguenther@suse.de>
17606 * fold-const.c (distribute_bit_expr): Remove.
17607 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17608 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17609 to A & (B | C) and simplifying A << C1 << C2 to ...
17610 * match.pd: ... patterns here.
17612 2015-07-10 Jiong Wang <jiong.wang@arm.com>
17614 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17615 Mark mem as READONLY and NOTRAP for PIC symbol.
17617 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17619 * gimple-predict.h: New file.
17620 (gimple_predict_predictor, gimple_predict_set_predictor,
17621 gimple_predict_outcome, gimple_predict_set_outcome,
17622 gimple_build_predict): Relocate here.
17623 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17624 gimple_predict_outcome, gimple_predict_set_outcome): Move to
17626 * gimple.c (gimple_build_predict): Move to gimple-predict.h
17627 * basic-block.h: Don't include cfghooks.h.
17628 * backend.h: Don't include predict.h.
17629 * cfghooks.h: Include predict.h.
17630 * gimple-pretty-print.c: Include gimple-predict.h.
17631 * gimplify.c: Likwise.
17632 * predict.c: Adjust includes.
17633 * tree-inline.c: Likewise.
17634 * asan.c: Likewise.
17635 * auto-inc-dec.c: Likewise.
17636 * auto-profile.c: Likewise.
17637 * bb-reorder.c: Likewise.
17638 * builtins.c: Likewise.
17639 * caller-save.c: Likewise.
17640 * calls.c: Likewise.
17641 * cfganal.c: Likewise.
17642 * cfgbuild.c: Likewise.
17644 * cfgcleanup.c: Likewise.
17645 * cfgexpand.c: Likewise.
17646 * cfghooks.c: Likewise.
17647 * cfgloopanal.c: Likewise.
17648 * cfgloop.c: Likewise.
17649 * cfgloopmanip.c: Likewise.
17650 * cfgrtl.c: Likewise.
17651 * cgraph.c: Likewise.
17652 * cgraphunit.c: Likewise.
17653 * combine.c: Likewise.
17654 * cprop.c: Likewise.
17657 * dojump.c: Likewise.
17659 * except.c: Likewise.
17660 * expmed.c: Likewise.
17661 * expr.c: Likewise.
17662 * final.c: Likewise.
17663 * fold-const.c: Likewise.
17664 * function.c: Likewise.
17665 * fwprop.c: Likewise.
17666 * gcc-plugin.h: Likewise.
17667 * gcse.c: Likewise.
17668 * genattrtab.c: Likewise.
17669 * genemit.c: Likewise.
17670 * gengtype.c: Likewise.
17671 * genopinit.c: Likewise.
17672 * genoutput.c: Likewise.
17673 * genpreds.c: Likewise.
17674 * genrecog.c: Likewise.
17675 * gimple-fold.c: Likewise.
17676 * gimple-iterator.c: Likewise.
17677 * gimple-ssa-isolate-paths.c: Likewise.
17678 * gimple-ssa-strength-reduction.c: Likewise.
17679 * graph.c: Likewise.
17680 * graphite-blocking.c: Likewise.
17681 * graphite.c: Likewise.
17682 * graphite-dependences.c: Likewise.
17683 * graphite-interchange.c: Likewise.
17684 * graphite-isl-ast-to-gimple.c: Likewise.
17685 * graphite-optimize-isl.c: Likewise.
17686 * graphite-poly.c: Likewise.
17687 * graphite-scop-detection.c: Likewise.
17688 * graphite-sese-to-poly.c: Likewise.
17689 * haifa-sched.c: Likewise.
17690 * ifcvt.c: Likewise.
17691 * internal-fn.c: Likewise.
17692 * ipa-cp.c: Likewise.
17693 * ipa-profile.c: Likewise.
17694 * ipa-split.c: Likewise.
17695 * ipa-utils.c: Likewise.
17696 * ira-build.c: Likewise.
17697 * ira-color.c: Likewise.
17698 * ira-conflicts.c: Likewise.
17699 * ira-costs.c: Likewise.
17700 * ira-emit.c: Likewise.
17701 * ira-lives.c: Likewise.
17702 * jump.c: Likewise.
17703 * loop-doloop.c: Likewise.
17704 * loop-init.c: Likewise.
17705 * loop-invariant.c: Likewise.
17706 * loop-unroll.c: Likewise.
17707 * lower-subreg.c: Likewise.
17708 * lra-assigns.c: Likewise.
17710 * lra-coalesce.c: Likewise.
17711 * lra-constraints.c: Likewise.
17712 * lra-lives.c: Likewise.
17713 * lto-cgraph.c: Likewise.
17714 * lto-streamer-in.c: Likewise.
17715 * mode-switching.c: Likewise.
17716 * modulo-sched.c: Likewise.
17717 * omp-low.c: Likewise.
17718 * optabs.c: Likewise.
17719 * passes.c: Likewise.
17720 * postreload.c: Likewise.
17721 * postreload-gcse.c: Likewise.
17722 * profile.c: Likewise.
17723 * recog.c: Likewise.
17724 * regstat.c: Likewise.
17725 * reload1.c: Likewise.
17726 * reorg.c: Likewise.
17727 * rtlanal.c: Likewise.
17728 * sched-ebb.c: Likewise.
17729 * sel-sched-ir.c: Likewise.
17730 * sese.c: Likewise.
17731 * shrink-wrap.c: Likewise.
17732 * simplify-rtx.c: Likewise.
17733 * stmt.c: Likewise.
17734 * store-motion.c: Likewise.
17735 * tracer.c: Likewise.
17736 * trans-mem.c: Likewise.
17737 * tree-call-cdce.c: Likewise.
17738 * tree-cfg.c: Likewise.
17739 * tree-cfgcleanup.c: Likewise.
17740 * tree-chkp.c: Likewise.
17741 * tree-complex.c: Likewise.
17742 * tree-eh.c: Likewise.
17743 * tree-if-conv.c: Likewise.
17744 * tree-loop-distribution.c: Likewise.
17745 * tree-outof-ssa.c: Likewise.
17746 * tree-parloops.c: Likewise.
17747 * tree-predcom.c: Likewise.
17748 * tree-pretty-print.c: Likewise.
17749 * tree-profile.c: Likewise.
17750 * tree-sra.c: Likewise.
17751 * tree-ssa.c: Likewise.
17752 * tree-ssa-coalesce.c: Likewise.
17753 * tree-ssa-dce.c: Likewise.
17754 * tree-ssa-dom.c: Likewise.
17755 * tree-ssa-forwprop.c: Likewise.
17756 * tree-ssa-ifcombine.c: Likewise.
17757 * tree-ssa-loop-ch.c: Likewise.
17758 * tree-ssa-loop-im.c: Likewise.
17759 * tree-ssa-loop-ivcanon.c: Likewise.
17760 * tree-ssa-loop-ivopts.c: Likewise.
17761 * tree-ssa-loop-manip.c: Likewise.
17762 * tree-ssa-loop-prefetch.c: Likewise.
17763 * tree-ssa-loop-unswitch.c: Likewise.
17764 * tree-ssa-math-opts.c: Likewise.
17765 * tree-ssa-phiopt.c: Likewise.
17766 * tree-ssa-pre.c: Likewise.
17767 * tree-ssa-reassoc.c: Likewise.
17768 * tree-ssa-sink.c: Likewise.
17769 * tree-ssa-tail-merge.c: Likewise.
17770 * tree-ssa-threadedge.c: Likewise.
17771 * tree-ssa-threadupdate.c: Likewise.
17772 * tree-switch-conversion.c: Likewise.
17773 * tree-tailcall.c: Likewise.
17774 * tree-vect-data-refs.c: Likewise.
17775 * tree-vect-loop.c: Likewise.
17776 * tree-vect-loop-manip.c: Likewise.
17777 * tree-vectorizer.c: Likewise.
17778 * tree-vrp.c: Likewise.
17779 * ubsan.c: Likewise.
17780 * value-prof.c: Likewise.
17781 * varasm.c: Likewise.
17782 * var-tracking.c: Likewise.
17783 * config/aarch64/aarch64-builtins.c: Likewise.
17784 * config/aarch64/aarch64.c: Likewise.
17785 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17786 * config/alpha/alpha.c: Likewise.
17787 * config/arc/arc.c: Likewise.
17788 * config/arm/arm.c: Likewise.
17789 * config/avr/avr.c: Likewise.
17790 * config/bfin/bfin.c: Likewise.
17791 * config/c6x/c6x.c: Likewise.
17792 * config/cr16/cr16.c: Likewise.
17793 * config/cris/cris.c: Likewise.
17794 * config/darwin.c: Likewise.
17795 * config/darwin-c.c: Likewise.
17796 * config/epiphany/epiphany.c: Likewise.
17797 * config/epiphany/mode-switch-use.c: Likewise.
17798 * config/epiphany/resolve-sw-modes.c: Likewise.
17799 * config/fr30/fr30.c: Likewise.
17800 * config/frv/frv.c: Likewise.
17801 * config/ft32/ft32.c: Likewise.
17802 * config/h8300/h8300.c: Likewise.
17803 * config/i386/i386.c: Likewise.
17804 * config/i386/winnt.c: Likewise.
17805 * config/ia64/ia64.c: Likewise.
17806 * config/iq2000/iq2000.c: Likewise.
17807 * config/lm32/lm32.c: Likewise.
17808 * config/m32c/m32c.c: Likewise.
17809 * config/m32r/m32r.c: Likewise.
17810 * config/m68k/m68k.c: Likewise.
17811 * config/mcore/mcore.c: Likewise.
17812 * config/mep/mep.c: Likewise.
17813 * config/microblaze/microblaze.c: Likewise.
17814 * config/mips/mips.c: Likewise.
17815 * config/mmix/mmix.c: Likewise.
17816 * config/mn10300/mn10300.c: Likewise.
17817 * config/moxie/moxie.c: Likewise.
17818 * config/msp430/msp430.c: Likewise.
17819 * config/nds32/nds32.c: Likewise.
17820 * config/nds32/nds32-cost.c: Likewise.
17821 * config/nds32/nds32-fp-as-gp.c: Likewise.
17822 * config/nds32/nds32-intrinsic.c: Likewise.
17823 * config/nds32/nds32-isr.c: Likewise.
17824 * config/nds32/nds32-md-auxiliary.c: Likewise.
17825 * config/nds32/nds32-memory-manipulation.c: Likewise.
17826 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17827 * config/nds32/nds32-predicates.c: Likewise.
17828 * config/nios2/nios2.c: Likewise.
17829 * config/nvptx/nvptx.c: Likewise.
17830 * config/pa/pa.c: Likewise.
17831 * config/pdp11/pdp11.c: Likewise.
17832 * config/rl78/rl78.c: Likewise.
17833 * config/rs6000/rs6000.c: Likewise.
17834 * config/rx/rx.c: Likewise.
17835 * config/s390/s390.c: Likewise.
17836 * config/sh/sh.c: Likewise.
17837 * config/sh/sh-mem.cc: Likewise.
17838 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17839 * config/sh/sh_treg_combine.cc: Likewise.
17840 * config/sparc/sparc.c: Likewise.
17841 * config/spu/spu.c: Likewise.
17842 * config/stormy16/stormy16.c: Likewise.
17843 * config/tilegx/tilegx.c: Likewise.
17844 * config/tilepro/tilepro.c: Likewise.
17845 * config/v850/v850.c: Likewise.
17846 * config/vax/vax.c: Likewise.
17847 * config/visium/visium.c: Likewise.
17848 * config/xtensa/xtensa.c: Likewise.
17850 2015-07-10 Richard Biener <rguenther@suse.de>
17852 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17853 (decision_tree::gen_gimple): Likewise.
17854 (decision_tree::gen_generic): Likewise.
17856 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17859 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17860 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17862 2015-07-10 Jakub Jelinek <jakub@redhat.com>
17864 PR middle-end/66820
17865 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17866 or ORT_TASK contexts.
17867 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17870 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17872 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17875 2015-07-10 Tom de Vries <tom@codesourcery.com>
17877 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17878 insert nit + 1 bound.
17880 2015-07-10 Richard Biener <rguenther@suse.de>
17882 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17883 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17884 (if_convertible_loop_p_1): For this always compute bb predicates.
17885 (if_convertible_loop_p): And free them.
17887 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17889 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17892 2015-07-10 Richard Biener <rguenther@suse.de>
17894 PR tree-optimization/66823
17895 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17896 inverted predicate.
17898 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
17900 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17901 to handle mips[32|64]r3 and mips[32|64]r5.
17903 2015-07-09 Jakub Jelinek <jakub@redhat.com>
17905 PR middle-end/66633
17906 * tree-nested.c (get_static_chain): Or in a flag into
17907 info->static_chain_added.
17908 (get_frame_field, get_nonlocal_debug_decl): Likewise.
17909 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17910 2015-07-01 changes.
17911 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17912 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17915 PR tree-optimization/66718
17916 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17918 (vect_simd_lane_linear): New function.
17919 (vectorizable_simd_clone_call): Support using linear arguments for
17920 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17922 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17925 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17927 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17929 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17930 Use machine mode, not enum machine_mode in the prototype.
17932 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17933 classify 128-bit floating point support.
17934 (FLOAT128_IBM_P): Likewise.
17935 (FLOAT128_VECTOR_P): Likewise.
17936 (FLOAT128_2REG_P): Likewise.
17937 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17938 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17939 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17940 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17942 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17943 tests against TFmode/TDmode, since those modes do not use VSX
17945 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17947 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17948 tests against TFmode, etc.
17949 (invalid_e500_subreg): Add tests against IFmode/KFmode.
17950 (reg_offset_addressing_ok_p): Likewise.
17951 (rs6000_legitimate_offset_address_p): Likewise.
17952 (rs6000_legitimize_address): Likewise.
17953 (rs6000_legitimize_reload_address): Likewise.
17954 (rs6000_legitimate_address_p): Clean up tests against TFmode and
17955 TDmode to use the new helper macros, which will include IFmode and
17957 (rs6000_emit_move): Likewise.
17958 (rs6000_darwin64_record_arg_recurse): Likewise.
17959 (print_operand): Likewise.
17960 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17961 that uses a single vector register as a vector and not as a
17962 floating point register in terms of the calling sequence.
17963 (rs6000_discover_homogeneous_aggregate): Likewise.
17964 (rs6000_return_in_memory): Likewise.
17965 (init_cumulative_args): Likewise.
17966 (rs6000_function_arg_boundary): Likewise.
17967 (rs6000_function_arg_advance_1): Likewise.
17968 (rs6000_function_arg): Likewise.
17969 (rs6000_pass_by_reference): Likewise.
17970 (rs6000_gimplify_va_arg): Likewise.
17971 (rs6000_secondary_reload_memory): Use machine_mode not enum
17973 (rs6000_split_multireg_move): Use new helper macros.
17974 (spe_func_has_64bit_regs_p): Likewise.
17975 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17976 (output_toc): Use new helper macros.
17977 (rs6000_register_move_cost): Likewise.
17978 (rs6000_function_value): Add IEEE 128-bit floating point calling
17980 (rs6000_libcall_value): Likewise.
17981 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17982 floating point support.
17983 (rs6000_vector_mode_supported_p): Likewise.
17985 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
17987 PR rtl-optimization/66782
17988 * lra-int.h (struct lra_insn_recog_data): Add comment about
17989 clobbered hard regs for arg_hard_regs.
17990 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17991 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17992 Add condition for processing used hard regs.
17993 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17994 Process clobbered hard regs.
17996 2015-07-09 Michael Matz <matz@suse.de>
17998 * genmatch.c (fprintf_indent): New function.
17999 (operand::gen_transform): Add indent parameter.
18000 (expr::gen_transform, c_expr::gen_transform,
18001 capture::gen_transform): Ditto and use fprintf_indent.
18002 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
18003 (dt_operand::gen, dt_operand::gen_predicate,
18004 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
18005 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
18006 (decision_tree::gen_gimple): Adjust calls and indent generated
18008 (decision_tree::gen_generic): Ditto.
18009 (write_predicate): Ditto.
18011 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18014 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
18015 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
18016 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
18017 {GENERAL,SSE,MMX}_REG_P where appropriate.
18019 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
18021 * lto-streamer.h: Don't include target.h and alloc-pool.h.
18022 * builtins.c: Adjust includes.
18023 * gimple.c: Likewise.
18024 * ipa-icf.c: Likewise.
18025 * lto-opts.c: Likewise.
18026 * ipa-reference.c: Likewise.
18027 * lto-section-out.c: Likewise.
18028 * lto-streamer-in.c: Likewise.
18029 * lto-streamer-out.c: Likewise.
18030 * opts-global.c: Likewise.
18031 * symtab.c: Likewise.
18032 * tree-chkp.c: Likewise.
18033 * tree-ssa-live.c: Likewise.
18034 * tree-streamer-in.c: Likewise.
18035 * tree-streamer-out.c: Likewise.
18036 * config/darwin.c: Likewise.
18037 * config/i386/winnt.c: Likewise.
18039 2015-07-09 Richard Biener <rguenther@suse.de>
18041 * genmatch.c (struct expr): Add force_single_use flag.
18042 (expr::expr): Add copy constructor.
18043 (capture_info::walk_match): Gather force_single_use captures.
18044 (expr::gen_transform): Use possibly NULLified sequence.
18045 (dt_simplify::gen): Apply single-use restrictions by NULLifying
18046 seq if any constrained expr is not single-use.
18047 (parser::parse_expr): Refactor to allow multiple flags. Handle
18048 's' flag to force an expression have a single-use if the pattern
18049 simplifies to more than one statement.
18050 * match.pd: Convert most single_use conditionals to :s flags.
18052 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18054 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
18055 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18056 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
18058 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
18060 * flags.h: Don't include flag-types.h or options.h.
18061 * opts-common.c: Adjust includes.
18062 * opts-global.c: Likewise.
18063 * common/config/epiphany/epiphany-common.c: Likewise.
18065 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18068 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
18071 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18074 * config/i386/i386.c (ix86_return_in_memory): Return true
18075 if int_size_in_bytes returns negative for IA MCU.
18077 2015-07-09 Marek Polacek <polacek@redhat.com>
18079 PR tree-optimization/66718
18080 * Makefile.in (OBJS): Add gimple-laddress.o.
18081 * passes.def: Schedule pass_laddress.
18082 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
18083 * tree-pass.h (make_pass_laddress): Declare.
18084 * gimple-laddress.c: New file.
18086 2015-07-09 Richard Biener <rguenther@suse.de>
18088 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
18090 2015-07-09 Richard Biener <rguenther@suse.de>
18092 PR tree-optimization/66807
18093 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
18095 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
18097 * function.c (stack_protect_epilogue): Use if rather than switch for
18098 check targetm.have_stack_protect_test.
18100 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18102 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
18103 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
18104 * config/arc/arc.h: Likewise.
18105 * config/arm/arm.h: Likewise.
18106 * config/bfin/bfin.h: Likewise.
18107 * config/epiphany/epiphany.h: Likewise.
18108 * config/frv/frv.h: Likewise.
18109 * config/ia64/ia64.h: Likewise.
18110 * config/iq2000/iq2000.h: Likewise.
18111 * config/lm32/lm32.h: Likewise.
18112 * config/m32r/m32r.h: Likewise.
18113 * config/mcore/mcore.h: Likewise.
18114 * config/mep/mep.h: Likewise.
18115 * config/microblaze/microblaze.h: Likewise.
18116 * config/mips/mips.h: Likewise.
18117 * config/mmix/mmix.h: Likewise.
18118 * config/mn10300/mn10300.h: Likewise.
18119 * config/nds32/nds32.h: Likewise.
18120 * config/nios2/nios2.h: Likewise.
18121 * config/pa/pa.h: Likewise.
18122 * config/rl78/rl78.h: Likewise.
18123 * config/sh/sh.h: Likewise.
18124 * config/sparc/sparc.h: Likewise.
18125 * config/stormy16/stormy16.h: Likewise.
18126 * config/tilegx/tilegx.h: Likewise.
18127 * config/tilepro/tilepro.h: Likewise.
18128 * config/v850/v850.h: Likewise.
18129 * config/xtensa/xtensa.h: Likewise.
18130 * doc/tm.texi: Regenerate.
18131 * doc/tm.texi.in: Adjust.
18132 * combine.c (simplify_set): Likewise.
18133 (simplify_comparison): Likewise.
18134 * expr.c (store_constructor): Likewise.
18135 * internal-fn.c (expand_arith_overflow): Likewise.
18136 * reload.c (push_reload): Likewise.
18137 (find_reloads): Likewise.
18138 (find_reloads_subreg_address): Likewise.
18139 * reload1.c (eliminate_regs_1): Likewise.
18140 * rtlanal.c (nonzero_bits1): Likewise.
18141 (num_sign_bit_copies1): Likewise.
18142 * simplify-rtx.c (simplify_truncation): Likewise.
18144 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18146 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
18147 of AUTO_INC_DEC with the preprocessor.
18148 * combine.c (combine_instructions): Likewise.
18149 (can_combine_p): Likewise.
18150 (try_combine): Likewise.
18151 * emit-rtl.c (try_split): Likewise.
18152 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18153 * lower-subreg.c (resolve_simple_move): Likewise.
18154 * lra.c (update_inc_notes): Likewise.
18155 * recog.c (asm_operand_ok): Likewise.
18156 (constrain_operands): Likewise.
18157 * regrename.c (scan_rtx_address): Likewise.
18158 * reload.c (update_auto_inc_notes): Likewise.
18159 (reg_inc_found_and_valid_p): Likewise.
18160 * reload1.c (reload): Likewise.
18161 (emit_input_reload_insns): Likewise.
18162 (delete_output_reload): Likewise.
18163 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18164 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18166 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18168 * rtl.h: Always define AUTO_INC_DEC.
18169 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18170 * combine.c (combine_instructions): Likewise.
18171 (can_combine_p): Likewise.
18172 (try_combine): Likewise.
18173 * emit-rtl.c (try_split): Likewise.
18174 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18175 * lower-subreg.c (resolve_simple_move): Likewise.
18176 * lra.c (update_inc_notes): Likewise.
18177 * recog.c (asm_operand_ok): Likewise.
18178 (constrain_operands): Likewise.
18179 * regrename.c (scan_rtx_address): Likewise.
18180 * reload.c (update_auto_inc_notes): Likewise.
18181 (find_equiv_reg): Likewise.
18182 * reload1.c (reload): Likewise.
18183 (reload_as_needed): Likewise.
18184 (choose_reload_regs): Likewise.
18185 (emit_input_reload_insns): Likewise.
18186 (delete_output_reload): Likewise.
18187 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18188 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18190 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18192 * combine.c (can_combine_def_p): Don't check the value of
18193 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18194 (combinable_i3pat): Likewise.
18195 (mark_used_regs_combine): Likewise.
18196 * regrename.c (rename_chains): Likewise.
18197 * reload.c (find_reloads_address): Likewise.
18198 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18200 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18202 * combine.c (update_rsp_from_reg_equal): Don't check if
18203 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18204 (reg_nonzero_bits_for_combine): Likewise.
18205 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18207 * config/frv/frv.h: Likewise.
18208 * config/lm32/lm32.h: Likewise.
18209 * config/mep/mep.h: Likewise.
18210 * config/mips/mips.h: Likewise.
18211 * config/rs6000/rs6000.h: Likewise.
18212 * config/sh/sh.h: Likewise.
18213 * config/tilegx/tilegx.h (enum reg_class): Likewise.
18214 * config/tilepro/tilepro.h: Likewise.
18215 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18216 * doc/tm.texi: Regenerate.
18217 * doc/tm.texi.in: Adjust.
18218 * rtlanal.c (nonzero_bits1): Likewise.
18220 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18222 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18223 with the preprocessor.
18224 (combine_instructions): Likewise.
18225 (try_combine): Likewise.
18227 (distribute_notes): Likewise.
18229 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18231 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18233 (simplify_set): Likewise.
18234 * cse.c (cse_insn): Likewise.
18235 * fold-const.c (fold_single_bit_test): Likewise.
18236 (fold_unary_loc): Likewise.
18237 * postreload.c (reload_cse_simplify_set): Likewise.
18238 (reload_cse_simplify_operands): Likewise.
18240 2015-07-08 Jiong Wang <jiong.wang@arm.com>
18242 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18243 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18245 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18248 * config/i386/x86intrin.h: Include <adxintrin.h> even if
18249 __iamcu__ is defined.
18251 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18253 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18255 2015-07-08 Iain Sandoe <iain@codesourcery.com>
18258 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18259 names from preservation.
18261 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18264 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18266 (function_arg_advance_32): Don't pass vectors in registers for
18268 (function_arg_32): Likewise.
18269 (ix86_return_in_memory): Don't return vectors in registers for
18272 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
18274 PR middle-end/66334
18275 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18276 hard regno live at the start of BB with incoming abnormal edges.
18277 * lra-lives.c (process_bb_lives): Ditto.
18279 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
18282 * config/nvptx/mkoffload.c (main): Create an offload image only in
18283 64-bit configurations.
18285 2015-07-08 Martin Liska <mliska@suse.cz>
18288 * tree-sra.c (create_access_1): Call ctor without brackets.
18289 (create_artificial_child_access): Likewise.
18291 2015-07-08 Richard Biener <rguenther@suse.de>
18293 PR tree-optimization/66793
18294 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18295 Properly split the block after stmts ending it.
18297 2015-07-08 Richard Biener <rguenther@suse.de>
18299 PR tree-optimization/66794
18300 * passes.c (execute_function_todo): Assert that post-dominators
18302 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18303 Free post-dominators.
18305 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18307 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18310 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18312 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18313 more than or equal 8 and less than 32 when optimizing for size.
18315 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18317 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18318 COSTS_N_INSNS (1) and increment it appropriately throughout the
18321 2015-07-08 Richard Biener <rguenther@suse.de>
18323 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18325 2015-07-08 Alan Modra <amodra@gmail.com>
18327 * target.def (rtx_costs): Remove "code" param, add "mode".
18328 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18329 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
18330 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18331 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
18332 call. Track mode when given in rtx.
18333 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
18334 (default_address_cost): Pass Pmode to rtx_cost.
18335 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18336 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18338 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
18339 (notreg_cost): Add mode param. Use it.
18340 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
18341 mode param and pass to set_src_cost. Update all calls.
18342 (hash_scan_set): Formatting.
18343 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18344 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18346 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18347 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18348 emit_store_flag): Update set_src_cost and rtx_cost calls.
18349 * auto-inc-dec.c (attempt_change): Likewise.
18350 * calls.c (precompute_register_parameters): Likewise.
18351 * combine.c (expand_compound_operation, make_extraction,
18352 force_to_mode, distribute_and_simplify_rtx): Likewise.
18353 * dojump.c (prefer_and_bit_test): Likewise.
18354 * dse.c (find_shift_sequence): Likewise.
18355 * expr.c (compress_float_constant): Likewise.
18356 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18357 * ifcvt.c (noce_try_sign_mask): Likewise.
18358 * loop-doloop.c (doloop_optimize): Likewise.
18359 * loop-invariant.c (create_new_invariant): Likewise.
18360 * lower-subreg.c (shift_cost, compute_costs): Likewise.
18361 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18362 lshift_cheap_p): Likewise.
18363 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18364 try_replace_in_use, reload_cse_move2add): Likewise.
18365 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18367 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18368 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18369 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18370 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18371 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18372 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
18374 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18375 * config/arc/arc.c (arc_rtx_costs): Likewise.
18376 * config/arm/arm.c (arm_rtx_costs): Likewise.
18377 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18378 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18379 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18380 * config/cris/cris.c (cris_rtx_costs): Likewise.
18381 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18382 * config/frv/frv.c (frv_rtx_costs): Likewise.
18383 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18384 * config/i386/i386.c (ix86_rtx_costs): Likewise.
18385 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18386 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18387 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18388 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18389 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18390 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18391 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18392 * config/mep/mep.c (mep_rtx_cost): Likewise.
18393 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18394 * config/mips/mips.c (mips_rtx_costs): Likewise.
18395 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18396 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18397 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18398 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18399 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18400 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18401 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18402 * config/pa/pa.c (hppa_rtx_costs): Likewise.
18403 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18404 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18405 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18406 * config/s390/s390.c (s390_rtx_costs): Likewise.
18407 * config/sh/sh.c (sh_rtx_costs): Likewise.
18408 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18409 * config/spu/spu.c (spu_rtx_costs): Likewise.
18410 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18411 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18412 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18413 * config/v850/v850.c (v850_rtx_costs): Likewise.
18414 * config/vax/vax.c (vax_rtx_costs): Likewise.
18415 * config/visium/visium.c (visium_rtx_costs): Likewise.
18416 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18417 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18418 "code" param, and pass as outer_code to first rtx_cost call. Pass
18419 mode to rtx_cost calls.
18420 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18422 (aarch64_rtx_costs_wrapper): Update.
18423 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18424 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18426 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18427 and rtx_cost calls.
18428 (avr_operand_rtx_cost): Similarly.
18429 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18430 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18431 * config/mips/mips.c (mips_stack_address_p): Comment typo.
18432 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18433 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18434 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18436 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18437 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18438 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18439 * doc/tm.texi: Regenerate.
18441 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
18443 * tree-core.h: Include symtab.h.
18444 * rtl.h: Include hard-reg-set.h but not flags.h.
18445 (HARD_CONST): Remove condition compilation involving HARD_CONST since
18446 hard-reg-set.h is always included.
18447 * regs.h: Don't include hard-reg-set.h or rtl.h.
18448 * cfg.h: Include dominance.h.
18449 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18450 * backend.h: New. Aggregate commonly used backend header files.
18451 * gimple-ssa.h: Don't include tree-hasher.h.
18452 * ssa.h: New. Aggregate commonly used SSA header files.
18453 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18454 * sel-sched-ir.h: Flatten includes.
18455 * lra-int.h: Flatten completely.
18456 * sel-sched-dump.h: Flatten includes.
18457 * ira-int.h: Flatten includes.
18458 * gimple-streamer.h: Remove all includes.
18459 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18460 * resource.h: Flatten hard-reg-set.h and df.h.
18461 * sched-int.h: Flatten insn-arrt.h and df.h.
18462 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18463 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18464 * genattrtab.c (write_header): Adjust generated includes.
18465 * genautomata.c (main): Likewise.
18466 * genconditions.c (write-header): Likewise.
18467 * genemit.c (main): Likewise.
18468 * gengtype.c (open_base_files): Likewise.
18469 * genopinit.c (main): Likewise.
18470 * genoutput.c (output_prologue): Likewise.
18471 * genpeep.c (main): Likewise.
18472 * genpreds.c (write_insn_preds_c): Likewise.
18473 * genrecog.c (write_header): Likewise.
18474 * alias.c: Adjust includes.
18475 * asan.c: Likewise.
18476 * attribs.c: Likewise.
18477 * auto-inc-dec.c: Likewise.
18478 * auto-profile.c: Likewise.
18479 * bb-reorder.c: Likewise.
18480 * bt-load.c: Likewise.
18481 * builtins.c: Likewise.
18482 * caller-save.c: Likewise.
18483 * calls.c: Likewise.
18484 * ccmp.c: Likewise.
18486 * cfganal.c: Likewise.
18487 * cfgbuild.c: Likewise.
18488 * cfgcleanup.c: Likewise.
18489 * cfgexpand.c: Likewise.
18490 * cfghooks.c: Likewise.
18491 * cfgloop.c: Likewise.
18492 * cfgloopanal.c: Likewise.
18493 * cfgloopmanip.c: Likewise.
18494 * cfgrtl.c: Likewise.
18495 * cgraph.c: Likewise.
18496 * cgraphbuild.c: Likewise.
18497 * cgraphclones.c: Likewise.
18498 * cgraphunit.c: Likewise.
18499 * cilk-common.c: Likewise.
18500 * combine-stack-adj.c: Likewise.
18501 * combine.c: Likewise.
18502 * compare-elim.c: Likewise.
18503 * convert.c: Likewise.
18504 * coverage.c: Likewise.
18505 * cppbuiltin.c: Likewise.
18506 * cprop.c: Likewise.
18508 * cselib.c: Likewise.
18509 * data-streamer-in.c: Likewise.
18510 * data-streamer-out.c: Likewise.
18511 * data-streamer.c: Likewise.
18512 * dbxout.c: Likewise.
18515 * debug.c: Likewise.
18516 * df-core.c: Likewise.
18517 * df-problems.c: Likewise.
18518 * df-scan.c: Likewise.
18520 * dojump.c: Likewise.
18521 * dominance.c: Likewise.
18522 * domwalk.c: Likewise.
18523 * double-int.c: Likewise.
18525 * dumpfile.c: Likewise.
18526 * dwarf2asm.c: Likewise.
18527 * dwarf2cfi.c: Likewise.
18528 * dwarf2out.c: Likewise.
18529 * emit-rtl.c: Likewise.
18530 * et-forest.c: Likewise.
18531 * except.c: Likewise.
18532 * explow.c: Likewise.
18533 * expmed.c: Likewise.
18534 * expr.c: Likewise.
18535 * final.c: Likewise.
18536 * fixed-value.c: Likewise.
18537 * fold-const.c: Likewise.
18538 * function.c: Likewise.
18539 * fwprop.c: Likewise.
18540 * gcc-plugin.h: Likewise.
18541 * gcse-common.c: Likewise.
18542 * gcse.c: Likewise.
18543 * generic-match-head.c: Likewise.
18544 * ggc-page.c: Likewise.
18545 * gimple-builder.c: Likewise.
18546 * gimple-expr.c: Likewise.
18547 * gimple-fold.c: Likewise.
18548 * gimple-iterator.c: Likewise.
18549 * gimple-low.c: Likewise.
18550 * gimple-match-head.c: Likewise.
18551 * gimple-pretty-print.c: Likewise.
18552 * gimple-ssa-isolate-paths.c: Likewise.
18553 * gimple-ssa-strength-reduction.c: Likewise.
18554 * gimple-streamer-in.c: Likewise.
18555 * gimple-streamer-out.c: Likewise.
18556 * gimple-walk.c: Likewise.
18557 * gimple.c: Likewise.
18558 * gimplify-me.c: Likewise.
18559 * gimplify.c: Likewise.
18560 * godump.c: Likewise.
18561 * graph.c: Likewise.
18562 * graphite-blocking.c: Likewise.
18563 * graphite-dependences.c: Likewise.
18564 * graphite-interchange.c: Likewise.
18565 * graphite-isl-ast-to-gimple.c: Likewise.
18566 * graphite-optimize-isl.c: Likewise.
18567 * graphite-poly.c: Likewise.
18568 * graphite-scop-detection.c: Likewise.
18569 * graphite-sese-to-poly.c: Likewise.
18570 * graphite.c: Likewise.
18571 * haifa-sched.c: Likewise.
18572 * hw-doloop.c: Likewise.
18573 * ifcvt.c: Likewise.
18574 * init-regs.c: Likewise.
18575 * internal-fn.c: Likewise.
18576 * ipa-chkp.c: Likewise.
18577 * ipa-comdats.c: Likewise.
18578 * ipa-cp.c: Likewise.
18579 * ipa-devirt.c: Likewise.
18580 * ipa-icf-gimple.c: Likewise.
18581 * ipa-icf.c: Likewise.
18582 * ipa-inline-analysis.c: Likewise.
18583 * ipa-inline-transform.c: Likewise.
18584 * ipa-inline.c: Likewise.
18585 * ipa-polymorphic-call.c: Likewise.
18586 * ipa-profile.c: Likewise.
18587 * ipa-prop.c: Likewise.
18588 * ipa-pure-const.c: Likewise.
18589 * ipa-ref.c: Likewise.
18590 * ipa-reference.c: Likewise.
18591 * ipa-split.c: Likewise.
18592 * ipa-utils.c: Likewise.
18593 * ipa-visibility.c: Likewise.
18595 * ira-build.c: Likewise.
18596 * ira-color.c: Likewise.
18597 * ira-conflicts.c: Likewise.
18598 * ira-costs.c: Likewise.
18599 * ira-emit.c: Likewise.
18600 * ira-lives.c: Likewise.
18602 * jump.c: Likewise.
18603 * langhooks.c: Likewise.
18605 * loop-doloop.c: Likewise.
18606 * loop-init.c: Likewise.
18607 * loop-invariant.c: Likewise.
18608 * loop-iv.c: Likewise.
18609 * loop-unroll.c: Likewise.
18610 * lower-subreg.c: Likewise.
18611 * lra-assigns.c: Likewise.
18612 * lra-coalesce.c: Likewise.
18613 * lra-constraints.c: Likewise.
18614 * lra-eliminations.c: Likewise.
18615 * lra-lives.c: Likewise.
18616 * lra-remat.c: Likewise.
18617 * lra-spills.c: Likewise.
18619 * lto-cgraph.c: Likewise.
18620 * lto-compress.c: Likewise.
18621 * lto-opts.c: Likewise.
18622 * lto-section-in.c: Likewise.
18623 * lto-section-out.c: Likewise.
18624 * lto-streamer-in.c: Likewise.
18625 * lto-streamer-out.c: Likewise.
18626 * lto-streamer.c: Likewise.
18628 * mode-switching.c: Likewise.
18629 * modulo-sched.c: Likewise.
18630 * omega.c: Likewise.
18631 * omp-low.c: Likewise.
18632 * optabs.c: Likewise.
18633 * opts-global.c: Likewise.
18634 * passes.c: Likewise.
18635 * plugin.c: Likewise.
18636 * postreload-gcse.c: Likewise.
18637 * postreload.c: Likewise.
18638 * predict.c: Likewise.
18639 * print-rtl.c: Likewise.
18640 * print-tree.c: Likewise.
18641 * profile.c: Likewise.
18642 * real.c: Likewise.
18643 * realmpfr.c: Likewise.
18644 * recog.c: Likewise.
18646 * reg-stack.c: Likewise.
18647 * regcprop.c: Likewise.
18648 * reginfo.c: Likewise.
18649 * regrename.c: Likewise.
18650 * regstat.c: Likewise.
18651 * reload.c: Likewise.
18652 * reload1.c: Likewise.
18653 * reorg.c: Likewise.
18654 * resource.c: Likewise.
18655 * rtl-chkp.c: Likewise.
18656 * rtlanal.c: Likewise.
18657 * rtlhooks.c: Likewise.
18658 * sanopt.c: Likewise.
18659 * sched-deps.c: Likewise.
18660 * sched-ebb.c: Likewise.
18661 * sched-rgn.c: Likewise.
18662 * sched-vis.c: Likewise.
18663 * sdbout.c: Likewise.
18664 * sel-sched-dump.c: Likewise.
18665 * sel-sched-ir.c: Likewise.
18666 * sel-sched.c: Likewise.
18667 * sese.c: Likewise.
18668 * shrink-wrap.c: Likewise.
18669 * simplify-rtx.c: Likewise.
18670 * stack-ptr-mod.c: Likewise.
18671 * stmt.c: Likewise.
18672 * stor-layout.c: Likewise.
18673 * store-motion.c: Likewise.
18674 * stringpool.c: Likewise.
18675 * symtab.c: Likewise.
18676 * target-globals.c: Likewise.
18677 * targhooks.c: Likewise.
18678 * toplev.c: Likewise.
18679 * tracer.c: Likewise.
18680 * trans-mem.c: Likewise.
18681 * tree-affine.c: Likewise.
18682 * tree-browser.c: Likewise.
18683 * tree-call-cdce.c: Likewise.
18684 * tree-cfg.c: Likewise.
18685 * tree-cfgcleanup.c: Likewise.
18686 * tree-chkp-opt.c: Likewise.
18687 * tree-chkp.c: Likewise.
18688 * tree-chrec.c: Likewise.
18689 * tree-complex.c: Likewise.
18690 * tree-data-ref.c: Likewise.
18691 * tree-dfa.c: Likewise.
18692 * tree-diagnostic.c: Likewise.
18693 * tree-dump.c: Likewise.
18694 * tree-eh.c: Likewise.
18695 * tree-emutls.c: Likewise.
18696 * tree-if-conv.c: Likewise.
18697 * tree-inline.c: Likewise.
18698 * tree-into-ssa.c: Likewise.
18699 * tree-iterator.c: Likewise.
18700 * tree-loop-distribution.c: Likewise.
18701 * tree-nested.c: Likewise.
18702 * tree-nrv.c: Likewise.
18703 * tree-object-size.c: Likewise.
18704 * tree-outof-ssa.c: Likewise.
18705 * tree-parloops.c: Likewise.
18706 * tree-phinodes.c: Likewise.
18707 * tree-predcom.c: Likewise.
18708 * tree-pretty-print.c: Likewise.
18709 * tree-profile.c: Likewise.
18710 * tree-scalar-evolution.c: Likewise.
18711 * tree-sra.c: Likewise.
18712 * tree-ssa-address.c: Likewise.
18713 * tree-ssa-alias.c: Likewise.
18714 * tree-ssa-ccp.c: Likewise.
18715 * tree-ssa-coalesce.c: Likewise.
18716 * tree-ssa-copy.c: Likewise.
18717 * tree-ssa-copyrename.c: Likewise.
18718 * tree-ssa-dce.c: Likewise.
18719 * tree-ssa-dom.c: Likewise.
18720 * tree-ssa-dse.c: Likewise.
18721 * tree-ssa-forwprop.c: Likewise.
18722 * tree-ssa-ifcombine.c: Likewise.
18723 * tree-ssa-live.c: Likewise.
18724 * tree-ssa-loop-ch.c: Likewise.
18725 * tree-ssa-loop-im.c: Likewise.
18726 * tree-ssa-loop-ivcanon.c: Likewise.
18727 * tree-ssa-loop-ivopts.c: Likewise.
18728 * tree-ssa-loop-manip.c: Likewise.
18729 * tree-ssa-loop-niter.c: Likewise.
18730 * tree-ssa-loop-prefetch.c: Likewise.
18731 * tree-ssa-loop-unswitch.c: Likewise.
18732 * tree-ssa-loop.c: Likewise.
18733 * tree-ssa-math-opts.c: Likewise.
18734 * tree-ssa-operands.c: Likewise.
18735 * tree-ssa-phiopt.c: Likewise.
18736 * tree-ssa-phiprop.c: Likewise.
18737 * tree-ssa-pre.c: Likewise.
18738 * tree-ssa-propagate.c: Likewise.
18739 * tree-ssa-reassoc.c: Likewise.
18740 * tree-ssa-sccvn.c: Likewise.
18741 * tree-ssa-scopedtables.c: Likewise.
18742 * tree-ssa-sink.c: Likewise.
18743 * tree-ssa-strlen.c: Likewise.
18744 * tree-ssa-structalias.c: Likewise.
18745 * tree-ssa-tail-merge.c: Likewise.
18746 * tree-ssa-ter.c: Likewise.
18747 * tree-ssa-threadedge.c: Likewise.
18748 * tree-ssa-threadupdate.c: Likewise.
18749 * tree-ssa-uncprop.c: Likewise.
18750 * tree-ssa-uninit.c: Likewise.
18751 * tree-ssa.c: Likewise.
18752 * tree-ssanames.c: Likewise.
18753 * tree-stdarg.c: Likewise.
18754 * tree-streamer-in.c: Likewise.
18755 * tree-streamer-out.c: Likewise.
18756 * tree-streamer.c: Likewise.
18757 * tree-switch-conversion.c: Likewise.
18758 * tree-tailcall.c: Likewise.
18759 * tree-vect-data-refs.c: Likewise.
18760 * tree-vect-generic.c: Likewise.
18761 * tree-vect-loop-manip.c: Likewise.
18762 * tree-vect-loop.c: Likewise.
18763 * tree-vect-patterns.c: Likewise.
18764 * tree-vect-slp.c: Likewise.
18765 * tree-vect-stmts.c: Likewise.
18766 * tree-vectorizer.c: Likewise.
18767 * tree-vrp.c: Likewise.
18768 * tree.c: Likewise.
18769 * tsan.c: Likewise.
18770 * ubsan.c: Likewise.
18771 * valtrack.c: Likewise.
18772 * value-prof.c: Likewise.
18773 * var-tracking.c: Likewise.
18774 * varasm.c: Likewise.
18775 * varpool.c: Likewise.
18776 * vmsdbgout.c: Likewise.
18777 * vtable-verify.c: Likewise.
18779 * wide-int.cc: Likewise.
18780 * xcoffout.c: Likewise.
18781 * config/aarch64/aarch64-builtins.c: Likewise.
18782 * config/aarch64/aarch64.c: Likewise.
18783 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18784 * config/alpha/alpha.c: Likewise.
18785 * config/arc/arc.c: Likewise.
18786 * config/arm/aarch-common.c: Likewise.
18787 * config/arm/arm-builtins.c: Likewise.
18788 * config/arm/arm-c.c: Likewise.
18789 * config/arm/arm.c: Likewise.
18790 * config/avr/avr-c.c: Likewise.
18791 * config/avr/avr-log.c: Likewise.
18792 * config/avr/avr.c: Likewise.
18793 * config/bfin/bfin.c: Likewise.
18794 * config/c6x/c6x.c: Likewise.
18795 * config/cr16/cr16.c: Likewise.
18796 * config/cris/cris.c: Likewise.
18797 * config/darwin-c.c: Likewise.
18798 * config/darwin.c: Likewise.
18799 * config/epiphany/epiphany.c: Likewise.
18800 * config/epiphany/mode-switch-use.c: Likewise.
18801 * config/epiphany/resolve-sw-modes.c: Likewise.
18802 * config/fr30/fr30.c: Likewise.
18803 * config/frv/frv.c: Likewise.
18804 * config/ft32/ft32.c: Likewise.
18805 * config/h8300/h8300.c: Likewise.
18806 * config/i386/i386-c.c: Likewise.
18807 * config/i386/i386.c: Likewise.
18808 * config/i386/msformat-c.c: Likewise.
18809 * config/i386/winnt-cxx.c: Likewise.
18810 * config/i386/winnt-stubs.c: Likewise.
18811 * config/i386/winnt.c: Likewise.
18812 * config/ia64/ia64-c.c: Likewise.
18813 * config/ia64/ia64.c: Likewise.
18814 * config/iq2000/iq2000.c: Likewise.
18815 * config/lm32/lm32.c: Likewise.
18816 * config/m32c/m32c-pragma.c: Likewise.
18817 * config/m32c/m32c.c: Likewise.
18818 * config/m32r/m32r.c: Likewise.
18819 * config/m68k/m68k.c: Likewise.
18820 * config/mcore/mcore.c: Likewise.
18821 * config/mep/mep-pragma.c: Likewise.
18822 * config/mep/mep.c: Likewise.
18823 * config/microblaze/microblaze-c.c: Likewise.
18824 * config/microblaze/microblaze.c: Likewise.
18825 * config/mips/mips.c: Likewise.
18826 * config/mmix/mmix.c: Likewise.
18827 * config/mn10300/mn10300.c: Likewise.
18828 * config/moxie/moxie.c: Likewise.
18829 * config/msp430/msp430-c.c: Likewise.
18830 * config/msp430/msp430.c: Likewise.
18831 * config/nds32/nds32-cost.c: Likewise.
18832 * config/nds32/nds32-fp-as-gp.c: Likewise.
18833 * config/nds32/nds32-intrinsic.c: Likewise.
18834 * config/nds32/nds32-isr.c: Likewise.
18835 * config/nds32/nds32-md-auxiliary.c: Likewise.
18836 * config/nds32/nds32-memory-manipulation.c: Likewise.
18837 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18838 * config/nds32/nds32-predicates.c: Likewise.
18839 * config/nds32/nds32.c: Likewise.
18840 * config/nios2/nios2.c: Likewise.
18841 * config/nvptx/nvptx.c: Likewise.
18842 * config/pa/pa.c: Likewise.
18843 * config/pdp11/pdp11.c: Likewise.
18844 * config/rl78/rl78-c.c: Likewise.
18845 * config/rl78/rl78.c: Likewise.
18846 * config/rs6000/rs6000-c.c: Likewise.
18847 * config/rs6000/rs6000.c: Likewise.
18848 * config/rx/rx.c: Likewise.
18849 * config/s390/s390-c.c: Likewise.
18850 * config/s390/s390.c: Likewise.
18851 * config/sh/sh-c.c: Likewise.
18852 * config/sh/sh-mem.cc: Likewise.
18853 * config/sh/sh.c: Likewise.
18854 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18855 * config/sh/sh_treg_combine.cc: Likewise.
18856 * config/sol2-c.c: Likewise.
18857 * config/sol2-cxx.c: Likewise.
18858 * config/sol2-stubs.c: Likewise.
18859 * config/sol2.c: Likewise.
18860 * config/sparc/sparc-c.c: Likewise.
18861 * config/sparc/sparc.c: Likewise.
18862 * config/spu/spu-c.c: Likewise.
18863 * config/spu/spu.c: Likewise.
18864 * config/stormy16/stormy16.c: Likewise.
18865 * config/tilegx/mul-tables.c: Likewise.
18866 * config/tilegx/tilegx-c.c: Likewise.
18867 * config/tilegx/tilegx.c: Likewise.
18868 * config/tilepro/mul-tables.c: Likewise.
18869 * config/tilepro/tilepro-c.c: Likewise.
18870 * config/tilepro/tilepro.c: Likewise.
18871 * config/v850/v850-c.c: Likewise.
18872 * config/v850/v850.c: Likewise.
18873 * config/vax/vax.c: Likewise.
18874 * config/visium/visium.c: Likewise.
18875 * config/vms/vms-c.c: Likewise.
18876 * config/vms/vms.c: Likewise.
18877 * config/vxworks.c: Likewise.
18878 * config/xtensa/xtensa.c: Likewise.
18880 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
18882 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18883 Remove operand constraints. Change operand 2 predicate to
18884 nonmemory operand. Limit const_int values to mode bitsize. Only
18885 allow const_int values less than 32 when optimizing for size.
18886 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18887 Remove operand constraints.
18888 (*bt<mode>): Use SImode for const_int values less than 32.
18889 (regmode): Remove mode attribute.
18891 2015-07-07 Anatoly Sokolov <aesok@post.ru>
18893 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18894 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18895 moxie_legitimate_address_p): New functions.
18896 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18898 2015-07-07 Tom de Vries <tom@codesourcery.com>
18900 PR tree-optimization/66642
18901 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18902 header comment. Rename split_edge variable to edge_at_split. Split
18903 exit edge to create new loop exit bb. Insert loop exit phis in new
18906 2015-07-07 Tom de Vries <tom@codesourcery.com>
18908 * tree-cfg.c (get_virtual_phi): New function.
18909 * tree-cfg.h (get_virtual_phi): Declare.
18910 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18911 (rewrite_virtuals_into_loop_closed_ssa): New function.
18912 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18914 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18915 (transform_to_exit_first_loop_alt): Use
18916 rewrite_virtuals_into_loop_closed_ssa.
18918 2015-07-07 Richard Biener <rguenther@suse.de>
18920 * fold-const.c (fold_binary_loc): Move
18921 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18922 * match.pd: ... here.
18923 Add (X * C1) % C2 -> 0 simplification pattern derived from
18926 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
18929 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18930 change for target/65249.
18932 2015-07-07 Paulo Matos <pmatos@broadcom.com>
18934 * symtab.c (address_matters_1): Fix typo in comment above.
18935 (can_increase_alignment_p): Likewise.
18937 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18939 * function.c (free_after_compilation): Clear PROP_cfg in
18940 f->curr_properties.
18942 2015-07-07 Richard Biener <rguenther@suse.de>
18944 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18946 (add_control_edge): Remove excessive vertical space in dumping.
18947 (process_ssa_edge_worklist): Simulate at most one statement and
18948 return whether we did. Do not simulate PHIs if they are in a
18949 BB not yet simulated.
18950 (ssa_propagate): Adjust to always drain the BB worklist whenever
18951 a BB is available there, likewise the VARYING edges list before
18952 the interesting edge list.
18954 2015-07-07 Christian Bruel <christian.bruel@st.com>
18957 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18959 2015-07-07 Richard Biener <rguenther@suse.de>
18961 PR middle-end/66739
18962 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18965 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18967 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
18968 modes for operands 0 and 3. Use SImode for operands 2 and 3.
18969 Copy operand 0 to a temporary if !ext_register_operand. Remove
18970 ancient extract_bit_field workaround.
18971 (insv<mode>_1): Rename from mov<mode>_insv_1.
18972 (*insvqi): Rename from *movqi_insv_2.
18973 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18974 for renamed insvsi_1.
18975 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18977 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
18979 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
18980 call to nvptx_reorg_subreg.
18982 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
18984 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18985 * graphite-dependencies.c, graphite-interchange.c,
18986 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18987 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18990 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
18992 * match.pd: Remove element_mode inside HONOR_*.
18993 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18994 (~X | X -> -1, ~X ^ X -> -1): Merge.
18995 * tree.c (build_each_one_cst): New function.
18996 * tree.h (build_each_one_cst): Likewise.
18998 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19000 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19003 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
19005 * config.gcc <mips*-*-*>: Add fused-madd.opt.
19006 * config/mips/mips.opt (mfused-madd): Remove.
19007 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
19008 * config/mips/mips.h (TARGET_MIPS8000): New.
19009 (ISA_HAS_FP_MADD4_MSUB4): Remove.
19010 (ISA_HAS_FP_MADDF_MSUBF): Remove.
19011 (ISA_HAS_FP_MADD3_MSUB3): Remove.
19012 (ISA_HAS_NMADD4_NMSUB4): Remove.
19013 (ISA_HAS_NMADD3_NMSUB3): Remove.
19014 (ISA_HAS_FUSED_MADD4): New.
19015 (ISA_HAS_UNFUSED_MADD4): New.
19016 (ISA_HAS_FUSED_MADDF): New.
19017 (ISA_HAS_FUSED_MADD3): New.
19018 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
19019 (*fma<mode>4_madd3) New.
19020 (*fma<mode>4_madd4) New.
19021 (*fma<mode>4_maddf) New.
19023 (*fms<mode>4_msub3) New.
19024 (*fms<mode>4_msub4) New.
19026 (*fnma<mode>4_nmadd3) New.
19027 (*fnma<mode>4_nmadd4) New.
19029 (*fnms<mode>4_nmsub3) New.
19030 (*fnms<mode>4_nmsub4) New.
19031 (*madd4<mode>) Modify to be unfused only.
19032 (*msub4<mode>) Modify to be unfused only.
19033 (*nmadd4<mode>) Modify to be unfused only.
19034 (*nmsub4<mode>) Modify to be unfused only.
19035 (*madd3<mode>) Remove.
19036 (*msub3<mode>) Remove.
19037 (*nmadd3<mode>) Remove.
19038 (*nmsub3<mode>) Remove.
19039 (*nmadd3<mode>_fastmath) Remove.
19040 (*nmsub3<mode>_fastmath) Remove.
19041 (*nmadd4<mode>_fastmath) Update condition.
19042 (*nmsub4<mode>_fastmath) Update condition.
19044 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
19047 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
19048 alignment attribute, exploring one level down for records and arrays.
19050 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
19052 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
19053 modes for operands 0 and 1. Use SImode for operands 2 and 3.
19054 Copy operand 1 to a temporary if !ext_register_operand. Remove
19055 ancient extract_bit_field workaround.
19056 (*extv<mode>): Rename from *mov<mode>_extv_1.
19057 (*extvqi): Rename from *movqi_extv_1.
19058 (extzv<mode>): Rename from extzv. Use SWI248 modes for
19059 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
19060 to a temporary if !ext_register_operand. Remove ancient
19061 extract_bit_field workaround.
19062 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
19063 (*extzvqi): Rename from *movqi_extzv_2.
19064 (*testqi_ext_3): Remove modes from const_int_operand predicated
19065 operands. Add "n" constraint.
19066 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
19067 operand. Add "J" constraint.
19068 (*btsq, *btrq, *btcq peephole2s): Remove mode from
19069 const_0_to_63 predicated operand.
19070 (regmode): New insn attribute.
19071 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
19072 to nonmemory_operand. Use regmode insn attribute.
19073 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
19074 (*jcc_bt<mode>_mask): Remove mode from operand 3.
19075 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
19076 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
19077 operands. Use "N" constraint instead of "n".
19079 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
19081 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
19083 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19086 * config/i386/i386.c (iamcu_cost): New.
19087 (m_IAMCU): Likewise.
19088 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
19089 (processor_target_table): Add an entry for "iamcu".
19090 (processor_alias_table): Likewise.
19091 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
19092 (ix86_adjust_cost): Likewise.
19093 (ia32_multipass_dfa_lookahead): Likewise.
19094 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
19095 * config/i386/x86-tune.def: Updated for m_IAMCU.
19097 2015-07-06 Richard Biener <rguenther@suse.de>
19099 PR tree-optimization/66772
19100 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
19101 values are available in the PHI node BB when there are
19102 still unexecutable edges.
19104 2015-07-06 Richard Biener <rguenther@suse.de>
19106 PR tree-optimization/66767
19107 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
19108 Make sure to build the alignment test on a SSA name without
19109 final alignment info valid only if the alignment test
19112 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
19115 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
19116 loop start when inserting LSETUP.
19118 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19121 * config/i386/i386.c (ix86_option_override_internal): Allow
19122 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
19124 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19126 * read-md.c (decimal_string): Rename to ...
19127 (md_decimal_string): ... this.
19128 (handle_enum): Reflect this.
19130 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19133 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
19135 2015-07-06 Richard Biener <rguenther@suse.de>
19137 PR middle-end/66759
19138 * match.pd: Add missing constraint of y to REAL_CST in
19139 REAL_CST - x CMP y to y - CST CMP x simplification.
19141 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
19143 PR tree-optimization/66757
19144 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
19146 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
19147 Sandra Loosemore <sandra@codesourcery.com>
19149 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
19150 Delete extern declaration.
19151 (gprel_constant_p): Add extern declaration.
19152 * config/nios2/constraints.md ("S"): Use gprel_constant_p
19153 instead of nios2_symbol_ref_in_small_data_p.
19154 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19155 (nios2_symbol_ref_in_small_data_p): Make static.
19156 (gprel_constant_p): Make non-static.
19158 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19160 * doc/fragments.texi (Target Fragment): Convert debian.org
19162 * doc/install.texi (Configuration): Ditto.
19164 2015-07-05 Jakub Jelinek <jakub@redhat.com>
19166 PR tree-optimization/66718
19167 * tree-vect-stmts.c (vectorizable_call): Replace uses of
19168 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19170 PR tree-optimization/66718
19171 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19172 vectorizable_load, vectorizable_condition): Move vectype,
19173 nunits, ncopies computation after checking what kind of statement
19176 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19178 * target-insns.def (extv, extzv, insv): New targetm instruction
19180 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19182 * recog.c (simplify_while_replacing): Likewise.
19184 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19186 * target-insns.def (doloop_begin, doloop_end): New targetm
19187 instruction patterns.
19188 * loop-init.c: Include target.h.
19189 (pass_loop2::gate): Use the new targetm patterns instead of
19190 HAVE_*/gen_* interface.
19191 (pass_rtl_doloop::gate): Likewise.
19192 (pass_rtl_doloop::execute): Remove preprocessor condition.
19193 * hw-doloop.c: Build unconditionally.
19194 * loop-doloop.c: Likewise.
19195 (doloop_optimize): Use the new targetm patterns instead of
19196 HAVE_*/gen_* interface.
19197 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19198 * modulo-sched.c (doloop_register_get): Likewise.
19200 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19202 * target-insns.def (clear_cache): New targetm instruction pattern.
19203 * builtins.c (expand_builtin___clear_cache): Use it instead of
19204 HAVE_*/gen_* interface.
19206 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19208 * target-insns.def (allocate_stack, check_stack, probe_stack)
19209 (probe_stack_address, split_stack_prologue, split_stack_space_check):
19210 New targetm instruction patterns.
19211 * explow.c (allocate_dynamic_stack_space): Use them instead of
19212 HAVE_*/gen_* interface.
19213 (emit_stack_probe): Likewise.
19214 (probe_stack_range): Likewise.
19215 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19217 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19219 * target-insns.def (stack_protect_set, stack_protect_test): New
19220 targetm instruction patterns.
19221 * cfgexpand.c (stack_protect_prologue): Use them instead of
19222 HAVE_*/gen_* interface.
19223 * function.c (stack_protect_epilogue): Likewise.
19225 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19227 * expr.h (gen_move_insn_uncast): Delete.
19228 * expr.c (gen_move_insn_uncast): Delete.
19230 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19232 * target-insns.def (restore_stack_block, restore_stack_function)
19233 (restore_stack_nonlocal, save_stack_block, save_stack_function)
19234 (save_stack_nonlocal): New targetm instruction patterns.
19235 * builtins.c (expand_builtin_apply): Use them instead of
19236 HAVE_*/gen_* interface.
19237 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19239 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19241 * target-insns.def (trap): New targetm instruction pattern.
19242 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19244 * explow.c (allocate_dynamic_stack_space): Likewise.
19245 * ifcvt.c (find_if_header): Likewise.
19247 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19249 * target-insns.def (prefetch): New targetm instruction pattern.
19250 * tree-ssa-loop-prefetch.c: Include targeth.
19251 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19252 of HAVE_*/gen_* interface.
19253 * builtins.c (expand_builtin_prefetch): Likewise.
19254 * toplev.c (process_options): Likewise.
19256 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19258 * target-insns.def (untyped_call, untyped_return): New targetm
19259 instruction patterns.
19260 * builtins.c (expand_builtin_apply): Use them instead of
19261 HAVE_*/gen_* interface.
19262 (result_vector): Define unconditionally.
19264 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19266 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19267 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19268 (nonlocal_goto_receiver): New targetm instruction patterns.
19269 * builtins.c (expand_builtin_setjmp_setup): Use them instead
19270 of HAVE_*/gen_* interface.
19271 (expand_builtin_setjmp_receiver): Likewise.
19272 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19273 * except.c (expand_dw2_landing_pad_for_region): Likewise.
19275 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19277 * target.def: Add code_for_* hooks.
19278 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19279 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19280 * target-insns.def (casesi, tablejump): New targetm instruction
19282 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19283 (do_tablejump): Likewise.
19284 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19285 (expand_sjlj_dispatch_table): Likewise.
19286 * targhooks.c (default_case_values_threshold): Likewise.
19288 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
19290 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19291 Use rtx_insn * instead of rtx.
19292 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19293 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19294 (nios2_call_tls_get_addr): Likewise.
19295 (nios2_emit_expensive_div): Likewise.
19296 (nios2_emit_move_sequence): Change return type to bool.
19297 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19298 Change return type to bool.
19300 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19303 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19305 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
19308 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19309 of register_operand. Remove constraint.
19311 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
19313 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19314 the first argument.
19316 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
19318 * attribs.c (decl_attributes): Guard inform with the return value
19319 of the preceding warning.
19321 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19323 * doc/invoke.texi (moverride): Move to correct section.
19325 2015-07-03 Richard Biener <rguenther@suse.de>
19327 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19329 (dt_operand::gen_gimple_expr): After valueizing operands
19330 re-canonicalize operand order for commutative tree codes.
19332 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
19335 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19337 (__crc32w): Likewise.
19338 (__crc32d): Likewise.
19339 (__rdpmc): Likewise.
19340 (__rdtscp): Likewise.
19341 (_rdpmc): Likewise.
19342 (_rdtscp): Likewise.
19343 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19346 2015-07-03 Richard Biener <rguenther@suse.de>
19348 * fold-const.c (fold_mathfn_compare): Remove.
19349 (fold_inf_compare): Likewise.
19350 (fold_comparison): Move floating point comparison simplifications...
19351 * match.pd: ... to patterns here. Introduce simple_comparisons
19352 operator list and use it for patterns formerly in fold_comparison.
19354 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19356 PR tree-optimization/66119
19357 * toplev.c (process_options): Don't set up default values for
19358 the sra_max_scalarization_size_{speed,size} parameters.
19359 * tree-sra (analyze_all_variable_accesses): If no values
19360 have been set for the sra_max_scalarization_size_{speed,size}
19361 parameters, call get_move_ratio to get target defaults.
19363 2015-07-03 Richard Biener <rguenther@suse.de>
19365 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19366 * match.pd: ... here.
19368 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
19371 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19372 is not actually the default on FreeBSD.
19374 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19376 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19378 (CMPGE_8HI): Likewise.
19379 (CMPGE_4SI): Likewise.
19380 (CMPGE_2DI): Likewise.
19381 (CMPGE_U16QI): Likewise.
19382 (CMPGE_U8HI): Likewise.
19383 (CMPGE_U4SI): Likewise.
19384 (CMPGE_U2DI): Likewise.
19385 (CMPLE_16QI): Likewise.
19386 (CMPLE_8HI): Likewise.
19387 (CMPLE_4SI): Likewise.
19388 (CMPLE_2DI): Likewise.
19389 (CMPLE_U16QI): Likewise.
19390 (CMPLE_U8HI): Likewise.
19391 (CMPLE_U4SI): Likewise.
19392 (CMPLE_U2DI): Likewise.
19393 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19394 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19395 ALTIVEC_BUILTIN_VEC_CMPLE.
19396 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19397 floating-point vector modes.
19398 (vector_nlt<mode>): New define_expand.
19399 (vector_nltu<mode>): Likewise.
19400 (vector_ngt<mode>): Likewise.
19401 (vector_ngtu<mode>): Likewise.
19403 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19405 PR rtl-optimization/66706
19406 * combine.c (make_compound_operation): If an AND of SUBREG of
19407 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19409 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
19411 * tree-pass.h (make_pass_ch_vect): New.
19412 * passes.def: Add pass_ch_vect just before pass_if_conversion.
19414 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19415 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19416 make_pass_ch_vect): New.
19417 (pass_ch): Extend ch_base.
19419 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19420 (ch_base::copy_headers): ...here.
19422 2015-07-02 Richard Biener <rguenther@suse.de>
19424 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19425 * fold-const.c (get_pointer_modulus_and_residue): Remove.
19426 (fold_binary_loc): Implement (T)ptr & CST in terms of
19427 get_pointer_alignment_1.
19428 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19429 Make sure to build the alignment test on a SSA name without
19430 final alignment info valid only after the prologue.
19432 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
19434 * config/cris/cris.md ("epilogue"): Remove condition.
19435 ("prologue"): Ditto.
19437 2015-07-02 Richard Biener <rguenther@suse.de>
19439 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19440 parameter to record a condition that is false.
19441 (record_conditions): When recording an extra NE_EXPR that is
19442 true also record a EQ_EXPR that is false.
19444 2015-07-02 Bin Cheng <bin.cheng@arm.com>
19446 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19447 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19448 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
19449 (set_iv, find_interesting_uses_address, add_candidate_1): New
19450 argument to alloc_iv.
19451 (find_interesting_uses_op, find_interesting_uses_cond): Don't
19452 duplicate struct iv.
19453 (free_loop_data): Don't free struct iv explicitly.
19454 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19456 2015-07-01 DJ Delorie <dj@redhat.com>
19458 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19460 (SUPPORTS_DISCRIMINATOR): Define.
19462 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19465 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19466 there are no CALLs in the same pattern.
19468 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19470 PR rtl-optimization/61047
19471 * rtlanal.c (get_initial_register_offset): New function.
19472 (rtx_addr_can_trap_p_1): Check offsets of stack references.
19474 2015-07-01 Richard Biener <rguenther@suse.de>
19476 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19477 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19478 ~X CMP C -> X CMP' ~C to ...
19479 * match.pd: ... patterns here.
19481 2015-07-01 Nick Clifton <nickc@redhat.com>
19483 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19484 a 16-bit value into a 20-bit memory slot.
19486 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19488 * doc/sourcebuild.texi (AArch64-specific attributes): Document
19489 "aarch64_tiny", "aarch64_small", "aarch64_large",
19490 "aarch64_little_endian", "aarch64_big_endian".
19492 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19494 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19495 Document "aarch64_small_fpic".
19497 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19499 * configure.ac: Add check for aarch64 assembler -fpic relocation
19501 * configure: Regenerate.
19502 * config.in: Regenerate.
19503 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19504 to -fPIC if not support of -fpic relocation modifier in assembler.
19506 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19509 * rtl.c (classify_insn): Handle returns in PARALLELs.
19511 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
19513 PR middle-end/66633
19514 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19515 to true if the function is nested and if not optimizing.
19516 (convert_local_omp_clauses): Initialize need_frame to true if the
19517 function contains nested functions and if not optimizing.
19519 2015-07-01 Richard Biener <rguenther@suse.de>
19521 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19522 (X & Y) ^ Y -> ~X & Y transforms to ...
19523 * match.pd: ... here.
19525 2015-07-01 Richard Biener <rguenther@suse.de>
19527 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19528 of converts to avoid uninteresting noise from the conversion
19529 simplifying patterns.
19531 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
19533 * config/c6x/c6x.c (try_rename_operands): Do not depend on
19534 gcc_assert evaluating its argument for side-effect.
19536 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
19539 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19542 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19544 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19545 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19546 (hash_scc): Add this_ref_p and ref_p parameters and pass them
19547 to the inner DFS walk.
19549 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19551 * target-insns.def (jump): New targetm instruction pattern.
19552 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19553 instead of gen_jump.
19554 (fix_up_crossing_landing_pad): Likewise.
19555 (add_labels_and_missing_jumps): Likewise.
19556 (fix_crossing_conditional_branches): Likewise.
19557 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19558 (force_nonfallthru_and_redirect): Likewise.
19559 * cse.c (cse_insn): Likewise.
19560 * expmed.c (expand_divmod): Likewise.
19561 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19562 * haifa-sched.c (init_before_recovery): Likewise.
19563 (sched_create_recovery_edges): Likewise.
19564 * ifcvt.c (find_cond_trap): Likewise.
19565 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19566 (expand_float, expand_fix): Likewise.
19567 * stmt.c (emit_jump): Likewise.
19569 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19571 * defaults.h (HAVE_load_multiple, gen_load_multiple)
19572 (HAVE_store_multiple, gen_store_multiple): Delete.
19573 * target-insns.def (load_multiple, store_multiple): New targetm
19574 instruction patterns.
19575 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19576 of HAVE_*/gen_* interface.
19578 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19580 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19581 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19582 (gen_mem_signal_fence): Delete.
19583 * target-insns.def (mem_signal_fence, mem_thread_fence)
19584 (memory_barrier): New targetm instruction patterns.
19585 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19587 (expand_mem_signal_fence): Likewise.
19589 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19591 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19592 * target-insns.def (epilogue, prologue, sibcall_prologue): New
19593 targetm instruction patterns.
19594 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19596 * calls.c (expand_call): Likewise.
19597 * cfgrtl.c (cfg_layout_finalize): Likewise.
19598 * df-scan.c (df_get_entry_block_def_set): Likewise.
19599 (df_get_exit_block_use_set): Likewise.
19600 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19601 * final.c (final_start_function): Likewise.
19602 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19603 (reposition_prologue_and_epilogue_notes): Likewise.
19604 * reorg.c (find_end_label): Likewise.
19605 * toplev.c (process_options): Likewise.
19607 2015-06-30 David Malcolm <dmalcolm@redhat.com>
19609 * typed-splay-tree.h: New file.
19611 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
19614 * lra-int.h (lra_substitute_pseudo): Add a parameter.
19615 (lra_substitute_pseudo_within_insn): Ditto.
19616 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
19618 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
19619 to lra_substitute_pseudo.
19620 * lra-lives.c (process_bb_lives): Add an argument to
19621 lra_substitute_pseudo_within_insn call.
19622 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19623 argument to lra_substitute_pseudo and
19624 lra_substitute_pseudo_within_insn calls.
19625 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19627 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19629 * configure: Regenerated.
19631 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19633 * config.gcc: Support i[34567]86-*-elfiamcu target.
19634 * config/i386/iamcu.h: New.
19635 * config/i386/i386.opt: Add -miamcu.
19636 * doc/invoke.texi: Document -miamcu.
19637 * common/config/i386/i386-common.c (ix86_handle_option): Turn
19638 off x87/MMX/SSE/AVX codegen for -miamcu.
19639 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19640 __iamcu/__iamcu__ for -miamcu.
19641 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19642 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19643 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19644 * config/i386/i386.c (ix86_option_override_internal): Ignore and
19645 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
19646 MCU by default. Default long double to 64-bit for Intel MCU.
19647 Turn on -freg-struct-return for Intel MCU. Issue an error when
19648 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19650 (function_arg_advance_32): Pass value whose size is no larger
19651 than 8 bytes in registers for Intel MCU.
19652 (function_arg_32): Likewise.
19653 (ix86_return_in_memory): Return value whose size is no larger
19654 than 8 bytes in registers for Intel MCU.
19655 (iamcu_alignment): New function.
19656 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19658 (ix86_local_alignment): Don't increase alignment for Intel MCU.
19659 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19662 2015-06-30 Marek Polacek <polacek@redhat.com>
19664 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
19665 both operands of the resulting expression.
19667 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
19668 the final expression with the operand's type and then convert
19669 it to the type of the expression.
19671 2015-06-30 Richard Biener <rguenther@suse.de>
19673 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19674 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19675 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19676 * match.pd: ... to patterns here.
19678 2015-06-30 Richard Biener <rguenther@suse.de>
19680 PR tree-optimization/66704
19681 * tree-vect-data-refs.c (vect_setup_realignment): Use
19682 make_ssa_name for non-SSA name source.
19684 2015-06-30 Jakub Jelinek <jakub@redhat.com>
19686 PR middle-end/66702
19687 * omp-low.c (simd_clone_adjust): Handle addressable linear
19688 or uniform parameters or non-gimple type uniform parameters.
19690 2015-06-30 Richard Biener <rguenther@suse.de>
19692 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19693 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19694 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19695 * match.pd: ... here.
19696 Add a few cases of A - B -> A + (-B) when B "easily" negates.
19697 Move (x & y) | x -> x and friends before
19698 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19700 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19702 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19703 -mfix-ut699 is not specified.
19704 (leon3_load): Rename into...
19705 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
19708 2015-06-30 Marek Polacek <polacek@redhat.com>
19710 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19711 * match.pd: ... here.
19713 2015-06-30 Richard Biener <rguenther@suse.de>
19715 * target-insns.def (canonicalize_funcptr_for_compare): Add.
19716 * fold-const.c (build_range_check): Replace uses of
19717 HAVE_canonicalize_funcptr_for_compare.
19718 (fold_widened_comparison): Likewise.
19719 (fold_sign_changed_comparison): Likewise.
19720 * dojump.c: Include "target.h".
19721 (do_compare_and_jump): Replace uses of
19722 HAVE_canonicalize_funcptr_for_compare and
19723 gen_canonicalize_funcptr_for_compare.
19724 * expr.c (do_store_flag): Likewise.
19726 2015-06-30 Tom de Vries <tom@codesourcery.com>
19728 PR tree-optimization/66652
19729 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19730 max_loop_iterations to determine if nit + 1 overflows.
19732 2015-06-30 Richard Biener <rguenther@suse.de>
19734 * tree-vrp.c (register_edge_assert_for_2): Also register
19735 asserts for dominating conversion results.
19737 2015-06-30 Bin Cheng <bin.cheng@arm.com>
19739 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19740 field in struct iv.
19742 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
19745 * configure.ac: Fix filds and fildq test for 64-bit.
19746 * configure: Regenerated.
19748 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
19750 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19751 (nvptx_reorg): Here. Keep the non-subreg pieces.
19753 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
19755 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19756 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19758 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
19760 * config/i386/i386.md (*jcc_1): Use %! in asm template.
19761 Set attribute "length_nobnd" instead of "length".
19764 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19766 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
19768 * config/nios2/nios2.c (nios2_delegitimize_address): Make
19769 assert less restrictive.
19771 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
19774 * cgraphunit.c (cgraph_node::finalize_function): Do not call
19775 do_warn_unused_parameter.
19776 * function.c (do_warn_unused_parameter): Move from here.
19777 * function.h (do_warn_unused_parameter): Do not declare.
19779 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19782 * gcc.target/arm/armv-sync-comp-swap.c: New.
19783 * gcc.target/arm/armv-sync-op-acquire.c: New.
19784 * gcc.target/arm/armv-sync-op-full.c: New.
19785 * gcc.target/arm/armv-sync-op-release.c: New.
19787 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19790 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19791 initial acquire barrier with final barrier.
19793 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19796 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19797 initial acquire barrier with final barrier.
19799 2015-06-29 Richard Henderson <rth@redhat.com>
19801 * config/i386/constraints.md (Bf): New constraint.
19802 * config/i386/i386-c.c (ix86_target_macros): Define
19803 __GCC_ASM_FLAG_OUTPUTS__.
19804 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19806 * doc/extend.texi (FlagOutputOperands): Document them.
19808 2015-06-29 Jiong Wang <jiong.wang@arm.com>
19810 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19811 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19813 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19814 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19815 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19816 (aarch64_symbol_context): Ditto.
19817 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19818 and use new pattern name.
19819 (aarch64_expand_mov_immediate): Ditto.
19820 (aarch64_print_operand): Ditto.
19821 (aarch64_classify_tls_symbol): Ditto.
19823 2015-06-29 Marek Polacek <polacek@redhat.com>
19824 Marc Glisse <marc.glisse@inria.fr>
19826 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19827 * match.pd: ... pattern here.
19829 2015-06-29 Tom de Vries <tom@codesourcery.com>
19831 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19832 function structure.
19834 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19836 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19837 feature description, split out the native option, add a link to
19838 the feature documentation, rearrange and slightly rewrite text.
19839 (Aarch64 options, -mcpu): Likewise.
19840 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
19841 +rdma implies Adv. SIMD.
19843 2015-06-29 Marek Polacek <polacek@redhat.com>
19846 * function.c (stack_protect_epilogue): Remove a cast to int.
19847 * doc/invoke.texi: Update -Wswitch-bool description.
19849 2015-06-29 Richard Biener <rguenther@suse.de>
19851 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19852 * fold-const.c (fold_binary_loc): Move &A - &B simplification
19853 via ptr_difference_const ...
19854 * match.pd: ... here.
19855 When matching (X ^ Y) == Y also match with swapped operands.
19857 2015-06-29 Richard Biener <rguenther@suse.de>
19859 * lto-streamer.h (LTO_major_version): Bump to 5.
19861 2015-06-29 Richard Biener <rguenther@suse.de>
19863 PR tree-optimization/66677
19864 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19865 STMT_VINFO_VEC_STMT clobbering less strict.
19867 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19869 PR middle-end/64130
19870 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19871 division, compute max and min when value ranges for dividend and
19872 divisor are available.
19874 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
19875 Sandra Loosemore <sandra@codesourcery.com>
19877 * regrename.h (regrename_do_replace): Change to return bool.
19878 * regrename.c (rename_chains): Check return value of
19879 regname_do_replace.
19880 (regrename_do_replace): Re-validate the modified insns and
19881 return bool status.
19882 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19883 Update to match rename_chains changes.
19884 * config/c6x/c6x.c (try_rename_operands): Assert that
19885 regrename_do_replace returns true.
19887 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
19889 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19890 operand 2 here. Use copy_addr_to_reg to copy non-index
19891 register operand 2 to a temporary.
19892 (<mode>_stx): Ditto for operand 1.
19893 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19894 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19895 (ix86_store_bounds): Ditto.
19897 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
19899 * print-tree.c (print_node) [TREE_VEC]: Print its length.
19901 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
19903 * gimple.c (gimple_call_set_fndecl): Remove.
19904 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19905 build1_loc directly instead of build_fold_addr_expr_loc.
19907 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19909 * hash-map.h (hash_map::traverse): Use the definition of the
19910 Key typedef rather than the typedef itself.
19912 2015-06-26 Martin Jambor <mjambor@suse.cz>
19915 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19916 NULL instead of calling dump_enabled_p.
19918 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19920 * config/aarch64/aarch64.opt: (override): New.
19921 * doc/invoke.texi (override): Document.
19922 * config/aarch64/aarch64.c (aarch64_flag_desc): New
19923 (aarch64_fusible_pairs): Likewise.
19924 (aarch64_tuning_flags): Likewise.
19925 (aarch64_tuning_override_function): Likewise.
19926 (aarch64_tuning_override_functions): Likewise.
19927 (aarch64_parse_one_option_token): Likewise.
19928 (aarch64_parse_boolean_options): Likewise.
19929 (aarch64_parse_fuse_string): Likewise.
19930 (aarch64_parse_tune_string): Likewise.
19931 (aarch64_parse_one_override_token): Likewise.
19932 (aarch64_parse_override_string): Likewise.
19933 (aarch64_override_options): Parse the -override string if it
19936 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19938 * config/aarch64/aarch64-protos.h (tune_params): Remove
19939 const from members.
19940 (aarch64_tune_params): Remove const, change to no longer be
19942 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19943 change to no longer be a pointer, initialize to generic_tunings.
19944 (aarch64_min_divisions_for_recip_mul): Change dereference of
19945 aarch64_tune_params to member access.
19946 (aarch64_reassociation_width): Likewise.
19947 (aarch64_rtx_mult_cost): Likewise.
19948 (aarch64_address_cost): Likewise.
19949 (aarch64_branch_cost): Likewise.
19950 (aarch64_rtx_costs): Likewise.
19951 (aarch64_register_move_cost): Likewise.
19952 (aarch64_memory_move_cost): Likewise.
19953 (aarch64_sched_issue_rate): Likewise.
19954 (aarch64_builtin_vectorization_cost): Likewise.
19955 (aarch64_override_options): Take a copy of the selected tuning
19956 struct in to aarch64_tune_params, rather than just setting
19957 a pointer, change dereferences of aarch64_tune_params to member
19959 (aarch64_override_options_after_change): Change dereferences of
19960 aarch64_tune_params to member access.
19961 (aarch64_macro_fusion_p): Likewise.
19962 (aarch_macro_fusion_pair_p): Likewise.
19963 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19965 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19967 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19968 (aarch64_tune_flags): Likewise.
19969 (AARCH64_TUNE_FMA_STEERING): Likewise.
19970 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19971 to AARCH64_FL_USE_FMA_STEERING_PASS.
19972 (cortex-a57.cortex-a53): Likewise.
19973 (cortex-a72): Use cortexa72_tunings.
19974 (cortex-a72.cortex-a53): Likewise.
19975 (exynos-m1): Likewise.
19976 * config/aarch64/aarch64-protos.h (tune_params): Add
19977 a field: extra_tuning_flags.
19978 * config/aarch64/aarch64-tuning-flags.def: New.
19979 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19980 (aarch64_extra_tuning_flags): Likewise.
19981 (aarch64_tune_params): Declare here.
19982 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19983 (cortexa53_tunings): Likewise.
19984 (cortexa57_tunings): Likewise.
19985 (thunderx_tunings): Likewise.
19986 (xgene1_tunings): Likewise.
19987 (cortexa72_tunings): New.
19988 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19989 (gate): Check against aarch64_tune_params.
19990 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19993 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19995 * config/aarch64/aarch64-fusion-pairs.def: New.
19996 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19997 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19998 aarch64_fusion_pairs.
19999 (AARCH64_FUSE_MOV_MOVK): Likewise.
20000 (AARCH64_FUSE_ADRP_ADD): Likewise.
20001 (AARCH64_FUSE_MOVK_MOVK): Likewise.
20002 (AARCH64_FUSE_ADRP_LDR): Likewise.
20003 (AARCH64_FUSE_CMP_BRANCH): Likewise.
20005 2015-06-26 Jiong Wang <jiong.wang@arm.com>
20007 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
20008 SYMBOL_SMALL_GOT_28K.
20009 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
20010 relocation modifiers.
20011 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
20012 (ldr_got_small_28k_<mode>): New.
20013 (ldr_got_small_28k_sidi): New.
20014 * config/aarch64/iterators.md (got_modifier): New mode iterator.
20015 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
20016 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
20017 SYMBOL_SMALL_GOT_28K.
20018 (aarch64_rtx_costs): Add costs for new instruction sequences.
20019 (initialize_aarch64_code_model): Initialize new model.
20020 (aarch64_classify_symbol): Recognize new model and new symbol classification.
20021 (aarch64_asm_preferred_eh_data_format): Support new model.
20022 (aarch64_load_symref_appropriately): Generate new instruction
20023 sequences for -fpic.
20024 (TARGET_USE_PSEUDO_PIC_REG): New definition.
20025 (aarch64_use_pseudo_pic_reg): New function.
20027 2015-06-26 Jiong Wang <jiong.wang@arm.com>
20029 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
20030 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
20031 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
20032 (aarch64_expand_mov_immediate): Ditto.
20033 (aarch64_print_operand): Ditto.
20034 (aarch64_classify_symbol): Ditto.
20036 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
20038 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
20040 2015-06-26 Bin Cheng <bin.cheng@arm.com>
20043 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
20044 assertion failed. Remove assertion itself.
20046 2015-06-26 Richard Biener <rguenther@suse.de>
20048 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
20049 and -A CMP CST -> A CMP -CST which is redundant with a pattern
20051 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
20052 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
20053 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
20054 * match.pd: ... patterns here.
20056 2015-06-26 Marek Polacek <polacek@redhat.com>
20058 * match.pd ((x | y) & ~(x & y) -> x ^ y,
20059 (x | y) & (~x ^ y) -> x & y): New patterns.
20061 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
20063 * rtl.h (emit): Add an optional boolean parameter to control
20064 whether barriers are emitted.
20065 * emit-rtl.c (emit): Likewise.
20066 * gensupport.c (get_emit_function): Return null rather than "emit".
20067 * genemit.c (gen_emit_seq): Handle the null return value.
20068 Don't emit barriers after the final instruction in the sequence.
20069 * gentarget-def.c (main): Don't emit barriers after the instruction.
20071 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20073 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
20074 TARGET_UNIFIED_ASM.
20076 2015-06-26 Richard Biener <rguenther@suse.de>
20078 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
20080 2015-06-26 Richard Biener <rguenther@suse.de>
20082 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
20083 irrespective on whether the inner operation has a single use
20084 of both off are constant.
20086 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
20087 Segher Boessenkool <segher@kernel.crashing.org>
20090 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
20091 before doing PUT_MODE or PUT_CODE on operands to avoid
20092 in-place RTX modification.
20094 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
20096 * gentarget-def.c (def_target_insn): Cast return of strtol to
20099 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20101 * gimple.h (gimple_call_set_fn): Move inline function.
20102 * gimple.c (gimple_call_set_fn): Relocate here.
20104 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
20108 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
20109 the replacement insn will work.
20111 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
20113 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
20116 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20118 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
20119 * cgraph.h: Include ipa-ref.h and plugin-api.h.
20120 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
20121 (symtab_node::address_can_be_compared_p): Move function.
20122 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
20124 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
20125 * auto-profile.c: Likewise.
20126 * bb-reorder.c: Likewise.
20127 * builtins.c: Likewise.
20128 * calls.c: Likewise.
20129 * cfgexpand.c: Likewise.
20130 * cgraphbuild.c: Likewise.
20131 * cgraphclones.c: Likewise.
20132 * cgraphunit.c: Likewise.
20133 * combine.c: Likewise.
20134 * coverage.c: Likewise.
20135 * data-streamer-in.c: Likewise.
20136 * data-streamer-out.c: Likewise.
20137 * data-streamer.c: Likewise.
20138 * dbxout.c: Likewise.
20139 * dwarf2out.c: Likewise.
20140 * except.c: Likewise.
20141 * expr.c: Likewise.
20142 * final.c: Likewise.
20143 * fold-const.c: Likewise.
20144 * ggc-page.c: Likewise.
20145 * gimple-fold.c: Likewise.
20146 * gimple-iterator.c: Likewise.
20147 * gimple-pretty-print.c: Likewise.
20148 * gimple-streamer-in.c: Likewise.
20149 * gimple-streamer-out.c: Likewise.
20150 * gimple.c: Likewise.
20151 * gimplify.c: Likewise.
20152 * ipa-chkp.c: Likewise.
20153 * ipa-comdats.c: Likewise.
20154 * ipa-cp.c: Likewise.
20155 * ipa-devirt.c: Likewise.
20156 * ipa-icf-gimple.c: Likewise.
20157 * ipa-icf.c: Likewise.
20158 * ipa-inline-analysis.c: Likewise.
20159 * ipa-inline-transform.c: Likewise.
20160 * ipa-inline.c: Likewise.
20161 * ipa-polymorphic-call.c: Likewise.
20162 * ipa-profile.c: Likewise.
20163 * ipa-prop.c: Likewise.
20164 * ipa-pure-const.c: Likewise.
20165 * ipa-ref.c: Likewise.
20166 * ipa-reference.c: Likewise.
20167 * ipa-split.c: Likewise.
20168 * ipa-utils.c: Likewise.
20169 * ipa-visibility.c: Likewise.
20171 * langhooks.c: Likewise.
20172 * lto-cgraph.c: Likewise.
20173 * lto-compress.c: Likewise.
20174 * lto-opts.c: Likewise.
20175 * lto-section-in.c: Likewise.
20176 * lto-section-out.c: Likewise.
20177 * lto-streamer-in.c: Likewise.
20178 * lto-streamer-out.c: Likewise.
20179 * lto-streamer.c: Likewise.
20180 * omp-low.c: Likewise.
20181 * opts-global.c: Likewise.
20182 * passes.c: Likewise.
20183 * predict.c: Likewise.
20184 * print-tree.c: Likewise.
20185 * profile.c: Likewise.
20187 * sanopt.c: Likewise.
20188 * stor-layout.c: Likewise.
20189 * symtab.c: Likewise.
20190 * toplev.c: Likewise.
20191 * trans-mem.c: Likewise.
20192 * tree-cfg.c: Likewise.
20193 * tree-chkp.c: Likewise.
20194 * tree-eh.c: Likewise.
20195 * tree-emutls.c: Likewise.
20196 * tree-inline.c: Likewise.
20197 * tree-nested.c: Likewise.
20198 * tree-parloops.c: Likewise.
20199 * tree-pretty-print.c: Likewise.
20200 * tree-profile.c: Likewise.
20201 * tree-sra.c: Likewise.
20202 * tree-ssa-alias.c: Likewise.
20203 * tree-ssa-live.c: Likewise.
20204 * tree-ssa-loop-ivcanon.c: Likewise.
20205 * tree-ssa-loop-ivopts.c: Likewise.
20206 * tree-ssa-pre.c: Likewise.
20207 * tree-ssa-sccvn.c: Likewise.
20208 * tree-ssa-strlen.c: Likewise.
20209 * tree-ssa-structalias.c: Likewise.
20210 * tree-streamer-in.c: Likewise.
20211 * tree-streamer-out.c: Likewise.
20212 * tree-streamer.c: Likewise.
20213 * tree-switch-conversion.c: Likewise.
20214 * tree-tailcall.c: Likewise.
20215 * tree-vect-data-refs.c: Likewise.
20216 * tree-vect-stmts.c: Likewise.
20217 * tree-vectorizer.c: Likewise.
20218 * tree.c: Likewise.
20219 * tsan.c: Likewise.
20220 * ubsan.c: Likewise.
20221 * value-prof.c: Likewise.
20222 * varasm.c: Likewise.
20223 * varpool.c: Likewise.
20224 * config/arm/arm.c: Likewise.
20225 * config/bfin/bfin.c: Likewise.
20226 * config/c6x/c6x.c: Likewise.
20227 * config/cris/cris.c: Likewise.
20228 * config/darwin-c.c: Likewise.
20229 * config/darwin.c: Likewise.
20230 * config/i386/i386.c: Likewise.
20231 * config/i386/winnt.c: Likewise.
20232 * config/microblaze/microblaze.c: Likewise.
20233 * config/mips/mips.c: Likewise.
20234 * config/rs6000/rs6000.c: Likewise.
20235 * config/rx/rx.c: Likewise.
20236 * config/s390/s390.c: Likewise.
20237 * config/tilegx/mul-tables.c: Likewise.
20239 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20241 * config/aarch64/aarch64.c, config/alpha/alpha.c,
20242 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20243 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20244 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20245 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20246 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20247 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20248 config/microblaze/microblaze.c, config/mips/mips.c,
20249 config/mmix/mmix.c, config/mn10300/mn10300.c,
20250 config/moxie/moxie.c, config/msp430/msp430.c,
20251 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20252 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20253 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20254 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20255 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20256 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20257 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20258 target-def.h include.
20259 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
20261 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20263 * Makefile.in (TARGET_DEF): Add target-insns.def.
20264 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20265 (build/gentarget-def.o): New rule.
20266 (genprogrtl): Add target-def.
20267 * target-insns.def, gentarget-def.c: New files.
20268 * target.def: Add targetm.have_* and targetm.gen_* hooks,
20269 based on the contents of target-insns.def.
20270 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20271 (HAVE_return, gen_return): Delete.
20272 * target-def.h: Include insn-target-def.h.
20273 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20274 instead of direct calls. Rely on them to do the appropriate assertions.
20275 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
20276 (convert_jumps_to_returns): Use targetm interface instead of
20278 (thread_prologue_and_epilogue_insns): Likewise.
20279 * reorg.c (find_end_label, dbr_schedule): Likewise.
20280 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20281 * shrink-wrap.c (convert_to_simple_return): Likewise.
20282 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20284 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20286 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20287 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20288 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20289 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20290 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20291 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20292 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20293 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20294 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20295 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20296 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20297 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20298 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20299 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20300 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20301 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20304 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20306 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20307 (unbounded_int_hashmap_traits::key_type): Likewise.
20308 * hash-map.h (hash_map): Get the key type from the traits.
20309 * hash-traits.h (default_hash_traits): By default, inherit from the
20310 template parameter.
20311 * alias.c (alias_set_traits): Delete.
20312 (alias_set_entry_d::children): Use alias_set_hash as the first
20313 template parameter.
20314 (record_alias_subset): Update accordingly.
20315 * except.c (tree_hash_traits): Delete.
20316 (type_to_runtime_map): Use tree_hash as the first template parameter.
20317 (init_eh): Update accordingly.
20318 * genmatch.c (capture_id_map_hasher): Delete.
20319 (cid_map_t): Use nofree_string_hash as first template parameter.
20320 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20321 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20322 Use symbol_compare_hash as the first template parameter in
20323 subdivide_hash_map.
20324 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20325 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20326 template parameter.
20327 * passes.c (pass_registry_hasher): Delete.
20328 (name_to_pass_map): Use nofree_string_hash as the first template
20330 (register_pass_name): Update accordingly.
20331 * sanopt.c (sanopt_tree_map_traits): Delete.
20332 (sanopt_tree_triplet_map_traits): Delete.
20333 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20334 template parameter.
20335 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20336 the first template parameter.
20337 * sese.c (rename_map_hasher): Delete.
20338 (rename_map_type): Use tree_ssa_name_hash as the first template
20340 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20341 (function_summary::m_map): Use map_hash as the first template
20343 (function_summary::release): Update accordingly.
20344 * tree-if-conv.c (phi_args_hash_traits): Delete.
20345 (predicate_scalar_phi): Use tree_operand_hash as the first template
20346 parameter to phi_arg_map.
20347 * tree-inline.h (dependence_hasher): Delete.
20348 (copy_body_data::dependence_map): Use dependence_hash as the first
20349 template parameter.
20350 * tree-inline.c (remap_dependence_clique): Update accordingly.
20351 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20352 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20354 (addr_stridxptr): Update accordingly.
20355 * value-prof.c (profile_id_traits): Delete.
20356 (cgraph_node_map): Use profile_id_hash as the first template
20358 (init_node_map): Update accordingly.
20359 * config/alpha/alpha.c (string_traits): Delete.
20360 (machine_function::links): Use nofree_string_hash as the first
20361 template parameter.
20362 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20363 * config/m32c/m32c.c (pragma_traits): Delete.
20364 (pragma_htab): Use nofree_string_hash as the first template parameter.
20365 (m32c_note_pragma_address): Update accordingly.
20366 * config/mep/mep.c (pragma_traits): Delete.
20367 (pragma_htab): Use nofree_string_hash as the first template parameter.
20368 (mep_note_pragma_flag): Update accordingly.
20369 * config/mips/mips.c (mips16_flip_traits): Delete.
20370 (mflip_mips16_htab): Use nofree_string_hash as the first template
20372 (mflip_mips16_use_mips16_p): Update accordingly.
20373 (local_alias_traits): Delete.
20374 (mips16_local_aliases): Use nofree_string_hash as the first template
20376 (mips16_local_alias): Update accordingly.
20378 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20380 * hash-map-traits.h (default_hashmap_traits): Delete.
20382 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20384 * hash-map-traits.h (unbounded_hashmap_traits): New class.
20385 (unbounded_int_hashmap_traits): Likewise.
20386 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20388 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20390 * ipa-icf.h (symbol_compare_hash): New class.
20391 (symbol_compare_hashmap_traits): Use it.
20392 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20393 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20394 (mem_alloc_description::reverse_mem_map_t): Remove redundant
20395 default_hashmap_traits.
20396 * sanopt.c (sanopt_tree_triplet_hash): New class.
20397 (sanopt_tree_triplet_map_traits): Use it.
20399 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20401 * gengtype-parse.c (require_template_declaration): Allow '+' in
20402 template parameters. Consolidate cases.
20403 * hash-traits.h (int_hash): New class.
20404 * alias.c (alias_set_hash): New structure.
20405 (alias_set_traits): Use it.
20406 * symbol-summary.h (function_summary::map_hash): New class.
20407 (function_summary::summary_hashmap_traits): Use it.
20408 * tree-inline.h (dependence_hash): New class.
20409 (dependence_hasher): Use it.
20410 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20411 * value-prof.c (profile_id_hash): New class.
20412 (profile_id_traits): Use it.
20414 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20416 * config/mips/mips.c (mips16_flip_traits): Use it.
20417 (local_alias_traits, mips16_local_aliases): Convert from a map of
20418 rtxes to a map of symbol names.
20419 (mips16_local_alias): Update accordingly.
20421 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20423 * hash-traits.h (string_hash, nofree_string_hash): New classes.
20424 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20425 * passes.c (pass_registry_hasher): Likewise.
20426 * config/alpha/alpha.c (string_traits): Likewise.
20427 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20428 * config/m32c/m32c.c (pragma_traits): Likewise.
20429 * config/mep/mep.c (pragma_traits): Likewise.
20431 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20433 * tree-hash-traits.h (tree_hash): New class.
20434 * except.c: Include tree-hash-traits.h.
20435 (tree_hash_traits): Use tree_hash.
20437 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20439 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20440 * sese.c: Include tree-hash-traits.h.
20441 (rename_map_hasher): Use tree_ssa_name_hasher.
20443 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20445 * tree-hash-traits.h (tree_decl_hash): New class.
20446 * tree-ssa-strlen.c: Include tree-hash-traits.h.
20447 (stridxlist_hash_traits): Use tree_decl_hash.
20449 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20451 * tree-hash-traits.h: New file.
20452 (tree_operand_hash): New class.
20453 * sanopt.c: Include tree-hash-traits.h.
20454 (sanopt_tree_map_traits): Use tree_operand_hash.
20455 * tree-if-conv.c: Include tree-hash-traits.h.
20456 (phi_args_hash_traits): Use tree_operand_hash.
20457 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20458 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20460 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20462 * hash-map-traits.h: Include hash-traits.h.
20463 (simple_hashmap_traits): New class.
20464 * mem-stats.h (hash_map): Change the default traits to
20465 simple_hashmap_traits<default_hash_traits<Key> >.
20467 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20469 * hash-table.h: Update comments.
20471 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20473 * hash-traits.h (default_hash_traits): New structure.
20474 * hash-set.h (default_hashset_traits): Delete.
20475 (hash_set): Use default_hash_traits<Key> instead of
20476 default_hashset_traits. Delete hash_entry type and use Key directly.
20477 * ipa-devirt.c (pair_traits): Delete.
20478 (default_hash_traits <type_pair>): Override.
20479 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20480 (odr_types_equivalent_p, add_type_duplicate): Likewise.
20482 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20484 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20486 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20488 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20489 (has_is_empty, is_empty_helper): Delete.
20490 (has_mark_deleted, mark_deleted_helper): Delete.
20491 (has_mark_empty, mark_empty_helper): Delete.
20492 (hash_table::is_deleted): Call the Descriptor unconditionally.
20493 (hash_table::is_empty): Likewise.
20494 (hash_table::mark_deleted): Likewise.
20495 (hash_table::mark_empty): Likewise.
20497 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20499 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
20500 redundant typedefs and members.
20501 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
20502 redundant typedefs.
20503 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20504 * ipa-devirt.c (odr_name_hasher): Likewise.
20505 (polymorphic_call_target_hasher): Likewise.
20506 * ira-costs.c (cost_classes_hasher): Likewise.
20507 * statistics.c (stats_counter_hasher): Likewise.
20508 * trans-mem.c (log_entry_hasher): Likewise.
20509 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20510 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20511 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20512 * var-tracking.c (variable_hasher): Likewise.
20513 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20514 Remove redundant typedefs and members.
20516 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20518 * hash-traits.h (ggc_cache_hasher): Rename to...
20519 (ggc_cache_remove): ...this and remove typedefs.
20520 (ggc_cache_ptr_hash): New class.
20521 * hash-table.h: Update commentary.
20522 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20523 rather than ggc_cache_hasher.
20524 (const_wide_int_hasher, reg_attr_hasher): Likewise.
20525 (const_double_hasher, const_fixed_hasher): Likewise.
20526 * function.c (insn_cache_hasher): Likewise.
20527 * trans-mem.c (tm_wrapper_hasher): Likewise.
20528 * tree.h (tree_decl_map_cache_hasher): Likewise.
20529 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20530 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20531 * ubsan.c (tree_type_map_cache_hasher): Likewise.
20532 * varasm.c (tm_clone_hasher): Likewise.
20533 * config/i386/i386.c (dllimport_hasher): Likewise.
20534 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20535 (tree_hasher): Likewise.
20537 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20539 * hash-traits.h (ggc_hasher): Rename to...
20540 (ggc_remover): ...this and remove typedefs.
20541 (ggc_cache_hasher): Update accordingly. Add typedefs.
20542 (ggc_ptr_hash): New class.
20543 * hash-table.h: Update comment.
20544 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20546 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20547 (tree_descriptor_hasher): Likewise.
20548 * cgraph.c (function_version_hasher): Likewise.
20549 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20550 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20551 (dw_loc_list_hasher, addr_hasher): Likewise.
20552 * function.h (used_type_hasher): Likewise.
20553 * function.c (temp_address_hasher): Likewise.
20554 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20555 * libfuncs.h (libfunc_hasher): Likewise.
20556 * lto-streamer.h (decl_state_hasher): Likewise.
20557 * optabs.c (libfunc_decl_hasher): Likewise.
20558 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20559 * varasm.c (section_hasher, object_block_hasher): Likewise.
20560 (const_rtx_desc_hasher): Likewise.
20561 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20562 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20564 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20566 * hash-traits.h (free_ptr_hash): New class.
20567 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20568 rather than typed_free_remove. Remove redudant typedefs.
20569 (external_ref_hasher): Likewise.
20570 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20571 (ehspec_hasher): Likewise.
20572 * ggc-common.c (saving_hasher): Likewise.
20573 * gimplify.c (gimplify_hasher): Likewise.
20574 * haifa-sched.c (delay_i2_hasher): Likewise.
20575 * loop-invariant.c (invariant_expr_hasher): Likewise.
20576 * loop-iv.c (biv_entry_hasher): Likewise.
20577 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20578 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20579 * tree-cfg.c (locus_discrim_hasher): Likewise.
20580 * tree-eh.c (finally_tree_hasher): Likewise.
20581 * tree-into-ssa.c (var_info_hasher): Likewise.
20582 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20583 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20584 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20585 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20586 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20587 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20588 (shared_bitmap_hasher): Likewise.
20589 * tree-ssa-threadupdate.c (redirection_data): Likewise.
20590 * tree-vectorizer.h (peel_info_hasher): Likewise.
20591 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20592 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20594 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20596 * hash-table.h: Update comments.
20597 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20598 (nofree_ptr_hash): New class.
20599 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20600 than typed_noop_remove. Remove redudant typedefs.
20601 * attribs.c (attribute_hasher): Likewise.
20602 * cfg.c (bb_copy_hasher): Likewise.
20603 * cselib.c (cselib_hasher): Likewise.
20604 * dse.c (invariant_group_base_hasher): Likewise.
20605 * dwarf2cfi.c (trace_info_hasher): Likewise.
20606 * dwarf2out.c (macinfo_entry_hasher): Likewise.
20607 (comdat_type_hasher, loc_list_hasher): Likewise.
20608 * gcse.c (pre_ldst_expr_hasher): Likewise.
20609 * genmatch.c (id_base): Likewise.
20610 * genrecog.c (test_pattern_hasher): Likewise.
20611 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20612 * haifa-sched.c (delay_i1_hasher): Likewise.
20613 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20614 * ipa-icf.h (congruence_class_group_hash): Likewise.
20615 * ipa-profile.c (histogram_hash): Likewise.
20616 * ira-color.c (allocno_hard_regs_hasher): Likewise.
20617 * lto-streamer.h (string_slot_hasher): Likewise.
20618 * lto-streamer.c (tree_entry_hasher): Likewise.
20619 * plugin.c (event_hasher): Likewise.
20620 * postreload-gcse.c (expr_hasher): Likewise.
20621 * store-motion.c (st_expr_hasher): Likewise.
20622 * tree-sra.c (uid_decl_hasher): Likewise.
20623 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20624 (ssa_name_var_hash): Likewise.
20625 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20626 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20627 * tree-ssa-pre.c (pre_expr_d): Likewise.
20628 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20629 * vtable-verify.h (registration_hasher): Likewise.
20630 * vtable-verify.c (vtbl_map_hasher): Likewise.
20631 * config/arm/arm.c (libcall_hasher): Likewise.
20632 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20633 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20634 * config/sol2.c (comdat_entry_hasher): Likewise.
20635 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20636 (print_fold_checksum, fold_checksum_tree): Likewise.
20637 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20638 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20639 (fold_build_call_array_loc): Likewise.
20640 * tree-ssa-ccp.c (gimple_htab): Likewise.
20641 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20642 rather than pointer_type.
20644 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20646 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20647 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20649 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20651 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20652 (ggc_hasher::ggc_mx): Likewise.
20653 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
20654 that duplicate ggc_hasher ones.
20656 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20658 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20659 (gt_cleare_cache): Check here for deleted and empty entries.
20660 Replace handle_cache_entry with a call to keep_cache_entry.
20661 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20662 (ggc_cache_hasher::keep_cache_entry): New function.
20663 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20664 (tm_wrapper_hasher::keep_cache_entry): New function.
20665 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20666 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20667 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20668 (type_cache_hasher::keep_cache_entry): New function.
20669 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20670 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20671 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20672 (tree_type_map_cache_hasher::keep_cache_entry): New function.
20673 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20674 (tm_clone_hasher::keep_cache_entry): New function.
20675 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20676 (dllimport_hasher::keep_cache_entry): New function.
20678 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20680 * hash-table.h: Include hash-traits.h.
20681 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20682 (ggc_cache_hasher): Move to...
20683 * hash-traits.h: ...this new file.
20685 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20687 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20688 struct cl_optimization.
20689 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20690 * tree.c (make_node_stat): Allocate cl_optimization struct.
20691 (copy_node_stat): Allocate and copy cl_optimization struct.
20693 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20695 * function.h (struct incoming_args): Move struct.
20696 (pass_by_reference, reference_callee_copied): Remove prototypes.
20697 * emit-rtl.h (struct incoming_args): Relocate struct here.
20698 * calls.h (pass_by_reference, reference_callee_copied): Relocate
20700 * function.c (pass_by_reference, reference_callee_copied): Move.
20701 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20702 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20703 * ipa-chkp.c: Include calls.h.
20705 2015-06-25 Andrew Macleod <amacleod@redhat.com>
20707 * alias.h (alias_set_type): Move typedef.
20708 * coretypes.h (alias_set_type): Relocate typedef here.
20709 * rtl.h: Don't include alias.h.
20711 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20713 * cgraph.h (cgraph_rtl_info): Move to rtl.h
20714 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20716 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20717 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20719 * calls.c: Include hard-reg-set.h before rtl.h.
20722 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20723 Vladimir Makarov <vmakarov@redhat.com>
20725 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20728 2015-06-25 Richard Biener <rguenther@suse.de>
20730 * fold-const.c (fold_binary_loc): Move simplification of
20731 (X <<>> C1) & C2 ...
20732 * match.pd: ... here.
20734 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
20736 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20738 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20740 * match.pd: Add patterns for vec_conds between 1 and 0.
20742 2015-06-25 Richard Biener <rguenther@suse.de>
20744 * tree-vect-stmts.c (vectorizable_conversion): Do not set
20745 STMT_VINFO_VEC_STMT for SLP.
20746 (vectorizable_store): Likewise.
20747 (vectorizable_load): Likewise.
20748 (vect_transform_stmt): Catch SLP vectorization clobbering
20749 STMT_VINFO_VEC_STMT.
20751 2015-06-25 Richard Biener <rguenther@suse.de>
20753 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20755 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20756 cleanup resulting dead code and parameters.
20757 (vect_transform_slp_perm_load): Adjust.
20759 2015-06-25 Nick Clifton <nickc@redhat.com>
20761 * config/bfin/bfin.c (bfin_expand_prologue): Set
20762 current_function_static_stack_size if flag_stack_usage_info is set.
20763 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20764 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20765 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20766 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20768 2015-06-25 Tom de Vries <tom@codesourcery.com>
20770 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20771 comment that the generated IV is unsigned.
20773 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20776 * config/arm/arm.c (arm_dbx_register_number): Return
20777 DWARF_FRAME_REGISTERS by default.
20779 2015-06-25 Tom de Vries <tom@codesourcery.com>
20781 * dominance.c (calculate_dominance_info): Fix verify_dominators call
20782 argument. Call verify_dominator when reusing dominator info.
20784 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
20787 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20788 an additional element of the unspec vector. Modify indices
20790 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20791 * config/sh/sh.c (prepare_move_operands): Pass incremented
20792 const_int to gen_GOTaddr2picreg.
20793 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20795 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20797 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20798 Condition on TARGET_FLOAT.
20800 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20802 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20805 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20807 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20809 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20810 aarch64_err_no_fpadvsimd.
20812 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20813 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20814 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20815 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20816 Turn error into assert, test TARGET_FLOAT.
20817 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20820 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
20823 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20825 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20827 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20829 2015-06-24 Renlin Li <renlin.li@arm.com>
20831 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20832 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20834 2015-06-24 Richard Biener <rguenther@suse.de>
20836 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20838 (lower_opt_convert): Support lowering of conditional view_convert.
20839 (parser::parse_operation): Likewise.
20840 (parser::parse_for): Likewise.
20842 2015-06-24 Renlin Li <renlin.li@arm.com>
20844 * varasm.c (emit_local): Use unsigned int for align variable.
20846 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20849 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20850 for negative numbers.
20852 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20854 PR rtl-optimization/66306
20855 * reload.c (find_reloads): Swap the match_dup info for
20856 commutative operands.
20858 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20860 * config/s390/vx-builtins.md
20861 ("vec_scatter_element<mode>_<non_vec_int>")
20862 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20863 attribute with bhfgq.
20865 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20867 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20869 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20871 * config/s390/s390-builtin-types.def: Add flag to indicate the
20872 options under which the function type is needed.
20873 * config/s390/s390-builtins.def: Add flag to indicate the options
20874 under which the builtin is enabled.
20875 * config/s390/s390-builtins.h: Add flags parameter to macro
20877 (bflags_for_builtin): New function.
20878 (flags_for_builtin): Renamed to ...
20879 (opflags_for_builtin): ... this.
20880 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20881 flags_for_builtin to bflags_for_builtin and
20882 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20883 * config/s390/s390.c: Add initialization of bflags_builtin and
20884 opflags_builtin arrays.
20885 Remove code for flags_builtin.
20886 (s390_init_builtins): Only create builtin function types if one of
20887 their flags is active.
20888 Only create builtins if all of their flags are active.
20889 (s390_expand_builtin): Rename flags_for_builtin to
20890 opflags_for_builtin.
20892 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20894 * config/s390/vecintrin.h: Remove internal builtins.
20896 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20898 * config/s390/s390.c (s390_secondary_reload): Fix check for
20899 GENERAL_REGS register class.
20901 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20903 * config/s390/s390.c (s390_support_vector_misalignment): Call
20904 default implementation for !TARGET_VX.
20906 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20908 * config/s390/s390.c (s390_legitimate_constant_p): Add
20911 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20913 * config/s390/s390.c (s390_vector_abi): New variable definition.
20914 (s390_check_type_for_vector_abi): New function.
20915 (TARGET_ASM_FILE_END): New macro definition.
20916 (s390_asm_file_end): New function.
20917 (s390_function_arg): Call s390_check_type_for_vector_abi.
20918 (s390_gimplify_va_arg): Likewise.
20919 * configure: Regenerate.
20920 * configure.ac: Check for .gnu_attribute Binutils feature.
20922 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
20925 * config/bfin/bfin.c (hwloop_optimize): Initialize
20926 JUMP_LABEL for newly created jump.
20928 2015-06-23 Tristan Gingold <gingold@adacore.com>
20930 * collect-utils.c (collect_wait): Unlink the response file here
20932 (do_wait): ...here.
20933 (utils_cleanup): ...and here.
20935 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
20937 * df-scan.c: Don't include target-def.h.
20938 * targhooks.c: Likewise.
20939 * config/arm/arm-c.c: Likewise.
20940 * config/i386/i386-c.c: Likewise.
20941 * config/nds32/nds32-cost.c: Likewise.
20942 * config/nds32/nds32-fp-as-gp.c: Likewise.
20943 * config/nds32/nds32-intrinsic.c: Likewise.
20944 * config/nds32/nds32-isr.c: Likewise.
20945 * config/nds32/nds32-md-auxiliary.c: Likewise.
20946 * config/nds32/nds32-memory-manipulation.c: Likewise.
20947 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20948 * config/nds32/nds32-predicates.c: Likewise.
20950 2015-06-23 Richard Biener <rguenther@suse.de>
20952 PR tree-optimization/66636
20953 * tree-vect-stmts.c (vectorizable_store): Properly compute the
20954 def type for further defs for strided stores.
20956 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
20958 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20959 conditional selects.
20960 (setcc_int<mode>, setcc_float<mode>): Reformat.
20962 2015-06-23 Marek Polacek <polacek@redhat.com>
20964 * match.pd ((x + y) - (x | y) -> x & y,
20965 (x + y) - (x & y) -> x | y): New patterns.
20967 2015-06-23 Ludovic Courtès <ludo@gnu.org>
20970 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20971 '-dynamic-linker' within %{!shared: ...}.
20973 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
20976 * config/i386/predicates.md (addsub_vm_operator): New predicate.
20977 (addsub_vs_operator): Ditto.
20978 (addsub_vs_parallel): Ditto.
20979 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20980 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20981 Put minus RTX before plus and adjust vec_merge selector.
20982 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20983 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20984 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20985 (addsub vec_merge splitters): New combiner splitters.
20986 (addsub vec_select/vec_concat splitters): Ditto.
20988 2015-06-23 Bin Cheng <bin.cheng@arm.com>
20990 PR tree-optimization/66449
20991 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20992 POINTER_PLUS_EXPR for pointers.
20994 2015-06-23 Alan Modra <amodra@gmail.com>
20996 * rtlanal.c (commutative_operand_precedence): Correct comments.
20997 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20998 declaration. Return an int. Distinguish REG,REG return from
21000 (struct simplify_plus_minus_op_data): Make local to function.
21001 (simplify_plus_minus): Don't set canonicalized if merely sorting
21002 registers. Avoid packing ops if nothing changes. White space fixes.
21004 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
21006 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
21007 -fdump-ada-spec is passed but not if -fsyntax-only is.
21009 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
21012 * lra-lives.c (process_bb_lives): Check insn copying the same
21013 reload pseudo and don't create a copy for it.
21015 2015-06-22 Tom de Vries <tom@codesourcery.com>
21017 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
21020 2015-06-22 Tom de Vries <tom@codesourcery.com>
21022 * builtins.def (DEF_GOMP_BUILTIN): Test
21023 'flag_tree_parallelize_loops > 1' instead of
21024 'flag_tree_parallelize_loops'. Test flag_cilkplus.
21026 2015-06-22 Tom de Vries <tom@codesourcery.com>
21028 * dominance.c (calculate_dominance_info): Verify dominators if
21031 2015-06-22 Marek Polacek <polacek@redhat.com>
21033 * match.pd ((x ^ y) ^ (x | y) -> x & y,
21034 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
21035 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
21036 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
21038 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
21041 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
21042 cost of embedded comparison.
21044 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21047 * config/rs6000/predicates.md (altivec_register_operand): Permit
21048 virtual stack registers.
21049 (vsx_register_operand): Likewise.
21050 (vfloat_operand): Likewise.
21051 (vint_operand): Likewise.
21052 (vlogical_operand): Likewise.
21054 2015-06-22 Richard Biener <rguenther@suse.de>
21056 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
21057 and single_scalar_iteration_cost members.
21058 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
21059 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
21060 (vect_get_single_scalar_iteration_cost): Remove.
21061 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21062 Use LOOP_VINFO_SCALAR_ITERATION_COST.
21063 * tree-vect-loop.c (destroy_loop_vec_info): Free
21065 (vect_get_single_scalar_iteration_cost): Compute result into
21066 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
21067 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
21068 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
21069 (vect_estimate_min_profitable_iters): Use them.
21071 2015-06-22 Christian Bruel <christian.bruel@st.com>
21074 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
21075 (TARGET_INSERT_ATTRIBUTES): Define.
21076 (thumb_flipper): New var.
21077 * config/arm/arm.opt (-mflip-thumb): New switch.
21079 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
21080 Martin Liska <mliska@suse.cz>
21083 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
21084 construction of arg_types.
21085 (sem_function::sem_function): Likewise.
21086 (sem_function::~sem_function): Remove destruction of arg_types.
21087 (sem_function::compatible_parm_types_p): New function.
21088 (sem_function::equals_wpa): Reorg matching of return values
21089 and parameter types.
21090 (sem_function::equals_private): Reorg mathcing of argument types.
21091 (sem_function::parse_tree_args): Remove.
21092 * ipa-icf.h (init_wpa): Do not call it.
21093 (parse_tree_args): Remove.
21094 (compatible_parm_types_p): Declare.
21095 (result_type): Remove.
21096 (arg_types): Remove.
21098 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
21101 * ipa-polymorphic-call.c
21102 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
21103 initializing alias oracle; fix formating; set base_alias_set if it
21106 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
21108 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
21109 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
21110 (find_inc): Likewise.
21111 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
21113 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
21114 * df-scan.c (df_swap_refs): Remove.
21115 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
21116 * dominance.c (link_roots): Use std::swap instead of manually swapping.
21117 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
21118 * fold-const.c (fold_relational_const): Likewise.
21119 * genattrtab.c (simplify_test_exp): Likewise.
21120 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
21121 gimple_simplify): Likewise.
21122 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
21123 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
21124 * ipa-devirt.c (add_type_duplicate): Likewise.
21125 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
21126 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
21127 * lra.c (lra_create_copy): Likewise.
21128 * lto-streamer-out.c (DFS::DFS): Likewise.
21129 * modulo-sched.c (get_sched_window): Likewise.
21130 * omega.c (omega_pretty_print_problem): Likewise.
21131 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
21132 * reload1.c (reloads_unique_chain_p): Likewise.
21133 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
21134 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
21136 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
21138 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
21139 predicate_mem_writes): Likewise.
21140 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
21141 * tree-predcom.c (combine_chains): Likewise.
21142 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
21143 refs_may_alias_p_1): Likewise.
21144 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
21145 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21146 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
21147 number_of_iterations_cond): Likewise.
21148 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21149 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
21150 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
21151 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
21152 * tree-vrp.c (extract_range_from_binary_expr_1,
21153 extract_range_from_unary_expr_1): Likewise.
21155 2015-06-20 Marek Polacek <polacek@redhat.com>
21157 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21159 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
21162 * config/sh/sh.c (prepare_move_operands): Replace subreg
21163 index term with R0 for base and index addressing.
21165 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
21167 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21169 (movsf_aarch64): Change condition from register_operand to
21170 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
21171 load1. Change type for alternative 7 to store1.
21172 (movdf_aarch64): Likewise.
21174 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
21176 * config/vax/vax.md: Adjust sign/zero extend patterns to
21177 handle SUBREGs in operands[1].
21179 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21181 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21182 of manually swapping.
21183 (expand_vec_perm_interleave2): Likewise.
21185 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
21187 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21188 reuse bounds created for abnormal ssa names.
21190 2015-06-19 Jakub Jelinek <jakub@redhat.com>
21192 * config/nvptx/nvptx.md (allocate_stack): Rename to...
21193 (allocate_stack_<mode>): ... this, and add :P on both
21194 match_operand and unspec.
21195 (allocate_stack): New expander.
21197 2015-06-19 Christian Bruel <christian.bruel@st.com>
21201 * config/arm/arm.c (arm_set_current_function): Handle
21202 explicit default options.
21204 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21206 * config/i386/i386.md (*movsicc_noc_zext): New insn.
21207 (zero-extended cmove with mem peephole2): New pattern.
21208 (cmove with mem peephole2): Merge patterns.
21210 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
21212 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21214 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
21216 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21217 * config/mips/mips.md (*madd4<mode>): Ditto.
21218 (*nmadd3<mode>) Ditto.
21219 (*nmadd4<mode>_fastmath): Ditto.
21220 (*nmadd3<mode>_fastmath): Ditto.
21221 (*nmsub4<mode>): Ditto.
21222 (*nmsub3<mode>): Ditto.
21223 (*nmsub4<mode>_fastmath): Ditto.
21224 (*nmsub3<mode>_fastmath): Ditto.
21226 2015-06-18 Michael Matz <matz@suse.de>
21228 PR middle-end/66253
21229 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21230 grouped strided stores.
21231 (vectorizable_load): Don't use the DR from first_stmt in
21232 the non-SLP grouped strided case.
21234 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21237 * function.c (assign_bounds): Add arguments assign_regs,
21238 assign_special, assign_bt.
21239 (assign_parms): For vararg functions handle bounds in BT
21240 and special slots after incoming vararg bounds.
21242 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21244 PR middle-end/66568
21245 * cfgexpand.c (expand_return): Handle missing bounds.
21246 (expand_gimple_stmt_1): Likewise.
21247 * tree-chkp.c (chkp_expand_zero_bounds): New.
21248 * tree-chkp.h (chkp_expand_zero_bounds): New.
21250 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21252 PR middle-end/66567
21253 * ipa-chkp.c (chkp_maybe_create_clone): Require
21254 functions to be instrumentable.
21255 * tree-chkp.c (chkp_replace_function_pointer): Use
21256 chkp_instrumentable_p instead of attribute check.
21258 2015-06-18 Richard Biener <rguenther@suse.de>
21260 PR tree-optimization/66510
21261 * tree-vect-stmts.c (vectorizable_load): Properly compute the
21262 number of vector loads for SLP permuted loads.
21263 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21264 check the stride for loop vectorization.
21265 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21266 vectorization factor.
21267 (vect_analyze_group_access): If the group size is not a power
21268 of two require a epilogue loop.
21269 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21270 compute and optimizing and alias test pruning after final
21271 vectorization factor computation.
21272 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21274 (vect_transform_slp_perm_load): Properly compute the original
21275 number of vector load stmts.
21277 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21279 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21280 "unlikely character , in @var" warning.
21282 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
21284 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21285 (ix86_function_arg_advance): Ditto.
21286 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
21288 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21290 * function.h (struct rtl_data): Remove struct and accessor macros.
21291 * emit-rtl.h (struct rtl_data): Relocate to here.
21292 * Makefile.in (GTFILES): Add emit-rtl.h.
21293 * df-core.c: Include emit-rtl.h.
21294 * genattrtab.c: Likewise.
21295 * genconditions.c: Likewise.
21296 * genpreds.c: Likewise.
21297 * genrecog.c: Likewise.
21298 * regcprop.c: Likewise.
21299 * resource.c: Likewise.
21300 * sched-rgn.c: Likewise.
21301 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21302 * config/i386/winnt.c: Likewise.
21304 2015-06-17 Jakub Jelinek <jakub@redhat.com>
21306 PR middle-end/66429
21307 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21308 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
21309 and has_force_vectorize_loops flags from cfun into
21311 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21312 if simduid is non-NULL.
21313 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21314 * passes.def (pass_simduid_cleanup): Add new pass after loop
21316 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21317 indirection from htab argument's type.
21318 (shrink_simd_arrays): New function.
21319 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
21320 Don't call adjust_simduid_builtins if there are no loops.
21321 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21322 (pass_simduid_cleanup::execute): New method.
21323 (make_pass_simduid_cleanup): New function.
21325 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
21327 * tree-core.h (tree_target_option): Make opts field a pointer to a
21328 cl_target_option instead of an instance of the struct.
21329 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21331 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21332 TARGET_OPTION_NODE.
21333 (copy_node_stat): Allocate and copy struct cl_target_option.
21335 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21337 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21338 Remove conditional exposure of prototypes.
21339 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21340 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
21341 definitions in tree.h with functions.
21342 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21344 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21346 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
21348 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21349 (*cmp<mode>_signed): ... this.
21350 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21351 (*cmp<mode>_unsigned): ... this. Remove %b.
21353 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21355 * coretypes.h: Include input.h and as-a.h.
21356 * rtl.h: Include input.h and as-a.h for generator files.
21357 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21358 * vec.c: Don't include diagnostic-core.h.
21359 * alias.c: Do not include input.h, line-map.h or is-a.h.
21360 * asan.c: Likewise.
21361 * attribs.c: Likewise.
21362 * auto-inc-dec.c: Likewise.
21363 * auto-profile.c: Likewise.
21364 * bb-reorder.c: Likewise.
21365 * bt-load.c: Likewise.
21366 * builtins.c: Likewise.
21367 * caller-save.c: Likewise.
21368 * calls.c: Likewise.
21369 * ccmp.c: Likewise.
21371 * cfganal.c: Likewise.
21372 * cfgbuild.c: Likewise.
21373 * cfgcleanup.c: Likewise.
21374 * cfgexpand.c: Likewise.
21375 * cfghooks.c: Likewise.
21376 * cfgloop.c: Likewise.
21377 * cfgloop.h: Likewise.
21378 * cfgloopanal.c: Likewise.
21379 * cfgloopmanip.c: Likewise.
21380 * cfgrtl.c: Likewise.
21381 * cgraph.c: Likewise.
21382 * cgraphbuild.c: Likewise.
21383 * cgraphclones.c: Likewise.
21384 * cgraphunit.c: Likewise.
21385 * cilk-common.c: Likewise.
21386 * combine-stack-adj.c: Likewise.
21387 * combine.c: Likewise.
21388 * compare-elim.c: Likewise.
21389 * convert.c: Likewise.
21390 * coverage.c: Likewise.
21391 * cppbuiltin.c: Likewise.
21392 * cprop.c: Likewise.
21394 * cselib.c: Likewise.
21395 * data-streamer-in.c: Likewise.
21396 * data-streamer-out.c: Likewise.
21397 * data-streamer.c: Likewise.
21398 * dbxout.c: Likewise.
21401 * debug.c: Likewise.
21402 * df-core.c: Likewise.
21403 * df-problems.c: Likewise.
21404 * df-scan.c: Likewise.
21407 * diagnostic-core.h: Likewise.
21408 * diagnostic.c: Likewise.
21409 * dojump.c: Likewise.
21410 * dominance.c: Likewise.
21411 * domwalk.c: Likewise.
21412 * double-int.c: Likewise.
21414 * dumpfile.c: Likewise.
21415 * dumpfile.h: Likewise.
21416 * dwarf2asm.c: Likewise.
21417 * dwarf2cfi.c: Likewise.
21418 * dwarf2out.c: Likewise.
21419 * emit-rtl.c: Likewise.
21420 * et-forest.c: Likewise.
21421 * except.c: Likewise.
21422 * explow.c: Likewise.
21423 * expmed.c: Likewise.
21424 * expr.c: Likewise.
21425 * final.c: Likewise.
21426 * fixed-value.c: Likewise.
21427 * fold-const.c: Likewise.
21428 * function.c: Likewise.
21429 * fwprop.c: Likewise.
21430 * gcc-plugin.h: Likewise.
21431 * gcse.c: Likewise.
21432 * generic-match-head.c: Likewise.
21433 * ggc-page.c: Likewise.
21434 * gimple-builder.c: Likewise.
21435 * gimple-expr.c: Likewise.
21436 * gimple-fold.c: Likewise.
21437 * gimple-iterator.c: Likewise.
21438 * gimple-low.c: Likewise.
21439 * gimple-match-head.c: Likewise.
21440 * gimple-pretty-print.c: Likewise.
21441 * gimple-ssa-isolate-paths.c: Likewise.
21442 * gimple-ssa-strength-reduction.c: Likewise.
21443 * gimple-streamer-in.c: Likewise.
21444 * gimple-streamer-out.c: Likewise.
21445 * gimple-streamer.h: Likewise.
21446 * gimple-walk.c: Likewise.
21447 * gimple.c: Likewise.
21448 * gimplify-me.c: Likewise.
21449 * gimplify.c: Likewise.
21450 * godump.c: Likewise.
21451 * graph.c: Likewise.
21452 * graphite-blocking.c: Likewise.
21453 * graphite-dependences.c: Likewise.
21454 * graphite-interchange.c: Likewise.
21455 * graphite-isl-ast-to-gimple.c: Likewise.
21456 * graphite-optimize-isl.c: Likewise.
21457 * graphite-poly.c: Likewise.
21458 * graphite-scop-detection.c: Likewise.
21459 * graphite-sese-to-poly.c: Likewise.
21460 * graphite.c: Likewise.
21461 * haifa-sched.c: Likewise.
21462 * hw-doloop.c: Likewise.
21463 * ifcvt.c: Likewise.
21464 * init-regs.c: Likewise.
21465 * input.c: Likewise.
21466 * internal-fn.c: Likewise.
21467 * ipa-chkp.c: Likewise.
21468 * ipa-comdats.c: Likewise.
21469 * ipa-cp.c: Likewise.
21470 * ipa-devirt.c: Likewise.
21471 * ipa-icf-gimple.c: Likewise.
21472 * ipa-icf.c: Likewise.
21473 * ipa-inline-analysis.c: Likewise.
21474 * ipa-inline-transform.c: Likewise.
21475 * ipa-inline.c: Likewise.
21476 * ipa-polymorphic-call.c: Likewise.
21477 * ipa-profile.c: Likewise.
21478 * ipa-prop.c: Likewise.
21479 * ipa-pure-const.c: Likewise.
21480 * ipa-ref.c: Likewise.
21481 * ipa-reference.c: Likewise.
21482 * ipa-split.c: Likewise.
21483 * ipa-utils.c: Likewise.
21484 * ipa-visibility.c: Likewise.
21486 * ira-build.c: Likewise.
21487 * ira-color.c: Likewise.
21488 * ira-conflicts.c: Likewise.
21489 * ira-costs.c: Likewise.
21490 * ira-emit.c: Likewise.
21491 * ira-lives.c: Likewise.
21493 * jump.c: Likewise.
21494 * langhooks.c: Likewise.
21496 * loop-doloop.c: Likewise.
21497 * loop-init.c: Likewise.
21498 * loop-invariant.c: Likewise.
21499 * loop-iv.c: Likewise.
21500 * loop-unroll.c: Likewise.
21501 * lower-subreg.c: Likewise.
21502 * lra-assigns.c: Likewise.
21503 * lra-coalesce.c: Likewise.
21504 * lra-constraints.c: Likewise.
21505 * lra-eliminations.c: Likewise.
21506 * lra-lives.c: Likewise.
21507 * lra-remat.c: Likewise.
21508 * lra-spills.c: Likewise.
21510 * lto-cgraph.c: Likewise.
21511 * lto-compress.c: Likewise.
21512 * lto-opts.c: Likewise.
21513 * lto-section-in.c: Likewise.
21514 * lto-section-out.c: Likewise.
21515 * lto-streamer-in.c: Likewise.
21516 * lto-streamer-out.c: Likewise.
21517 * lto-streamer.c: Likewise.
21519 * mode-switching.c: Likewise.
21520 * modulo-sched.c: Likewise.
21521 * omega.c: Likewise.
21522 * omp-low.c: Likewise.
21523 * optabs.c: Likewise.
21524 * opts-global.c: Likewise.
21525 * opts.h: Likewise.
21526 * passes.c: Likewise.
21527 * plugin.c: Likewise.
21528 * postreload-gcse.c: Likewise.
21529 * postreload.c: Likewise.
21530 * predict.c: Likewise.
21531 * pretty-print.h: Likewise.
21532 * print-rtl.c: Likewise.
21533 * print-tree.c: Likewise.
21534 * profile.c: Likewise.
21535 * real.c: Likewise.
21536 * realmpfr.c: Likewise.
21537 * recog.c: Likewise.
21539 * reg-stack.c: Likewise.
21540 * regcprop.c: Likewise.
21541 * reginfo.c: Likewise.
21542 * regrename.c: Likewise.
21543 * regstat.c: Likewise.
21544 * reload.c: Likewise.
21545 * reload1.c: Likewise.
21546 * reorg.c: Likewise.
21547 * resource.c: Likewise.
21548 * rtl-chkp.c: Likewise.
21549 * rtl-error.c: Likewise.
21550 * rtlanal.c: Likewise.
21551 * rtlhooks.c: Likewise.
21552 * sanopt.c: Likewise.
21553 * sched-deps.c: Likewise.
21554 * sched-ebb.c: Likewise.
21555 * sched-rgn.c: Likewise.
21556 * sched-vis.c: Likewise.
21557 * sdbout.c: Likewise.
21558 * sel-sched-dump.c: Likewise.
21559 * sel-sched-ir.c: Likewise.
21560 * sel-sched.c: Likewise.
21561 * sese.c: Likewise.
21562 * shrink-wrap.c: Likewise.
21563 * simplify-rtx.c: Likewise.
21564 * stack-ptr-mod.c: Likewise.
21565 * statistics.c: Likewise.
21566 * stmt.c: Likewise.
21567 * stor-layout.c: Likewise.
21568 * store-motion.c: Likewise.
21569 * streamer-hooks.c: Likewise.
21570 * stringpool.c: Likewise.
21571 * symtab.c: Likewise.
21572 * target-globals.c: Likewise.
21573 * targhooks.c: Likewise.
21574 * toplev.c: Likewise.
21575 * tracer.c: Likewise.
21576 * trans-mem.c: Likewise.
21577 * tree-affine.c: Likewise.
21578 * tree-browser.c: Likewise.
21579 * tree-call-cdce.c: Likewise.
21580 * tree-cfg.c: Likewise.
21581 * tree-cfgcleanup.c: Likewise.
21582 * tree-chkp-opt.c: Likewise.
21583 * tree-chkp.c: Likewise.
21584 * tree-chrec.c: Likewise.
21585 * tree-complex.c: Likewise.
21586 * tree-data-ref.c: Likewise.
21587 * tree-dfa.c: Likewise.
21588 * tree-diagnostic.c: Likewise.
21589 * tree-dump.c: Likewise.
21590 * tree-eh.c: Likewise.
21591 * tree-emutls.c: Likewise.
21592 * tree-if-conv.c: Likewise.
21593 * tree-inline.c: Likewise.
21594 * tree-into-ssa.c: Likewise.
21595 * tree-iterator.c: Likewise.
21596 * tree-loop-distribution.c: Likewise.
21597 * tree-nested.c: Likewise.
21598 * tree-nrv.c: Likewise.
21599 * tree-object-size.c: Likewise.
21600 * tree-outof-ssa.c: Likewise.
21601 * tree-parloops.c: Likewise.
21602 * tree-phinodes.c: Likewise.
21603 * tree-predcom.c: Likewise.
21604 * tree-pretty-print.c: Likewise.
21605 * tree-profile.c: Likewise.
21606 * tree-scalar-evolution.c: Likewise.
21607 * tree-sra.c: Likewise.
21608 * tree-ssa-address.c: Likewise.
21609 * tree-ssa-alias.c: Likewise.
21610 * tree-ssa-ccp.c: Likewise.
21611 * tree-ssa-coalesce.c: Likewise.
21612 * tree-ssa-copy.c: Likewise.
21613 * tree-ssa-copyrename.c: Likewise.
21614 * tree-ssa-dce.c: Likewise.
21615 * tree-ssa-dom.c: Likewise.
21616 * tree-ssa-dse.c: Likewise.
21617 * tree-ssa-forwprop.c: Likewise.
21618 * tree-ssa-ifcombine.c: Likewise.
21619 * tree-ssa-live.c: Likewise.
21620 * tree-ssa-loop-ch.c: Likewise.
21621 * tree-ssa-loop-im.c: Likewise.
21622 * tree-ssa-loop-ivcanon.c: Likewise.
21623 * tree-ssa-loop-ivopts.c: Likewise.
21624 * tree-ssa-loop-manip.c: Likewise.
21625 * tree-ssa-loop-niter.c: Likewise.
21626 * tree-ssa-loop-prefetch.c: Likewise.
21627 * tree-ssa-loop-unswitch.c: Likewise.
21628 * tree-ssa-loop.c: Likewise.
21629 * tree-ssa-math-opts.c: Likewise.
21630 * tree-ssa-operands.c: Likewise.
21631 * tree-ssa-phiopt.c: Likewise.
21632 * tree-ssa-phiprop.c: Likewise.
21633 * tree-ssa-pre.c: Likewise.
21634 * tree-ssa-propagate.c: Likewise.
21635 * tree-ssa-reassoc.c: Likewise.
21636 * tree-ssa-sccvn.c: Likewise.
21637 * tree-ssa-scopedtables.c: Likewise.
21638 * tree-ssa-sink.c: Likewise.
21639 * tree-ssa-strlen.c: Likewise.
21640 * tree-ssa-structalias.c: Likewise.
21641 * tree-ssa-tail-merge.c: Likewise.
21642 * tree-ssa-ter.c: Likewise.
21643 * tree-ssa-threadedge.c: Likewise.
21644 * tree-ssa-threadupdate.c: Likewise.
21645 * tree-ssa-uncprop.c: Likewise.
21646 * tree-ssa-uninit.c: Likewise.
21647 * tree-ssa.c: Likewise.
21648 * tree-ssanames.c: Likewise.
21649 * tree-stdarg.c: Likewise.
21650 * tree-streamer-in.c: Likewise.
21651 * tree-streamer-out.c: Likewise.
21652 * tree-streamer.c: Likewise.
21653 * tree-switch-conversion.c: Likewise.
21654 * tree-tailcall.c: Likewise.
21655 * tree-vect-data-refs.c: Likewise.
21656 * tree-vect-generic.c: Likewise.
21657 * tree-vect-loop-manip.c: Likewise.
21658 * tree-vect-loop.c: Likewise.
21659 * tree-vect-patterns.c: Likewise.
21660 * tree-vect-slp.c: Likewise.
21661 * tree-vect-stmts.c: Likewise.
21662 * tree-vectorizer.c: Likewise.
21663 * tree-vrp.c: Likewise.
21664 * tree.c: Likewise.
21665 * tsan.c: Likewise.
21666 * ubsan.c: Likewise.
21667 * valtrack.c: Likewise.
21668 * value-prof.c: Likewise.
21669 * var-tracking.c: Likewise.
21670 * varasm.c: Likewise.
21671 * varpool.c: Likewise.
21672 * vmsdbgout.c: Likewise.
21673 * vtable-verify.c: Likewise.
21675 * wide-int.cc: Likewise.
21676 * xcoffout.c: Likewise.
21677 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21678 * common/common-targhooks.c: Likewise.
21679 * config/aarch64/aarch64-builtins.c: Likewise.
21680 * config/aarch64/aarch64.c: Likewise.
21681 * config/alpha/alpha.c: Likewise.
21682 * config/arc/arc.c: Likewise.
21683 * config/arm/aarch-common.c: Likewise.
21684 * config/arm/arm-builtins.c: Likewise.
21685 * config/arm/arm-c.c: Likewise.
21686 * config/arm/arm.c: Likewise.
21687 * config/avr/avr-c.c: Likewise.
21688 * config/avr/avr-log.c: Likewise.
21689 * config/avr/avr.c: Likewise.
21690 * config/bfin/bfin.c: Likewise.
21691 * config/c6x/c6x.c: Likewise.
21692 * config/cr16/cr16.c: Likewise.
21693 * config/cris/cris.c: Likewise.
21694 * config/darwin-c.c: Likewise.
21695 * config/darwin.c: Likewise.
21696 * config/default-c.c: Likewise.
21697 * config/epiphany/epiphany.c: Likewise.
21698 * config/epiphany/mode-switch-use.c: Likewise.
21699 * config/epiphany/resolve-sw-modes.c: Likewise.
21700 * config/fr30/fr30.c: Likewise.
21701 * config/frv/frv.c: Likewise.
21702 * config/ft32/ft32.c: Likewise.
21703 * config/glibc-c.c: Likewise.
21704 * config/h8300/h8300.c: Likewise.
21705 * config/i386/i386-c.c: Likewise.
21706 * config/i386/i386.c: Likewise.
21707 * config/i386/msformat-c.c: Likewise.
21708 * config/i386/winnt-cxx.c: Likewise.
21709 * config/i386/winnt-stubs.c: Likewise.
21710 * config/i386/winnt.c: Likewise.
21711 * config/ia64/ia64-c.c: Likewise.
21712 * config/ia64/ia64.c: Likewise.
21713 * config/iq2000/iq2000.c: Likewise.
21714 * config/lm32/lm32.c: Likewise.
21715 * config/m32c/m32c-pragma.c: Likewise.
21716 * config/m32c/m32c.c: Likewise.
21717 * config/m32r/m32r.c: Likewise.
21718 * config/m68k/m68k.c: Likewise.
21719 * config/mcore/mcore.c: Likewise.
21720 * config/mep/mep-pragma.c: Likewise.
21721 * config/mep/mep.c: Likewise.
21722 * config/microblaze/microblaze-c.c: Likewise.
21723 * config/microblaze/microblaze.c: Likewise.
21724 * config/mips/mips.c: Likewise.
21725 * config/mmix/mmix.c: Likewise.
21726 * config/mn10300/mn10300.c: Likewise.
21727 * config/moxie/moxie.c: Likewise.
21728 * config/msp430/msp430-c.c: Likewise.
21729 * config/msp430/msp430.c: Likewise.
21730 * config/nds32/nds32-cost.c: Likewise.
21731 * config/nds32/nds32-fp-as-gp.c: Likewise.
21732 * config/nds32/nds32-intrinsic.c: Likewise.
21733 * config/nds32/nds32-isr.c: Likewise.
21734 * config/nds32/nds32-md-auxiliary.c: Likewise.
21735 * config/nds32/nds32-memory-manipulation.c: Likewise.
21736 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21737 * config/nds32/nds32-predicates.c: Likewise.
21738 * config/nds32/nds32.c: Likewise.
21739 * config/nios2/nios2.c: Likewise.
21740 * config/nvptx/nvptx.c: Likewise.
21741 * config/pa/pa.c: Likewise.
21742 * config/pdp11/pdp11.c: Likewise.
21743 * config/rl78/rl78-c.c: Likewise.
21744 * config/rl78/rl78.c: Likewise.
21745 * config/rs6000/rs6000-c.c: Likewise.
21746 * config/rs6000/rs6000.c: Likewise.
21747 * config/rx/rx.c: Likewise.
21748 * config/s390/s390-c.c: Likewise.
21749 * config/s390/s390.c: Likewise.
21750 * config/sh/sh-c.c: Likewise.
21751 * config/sh/sh-mem.cc: Likewise.
21752 * config/sh/sh.c: Likewise.
21753 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21754 * config/sh/sh_treg_combine.cc: Likewise.
21755 * config/sol2-c.c: Likewise.
21756 * config/sol2-cxx.c: Likewise.
21757 * config/sol2-stubs.c: Likewise.
21758 * config/sol2.c: Likewise.
21759 * config/sparc/sparc-c.c: Likewise.
21760 * config/sparc/sparc.c: Likewise.
21761 * config/spu/spu-c.c: Likewise.
21762 * config/spu/spu.c: Likewise.
21763 * config/stormy16/stormy16.c: Likewise.
21764 * config/tilegx/mul-tables.c: Likewise.
21765 * config/tilegx/tilegx-c.c: Likewise.
21766 * config/tilegx/tilegx.c: Likewise.
21767 * config/tilepro/mul-tables.c: Likewise.
21768 * config/tilepro/tilepro-c.c: Likewise.
21769 * config/tilepro/tilepro.c: Likewise.
21770 * config/v850/v850-c.c: Likewise.
21771 * config/v850/v850.c: Likewise.
21772 * config/vax/vax.c: Likewise.
21773 * config/visium/visium.c: Likewise.
21774 * config/vms/vms-c.c: Likewise.
21775 * config/vms/vms.c: Likewise.
21776 * config/vxworks.c: Likewise.
21777 * config/winnt-c.c: Likewise.
21778 * config/xtensa/xtensa.c: Likewise.
21780 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
21782 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21784 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21786 2015-06-17 Richard Biener <rguenther@suse.de>
21788 PR tree-optimization/66251
21789 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21790 stmts for SLP strided stores.
21793 2015-05-22 Richard Biener <rguenther@suse.de>
21795 PR tree-optimization/66251
21796 * tree-vect-stmts.c (vectorizable_conversion): Properly
21797 set STMT_VINFO_VEC_STMT even for the SLP case.
21799 2015-05-26 Michael Matz <matz@suse.de>
21801 PR middle-end/66251
21802 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21803 STMT_VINFO_VEC_STMT, also with SLP.
21805 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
21808 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21809 (*avx_addsubv4df3_1s): Ditto.
21810 (*sse3_addsubv2df3_1): Ditto.
21811 (*sse3_addsubv2df3_1s): Ditto.
21812 (*avx_addsubv8sf3_1): Ditto.
21813 (*avx_addsubv8sf3_1s): Ditto.
21814 (*sse3_addsubv4sf3_1): Ditto.
21815 (*sse3_addsubv4sf3_1s): Ditto.
21817 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
21819 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21820 (SYSROOT_SUFFIX_SPEC): Update.
21821 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21822 (STARTFILE_PREFIX_SPEC): Update.
21823 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21824 (MULTILIB_REQUIRED): New.
21825 (MULTILIB_OSDIRNAMES): New.
21826 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21827 (MULTILIB_REQUIRED): New.
21828 (MULTILIB_OSDIRNAMES): New.
21830 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
21832 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21833 * config/aarch64/aarch64-options-extensions.def: Update "fP",
21834 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
21835 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21836 (AARCH64_FL_PAN): New.
21837 (AARCH64_FL_LOR): New.
21838 (AARCH64_FL_RDMA): New.
21839 (AARCH64_FL_FOR_ARCH8_1): New.
21840 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21841 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21843 2015-06-16 Martin Liska <mliska@suse.cz>
21845 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21846 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21849 2015-06-16 Richard Biener <rguenther@suse.de>
21851 * tree-vect-stmts.c (vectorizable_store): Adjust.
21852 (vectorizable_load): Likewise.
21853 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21855 (vect_create_data_ref_ptr): Likewise.
21856 (bump_vector_ptr): Adjust.
21858 2015-06-16 Richard Biener <rguenther@suse.de>
21860 * tree-vect-stmts.c (vectorizable_load): Properly start loads
21861 with the first element if this is grouped loads.
21863 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
21865 * config/arm/arm-protos.h (struct tune_params): Rename
21866 log_op_non_sc to log_op_non_short_circuit, and rename enum
21867 values to expand SC to SHORT_CIRCUIT.
21868 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21869 to LOG_OP_NON_SHORT_CIRCUIT.
21870 (arm_fastmul_tune):Likewise
21871 (arm_strongarm_tune): Likewise.
21872 (arm_xscale_tune): Likewise.
21873 (arm_9e_tune): Likewise.
21874 (arm_marvell_pj4_tune): Likewise.
21875 (arm_v6t2_tune): Likewise.
21876 (arm_cortex_tune): Likewise.
21877 (arm_cortex_a8_tune): Likewise.
21878 (arm_cortex_a7_tune): Likewise.
21879 (arm_cortex_a15_tune): Likewise.
21880 (arm_cortex_a53_tune): Likewise.
21881 (arm_cortex_a57_tune): Likewise.
21882 (arm_xgene1_tune): Likewise.
21883 (arm_cortex_a5_tune): Likewise.
21884 (arm_cortex_a9_tune): Likewise.
21885 (arm_cortex_a12_tune): Likewise.
21886 (arm_v7m_tune): Likewise.
21887 (arm_cortex_m7_tune): Likewise.
21888 (arm_v6m_tune): Likewise.
21889 (arm_fa726te_tune): Likewise.
21891 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
21893 * altivec.md: Delete UNSPEC_VMLADDUHM.
21894 (mulv4si3_p8): New pattern.
21895 (mulv4si3): Use it for POWER8.
21896 (mulv8hi3): Use vmladduhm with zero addend.
21897 (altivec_vmladduhm): Descriptive RTL.
21899 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
21901 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21902 to use neon_move instead of mov_imm.
21903 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21904 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21906 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21907 aarch64_float_const_zero_rtx_p check before TFmode check.
21908 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21910 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
21911 code and attributes to match. Change condition from register_operand
21912 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
21913 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
21916 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
21919 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21920 there is no parent.
21922 2015-06-14 Shiva Chen <shiva0217@gmail.com>
21924 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21925 HOST_WIDE_INT parameter.
21927 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
21930 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21931 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21933 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21935 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
21937 * rtl.h (classify_insn): Declare.
21938 * emit-rtl.c (classify_insn): Move to...
21939 * rtl.c: ...here and add generator support.
21940 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21941 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21942 * genemit.c (gen_emit_seq): New function.
21943 (gen_expand, gen_split): Use it.
21945 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
21947 * tree.c (make_vector_stat): Fix comment to state that the
21948 function returns a VECTOR_CST.
21950 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
21952 * gensupport.h (add_implicit_parallel): Declare.
21953 * genrecog.c (add_implicit_parallel): Move to...
21954 * gensupport.c (add_implicit_parallel): ...here.
21955 (process_one_cond_exec): Use it.
21956 * genemit.c (gen_insn): Likewise.
21958 2015-06-13 Iain Sandoe <iain@codesourcery.com>
21961 * passes.c (rest_of_decl_compilation): Do not register globals for
21962 early debug if they are declared in built-ins.
21964 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
21966 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21968 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21970 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21972 (noce_try_cmove_arith): Likewise.
21973 (noce_get_alt_condition): Likewise.
21975 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21977 * common/config/i386/i386-common.c
21978 (OPTION_MASK_ISA_MWAITX_SET): New.
21979 (ix86_handle_option): Handle mwaitx.
21980 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21981 (x86_64-*-*): Likewise.
21982 * config/i386/mwaitxintrin.h: New header.
21983 * config/i386/cpuid.h (bit_MWAITX): Define.
21984 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21986 * config/i386/i386.opt (mwaitx): New.
21987 * config/i386/i386-builtin-types.def
21988 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21989 * config/i386/i386-c.c: Define __MWAITX__ if needed.
21990 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21992 (ix86_option_override_internal): Handle new option.
21993 (processor_alias_table): Added PTA_MWAITX.
21994 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21995 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21996 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21997 IX86_BUILTIN_MONITORX built-ins.
21998 * config/i386/i386.h (TARGET_MWAITX): New.
21999 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
22001 (mwaitx): New pattern.
22002 (monitorx_<mode>): New pattern.
22003 * config/i386/x86intrin.h: Include mwaitxintrin.h.
22004 * doc/extend.texi: Document monitorx and mwaitx builtins.
22005 * doc/invoke.texi: Document -mmwaitx option.
22007 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
22009 * emit-rtl.c (need_atomic_barrier_p): Mask model with
22010 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
22012 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
22014 * dbxout.c (xcoff_debug_hooks): Provide a function for
22015 register_main_translation_unit hook.
22017 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
22019 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
22020 variants cases from switch.
22021 (rs6000_post_atomic_barrier): Same.
22022 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
22023 (rs6000_expand_atomic_exchange): Same.
22024 (rs6000_expand_atomic_op): Same.
22025 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
22026 SYNC variants cases from switch.
22027 (atomic_load): Same.
22028 (atomic_store): Same.
22030 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
22032 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
22033 CONST_INT for goto.
22035 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
22038 * dwarf2out.c (check_die): Check for common duplicate attributes.
22039 (add_location_or_const_value_attribute): Do not add duplicate
22041 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
22043 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
22044 (gen_type_die_with_usage): Call check_die.
22045 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
22047 2015-06-11 Jason Merrill <jason@redhat.com>
22049 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
22052 2015-06-11 Marek Polacek <polacek@redhat.com>
22054 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
22056 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
22059 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
22060 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
22061 (*addx_extend_sp32): Fix pasto.
22062 (*subx_extend): Rename into...
22063 (*subx_extend_sp32): ...this.
22064 (*adddi3_extend_sp32): Add earlyclobber.
22065 (*subdi3_insn_sp32): Likewise.
22066 (*subdi3_extend_sp32): Likewise.
22067 (*and_not_di_sp32): Likewise.
22068 (*or_not_di_sp32): Likewise.
22069 (*xor_not_di_sp32): Likewise.
22070 (*negdi2_sp32): Likewise.
22071 (*one_cmpldi2_sp32): Likewise.
22073 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
22075 * debug.h (struct gcc_debug_hooks): Add a
22076 register_main_translation_unit hook.
22077 * debug.c (do_nothing_debug_hooks): Provide a function for this
22079 * dbxout.c (dbx_debug_hooks): Likewise.
22080 * sdbout.c (sdb_debug_hooks): Likewise.
22081 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22082 * dwarf2out.c (main_translation_unit): New global variable.
22083 (dwarf2out_register_main_translation_unit): New function
22084 implementing the new hook.
22085 (dwarf2_debug_hooks): Assign
22086 dwarf2out_register_main_translation_unit to this new hook.
22087 (dwarf2out_init): Associate any main translation unit to
22090 2015-06-11 Marek Polacek <polacek@redhat.com>
22092 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
22094 2015-06-11 Marek Polacek <polacek@redhat.com>
22096 * match.pd: Use single_use throughout.
22098 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22100 * config/arm/arm.c (arm_option_params_internal): When optimising
22101 for speed set max_insns_skipped when arm_restrict_it.
22103 2015-06-11 Christian Bruel <christian.bruel@st.com>
22106 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
22108 (arm_cpu_builtins): New function.
22109 (arm_pragma_target_parse): Call arm_cpu_builtins.
22110 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
22111 (arm_register_target_pragmas): Likewise.
22112 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
22113 Call arm_register_target_pragmas.
22114 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
22115 (arm_pragma_target_parse): Likewise.
22117 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
22119 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
22120 of the second operand.
22122 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
22125 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
22126 to prepare mask operand for AVX512 modes.
22128 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22131 * doc/md.texi (Machine Constraints): Document that on the PowerPC
22132 if you use a constraint that targets a VSX register, you must use
22133 %x<n> in the template.
22135 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
22137 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
22138 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
22139 (define_insn "trap"): New definition.
22141 2015-06-10 Richard Biener <rguenther@suse.de>
22143 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
22145 (vect_supported_load_permutation_p): ... here. Handle
22146 supportable permutations in reductions.
22147 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
22148 for vectorizing strided group loads.
22150 2015-06-10 Jakub Jelinek <jakub@redhat.com>
22153 * config/i386/i386.c (ix86_split_long_move): For collisions
22154 involving direct tls segment refs, move the UNSPEC_TP possibly
22155 wrapped in ZERO_EXTEND out of the address for lea, to each of
22158 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22160 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22161 dmb sy. Adjust tabs.
22163 2015-06-10 Tom de Vries <tom@codesourcery.com>
22165 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22167 2015-06-10 Martin Liska <mliska@suse.cz>
22170 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22171 all enum values in mem_alloc_origin.
22172 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22174 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22175 * bitmap.c (bitmap_register): Likewise.
22176 (dump_bitmap_statistics): Likewise.
22177 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22178 (ggc_record_overhead): Likewise.
22179 * hash-map.h: Likewise.
22180 * hash-set.h: Likewise.
22181 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22182 * hash-table.h: Likewise.
22183 * vec.c (vec_prefix::register_overhead): Likewise.
22184 (vec_prefix::release_overhead): Likewise.
22185 (dump_vec_loc_statistics): Likewise.
22187 2015-06-09 Christian Bruel <christian.bruel@st.com>
22190 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22191 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22192 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22193 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22194 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22195 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22196 (arm_valid_target_attribute_p): Likewise.
22197 (arm_set_current_function, arm_can_inline_p): Likewise.
22198 (arm_valid_target_attribute_rec): Likewise.
22199 (arm_previous_fndecl): New variable.
22200 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22201 (TARGET_CAN_INLINE_P): Define.
22202 (arm_asm_trampoline_template): Emit mode.
22203 (arm_file_start): Don't set unified syntax.
22204 (arm_declare_function_name): Set unified syntax and mode.
22205 (arm_option_override): Init target_option_default_node.
22206 and target_option_current_node.
22207 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22208 (*call_symbol): Likewise.
22209 * doc/extend.texi: Document ARM/Thumb target attribute.
22210 * doc/invoke.texi: Likewise.
22212 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22215 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22216 PR rtl-optimization/64164
22217 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22218 * tree-ssa-copyrename.c: Removed.
22219 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22220 -ftree-coalesce-vars.
22221 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22222 * common.opt (ftree-copyrename): Ignore.
22223 (ftree-coalesce-inlined-vars): Likewise.
22224 * doc/invoke.texi: Remove the ignored options above.
22225 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22226 * tree-ssa-coalesce.h: ... here.
22227 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22228 headers required by it.
22229 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22230 across variables when flag_tree_coalesce_vars. Check register
22231 use and promoted modes to allow coalescing. Moved to
22232 tree-ssa-coalesce.c.
22233 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22234 with its member functions to tree-ssa-coalesce.c.
22235 (var_map_base_init): Likewise. Renamed to
22236 compute_samebase_partition_bases.
22237 (partition_view_normal): Drop want_bases parameter.
22238 (partition_view_bitmap): Likewise.
22239 * tree-ssa-live.h: Adjust declarations.
22240 * tree-ssa-coalesce.c: Include explow.h.
22241 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22242 default defs at the entry point.
22243 (dump_part_var_map): New.
22244 (compute_optimized_partition_bases): New, called by...
22245 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22246 of compute_samebase_partition_bases. Adjust.
22247 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22248 * cfgexpand.c (leader_merge): New.
22249 (get_rtl_for_parm_ssa_default_def): New.
22250 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22251 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22252 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22253 redundant MEM attr setting.
22254 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22256 (expand_one_stack_var): ... this. New wrapper to check and
22257 skip already expanded SSA partitions.
22258 (record_alignment_for_reg_var): New, factored out of...
22259 (expand_one_var): ... this.
22260 (expand_one_ssa_partition): New.
22261 (adjust_one_expanded_partition_var): New.
22262 (expand_one_register_var): Check and skip already expanded SSA
22264 (expand_used_vars): Don't create DECLs for anonymous SSA
22265 names. Expand all SSA partitions, then adjust all SSA names.
22266 (pass::execute): Replace the loops that set
22267 SA.partition_to_pseudo from partition leaders and cleared
22268 DECL_RTL for multi-location variables, and that which used to
22269 rename vars and set attrs, with one that clears DECL_RTL and
22270 checks that PARMs and RESULTs default_defs match DECL_RTL.
22271 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22272 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22273 * explow.c (promote_ssa_mode): New.
22274 * explow.h (promote_ssa_mode): Declare.
22275 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22276 * function.c: Include cfgexpand.h.
22277 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22278 (use_register_for_parm_decl): Wrapper for the above to
22279 special-case the result_ptr.
22280 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22281 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22282 multiple locations.
22283 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22284 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22285 (assign_parm_setup_block): Prefer SSA-assigned location.
22286 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22287 if stack_parm is NULL.
22288 (assign_parm_setup_stack): Prefer SSA-assigned location.
22289 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22290 rtl before testing for pointer bounds. Special-case result_ptr.
22291 (expand_function_start): Maybe reset DECL_RTL of result.
22292 Prefer SSA-assigned location for result and static chain.
22293 Factor out DECL_RESULT and SET_DECL_RTL.
22294 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22295 anonymous SSA names. Use promote_ssa_mode.
22296 (get_temp_reg): Likewise.
22297 (remove_ssa_form): Adjust.
22298 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22299 and get its reg_usage for reg invalidation.
22300 (compute_bb_dataflow): Pass it insn.
22301 (emit_notes_in_bb): Likewise.
22302 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22303 fail assert on conversion between unsigned types.
22305 2015-06-09 Tom de Vries <tom@codesourcery.com>
22307 PR tree-optimization/65460
22308 * omp-low.c (expand_omp_target): Set parallelized_function on
22309 cgraph_node for child_fn.
22311 2015-06-09 Tom de Vries <tom@codesourcery.com>
22313 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22314 parallelized_function before add_new_function.
22316 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
22318 * gcc-plugin.h: Move decls to plugin.h and include it.
22319 * plugin.h: Relocate decls from gcc-plugin.h
22320 * ggc-page.c: Include required header files.
22321 * passes.c: Likewise.
22322 * cgraphunit.c: Likewise.
22324 2015-06-09 Tom de Vries <tom@codesourcery.com>
22326 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22328 2015-06-09 Jason Merrill <jason@redhat.com>
22331 * toplev.c (check_global_declaration): Don't warn about a clone.
22333 2015-06-09 Marek Polacek <polacek@redhat.com>
22335 PR tree-optimization/66299
22336 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22337 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22340 2015-06-09 Richard Biener <rguenther@suse.de>
22342 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22343 (vect_analyze_slp_instance): Instead do not falsely drop
22346 2015-06-09 Richard Biener <rguenther@suse.de>
22348 PR middle-end/66423
22349 * match.pd: Handle A % (unsigned)(1 << B).
22351 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
22353 * varasm.c (output_object_block_htab): Remove.
22354 (output_object_block_compare): New.
22355 (output_object_blocks): Sort named object_blocks before outputting
22358 2015-06-09 Richard Biener <rguenther@suse.de>
22360 PR tree-optimization/66419
22361 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22362 consider GROUP_GAP when detecting a perfect subchain.
22364 2015-06-09 Nick Clifton <nickc@redhat.com>
22366 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22367 place read only data in the .frodata section.
22369 2015-06-09 Shiva Chen <shiva0217@gmail.com>
22371 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22372 (atomic_store<mode>): Likewise.
22374 2015-06-09 Richard Biener <rguenther@suse.de>
22376 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22378 2015-06-09 Richard Biener <rguenther@suse.de>
22380 PR middle-end/66413
22381 * tree-inline.c (insert_init_debug_bind): Unshare value.
22383 2015-06-09 Richard Biener <rguenther@suse.de>
22385 PR tree-optimization/66396
22386 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22387 Rename virtual operands.
22389 2015-06-09 Tom de Vries <tom@codesourcery.com>
22391 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22392 always return false.
22394 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22396 PR rtl-optimization/64164
22397 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22398 * tree-ssa-copyrename.c: Removed.
22399 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22400 -ftree-coalesce-vars.
22401 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22402 * common.opt (ftree-copyrename): Ignore.
22403 (ftree-coalesce-inlined-vars): Likewise.
22404 * doc/invoke.texi: Remove the ignored options above.
22405 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22406 * tree-ssa-coalesce.h: ... here.
22407 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22408 headers required by it.
22409 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22410 across variables when flag_tree_coalesce_vars. Check register
22411 use and promoted modes to allow coalescing. Moved to
22412 tree-ssa-coalesce.c.
22413 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22414 with its member functions to tree-ssa-coalesce.c.
22415 (var_map_base_init): Likewise. Renamed to
22416 compute_samebase_partition_bases.
22417 (partition_view_normal): Drop want_bases parameter.
22418 (partition_view_bitmap): Likewise.
22419 * tree-ssa-live.h: Adjust declarations.
22420 * tree-ssa-coalesce.c: Include explow.h.
22421 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22422 default defs at the entry point.
22423 (dump_part_var_map): New.
22424 (compute_optimized_partition_bases): New, called by...
22425 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22426 of compute_samebase_partition_bases. Adjust.
22427 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22428 * cfgexpand.c (leader_merge): New.
22429 (get_rtl_for_parm_ssa_default_def): New.
22430 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22431 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22432 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22433 redundant MEM attr setting.
22434 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22436 (expand_one_stack_var): ... this. New wrapper to check and
22437 skip already expanded SSA partitions.
22438 (record_alignment_for_reg_var): New, factored out of...
22439 (expand_one_var): ... this.
22440 (expand_one_ssa_partition): New.
22441 (adjust_one_expanded_partition_var): New.
22442 (expand_one_register_var): Check and skip already expanded SSA
22444 (expand_used_vars): Don't create DECLs for anonymous SSA
22445 names. Expand all SSA partitions, then adjust all SSA names.
22446 (pass::execute): Replace the loops that set
22447 SA.partition_to_pseudo from partition leaders and cleared
22448 DECL_RTL for multi-location variables, and that which used to
22449 rename vars and set attrs, with one that clears DECL_RTL and
22450 checks that PARMs and RESULTs default_defs match DECL_RTL.
22451 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22452 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22453 * explow.c (promote_ssa_mode): New.
22454 * explow.h (promote_ssa_mode): Declare.
22455 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22456 * function.c: Include cfgexpand.h.
22457 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22458 (use_register_for_parm_decl): Wrapper for the above to
22459 special-case the result_ptr.
22460 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22461 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22462 multiple locations.
22463 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22464 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22465 (assign_parm_setup_block): Prefer SSA-assigned location.
22466 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22467 if stack_parm is NULL.
22468 (assign_parm_setup_stack): Prefer SSA-assigned location.
22469 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22470 rtl before testing for pointer bounds. Special-case result_ptr.
22471 (expand_function_start): Maybe reset DECL_RTL of result.
22472 Prefer SSA-assigned location for result and static chain.
22473 Factor out DECL_RESULT and SET_DECL_RTL.
22474 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22475 anonymous SSA names. Use promote_ssa_mode.
22476 (get_temp_reg): Likewise.
22477 (remove_ssa_form): Adjust.
22478 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22479 and get its reg_usage for reg invalidation.
22480 (compute_bb_dataflow): Pass it insn.
22481 (emit_notes_in_bb): Likewise.
22482 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22483 fail assert on conversion between unsigned types.
22485 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22488 * tree-inline.c (reset_debug_binding): New.
22489 (reset_debug_bindings): Likewise.
22490 (expand_call_inline): Call it.
22492 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22494 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22497 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22499 * lto-streamer-out.c (lto_output_location): Stream
22500 reserved locations correctly.
22501 * lto-streamer-in.c (lto_output_location): Likewise.
22503 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
22505 * coretypes.h: Include hash-table.h and hash-set.h for host files.
22506 * ggc.h: Don't include statistics.h>
22507 * hash-map.h: Remove all includes.
22508 * hash-set.h: Likewise.
22509 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22510 the include list. Remove <new>.
22511 * inchash.h: Remove all includes.
22512 * mem-stats.h: Likewise.
22513 * vec.h: No special processing for generators or ggc.
22514 * alias.c : Adjust include files.
22515 * alloc-pool.c : Likewise.
22516 * alloc-pool.h : Likewise.
22517 * asan.c : Likewise.
22518 * attribs.c : Likewise.
22519 * auto-inc-dec.c : Likewise.
22520 * auto-profile.c : Likewise.
22521 * bb-reorder.c : Likewise.
22522 * bitmap.c : Likewise.
22523 * bitmap.h : Likewise.
22524 * bt-load.c : Likewise.
22525 * builtins.c : Likewise.
22526 * caller-save.c : Likewise.
22527 * calls.c : Likewise.
22528 * ccmp.c : Likewise.
22529 * cfg.c : Likewise.
22530 * cfganal.c : Likewise.
22531 * cfgbuild.c : Likewise.
22532 * cfgcleanup.c : Likewise.
22533 * cfgexpand.c : Likewise.
22534 * cfghooks.c : Likewise.
22535 * cfgloop.c : Likewise.
22536 * cfgloop.h : Likewise.
22537 * cfgloopanal.c : Likewise.
22538 * cfgloopmanip.c : Likewise.
22539 * cfgrtl.c : Likewise.
22540 * cgraph.c : Likewise.
22541 * cgraphbuild.c : Likewise.
22542 * cgraphclones.c : Likewise.
22543 * cgraphunit.c : Likewise.
22544 * cilk-common.c : Likewise.
22545 * combine-stack-adj.c : Likewise.
22546 * combine.c : Likewise.
22547 * compare-elim.c : Likewise.
22548 * context.c : Likewise.
22549 * convert.c : Likewise.
22550 * coverage.c : Likewise.
22551 * cppbuiltin.c : Likewise.
22552 * cprop.c : Likewise.
22553 * cse.c : Likewise.
22554 * cselib.c : Likewise.
22555 * data-streamer-in.c : Likewise.
22556 * data-streamer-out.c : Likewise.
22557 * data-streamer.c : Likewise.
22558 * data-streamer.h : Likewise.
22559 * dbxout.c : Likewise.
22560 * dce.c : Likewise.
22561 * ddg.c : Likewise.
22562 * debug.c : Likewise.
22563 * df-core.c : Likewise.
22564 * df-problems.c : Likewise.
22565 * df-scan.c : Likewise.
22567 * dfp.c : Likewise.
22568 * dojump.c : Likewise.
22569 * dominance.c : Likewise.
22570 * domwalk.c : Likewise.
22571 * double-int.c : Likewise.
22572 * dse.c : Likewise.
22573 * dumpfile.c : Likewise.
22574 * dwarf2asm.c : Likewise.
22575 * dwarf2cfi.c : Likewise.
22576 * dwarf2out.c : Likewise.
22577 * emit-rtl.c : Likewise.
22578 * et-forest.c : Likewise.
22579 * except.c : Likewise.
22580 * except.h : Likewise.
22581 * explow.c : Likewise.
22582 * expmed.c : Likewise.
22583 * expr.c : Likewise.
22584 * final.c : Likewise.
22585 * fixed-value.c : Likewise.
22586 * fold-const.c : Likewise.
22587 * function.c : Likewise.
22588 * fwprop.c : Likewise.
22589 * gcc-plugin.h : Likewise.
22590 * gcc.c : Likewise.
22591 * gcse-common.c : Likewise.
22592 * gcse.c : Likewise.
22593 * genattrtab.c : Likewise.
22594 * genautomata.c : Likewise.
22595 * genconditions.c : Likewise.
22596 * genemit.c : Likewise.
22597 * generic-match-head.c : Likewise.
22598 * genextract.c : Likewise.
22599 * gengtype-state.c : Likewise.
22600 * gengtype.c : Likewise.
22601 * genhooks.c : Likewise.
22602 * genmatch.c : Likewise.
22603 * genmodes.c : Likewise.
22604 * genrecog.c : Likewise.
22605 * gensupport.c : Likewise.
22606 * ggc-common.c : Likewise.
22607 * ggc-internal.h : Likewise.
22608 * ggc-none.c : Likewise.
22609 * ggc-page.c : Likewise.
22610 * gimple-builder.c : Likewise.
22611 * gimple-expr.c : Likewise.
22612 * gimple-fold.c : Likewise.
22613 * gimple-iterator.c : Likewise.
22614 * gimple-low.c : Likewise.
22615 * gimple-match-head.c : Likewise.
22616 * gimple-pretty-print.c : Likewise.
22617 * gimple-ssa-isolate-paths.c : Likewise.
22618 * gimple-ssa-strength-reduction.c : Likewise.
22619 * gimple-ssa.h : Likewise.
22620 * gimple-streamer-in.c : Likewise.
22621 * gimple-streamer-out.c : Likewise.
22622 * gimple-streamer.h : Likewise.
22623 * gimple-walk.c : Likewise.
22624 * gimple.c : Likewise.
22625 * gimplify-me.c : Likewise.
22626 * gimplify.c : Likewise.
22627 * godump.c : Likewise.
22628 * graph.c : Likewise.
22629 * graphds.c : Likewise.
22630 * graphite-blocking.c : Likewise.
22631 * graphite-dependences.c : Likewise.
22632 * graphite-interchange.c : Likewise.
22633 * graphite-isl-ast-to-gimple.c : Likewise.
22634 * graphite-optimize-isl.c : Likewise.
22635 * graphite-poly.c : Likewise.
22636 * graphite-scop-detection.c : Likewise.
22637 * graphite-sese-to-poly.c : Likewise.
22638 * graphite.c : Likewise.
22639 * haifa-sched.c : Likewise.
22640 * hard-reg-set.h : Likewise.
22641 * hw-doloop.c : Likewise.
22642 * ifcvt.c : Likewise.
22643 * inchash.c : Likewise.
22644 * incpath.c : Likewise.
22645 * init-regs.c : Likewise.
22646 * input.c : Likewise.
22647 * internal-fn.c : Likewise.
22648 * ipa-chkp.c : Likewise.
22649 * ipa-comdats.c : Likewise.
22650 * ipa-cp.c : Likewise.
22651 * ipa-devirt.c : Likewise.
22652 * ipa-icf-gimple.c : Likewise.
22653 * ipa-icf.c : Likewise.
22654 * ipa-inline-analysis.c : Likewise.
22655 * ipa-inline-transform.c : Likewise.
22656 * ipa-inline.c : Likewise.
22657 * ipa-polymorphic-call.c : Likewise.
22658 * ipa-profile.c : Likewise.
22659 * ipa-prop.c : Likewise.
22660 * ipa-pure-const.c : Likewise.
22661 * ipa-ref.c : Likewise.
22662 * ipa-reference.c : Likewise.
22663 * ipa-split.c : Likewise.
22664 * ipa-utils.c : Likewise.
22665 * ipa-visibility.c : Likewise.
22666 * ipa.c : Likewise.
22667 * ira-build.c : Likewise.
22668 * ira-color.c : Likewise.
22669 * ira-conflicts.c : Likewise.
22670 * ira-costs.c : Likewise.
22671 * ira-emit.c : Likewise.
22672 * ira-lives.c : Likewise.
22673 * ira.c : Likewise.
22674 * jump.c : Likewise.
22675 * langhooks.c : Likewise.
22676 * lcm.c : Likewise.
22677 * libfuncs.h : Likewise.
22678 * lists.c : Likewise.
22679 * loop-doloop.c : Likewise.
22680 * loop-init.c : Likewise.
22681 * loop-invariant.c : Likewise.
22682 * loop-iv.c : Likewise.
22683 * loop-unroll.c : Likewise.
22684 * lower-subreg.c : Likewise.
22685 * lra-assigns.c : Likewise.
22686 * lra-coalesce.c : Likewise.
22687 * lra-constraints.c : Likewise.
22688 * lra-eliminations.c : Likewise.
22689 * lra-lives.c : Likewise.
22690 * lra-remat.c : Likewise.
22691 * lra-spills.c : Likewise.
22692 * lra.c : Likewise.
22693 * lto-cgraph.c : Likewise.
22694 * lto-compress.c : Likewise.
22695 * lto-opts.c : Likewise.
22696 * lto-section-in.c : Likewise.
22697 * lto-section-out.c : Likewise.
22698 * lto-streamer-in.c : Likewise.
22699 * lto-streamer-out.c : Likewise.
22700 * lto-streamer.c : Likewise.
22701 * lto-streamer.h : Likewise.
22702 * mcf.c : Likewise.
22703 * mode-switching.c : Likewise.
22704 * modulo-sched.c : Likewise.
22705 * omega.c : Likewise.
22706 * omp-low.c : Likewise.
22707 * optabs.c : Likewise.
22708 * opts-global.c : Likewise.
22709 * opts.h : Likewise.
22710 * passes.c : Likewise.
22711 * plugin.c : Likewise.
22712 * postreload-gcse.c : Likewise.
22713 * postreload.c : Likewise.
22714 * predict.c : Likewise.
22715 * print-rtl.c : Likewise.
22716 * print-tree.c : Likewise.
22717 * profile.c : Likewise.
22718 * read-md.c : Likewise.
22719 * read-md.h : Likewise.
22720 * read-rtl.c : Likewise.
22721 * real.c : Likewise.
22722 * realmpfr.c : Likewise.
22723 * recog.c : Likewise.
22724 * ree.c : Likewise.
22725 * reg-stack.c : Likewise.
22726 * regcprop.c : Likewise.
22727 * reginfo.c : Likewise.
22728 * regrename.c : Likewise.
22729 * regstat.c : Likewise.
22730 * reload.c : Likewise.
22731 * reload1.c : Likewise.
22732 * reorg.c : Likewise.
22733 * resource.c : Likewise.
22734 * rtl-chkp.c : Likewise.
22735 * rtl.c : Likewise.
22736 * rtl.h : Likewise.
22737 * rtlanal.c : Likewise.
22738 * rtlhash.c : Likewise.
22739 * rtlhash.h : Likewise.
22740 * rtlhooks.c : Likewise.
22741 * sanopt.c : Likewise.
22742 * sched-deps.c : Likewise.
22743 * sched-ebb.c : Likewise.
22744 * sched-rgn.c : Likewise.
22745 * sched-vis.c : Likewise.
22746 * sdbout.c : Likewise.
22747 * sel-sched-dump.c : Likewise.
22748 * sel-sched-ir.c : Likewise.
22749 * sel-sched-ir.h : Likewise.
22750 * sel-sched.c : Likewise.
22751 * sese.c : Likewise.
22752 * shrink-wrap.c : Likewise.
22753 * shrink-wrap.h : Likewise.
22754 * simplify-rtx.c : Likewise.
22755 * stack-ptr-mod.c : Likewise.
22756 * statistics.c : Likewise.
22757 * stmt.c : Likewise.
22758 * stor-layout.c : Likewise.
22759 * store-motion.c : Likewise.
22760 * stringpool.c : Likewise.
22761 * symtab.c : Likewise.
22762 * target-globals.c : Likewise.
22763 * targhooks.c : Likewise.
22764 * tlink.c : Likewise.
22765 * toplev.c : Likewise.
22766 * tracer.c : Likewise.
22767 * trans-mem.c : Likewise.
22768 * tree-affine.c : Likewise.
22769 * tree-affine.h : Likewise.
22770 * tree-browser.c : Likewise.
22771 * tree-call-cdce.c : Likewise.
22772 * tree-cfg.c : Likewise.
22773 * tree-cfgcleanup.c : Likewise.
22774 * tree-chkp-opt.c : Likewise.
22775 * tree-chkp.c : Likewise.
22776 * tree-chrec.c : Likewise.
22777 * tree-complex.c : Likewise.
22778 * tree-data-ref.c : Likewise.
22779 * tree-dfa.c : Likewise.
22780 * tree-diagnostic.c : Likewise.
22781 * tree-dump.c : Likewise.
22782 * tree-eh.c : Likewise.
22783 * tree-eh.h : Likewise.
22784 * tree-emutls.c : Likewise.
22785 * tree-hasher.h : Likewise.
22786 * tree-if-conv.c : Likewise.
22787 * tree-inline.c : Likewise.
22788 * tree-inline.h : Likewise.
22789 * tree-into-ssa.c : Likewise.
22790 * tree-iterator.c : Likewise.
22791 * tree-loop-distribution.c : Likewise.
22792 * tree-nested.c : Likewise.
22793 * tree-nrv.c : Likewise.
22794 * tree-object-size.c : Likewise.
22795 * tree-outof-ssa.c : Likewise.
22796 * tree-parloops.c : Likewise.
22797 * tree-phinodes.c : Likewise.
22798 * tree-predcom.c : Likewise.
22799 * tree-pretty-print.c : Likewise.
22800 * tree-profile.c : Likewise.
22801 * tree-scalar-evolution.c : Likewise.
22802 * tree-sra.c : Likewise.
22803 * tree-ssa-address.c : Likewise.
22804 * tree-ssa-alias.c : Likewise.
22805 * tree-ssa-ccp.c : Likewise.
22806 * tree-ssa-coalesce.c : Likewise.
22807 * tree-ssa-copy.c : Likewise.
22808 * tree-ssa-copyrename.c : Likewise.
22809 * tree-ssa-dce.c : Likewise.
22810 * tree-ssa-dom.c : Likewise.
22811 * tree-ssa-dse.c : Likewise.
22812 * tree-ssa-forwprop.c : Likewise.
22813 * tree-ssa-ifcombine.c : Likewise.
22814 * tree-ssa-live.c : Likewise.
22815 * tree-ssa-loop-ch.c : Likewise.
22816 * tree-ssa-loop-im.c : Likewise.
22817 * tree-ssa-loop-ivcanon.c : Likewise.
22818 * tree-ssa-loop-ivopts.c : Likewise.
22819 * tree-ssa-loop-manip.c : Likewise.
22820 * tree-ssa-loop-niter.c : Likewise.
22821 * tree-ssa-loop-prefetch.c : Likewise.
22822 * tree-ssa-loop-unswitch.c : Likewise.
22823 * tree-ssa-loop.c : Likewise.
22824 * tree-ssa-math-opts.c : Likewise.
22825 * tree-ssa-operands.c : Likewise.
22826 * tree-ssa-phiopt.c : Likewise.
22827 * tree-ssa-phiprop.c : Likewise.
22828 * tree-ssa-pre.c : Likewise.
22829 * tree-ssa-propagate.c : Likewise.
22830 * tree-ssa-reassoc.c : Likewise.
22831 * tree-ssa-sccvn.c : Likewise.
22832 * tree-ssa-scopedtables.c : Likewise.
22833 * tree-ssa-sink.c : Likewise.
22834 * tree-ssa-strlen.c : Likewise.
22835 * tree-ssa-structalias.c : Likewise.
22836 * tree-ssa-tail-merge.c : Likewise.
22837 * tree-ssa-ter.c : Likewise.
22838 * tree-ssa-threadedge.c : Likewise.
22839 * tree-ssa-threadupdate.c : Likewise.
22840 * tree-ssa-uncprop.c : Likewise.
22841 * tree-ssa-uninit.c : Likewise.
22842 * tree-ssa.c : Likewise.
22843 * tree-ssanames.c : Likewise.
22844 * tree-stdarg.c : Likewise.
22845 * tree-streamer-in.c : Likewise.
22846 * tree-streamer-out.c : Likewise.
22847 * tree-streamer.c : Likewise.
22848 * tree-streamer.h : Likewise.
22849 * tree-switch-conversion.c : Likewise.
22850 * tree-tailcall.c : Likewise.
22851 * tree-vect-data-refs.c : Likewise.
22852 * tree-vect-generic.c : Likewise.
22853 * tree-vect-loop-manip.c : Likewise.
22854 * tree-vect-loop.c : Likewise.
22855 * tree-vect-patterns.c : Likewise.
22856 * tree-vect-slp.c : Likewise.
22857 * tree-vect-stmts.c : Likewise.
22858 * tree-vectorizer.c : Likewise.
22859 * tree-vectorizer.h : Likewise.
22860 * tree-vrp.c : Likewise.
22861 * tree.c : Likewise.
22862 * tsan.c : Likewise.
22863 * ubsan.c : Likewise.
22864 * valtrack.c : Likewise.
22865 * valtrack.h : Likewise.
22866 * value-prof.c : Likewise.
22867 * var-tracking.c : Likewise.
22868 * varasm.c : Likewise.
22869 * varpool.c : Likewise.
22871 * vmsdbgout.c : Likewise.
22872 * vtable-verify.c : Likewise.
22873 * vtable-verify.h : Likewise.
22874 * web.c : Likewise.
22875 * wide-int.cc : Likewise.
22876 * xcoffout.c : Likewise.
22877 * config/aarch64/aarch64-builtins.c : Likewise.
22878 * config/aarch64/aarch64.c : Likewise.
22879 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22880 * config/alpha/alpha.c : Likewise.
22881 * config/arc/arc.c : Likewise.
22882 * config/arm/aarch-common.c : Likewise.
22883 * config/arm/arm-builtins.c : Likewise.
22884 * config/arm/arm-c.c : Likewise.
22885 * config/arm/arm.c : Likewise.
22886 * config/avr/avr-c.c : Likewise.
22887 * config/avr/avr-log.c : Likewise.
22888 * config/avr/avr.c : Likewise.
22889 * config/bfin/bfin.c : Likewise.
22890 * config/c6x/c6x.c : Likewise.
22891 * config/cr16/cr16.c : Likewise.
22892 * config/cris/cris.c : Likewise.
22893 * config/darwin-c.c : Likewise.
22894 * config/darwin.c : Likewise.
22895 * config/default-c.c : Likewise.
22896 * config/epiphany/epiphany.c : Likewise.
22897 * config/epiphany/mode-switch-use.c : Likewise.
22898 * config/epiphany/resolve-sw-modes.c : Likewise.
22899 * config/fr30/fr30.c : Likewise.
22900 * config/frv/frv.c : Likewise.
22901 * config/ft32/ft32.c : Likewise.
22902 * config/glibc-c.c : Likewise.
22903 * config/h8300/h8300.c : Likewise.
22904 * config/i386/i386-c.c : Likewise.
22905 * config/i386/i386.c : Likewise.
22906 * config/i386/msformat-c.c : Likewise.
22907 * config/i386/winnt-cxx.c : Likewise.
22908 * config/i386/winnt-stubs.c : Likewise.
22909 * config/i386/winnt.c : Likewise.
22910 * config/ia64/ia64-c.c : Likewise.
22911 * config/ia64/ia64.c : Likewise.
22912 * config/iq2000/iq2000.c : Likewise.
22913 * config/lm32/lm32.c : Likewise.
22914 * config/m32c/m32c-pragma.c : Likewise.
22915 * config/m32c/m32c.c : Likewise.
22916 * config/m32r/m32r.c : Likewise.
22917 * config/m68k/m68k.c : Likewise.
22918 * config/mcore/mcore.c : Likewise.
22919 * config/mep/mep-pragma.c : Likewise.
22920 * config/mep/mep.c : Likewise.
22921 * config/microblaze/microblaze-c.c : Likewise.
22922 * config/microblaze/microblaze.c : Likewise.
22923 * config/mips/mips.c : Likewise.
22924 * config/mmix/mmix.c : Likewise.
22925 * config/mn10300/mn10300.c : Likewise.
22926 * config/moxie/moxie.c : Likewise.
22927 * config/msp430/msp430-c.c : Likewise.
22928 * config/msp430/msp430.c : Likewise.
22929 * config/nds32/nds32-cost.c : Likewise.
22930 * config/nds32/nds32-fp-as-gp.c : Likewise.
22931 * config/nds32/nds32-intrinsic.c : Likewise.
22932 * config/nds32/nds32-isr.c : Likewise.
22933 * config/nds32/nds32-md-auxiliary.c : Likewise.
22934 * config/nds32/nds32-memory-manipulation.c : Likewise.
22935 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22936 * config/nds32/nds32-predicates.c : Likewise.
22937 * config/nds32/nds32.c : Likewise.
22938 * config/nios2/nios2.c : Likewise.
22939 * config/nvptx/nvptx.c : Likewise.
22940 * config/pa/pa.c : Likewise.
22941 * config/pdp11/pdp11.c : Likewise.
22942 * config/rl78/rl78-c.c : Likewise.
22943 * config/rl78/rl78.c : Likewise.
22944 * config/rs6000/rs6000-c.c : Likewise.
22945 * config/rs6000/rs6000.c : Likewise.
22946 * config/rx/rx.c : Likewise.
22947 * config/s390/s390-c.c : Likewise.
22948 * config/s390/s390.c : Likewise.
22949 * config/sh/sh-c.c : Likewise.
22950 * config/sh/sh-mem.cc : Likewise.
22951 * config/sh/sh.c : Likewise.
22952 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22953 * config/sh/sh_treg_combine.cc : Likewise.
22954 * config/sol2-c.c : Likewise.
22955 * config/sol2-cxx.c : Likewise.
22956 * config/sol2-stubs.c : Likewise.
22957 * config/sol2.c : Likewise.
22958 * config/sparc/sparc-c.c : Likewise.
22959 * config/sparc/sparc.c : Likewise.
22960 * config/spu/spu-c.c : Likewise.
22961 * config/spu/spu.c : Likewise.
22962 * config/stormy16/stormy16.c : Likewise.
22963 * config/tilegx/mul-tables.c : Likewise.
22964 * config/tilegx/tilegx-c.c : Likewise.
22965 * config/tilegx/tilegx.c : Likewise.
22966 * config/tilepro/mul-tables.c : Likewise.
22967 * config/tilepro/tilepro-c.c : Likewise.
22968 * config/tilepro/tilepro.c : Likewise.
22969 * config/v850/v850-c.c : Likewise.
22970 * config/v850/v850.c : Likewise.
22971 * config/vax/vax.c : Likewise.
22972 * config/visium/visium.c : Likewise.
22973 * config/vms/vms-c.c : Likewise.
22974 * config/vms/vms.c : Likewise.
22975 * config/vxworks.c : Likewise.
22976 * config/winnt-c.c : Likewise.
22977 * config/xtensa/xtensa.c : Likewise.
22979 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22982 * ipa-utils.h (warn_types_mismatch): Update prototype.
22983 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22985 (type_mismatch_p): New function.
22986 (warn_types_mismatch): Reorg to work better on non-C++ types.
22987 (odr_types_equivalent_p): Add loc1/loc2 parameters.
22988 (add_type_duplicate): Update.
22990 2015-06-08 Tom de Vries <tom@codesourcery.com>
22992 PR rtl-optimization/66444
22993 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22996 2015-06-08 Richard Biener <rguenther@suse.de>
22998 PR tree-optimization/66422
22999 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
23000 block after inserted gcc_unreachable.
23002 2015-06-08 Nick Clifton <nickc@redhat.com>
23004 * config/rx/rx.c (rx_function_value): Do not promote vector types.
23005 (rx_promote_function_mode): Likewise.
23006 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
23008 2015-06-08 Jakub Jelinek <jakub@redhat.com>
23010 * genattrtab.c (insn_alternatives): Change type from int *
23012 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
23013 (get_attr_value): Change type of num_alt to uint64_t.
23014 (compute_alternative_mask): Change return type from
23015 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
23016 (make_alternative_compare, mk_attr_alt): Change argument type
23017 from int to uint64_t.
23018 (simplify_test_exp): Change type of i from int to uint64_t.
23019 Shift ((uint64_t) 1) instead of 1 up.
23020 (main): Adjust oballocvec first argument from int to uint64_t.
23021 Shift ((uint64_t) 1) instead of 1 up.
23023 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
23026 * gdbhooks.py: Import sys.
23027 (intptr): New function. Replace int(...) by intptr(...).
23029 2015-06-08 Richard Biener <rguenther@suse.de>
23031 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
23032 adjustment for gaps at the end of a SLP load group properly.
23033 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
23034 all permutations we can generate.
23035 (vect_transform_slp_perm_load): Use the correct group-size.
23037 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
23039 * genmatch.c (expr::gen_transform): For conditions, guess the type
23040 from the second operand.
23042 2015-06-08 Tom de Vries <tom@codesourcery.com>
23044 PR tree-optimization/66442
23045 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
23046 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
23047 if the loop latch is not a singleton. Use
23048 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
23050 2015-06-08 Marek Polacek <polacek@redhat.com>
23053 * toplev.c (check_global_declaration): Don't warn about artificial
23056 2015-06-08 Tom de Vries <tom@codesourcery.com>
23058 PR tree-optimization/66436
23059 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
23061 * gimplify.c: Add tree-dump.h include.
23062 (gimplify_function_tree): Dump function to gimple dump file.
23063 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23066 2015-06-08 Tom de Vries <tom@codesourcery.com>
23068 PR tree-optimization/66435
23069 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
23072 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
23074 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
23075 of ptr_type_node to not be ptr_to_node.
23076 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
23077 TREE_TYPE of pointers.
23078 * gimple-expr.c (useless_type_conversion): Reorder the check for
23079 function pointers and TYPE_CANONICAL.
23081 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
23084 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
23085 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
23086 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
23088 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
23089 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
23090 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
23091 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
23092 and non iso if unix2003.
23094 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
23096 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
23098 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
23100 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
23101 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
23102 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
23103 except.c, final.c, function.c, gcse-common.c, genemit.c,
23104 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
23105 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
23106 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
23107 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
23110 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
23112 * combine.c (combine_split_insns): Remove cast.
23113 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
23114 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
23115 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
23116 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
23117 * genemit.c (gen_split): Change return type of generated functions to
23119 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
23120 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
23121 gen_peephole2_* functions.
23122 (print_subroutine, main): Likewise.
23123 * recog.c (peephole2_optimize): Remove cast.
23124 (peep2_next_insn): Promote return type to rtx_insn.
23125 * recog.h (peep2_next_insn): Fix prototype.
23126 * rtl.h (try_split, split_insns): Likewise.
23128 2015-06-06 DJ Delorie <dj@redhat.com>
23130 * config/msp430/msp430.c (msp430_asm_integer): Support addition
23131 and subtraction too.
23133 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
23136 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
23137 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
23138 instead of Snd. Disparage Sid/z alternative with '^'.
23140 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
23142 * dwarf2out.c: Remove deferred_locations*.
23143 (dwarf2_debug_hooks): Add early_finish hook.
23144 Remove global_decl hook.
23145 Add early_global_decl and late_global_decl hook.
23146 New global early_dwarf.
23147 New structure set_early_dwarf.
23148 (output_die): Indicate whether a DIE was generated early
23149 when generating assembly with -dA.
23150 (struct limbo_die_struct): Document created_for field.
23151 Remove file_table_last_lookup.
23152 (remove_AT): Return TRUE if successful.
23153 (remove_child_TAG): Clear die_parent.
23154 (reparent_child): New function abstracted from...
23155 (splice_child_die): ...here.
23156 (new_die): ICE if a DIE ends up in limbo too late.
23158 (defer_location): Remove.
23159 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23160 (fill_variable_array_bounds): New.
23161 (decl_start_label): Call fill_variable_array_bounds.
23162 (gen_formal_parameter_die): Rewrite to reuse previously generated
23164 (gen_subprogram_die): Same.
23165 (gen_variable_die): Same.
23166 (gen_const_die): Same.
23167 (gen_label_die): Same.
23168 (gen_lexical_block_die): Same.
23169 (decl_will_get_specification_p): New.
23170 (local_function_static): New.
23171 (gen_struct_or_union_type_die): Fill in variable-length fields.
23172 (gen_typedef_die): Fill in variable-length typedefs.
23173 (gen_tagged_type_die): Gracefully return on error_mark_node.
23174 Handle re-entrancy.
23175 (gen_type_die_with_usage): Handle variable-length types.
23176 Remove duplicate code for ARRAY_TYPE case.
23177 (process_scope_var): Only process imported modules during early
23179 (dwarf2out_early_global_decl): New.
23180 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23181 (dwarf2out_type_decl): Set early_dwarf while calling
23183 (dwarf2out_decl): Verify that we did not recreate a previously
23185 Do not return on DECL_EXTERNALs in VAR_DECLs.
23186 Abstract some code to local_function_static.
23187 (lookup_filename): Remove use of file_table_last_lookup.
23188 Gracefully exit on missing file_name.
23189 (dwarf2out_finish): Verify limbo list.
23190 Remove deferred_locations_list use.
23191 Move deferred_asm_name and limbo flushing to...
23192 (dwarf2out_early_finish): ...here. New.
23193 (dwarf2out_c_finalize): Remove set of deferred_location_list,
23194 deferred_asm_name, and file_table_last_lookup.
23195 * cgraph.h (referred_to_p): Add default argument.
23196 * cgraphunit.c (referred_to_p): Add and handle include_self
23198 (analyze_functions): Add first_time argument.
23199 Call check_global_declaration for all symbols.
23200 Call late_global_decl for nodes for moribund nodes.
23201 (finalize_compilation_unit): Add new argument to
23203 Call early_global_decl for functions.
23204 Call early_finish debug hook.
23205 * dbxout.c (dbxout_early_global_decl): New.
23206 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
23207 (dbx_debug_hooks): Add new hooks.
23208 (xcoff_debug_hooks): Same.
23209 * debug.c (do_nothing_debug_hooks): Add early_finish field.
23210 Add early and late debug hooks.
23211 Remove global_decl hook.
23212 * debug.h (struct gcc_debug_hooks): Add early_finish,
23213 early_global_decl, and late_global_decl fields.
23214 Remove global_decl field.
23215 Document gcc_debug_hooks.
23216 * gengtype.c (output_typename): Remove.
23217 * godump.c (go_early_global_decl): New.
23218 (go_late_global_decl): New.
23219 (go_global_decl): Remove.
23220 (dump_go_spec_init): Remove global_decl. Add
23221 {early,late}_global_decl.
23222 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23223 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23224 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23225 (write_global_declarations): Remove.
23226 (global_decl_processing): New.
23227 * langhooks.h (struct lang_hooks_for_decls): Remove
23228 final_write_globals field.
23229 Add post_compilation_parsing_cleanups field.
23230 * passes.c (rest_of_decl_compilation): Call early_global_decl.
23231 * sdbout.c: Add early and late_global_decl hooks. Remove
23232 sdbout_global_decl hook.
23233 Add early_finish field for sdb_debug_hooks.
23234 (sdbout_global_decl): Remove.
23235 (sdbout_early_global_decl): New.
23236 (sdbout_late_global_decl): New.
23237 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23238 * toplev.c (check_global_declaration): Rename from
23239 check_global_declaration_1.
23240 Adapt to use symtab infrastructure.
23241 (check_global_declarations): Remove.
23242 (emit_debug_global_declarations): Remove.
23243 (compile_file): Remove call to final_write_globals langhook.
23244 Run the actual compilation process.
23245 Perform any post compilation parser cleanups.
23246 Generate late debug info.
23247 * toplev.h (check_global_declaration): New.
23248 (check_global_declaration_1): Remove.
23249 (check_global_declarations): Remove.
23250 (write_global_declarations): Remove.
23251 (emit_debug_global_declarations): Remove.
23252 (global_decl_processing): New.
23253 * tree-core.h (struct tree_block): Add DIE field.
23254 * tree.h (BLOCK_DIE): New.
23255 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23257 (vmsdbgout_early_global_decl): New.
23258 (vmsdbgout_late_global_decl): New.
23259 Add early_finish debug hook field to vmsdbg_debug_hooks.
23260 Remove vmsdbgout_decl to vmsdbgout_function_decl.
23261 Add early and late_global_decl debug hooks.
23263 2015-06-05 Julian Brown <julian@codesourcery.com>
23264 Sandra Loosemore <sandra@codesourcery.com>
23266 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23267 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23268 to print-sysroot-suffix.sh script.
23270 2015-06-05 Tom de Vries <tom@codesourcery.com>
23272 merge from gomp4 branch:
23273 2015-05-28 Tom de Vries <tom@codesourcery.com>
23275 PR tree-optimization/65443
23276 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23277 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23278 (try_transform_to_exit_first_loop_alt): New function.
23279 (transform_to_exit_first_loop): Use
23280 try_transform_to_exit_first_loop_alt.
23282 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
23284 * builtins.c (expand_builtin_atomic_compare_exchange): Call
23285 emit_cmp_and_jump_insns with the mode of target.
23287 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23289 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23291 2015-06-04 DJ Delorie <dj@redhat.com>
23293 * config/msp430/msp430.md (movsi_s): New. Special case for
23294 storing a 20-bit symbol into a 32-bit register.
23295 * config/msp430/msp430.c (msp430_subreg): Add support for it.
23296 * config/msp430/predicates.md (msp430_symbol_operand): New.
23298 2015-06-04 Sriraman Tallam <tmsriram@google.com>
23300 * c-family/c-common.c (noplt): New attribute.
23301 (handle_noplt_attribute): New handler.
23302 * calls.c (prepare_call_address): Check for noplt
23304 * config/i386/i386.c (ix86_expand_call): Check
23305 for noplt attribute.
23306 (ix86_nopic_noplt_attribute_p): New function.
23307 (ix86_output_call_insn): Output indirect call for non-pic
23309 * doc/extend.texi (noplt): Document new attribute.
23310 * doc/invoke.texi: Document new attribute.
23312 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
23314 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23315 real.h, and fixed-value.h when included in host source files.
23316 * double-int.h: Remove redundant #includes listed above.
23317 * fixed-value.h: Likewise.
23318 * real.h: Likewise.
23319 * wide-int.h: Likewise.
23320 * inchash.h: Likewise.
23321 * rtl.h: Add some include files When included from a generator file.
23322 * target.h: Remove wide-int.h and insn-modes.h from the include list.
23323 * internal-fn.h: Don't include coretypes.h.
23324 * alias.c: Adjust includes for restructured coretypes.h.
23325 * asan.c: Likewise.
23326 * attribs.c: Likewise.
23327 * auto-inc-dec.c: Likewise.
23328 * auto-profile.c: Likewise.
23329 * bb-reorder.c: Likewise.
23330 * bt-load.c: Likewise.
23331 * builtins.c: Likewise.
23332 * caller-save.c: Likewise.
23333 * calls.c: Likewise.
23334 * ccmp.c: Likewise.
23336 * cfganal.c: Likewise.
23337 * cfgbuild.c: Likewise.
23338 * cfgcleanup.c: Likewise.
23339 * cfgexpand.c: Likewise.
23340 * cfghooks.c: Likewise.
23341 * cfgloop.c: Likewise.
23342 * cfgloop.h: Likewise.
23343 * cfgloopanal.c: Likewise.
23344 * cfgloopmanip.c: Likewise.
23345 * cfgrtl.c: Likewise.
23346 * cgraph.c: Likewise.
23347 * cgraphbuild.c: Likewise.
23348 * cgraphclones.c: Likewise.
23349 * cgraphunit.c: Likewise.
23350 * cilk-common.c: Likewise.
23351 * combine-stack-adj.c: Likewise.
23352 * combine.c: Likewise.
23353 * compare-elim.c: Likewise.
23354 * convert.c: Likewise.
23355 * coverage.c: Likewise.
23356 * cppbuiltin.c: Likewise.
23357 * cprop.c: Likewise.
23359 * cselib.c: Likewise.
23360 * data-streamer-in.c: Likewise.
23361 * data-streamer-out.c: Likewise.
23362 * data-streamer.c: Likewise.
23363 * dbxout.c: Likewise.
23366 * debug.c: Likewise.
23367 * df-core.c: Likewise.
23368 * df-problems.c: Likewise.
23369 * df-scan.c: Likewise.
23372 * dojump.c: Likewise.
23373 * dominance.c: Likewise.
23374 * domwalk.c: Likewise.
23375 * double-int.c: Likewise.
23377 * dumpfile.c: Likewise.
23378 * dwarf2asm.c: Likewise.
23379 * dwarf2cfi.c: Likewise.
23380 * dwarf2out.c: Likewise.
23381 * dwarf2out.h: Likewise.
23382 * emit-rtl.c: Likewise.
23383 * et-forest.c: Likewise.
23384 * except.c: Likewise.
23385 * explow.c: Likewise.
23386 * expmed.c: Likewise.
23387 * expr.c: Likewise.
23388 * final.c: Likewise.
23389 * fixed-value.c: Likewise.
23390 * fold-const.c: Likewise.
23391 * function.c: Likewise.
23392 * fwprop.c: Likewise.
23393 * gcc-plugin.h: Likewise.
23394 * gcse.c: Likewise.
23395 * generic-match-head.c: Likewise.
23396 * ggc-page.c: Likewise.
23397 * gimple-builder.c: Likewise.
23398 * gimple-expr.c: Likewise.
23399 * gimple-fold.c: Likewise.
23400 * gimple-iterator.c: Likewise.
23401 * gimple-low.c: Likewise.
23402 * gimple-match-head.c: Likewise.
23403 * gimple-pretty-print.c: Likewise.
23404 * gimple-ssa-isolate-paths.c: Likewise.
23405 * gimple-ssa-strength-reduction.c: Likewise.
23406 * gimple-streamer-in.c: Likewise.
23407 * gimple-streamer-out.c: Likewise.
23408 * gimple-streamer.h: Likewise.
23409 * gimple-walk.c: Likewise.
23410 * gimple.c: Likewise.
23411 * gimplify-me.c: Likewise.
23412 * gimplify.c: Likewise.
23413 * godump.c: Likewise.
23414 * graph.c: Likewise.
23415 * graphite-blocking.c: Likewise.
23416 * graphite-dependences.c: Likewise.
23417 * graphite-interchange.c: Likewise.
23418 * graphite-isl-ast-to-gimple.c: Likewise.
23419 * graphite-optimize-isl.c: Likewise.
23420 * graphite-poly.c: Likewise.
23421 * graphite-scop-detection.c: Likewise.
23422 * graphite-sese-to-poly.c: Likewise.
23423 * graphite.c: Likewise.
23424 * haifa-sched.c: Likewise.
23425 * hooks.h: Likewise.
23426 * hw-doloop.c: Likewise.
23427 * ifcvt.c: Likewise.
23428 * incpath.c: Likewise.
23429 * init-regs.c: Likewise.
23430 * internal-fn.c: Likewise.
23431 * ipa-chkp.c: Likewise.
23432 * ipa-comdats.c: Likewise.
23433 * ipa-cp.c: Likewise.
23434 * ipa-devirt.c: Likewise.
23435 * ipa-icf-gimple.c: Likewise.
23436 * ipa-icf.c: Likewise.
23437 * ipa-inline-analysis.c: Likewise.
23438 * ipa-inline-transform.c: Likewise.
23439 * ipa-inline.c: Likewise.
23440 * ipa-polymorphic-call.c: Likewise.
23441 * ipa-profile.c: Likewise.
23442 * ipa-prop.c: Likewise.
23443 * ipa-pure-const.c: Likewise.
23444 * ipa-ref.c: Likewise.
23445 * ipa-reference.c: Likewise.
23446 * ipa-split.c: Likewise.
23447 * ipa-utils.c: Likewise.
23448 * ipa-visibility.c: Likewise.
23450 * ira-build.c: Likewise.
23451 * ira-color.c: Likewise.
23452 * ira-conflicts.c: Likewise.
23453 * ira-costs.c: Likewise.
23454 * ira-emit.c: Likewise.
23455 * ira-lives.c: Likewise.
23457 * jump.c: Likewise.
23458 * langhooks.c: Likewise.
23460 * loop-doloop.c: Likewise.
23461 * loop-init.c: Likewise.
23462 * loop-invariant.c: Likewise.
23463 * loop-iv.c: Likewise.
23464 * loop-unroll.c: Likewise.
23465 * lower-subreg.c: Likewise.
23466 * lra-assigns.c: Likewise.
23467 * lra-coalesce.c: Likewise.
23468 * lra-constraints.c: Likewise.
23469 * lra-eliminations.c: Likewise.
23470 * lra-lives.c: Likewise.
23471 * lra-remat.c: Likewise.
23472 * lra-spills.c: Likewise.
23474 * lto-cgraph.c: Likewise.
23475 * lto-compress.c: Likewise.
23476 * lto-opts.c: Likewise.
23477 * lto-section-in.c: Likewise.
23478 * lto-section-out.c: Likewise.
23479 * lto-streamer-in.c: Likewise.
23480 * lto-streamer-out.c: Likewise.
23481 * lto-streamer.c: Likewise.
23483 * mode-switching.c: Likewise.
23484 * modulo-sched.c: Likewise.
23485 * omega.c: Likewise.
23486 * omp-low.c: Likewise.
23487 * optabs.c: Likewise.
23488 * opts-global.c: Likewise.
23489 * passes.c: Likewise.
23490 * plugin.c: Likewise.
23491 * postreload-gcse.c: Likewise.
23492 * postreload.c: Likewise.
23493 * predict.c: Likewise.
23494 * print-rtl.c: Likewise.
23495 * print-tree.c: Likewise.
23496 * profile.c: Likewise.
23497 * real.c: Likewise.
23498 * realmpfr.c: Likewise.
23499 * realmpfr.h: Likewise.
23500 * recog.c: Likewise.
23502 * reg-stack.c: Likewise.
23503 * regcprop.c: Likewise.
23504 * reginfo.c: Likewise.
23505 * regrename.c: Likewise.
23506 * regs.h: Likewise.
23507 * regstat.c: Likewise.
23508 * reload.c: Likewise.
23509 * reload1.c: Likewise.
23510 * reorg.c: Likewise.
23511 * resource.c: Likewise.
23512 * rtl-chkp.c: Likewise.
23513 * rtlanal.c: Likewise.
23514 * rtlhooks.c: Likewise.
23515 * sanopt.c: Likewise.
23516 * sched-deps.c: Likewise.
23517 * sched-ebb.c: Likewise.
23518 * sched-rgn.c: Likewise.
23519 * sched-vis.c: Likewise.
23520 * sdbout.c: Likewise.
23521 * sel-sched-dump.c: Likewise.
23522 * sel-sched-ir.c: Likewise.
23523 * sel-sched.c: Likewise.
23524 * sese.c: Likewise.
23525 * shrink-wrap.c: Likewise.
23526 * shrink-wrap.h: Likewise.
23527 * simplify-rtx.c: Likewise.
23528 * stack-ptr-mod.c: Likewise.
23529 * statistics.c: Likewise.
23530 * stmt.c: Likewise.
23531 * stor-layout.c: Likewise.
23532 * store-motion.c: Likewise.
23533 * stringpool.c: Likewise.
23534 * symtab.c: Likewise.
23535 * target-globals.c: Likewise.
23536 * targhooks.c: Likewise.
23537 * toplev.c: Likewise.
23538 * tracer.c: Likewise.
23539 * trans-mem.c: Likewise.
23540 * tree-affine.c: Likewise.
23541 * tree-affine.h: Likewise.
23542 * tree-browser.c: Likewise.
23543 * tree-call-cdce.c: Likewise.
23544 * tree-cfg.c: Likewise.
23545 * tree-cfgcleanup.c: Likewise.
23546 * tree-chkp-opt.c: Likewise.
23547 * tree-chkp.c: Likewise.
23548 * tree-chrec.c: Likewise.
23549 * tree-complex.c: Likewise.
23550 * tree-data-ref.c: Likewise.
23551 * tree-dfa.c: Likewise.
23552 * tree-diagnostic.c: Likewise.
23553 * tree-dump.c: Likewise.
23554 * tree-eh.c: Likewise.
23555 * tree-emutls.c: Likewise.
23556 * tree-if-conv.c: Likewise.
23557 * tree-inline.c: Likewise.
23558 * tree-into-ssa.c: Likewise.
23559 * tree-iterator.c: Likewise.
23560 * tree-loop-distribution.c: Likewise.
23561 * tree-nested.c: Likewise.
23562 * tree-nrv.c: Likewise.
23563 * tree-object-size.c: Likewise.
23564 * tree-outof-ssa.c: Likewise.
23565 * tree-parloops.c: Likewise.
23566 * tree-phinodes.c: Likewise.
23567 * tree-predcom.c: Likewise.
23568 * tree-pretty-print.c: Likewise.
23569 * tree-pretty-print.h: Likewise.
23570 * tree-profile.c: Likewise.
23571 * tree-scalar-evolution.c: Likewise.
23572 * tree-sra.c: Likewise.
23573 * tree-ssa-address.c: Likewise.
23574 * tree-ssa-alias.c: Likewise.
23575 * tree-ssa-ccp.c: Likewise.
23576 * tree-ssa-coalesce.c: Likewise.
23577 * tree-ssa-copy.c: Likewise.
23578 * tree-ssa-copyrename.c: Likewise.
23579 * tree-ssa-dce.c: Likewise.
23580 * tree-ssa-dom.c: Likewise.
23581 * tree-ssa-dse.c: Likewise.
23582 * tree-ssa-forwprop.c: Likewise.
23583 * tree-ssa-ifcombine.c: Likewise.
23584 * tree-ssa-live.c: Likewise.
23585 * tree-ssa-loop-ch.c: Likewise.
23586 * tree-ssa-loop-im.c: Likewise.
23587 * tree-ssa-loop-ivcanon.c: Likewise.
23588 * tree-ssa-loop-ivopts.c: Likewise.
23589 * tree-ssa-loop-manip.c: Likewise.
23590 * tree-ssa-loop-niter.c: Likewise.
23591 * tree-ssa-loop-prefetch.c: Likewise.
23592 * tree-ssa-loop-unswitch.c: Likewise.
23593 * tree-ssa-loop.c: Likewise.
23594 * tree-ssa-loop.h: Likewise.
23595 * tree-ssa-math-opts.c: Likewise.
23596 * tree-ssa-operands.c: Likewise.
23597 * tree-ssa-phiopt.c: Likewise.
23598 * tree-ssa-phiprop.c: Likewise.
23599 * tree-ssa-pre.c: Likewise.
23600 * tree-ssa-propagate.c: Likewise.
23601 * tree-ssa-reassoc.c: Likewise.
23602 * tree-ssa-sccvn.c: Likewise.
23603 * tree-ssa-scopedtables.c: Likewise.
23604 * tree-ssa-sink.c: Likewise.
23605 * tree-ssa-strlen.c: Likewise.
23606 * tree-ssa-structalias.c: Likewise.
23607 * tree-ssa-tail-merge.c: Likewise.
23608 * tree-ssa-ter.c: Likewise.
23609 * tree-ssa-threadedge.c: Likewise.
23610 * tree-ssa-threadupdate.c: Likewise.
23611 * tree-ssa-uncprop.c: Likewise.
23612 * tree-ssa-uninit.c: Likewise.
23613 * tree-ssa.c: Likewise.
23614 * tree-ssanames.c: Likewise.
23615 * tree-stdarg.c: Likewise.
23616 * tree-streamer-in.c: Likewise.
23617 * tree-streamer-out.c: Likewise.
23618 * tree-streamer.c: Likewise.
23619 * tree-switch-conversion.c: Likewise.
23620 * tree-tailcall.c: Likewise.
23621 * tree-vect-data-refs.c: Likewise.
23622 * tree-vect-generic.c: Likewise.
23623 * tree-vect-loop-manip.c: Likewise.
23624 * tree-vect-loop.c: Likewise.
23625 * tree-vect-patterns.c: Likewise.
23626 * tree-vect-slp.c: Likewise.
23627 * tree-vect-stmts.c: Likewise.
23628 * tree-vectorizer.c: Likewise.
23629 * tree-vrp.c: Likewise.
23630 * tree.c: Likewise.
23631 * tsan.c: Likewise.
23632 * ubsan.c: Likewise.
23633 * valtrack.c: Likewise.
23634 * value-prof.c: Likewise.
23635 * var-tracking.c: Likewise.
23636 * varasm.c: Likewise.
23637 * varpool.c: Likewise.
23638 * vmsdbgout.c: Likewise.
23639 * vtable-verify.c: Likewise.
23641 * wide-int-print.cc: Likewise.
23642 * wide-int-print.h: Likewise.
23643 * wide-int.cc: Likewise.
23644 * xcoffout.c: Likewise.
23645 * config/aarch64/aarch64-builtins.c: Likewise.
23646 * config/aarch64/aarch64.c: Likewise.
23647 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23648 * config/alpha/alpha.c: Likewise.
23649 * config/arc/arc.c: Likewise.
23650 * config/arm/aarch-common.c: Likewise.
23651 * config/arm/arm-builtins.c: Likewise.
23652 * config/arm/arm-c.c: Likewise.
23653 * config/arm/arm.c: Likewise.
23654 * config/avr/avr-c.c: Likewise.
23655 * config/avr/avr-log.c: Likewise.
23656 * config/avr/avr.c: Likewise.
23657 * config/bfin/bfin.c: Likewise.
23658 * config/c6x/c6x.c: Likewise.
23659 * config/cr16/cr16.c: Likewise.
23660 * config/cris/cris.c: Likewise.
23661 * config/darwin-c.c: Likewise.
23662 * config/darwin.c: Likewise.
23663 * config/default-c.c: Likewise.
23664 * config/epiphany/epiphany.c: Likewise.
23665 * config/epiphany/mode-switch-use.c: Likewise.
23666 * config/epiphany/resolve-sw-modes.c: Likewise.
23667 * config/fr30/fr30.c: Likewise.
23668 * config/frv/frv.c: Likewise.
23669 * config/ft32/ft32.c: Likewise.
23670 * config/glibc-c.c: Likewise.
23671 * config/h8300/h8300.c: Likewise.
23672 * config/i386/i386-c.c: Likewise.
23673 * config/i386/i386.c: Likewise.
23674 * config/i386/msformat-c.c: Likewise.
23675 * config/i386/winnt-cxx.c: Likewise.
23676 * config/i386/winnt-stubs.c: Likewise.
23677 * config/i386/winnt.c: Likewise.
23678 * config/ia64/ia64-c.c: Likewise.
23679 * config/ia64/ia64.c: Likewise.
23680 * config/iq2000/iq2000.c: Likewise.
23681 * config/lm32/lm32.c: Likewise.
23682 * config/m32c/m32c-pragma.c: Likewise.
23683 * config/m32c/m32c.c: Likewise.
23684 * config/m32r/m32r.c: Likewise.
23685 * config/m68k/m68k.c: Likewise.
23686 * config/mcore/mcore.c: Likewise.
23687 * config/mep/mep-pragma.c: Likewise.
23688 * config/mep/mep.c: Likewise.
23689 * config/microblaze/microblaze-c.c: Likewise.
23690 * config/microblaze/microblaze.c: Likewise.
23691 * config/mips/mips.c: Likewise.
23692 * config/mmix/mmix.c: Likewise.
23693 * config/mn10300/mn10300.c: Likewise.
23694 * config/moxie/moxie.c: Likewise.
23695 * config/msp430/msp430-c.c: Likewise.
23696 * config/msp430/msp430.c: Likewise.
23697 * config/nds32/nds32-cost.c: Likewise.
23698 * config/nds32/nds32-fp-as-gp.c: Likewise.
23699 * config/nds32/nds32-intrinsic.c: Likewise.
23700 * config/nds32/nds32-isr.c: Likewise.
23701 * config/nds32/nds32-md-auxiliary.c: Likewise.
23702 * config/nds32/nds32-memory-manipulation.c: Likewise.
23703 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23704 * config/nds32/nds32-predicates.c: Likewise.
23705 * config/nds32/nds32.c: Likewise.
23706 * config/nios2/nios2.c: Likewise.
23707 * config/nvptx/nvptx.c: Likewise.
23708 * config/pa/pa.c: Likewise.
23709 * config/pdp11/pdp11.c: Likewise.
23710 * config/rl78/rl78-c.c: Likewise.
23711 * config/rl78/rl78.c: Likewise.
23712 * config/rs6000/rs6000-c.c: Likewise.
23713 * config/rs6000/rs6000.c: Likewise.
23714 * config/rx/rx.c: Likewise.
23715 * config/s390/s390-c.c: Likewise.
23716 * config/s390/s390.c: Likewise.
23717 * config/sh/sh-c.c: Likewise.
23718 * config/sh/sh-mem.cc: Likewise.
23719 * config/sh/sh.c: Likewise.
23720 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23721 * config/sh/sh_treg_combine.cc: Likewise.
23722 * config/sol2-c.c: Likewise.
23723 * config/sol2-cxx.c: Likewise.
23724 * config/sol2-stubs.c: Likewise.
23725 * config/sol2.c: Likewise.
23726 * config/sparc/sparc-c.c: Likewise.
23727 * config/sparc/sparc.c: Likewise.
23728 * config/spu/spu-c.c: Likewise.
23729 * config/spu/spu.c: Likewise.
23730 * config/stormy16/stormy16.c: Likewise.
23731 * config/tilegx/mul-tables.c: Likewise.
23732 * config/tilegx/tilegx-c.c: Likewise.
23733 * config/tilegx/tilegx.c: Likewise.
23734 * config/tilepro/mul-tables.c: Likewise.
23735 * config/tilepro/tilepro-c.c: Likewise.
23736 * config/tilepro/tilepro.c: Likewise.
23737 * config/v850/v850-c.c: Likewise.
23738 * config/v850/v850.c: Likewise.
23739 * config/vax/vax.c: Likewise.
23740 * config/visium/visium.c: Likewise.
23741 * config/vms/vms-c.c: Likewise.
23742 * config/vms/vms.c: Likewise.
23743 * config/vxworks.c: Likewise.
23744 * config/winnt-c.c: Likewise.
23745 * config/xtensa/xtensa.c: Likewise.
23746 * common/config/bfin/bfin-common.c: Likewise.
23748 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
23750 * tree.h (tree_code_for_canonical_type_merging): New function.
23751 * tree.c (gimple_canonical_types_compatible_p): Use
23752 tree_code_for_canonical_type_merging..
23754 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23758 * doc/tm.texi: Regenerate.
23759 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23760 * target.def (TARGET_RELAXED_ORDERING): Likewise.
23761 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23762 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23763 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23764 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23765 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23766 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23767 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23769 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23771 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23772 register fma steering pass.
23773 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23774 AARCH64_TUNE_FMA_STEERING.
23776 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
23778 * tree.c (verify_type_variant): Verify that type and variant is
23780 (gimple_canonical_types_compatible_p): Look for main variants.
23782 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23784 * config.gcc (powerpc*-*-*): Add support for a new configure
23785 option --with-advance-toolchain=<xxx> which overrides using the
23786 default header files, libraries and dynamic linker.
23788 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23789 specs to support the configure --with-advance-toolchain=<xxx>
23791 (INCLUDE_EXTRA_SPEC): Likewise.
23792 (LINK_OS_EXTRA_SPEC32): Likewise.
23793 (LINK_OK_EXTRA_SPEC64): Likewise.
23794 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23795 (DYNAMIC_LINKER_PREFIX): Likewise.
23796 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23798 (GLIBC_DYNAMIC_LINKER32): Likewise.
23799 (GLIBC_DYNAMIC_LINKER64): Likewise.
23800 (LINK_OS_LINUX_SPEC32): Likewise.
23801 (LINK_OS_LINUX_SPEC64): Likewise.
23803 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23804 configuration option.
23806 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
23809 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23810 to determine current function ABI.
23811 (ix86_function_value_regno_p): Ditto.
23813 2015-06-03 Martin Liska <mliska@suse.cz>
23815 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23816 * bitmap.h (struct bitmap_usage): Likewise.
23817 * ggc-common.c (struct ggc_usage): Likewise.
23818 * mem-stats.h (struct mem_location): Likewise.
23819 (struct mem_usage): Likewise.
23820 * vec.c (struct vec_usage): Likewise.
23822 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
23824 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23827 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
23829 * doc/plugins.texi (enum plugin_event): New event.
23830 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23831 and PLUGIN_FINISH_FUNCTION.
23832 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23833 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23835 2015-06-03 Richard Biener <rguenther@suse.de>
23837 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23838 compute GROUP_GAP for the first element.
23839 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23842 2015-06-03 Nick Clifton <nickc@redhat.com>
23844 * config/rl78/rl78-real.md: Add peepholes to avoid a register
23845 copy when calling a function.
23846 * config/rl78/rl78.c (need_to_save): Do not push the frame
23847 pointer in an interrupt handler prologue if it is never used.
23849 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23851 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23853 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23855 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23856 reference when cloning alias node.
23858 2015-06-03 Martin Liska <mliska@suse.cz>
23860 * alloc-pool.h (struct pool_usage): Correct space padding.
23861 * ggc-page.c (ggc_print_statistics): Align columns in a report.
23862 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23863 * tree.c (dump_tree_statistics): Align columns in a report.
23865 2015-06-03 Martin Liska <mliska@suse.cz>
23867 * alloc-pool.c (allocate_pool_descriptor): Remove.
23868 (struct pool_output_info): Likewise.
23869 (print_alloc_pool_statistics): Likewise.
23870 (dump_alloc_pool_statistics): Likewise.
23871 * alloc-pool.h (struct pool_usage): New struct.
23872 (pool_allocator::initialize): Change usage of memory statistics
23873 to a new interface.
23874 (pool_allocator::release): Likewise.
23875 (pool_allocator::allocate): Likewise.
23876 (pool_allocator::remove): Likewise.
23877 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23878 for a pool allocator.
23879 * mem-stats.h (struct mem_location): Add new ctor.
23880 (struct mem_usage): Add counter for number of
23882 (mem_alloc_description::register_descriptor): New overload of
23883 * mem-stats.h (mem_location::to_string): New function.
23884 * bitmap.h (struct bitmap_usage): Use this new function.
23885 * ggc-common.c (struct ggc_usage): Likewise.
23888 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23890 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23891 of GCC_INSN_FLAGS_H block.
23893 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23895 * explow.c (plus_constant): Update check after force_const_mem call
23896 to see if the value returned is not a NULL_RTX.
23898 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23900 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23901 remove instumentation thunks calling reachable functions.
23902 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23903 * lto/lto-partition.c (privatize_symbol_name_1): New.
23904 (privatize_symbol_name): Privatize both decl and orig_decl
23905 names for instrumented functions.
23906 * cgraph.c (cgraph_node::verify_node): Add transparent
23907 alias chain check for instrumented node.
23909 2015-06-03 Marek Polacek <polacek@redhat.com>
23913 * tree.c (attribute_value_equal): Handle attribute format.
23914 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23916 2015-06-03 Richard Biener <rguenther@suse.de>
23918 PR tree-optimization/63916
23919 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23920 Forward-propagate non-invariant addresses by splicing their
23921 reference ops if the result isn't going to be used by PRE.
23922 (vn_reference_lookup_3): Remove pointless assert.
23924 2015-06-03 Richard Biener <rguenther@suse.de>
23926 PR tree-optimization/66375
23927 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23928 add to the evolution before following SSA edges.
23930 2015-06-03 Bin Cheng <bin.cheng@arm.com>
23932 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23933 (dump_use, dump_cand, find_induction_variables): Pass new argument
23935 (record_use): Preserve the ssa name information in IV.
23937 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23939 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23941 (add_mode_tests): Don't add mode tests if the predicate only
23942 accepts scalar constant integers. Otherwise, allow the mode
23943 of "op" to be VOIDmode if the predicate does accept such integers.
23945 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
23948 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23949 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23950 (aarch64_secondary_reload): Likewise
23951 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23953 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23956 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
23957 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23960 * cprop.c (try_replace_reg): Check cost of constants before propagating.
23962 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23964 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23965 provide access to the IBM extended double floating point mode if
23966 long double is IEEE 128-bit floating point.
23967 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23968 point if long double is the IBM extended double type.
23970 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23971 enable adding IEEE 128-bit floating point support.
23972 (-mfloat128-software): Likewise.
23973 (-mfloat128-sw): Likewise.
23975 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23976 128-bit floating point types to occupy any register if
23977 -mlong-double-64. Do not allow use of IFmode/KFmode unless
23978 -mfloat128-software is enabled.
23979 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23981 (rs6000_option_override_internal): Add -mfloat128-* support.
23982 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23984 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23985 and float128 type nodes.
23986 (ieee128_float_type_node): Likewise.
23987 (ibm128_float_type_node): Likewise.
23989 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23992 * config/aarch64/geniterators.sh: Rewrite in awk.
23994 2015-06-02 Martin Liska <mliska@suse.cz>
23996 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23997 values to avoid -Wmaybe-uninitialized errors.
23999 2015-06-02 Richard Biener <rguenther@suse.de>
24002 * dwarf2out.c (lookup_context_die): New function.
24003 (resolve_addr): Avoid forcing a full DIE for the
24004 target of a DW_TAG_GNU_call_site during late compilation.
24005 Instead create a stub DIE without a type if we have a
24006 context DIE present.
24008 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
24010 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
24012 2015-06-02 Bin Cheng <bin.cheng@arm.com>
24014 PR tree-optimization/48052
24015 * cfgloop.h (struct control_iv): New.
24016 (struct loop): New field control_ivs.
24017 * tree-ssa-loop-niter.c : Include "stor-layout.h".
24018 (number_of_iterations_lt): Set no_overflow information.
24019 (number_of_iterations_exit): Init control iv in niter struct.
24020 (record_control_iv): New.
24021 (estimate_numbers_of_iterations_loop): Call record_control_iv.
24022 (loop_exits_before_overflow): New. Interface factored out of
24023 scev_probably_wraps_p.
24024 (scev_probably_wraps_p): Factor loop niter related code into
24025 loop_exits_before_overflow.
24026 (free_numbers_of_iterations_estimates_loop): Free control ivs.
24027 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
24029 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
24031 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
24032 the target doesn't belong to the current function.
24034 2015-06-02 Marek Polacek <polacek@redhat.com>
24036 PR middle-end/66345
24037 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
24038 get_maxval_strlen does not produce an INTEGER_CST.
24040 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
24042 * config/arc/constraints.md: Use lower-case names in match_code.
24043 * config/mmix/constraints.md: Likewise.
24045 2015-06-02 Richard Biener <rguenther@suse.de>
24047 PR tree-optimization/65961
24048 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
24049 check and clarify dump message.
24050 (vect_build_slp_tree): If all children are built up from scalars
24051 build up the parent from scalars instead.
24052 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
24054 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
24057 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
24058 instead of print ... .
24060 2015-06-02 Alan Modra <amodra@gmail.com>
24062 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
24065 2015-06-02 Bin Cheng <bin.cheng@arm.com>
24067 PR tree-optimization/52563
24068 PR tree-optimization/62173
24069 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
24070 (alloc_iv, set_iv): New parameter.
24071 (determine_biv_step): Delete.
24072 (find_bivs): Inline original determine_biv_step. Pass new
24073 argument to set_iv.
24074 (idx_find_step): Use no_overflow information for conversion.
24075 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
24076 resolve_mixers handle folded_casts.
24077 (instantiate_scev_name): Change bool parameter to bool pointer.
24078 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
24079 (instantiate_array_ref, instantiate_scev_not): Ditto.
24080 (instantiate_scev_3, instantiate_scev_2): Ditto.
24081 (instantiate_scev_1, instantiate_scev_r): Ditto.
24082 (instantiate_scev_convert, ): Change parameter. Pass argument
24083 to chrec_convert_aggressive.
24084 (instantiate_scev): Change argument.
24085 (resolve_mixers): New parameter and set it.
24086 (scev_const_prop): New argument.
24087 * tree-scalar-evolution.h (resolve_mixers): New parameter.
24088 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
24090 (chrec_convert): New parameter. Move definition below.
24091 (chrec_convert_aggressive): New parameter and set it. Call
24092 convert_affine_scev.
24093 * tree-chrec.h (chrec_convert): New parameter.
24094 (chrec_convert_aggressive): Ditto.
24096 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24098 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
24099 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
24100 the LHS of a no-return call if its type has variable size.
24101 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
24102 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
24104 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
24106 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
24107 * config.in: Regenerate.
24109 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24111 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
24112 consecutive accesses within outer-loop with force_vectorize
24113 for references with zero step in inner-loop.
24115 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
24117 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
24118 rather than from gcc/build directory.
24120 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
24123 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
24124 for __sync memory models, emit initial loads and final barriers as
24127 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
24130 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
24131 (aarch64_split_atomic_op): Check for __sync memory models, emit
24132 appropriate initial loads and final barriers.
24134 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
24136 * Makefile.in: Fix gcov dependencies that should
24137 not point to a build folder.
24139 2015-06-01 Richard Biener <rguenther@suse.de>
24142 2015-05-29 Richard Biener <rguenther@suse.de>
24144 PR tree-optimization/66314
24145 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24146 parameter that says which loop the new block belongs to.
24147 (ssa_create_duplicates): Blocks duplicated for the threaded
24148 path belong to the loop of the thread destination.
24150 2015-06-01 Martin Liska <mliska@suse.cz>
24152 * sched-deps.c: Include pool-alloc.h before
24153 cselib.h header file is included.
24155 2015-06-01 Richard Biener <rguenther@suse.de>
24157 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24160 2015-06-01 Martin Liska <mliska@suse.cz>
24162 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24163 a function local variable.
24165 2015-06-01 Martin Liska <mliska@suse.cz>
24167 * alloc-pool.c (create_alloc_pool): Remove.
24168 (empty_alloc_pool): Likewise.
24169 (free_alloc_pool): Likewise.
24170 (free_alloc_pool_if_empty): Likewise.
24171 (pool_alloc): Likewise.
24172 (pool_free): Likewise.
24173 * alloc-pool.h: Remove old declarations.
24175 2015-06-01 Martin Liska <mliska@suse.cz>
24177 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24178 (ira_create_object): Likewise.
24179 (ira_create_allocno): Likewise.
24180 (ira_create_live_range): Likewise.
24181 (copy_live_range): Likewise.
24182 (ira_finish_live_range): Likewise.
24183 (ira_free_allocno_costs): Likewise.
24184 (finish_allocno): Likewise.
24185 (finish_allocnos): Likewise.
24186 (initiate_prefs): Likewise.
24187 (ira_create_pref): Likewise.
24188 (finish_pref): Likewise.
24189 (finish_prefs): Likewise.
24190 (initiate_copies): Likewise.
24191 (ira_create_copy): Likewise.
24192 (finish_copy): Likewise.
24193 (finish_copies): Likewise.
24194 (finish_prefs): Likewise.
24196 2015-06-01 Martin Liska <mliska@suse.cz>
24198 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24199 (allocate_and_init_ipcp_value): Likewise.
24200 (ipcp_lattice::add_value): Likewise.
24201 (merge_agg_lats_step): Likewise.
24202 (ipcp_driver): Likewise.
24203 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24204 (ipa_free_all_structures_after_iinln): Likewise.
24205 * ipa-prop.h: Likewise.
24207 2015-06-01 Martin Liska <mliska@suse.cz>
24209 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24211 (set_hint_predicate): Likewise.
24212 (inline_summary_alloc): Likewise.
24213 (reset_inline_edge_summary): Likewise.
24214 (reset_inline_summary): Likewise.
24215 (set_cond_stmt_execution_predicate): Likewise.
24216 (set_switch_stmt_execution_predicate): Likewise.
24217 (compute_bb_predicates): Likewise.
24218 (estimate_function_body_sizes): Likewise.
24219 (inline_free_summary): Likewise.
24221 2015-06-01 Martin Liska <mliska@suse.cz>
24223 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24224 (ipa_edge_duplication_hook): Likewise.
24225 (ipa_free_all_structures_after_ipa_cp): Likewise.
24226 (ipa_free_all_structures_after_iinln): Likewise.
24228 2015-06-01 Martin Liska <mliska@suse.cz>
24230 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24231 (ipa_profile_generate_summary): Likewise.
24232 (ipa_profile_read_summary): Likewise.
24233 (ipa_profile): Likewise.
24235 2015-06-01 Martin Liska <mliska@suse.cz>
24237 * tree-ssa-structalias.c (new_var_info): Use new type-based
24239 (new_constraint): Likewise.
24240 (init_alias_vars): Likewise.
24241 (delete_points_to_sets): Likewise.
24243 2015-06-01 Martin Liska <mliska@suse.cz>
24245 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24246 (free_strinfo): Likewise.
24247 (pass_strlen::execute): Likewise.
24249 2015-06-01 Martin Liska <mliska@suse.cz>
24251 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24253 (vn_reference_insert_pieces): Likewise.
24254 (vn_phi_insert): Likewise.
24255 (visit_reference_op_call): Likewise.
24256 (copy_phi): Likewise.
24257 (copy_reference): Likewise.
24258 (process_scc): Likewise.
24259 (allocate_vn_table): Likewise.
24260 (free_vn_table): Likewise.
24262 2015-06-01 Martin Liska <mliska@suse.cz>
24264 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24266 (add_repeat_to_ops_vec): Likewise.
24267 (get_ops): Likewise.
24268 (maybe_optimize_range_tests): Likewise.
24269 (init_reassoc): Likewise.
24270 (fini_reassoc): Likewise.
24272 2015-06-01 Martin Liska <mliska@suse.cz>
24274 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24276 (bitmap_set_new): Likewise.
24277 (get_or_alloc_expr_for_constant): Likewise.
24278 (get_or_alloc_expr_for): Likewise.
24279 (phi_translate_1): Likewise.
24280 (compute_avail): Likewise.
24281 (init_pre): Likewise.
24282 (fini_pre): Likewise.
24284 2015-06-01 Martin Liska <mliska@suse.cz>
24286 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24287 (delete_dep_node): Likewise.
24288 (create_deps_list): Likewise.
24289 (free_deps_list): Likewise.
24290 (sched_deps_init): Likewise.
24291 (sched_deps_finish): Likewise.
24293 2015-06-01 Martin Liska <mliska@suse.cz>
24295 * regcprop.c (free_debug_insn_changes): Use new type-based
24297 (replace_oldest_value_reg): Likewise.
24298 (pass_cprop_hardreg::execute): Likewise.
24300 2015-06-01 Martin Liska <mliska@suse.cz>
24302 * ira-build.c (initiate_cost_vectors): Use new type-based
24304 (ira_allocate_cost_vector): Likewise.
24305 (ira_free_cost_vector): Likewise.
24306 (finish_cost_vectors): Likewise.
24308 2015-06-01 Martin Liska <mliska@suse.cz>
24310 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24312 (free_sched_pools): Likewise.
24313 * sel-sched-ir.h (_list_alloc): Likewise.
24314 (_list_remove): Likewise.
24316 2015-06-01 Martin Liska <mliska@suse.cz>
24318 * stmt.c (add_case_node): Use new type-based pool allocator.
24319 (expand_case): Likewise.
24320 (expand_sjlj_dispatch_table): Likewise.
24322 2015-06-01 Martin Liska <mliska@suse.cz>
24324 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24325 (free_bb): Likewise.
24326 (pass_cse_reciprocals::execute): Likewise.
24328 2015-06-01 Martin Liska <mliska@suse.cz>
24330 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24331 (sra_deinitialize) Likewise.
24332 (create_access_1) Likewise.
24333 (build_accesses_from_assign) Likewise.
24334 (create_artificial_child_access) Likewise.
24336 2015-06-01 Martin Liska <mliska@suse.cz>
24338 * dse.c (get_group_info):Use new type-based pool allocator.
24339 (dse_step0) Likewise.
24340 (free_store_info) Likewise.
24341 (delete_dead_store_insn) Likewise.
24342 (free_read_records) Likewise.
24343 (record_store) Likewise.
24344 (replace_read) Likewise.
24345 (check_mem_read_rtx) Likewise.
24346 (scan_insn) Likewise.
24347 (dse_step1) Likewise.
24348 (dse_step7) Likewise.
24350 2015-06-01 Martin Liska <mliska@suse.cz>
24352 * df-scan.c (struct df_scan_problem_data):Use new type-based
24354 (df_scan_free_internal) Likewise.
24355 (df_scan_alloc) Likewise.
24356 (df_grow_reg_info) Likewise.
24357 (df_free_ref) Likewise.
24358 (df_insn_create_insn_record) Likewise.
24359 (df_mw_hardreg_chain_delete) Likewise.
24360 (df_insn_info_delete) Likewise.
24361 (df_free_collection_rec) Likewise.
24362 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24363 (df_sort_and_compress_mws) Likewise.
24364 (df_ref_create_structure) Likewise.
24365 (df_ref_record) Likewise.
24367 2015-06-01 Martin Liska <mliska@suse.cz>
24369 * df-problems.c (df_chain_create):Use new type-based pool allocator.
24370 (df_chain_unlink_1) Likewise.
24371 (df_chain_unlink) Likewise.
24372 (df_chain_remove_problem) Likewise.
24373 (df_chain_alloc) Likewise.
24374 (df_chain_free) Likewise.
24375 * df.h (struct dataflow) Likewise.
24377 2015-06-01 Martin Liska <mliska@suse.cz>
24379 * cselib.c (new_elt_list):Use new type-based pool allocator.
24380 (new_elt_loc_list) Likewise.
24381 (unchain_one_elt_list) Likewise.
24382 (unchain_one_elt_loc_list) Likewise.
24383 (unchain_one_value) Likewise.
24384 (new_cselib_val) Likewise.
24385 (cselib_init) Likewise.
24386 (cselib_finish) Likewise.
24388 2015-06-01 Martin Liska <mliska@suse.cz>
24390 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24391 (sh_reorg) Likewise.
24393 2015-06-01 Martin Liska <mliska@suse.cz>
24395 * cfg.c (initialize_original_copy_tables):Use new type-based
24397 (free_original_copy_tables) Likewise.
24398 (copy_original_table_clear) Likewise.
24399 (copy_original_table_set) Likewise.
24401 2015-06-01 Martin Liska <mliska@suse.cz>
24403 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24405 (asan_mem_ref_new) Likewise.
24406 (free_mem_ref_resources) Likewise.
24408 2015-06-01 Martin Liska <mliska@suse.cz>
24410 * var-tracking.c (variable_htab_free):Use new type-based
24412 (attrs_list_clear) Likewise.
24413 (attrs_list_insert) Likewise.
24414 (attrs_list_copy) Likewise.
24415 (shared_hash_unshare) Likewise.
24416 (shared_hash_destroy) Likewise.
24417 (unshare_variable) Likewise.
24418 (var_reg_delete_and_set) Likewise.
24419 (var_reg_delete) Likewise.
24420 (var_regno_delete) Likewise.
24421 (drop_overlapping_mem_locs) Likewise.
24422 (variable_union) Likewise.
24423 (insert_into_intersection) Likewise.
24424 (canonicalize_values_star) Likewise.
24425 (variable_merge_over_cur) Likewise.
24426 (dataflow_set_merge) Likewise.
24427 (remove_duplicate_values) Likewise.
24428 (variable_post_merge_new_vals) Likewise.
24429 (dataflow_set_preserve_mem_locs) Likewise.
24430 (dataflow_set_remove_mem_locs) Likewise.
24431 (variable_from_dropped) Likewise.
24432 (variable_was_changed) Likewise.
24433 (set_slot_part) Likewise.
24434 (clobber_slot_part) Likewise.
24435 (delete_slot_part) Likewise.
24436 (loc_exp_insert_dep) Likewise.
24437 (notify_dependents_of_changed_value) Likewise.
24438 (emit_notes_for_differences_1) Likewise.
24439 (vt_emit_notes) Likewise.
24440 (vt_initialize) Likewise.
24441 (vt_finalize) Likewise.
24443 2015-06-01 Martin Liska <mliska@suse.cz>
24445 * ira-color.c (init_update_cost_records):Use new type-based
24447 (get_update_cost_record) Likewise.
24448 (free_update_cost_record_list) Likewise.
24449 (finish_update_cost_records) Likewise.
24450 (initiate_cost_update) Likewise.
24452 2015-06-01 Martin Liska <mliska@suse.cz>
24454 * lra.c (init_insn_regs): Use new type-based pool allocator.
24455 (new_insn_reg) Likewise.
24456 (free_insn_reg) Likewise.
24457 (free_insn_regs) Likewise.
24458 (finish_insn_regs) Likewise.
24459 (init_insn_recog_data) Likewise.
24460 (init_reg_info) Likewise.
24461 (finish_reg_info) Likewise.
24462 (lra_free_copies) Likewise.
24463 (lra_create_copy) Likewise.
24464 (invalidate_insn_data_regno_info) Likewise.
24466 2015-06-01 Martin Liska <mliska@suse.cz>
24468 * lra-lives.c (free_live_range): Use new type-based pool allocator.
24469 (free_live_range_list) Likewise.
24470 (create_live_range) Likewise.
24471 (copy_live_range) Likewise.
24472 (lra_merge_live_ranges) Likewise.
24473 (remove_some_program_points_and_update_live_ranges) Likewise.
24474 (lra_live_ranges_init) Likewise.
24475 (lra_live_ranges_finish) Likewise.
24477 2015-06-01 Martin Liska <mliska@suse.cz>
24479 * et-forest.c (et_new_occ): Use new type-based pool allocator.
24480 (et_new_tree): Likewise.
24481 (et_free_tree): Likewise.
24482 (et_free_tree_force): Likewise.
24483 (et_free_pools): Likewise.
24484 (et_split): Likewise.
24486 2015-06-01 Martin Liska <mliska@suse.cz>
24488 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24490 * alloc-pool.h (pool_allocator::pool_allocator): New function.
24491 (pool_allocator::release): Likewise.
24492 (inline pool_allocator::release_if_empty): Likewise.
24493 (inline pool_allocator::~pool_allocator): Likewise.
24494 (pool_allocator::allocate): Likewise.
24495 (pool_allocator::remove): Likewise.
24497 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24499 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24502 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24504 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24506 * config/arm/arm.c (arm_print_tune_info): Likewise.
24507 (arm_macro_fusion_p): Likewise.
24508 (arm_macro_fusion_pair_p): Likewise.
24510 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24512 * config/aarch64/aarch64-protos.h (tune_params): Rename
24513 fuseable_ops to fusible_ops.
24514 * config/aarch64/aarch64.c (generic_tunings): Rename
24515 fuseable_ops to fusible_ops.
24516 (cortexa53_tunings): Likewise.
24517 (cortexa57_tunings): Likewise.
24518 (thunderx_tunings): Likewise.
24519 (xgene1_tunings): Likewise.
24520 (aarch64_macro_fusion_p): Likewise.
24521 (aarch64_macro_fusion_pair_p): Likewise.
24523 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
24525 * config/s390/driver-native.c: New file.
24526 * config/s390/x-native: New file.
24527 * config.host: Add new files for s390.
24528 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24530 * config.gcc: Likewise.
24531 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24532 * config/s390/s390-opts.h (enum processor_type): Ditto.
24533 * config/s390/s390.c (s390_option_override): Catch unhandled
24536 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
24539 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24540 redirection for instrumented calls.
24541 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24542 (append_compiler_options): Append -fcheck-pointer-bounds.
24543 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24544 (chkp_redirect_edge): New.
24545 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24546 (chkp_redirect_edge): New.
24548 2015-06-01 Richard Biener <rguenther@suse.de>
24550 PR tree-optimization/66280
24551 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24554 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24556 * config/aarch64/aarch64.md
24557 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24560 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24562 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24563 Remove obsolete kludge.
24565 2015-06-01 Richard Biener <rguenther@suse.de>
24567 * tree-ssa-reassoc.c (get_rank): Simplify.
24569 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
24571 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24572 * configure: Regenerated.
24574 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
24576 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24577 issue (add space between string literal and macro).
24578 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24580 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
24582 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24583 implict or explicit -fPIE or -fpie.
24585 2015-05-30 Mike Frysinger <vapier@gentoo.org>
24587 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24589 2015-05-28 DJ Delorie <dj@redhat.com>
24591 * expmed.c (extract_bit_field_1): Avoid clobbering a
24592 yet-to-be-used base/index register.
24594 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
24596 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24597 (alias_stats): Add num_universal.
24598 (alias_set_subset_of): Special case pointers; be ready for NULL
24600 (alias_sets_conflict_p): Special case pointers; be ready for NULL
24602 (init_alias_set_entry): Break out from ...
24603 (record_alias_subset): ... here; propagate new fields;
24604 allocate children only when really needed.
24605 (get_alias_set): Do less generous pointer globbing.
24606 (dump_alias_stats_in_alias_c): Update statistics.
24608 2015-05-30 Alan Modra <amodra@gmail.com>
24610 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24611 correct block for use of r12.
24612 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24614 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24617 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24620 2015-05-29 Jakub Jelinek <jakub@redhat.com>
24622 PR tree-optimization/66142
24623 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24624 virtual phis that feed themselves.
24626 2015-05-29 Richard Biener <rguenther@suse.de>
24628 PR tree-optimization/66314
24629 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24630 parameter that says which loop the new block belongs to.
24631 (ssa_create_duplicates): Blocks duplicated for the threaded
24632 path belong to the loop of the thread destination.
24634 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24636 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24637 to cleanup-saved-temps.
24638 * doc/sourcebuild.texi (Clean up generated test files): Expand
24640 (dg-keep-saved-temps): Document new proc.
24641 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24642 cleanup-saved-temps): Remove.
24644 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
24646 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24647 gcc_AC_CHECK_DECLS.
24648 * configure: Regenerate.
24650 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24652 * config/nios2/linux.h (CPP_SPEC): Define.
24654 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24656 * config/microblaze/linux.h (CPP_SPEC): Define.
24658 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24660 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24661 -pthread is specified.
24663 2015-05-28 Richard Biener <rguenther@suse.de>
24665 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24666 (vect_fixup_scalar_cycles_with_patterns): Likewise.
24667 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24668 after pattern recog.
24669 (vect_create_epilog_for_reduction): Properly handle reductions
24671 (vectorizable_reduction): Likewise.
24672 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24674 (vect_get_constant_vectors): Create the correct number of
24675 initial values for reductions.
24676 (vect_schedule_slp_instance): Handle reduction chains that are
24677 type changing properly.
24678 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24680 2015-05-28 Richard Biener <rguenther@suse.de>
24682 PR tree-optimization/66142
24683 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24684 values better in memcpy destination handling. Handle non-aliasing
24687 2015-05-28 Lawrence Velázquez <vq@larryv.me>
24690 * config/darwin-c.c (version_components): New global enum.
24691 (parse_version, version_as_legacy_macro)
24692 (version_as_modern_macro, macosx_version_as_macro): New functions.
24693 (version_as_macro): Remove.
24694 (darwin_cpp_builtins): Use new function.
24696 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
24698 * builtins.c (expand_builtin_acc_on_device): Mark parameters
24699 with ATTRIBUTE_UNUSED.
24701 2015-05-28 Julian Brown <julian@codesourcery.com>
24705 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24706 sequence for !ACCEL_COMPILER.
24708 2015-05-28 Nick Clifton <nickc@redhat.com>
24710 * config/rx/rx.c (push_regs): New function. Extracts code from...
24711 (rx_expand_prologue): ... here. Use push_regs to push even small
24712 spans of registers.
24713 (pop_regs): New function.
24714 (rx_expand_epilogue): Use pop_regs to pop even small spans of
24717 2015-05-28 Richard Biener <rguenther@suse.de>
24719 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24721 (SLP_INSTANCE_BODY_COST_VEC): Remove.
24722 (vect_update_slp_costs_according_to_vf): Likewise.
24723 (vect_slp_analyze_operations): Update prototype.
24724 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24725 vect_update_slp_costs_according_to_vf, adjust.
24726 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24727 (vect_analyze_slp_cost_1): Likewise.
24728 (vect_analyze_slp_cost): Likewise. Properly deal with
24729 widening reduction ops. Commit body costs.
24730 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
24731 cost for loops from here.
24732 (vect_slp_analyze_operations): But do it from here when
24733 the vectorization factor is known and stmts are analyzed.
24734 (vect_bb_vectorization_profitable_p): Simplify.
24735 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24736 (vect_update_slp_costs_according_to_vf): Remove.
24738 2015-05-27 Magnus Granberg <zorry@gentoo.org>
24739 H.J. Lu <hongjiu.lu@intel.com>
24741 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24742 (BUILD_CFLAGS): Likewise.
24743 (BUILD_CXXFLAGS): Likewise.
24744 (LINKER): Add @NO_PIE_FLAG@.
24745 (BUILD_LDFLAGS): Likewise.
24746 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24747 --enable-default-pie.
24748 * common.opt (fPIE): Initialize to -1.
24750 (no-pie): New option.
24751 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24752 * configure.ac: Add --enable-default-pie.
24753 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
24754 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
24755 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
24756 * gcc.c (NO_PIE_SPEC): New.
24757 (PIE_SPEC): Likewise.
24758 (NO_FPIE1_SPEC): Likewise.
24759 (FPIE1_SPEC): Likewise.
24760 (NO_FPIE2_SPEC): Likewise.
24761 (FPIE2_SPEC): Likewise.
24762 (NO_FPIE2_SPEC): Likewise.
24763 (FPIE_SPEC): Likewise.
24764 (NO_FPIE_SPEC): Likewise.
24765 (NO_FPIC1_SPEC): Likewise.
24766 (FPIC1_SPEC): Likewise.
24767 (NO_FPIC2_SPEC): Likewise.
24768 (FPIC2_SPEC): Likewise.
24769 (NO_FPIC2_SPEC): Likewise.
24770 (FPIC_SPEC): Likewise.
24771 (NO_FPIC_SPEC): Likewise.
24772 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24773 (FPIE1_OR_FPIC1_SPEC): Likewise.
24774 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24775 (FPIE2_OR_FPIC2_SPEC): Likewise.
24776 (NO_FPIE_AND_FPIC_SPEC): Likewise.
24777 (FPIE_OR_FPIC_SPEC): Likewise.
24778 (LD_PIE_SPEC): Likewise.
24779 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
24780 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24781 * config/darwin.h (PIE_SPEC): Renamed to ...
24782 (DARWIN_PIE_SPEC): This.
24783 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24784 * config/darwin9.h (PIE_SPEC): Renamed to ...
24785 (DARWIN_PIE_SPEC): This.
24786 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24787 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24788 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24789 FPIE2_OR_FPIC2_SPEC.
24790 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24791 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24792 * config/sol2.h (ASM_PIC_SPEC): Likewise.
24793 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24794 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24795 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24796 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24797 * config/m32r/m32r.h (ASM_SPEC): Likewise.
24798 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24799 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24800 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24801 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24802 * config/sparc/linux.h (ASM_SPEC): Likewise.
24803 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24804 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24805 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24806 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24807 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24808 * config/sparc/sparc.h (ASM_SPEC): Likewise.
24809 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24810 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24811 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24812 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24813 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24814 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24815 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24816 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24817 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24818 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24819 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24820 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24821 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24822 * config/vax/linux.h (ASM_SPEC): Likewise.
24823 * doc/install.texi: Document --enable-default-pie.
24824 * doc/invoke.texi: Document -no-pie.
24825 * config.in: Regenerated.
24826 * configure: Likewise.
24828 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24830 PR rtl-optimization/66168
24831 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24832 can_move_invariant_reg.
24834 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
24837 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24838 REG_EQUAL note when doing insert.
24840 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24841 instead of "%d" for 'o' operand.
24843 2015-05-27 Nathan Sidwell <nathan@acm.org>
24846 * tree.c (build_pointer_type_for_mode): Canonical type does not
24847 inherit can_alias_all.
24848 (build_reference_type_for_mode): Likewise.
24850 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
24852 * expr.h (array_at_struct_end_p): Move to...
24853 (array_ref_element_size): Likewise.
24854 (component_ref_field_offset): Likewise.
24855 * tree.h (array_ref_element_size): ...here.
24856 (array_at_struct_end_p): Likewise.
24857 (component_ref_field_offset): Likewise.
24858 * expr.c (array_ref_element_size): Move to...
24859 (array_ref_low_bound): Likewise.
24860 (array_at_struct_end_p): Likewise.
24861 (array_ref_up_bound): Likewise.
24862 (component_ref_field_offset): Likewise.
24863 * tree.c (array_ref_element_size): ...here.
24864 (array_ref_low_bound): Likewise.
24865 (array_ref_up_bound): Likewise.
24866 (array_at_struct_end_p): Likewise.
24867 (component_ref_field_offset): Likewise.
24869 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24870 Szabolcs Nagy <szabolcs.nagy@arm.com>
24872 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24874 2015-05-27 Jason Merrill <jason@redhat.com>
24877 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24878 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24879 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24881 2015-05-22 Aditya Kumar <hiraditya@msn.com>
24883 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24886 * statistics.c (statistics_fini_pass): Print pass name.
24888 2015-05-27 Richard Biener <rguenther@suse.de>
24890 PR tree-optimization/66272
24892 2014-08-15 Richard Biener <rguenther@suse.de>
24894 PR tree-optimization/62031
24895 * tree-data-ref.c (dr_analyze_indices): Do not set
24896 DR_UNCONSTRAINED_BASE.
24897 (dr_may_alias_p): All indirect accesses have to go the
24898 formerly DR_UNCONSTRAINED_BASE path.
24899 * tree-data-ref.h (struct indices): Remove
24900 unconstrained_base member.
24901 (DR_UNCONSTRAINED_BASE): Remove.
24903 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
24905 * dwarf2out.c: Remove block_map.
24906 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24907 (gen_lexical_block_die): Same.
24908 (dwarf2out_function_decl): Remove block_map use.
24909 (dwarf2out_c_finalize): Same.
24910 * tree-core.h (struct tree_block): Add die field.
24911 * tree.h (BLOCK_DIE): New.
24913 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24916 * expr.c (memory_load_overlap): New function.
24917 (emit_push_insn): When pushing partial args to the stack would
24918 clobber the register part load the overlapping part into a pseudo
24919 and put it into the hard reg after pushing. Change return type
24920 to bool. Add bool argument.
24921 * expr.h (emit_push_insn): Change return type to bool.
24923 * calls.c (expand_call): Cancel sibcall optimization when encountering
24924 partial argument on targets with ARGS_GROW_DOWNWARD and
24925 !STACK_GROWS_DOWNWARD.
24926 (emit_library_call_value_1): Update callsite of emit_push_insn.
24927 (store_one_arg): Likewise.
24929 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24931 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24933 2015-05-27 Martin Liska <mliska@suse.cz>
24935 * Makefile.in: Add additional dependencies related to memory report
24937 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24938 * bitmap.c (struct bitmap_descriptor_d): Remove.
24939 (struct loc): Likewise.
24940 (struct bitmap_desc_hasher): Likewise.
24941 (bitmap_desc_hasher::hash): Likewise.
24942 (bitmap_desc_hasher::equal): Likewise.
24943 (get_bitmap_descriptor): Likewise.
24944 (bitmap_register): User new memory descriptor API.
24945 (register_overhead): Likewise.
24946 (bitmap_find_bit): Register nsearches and search_iter statistics.
24947 (struct bitmap_output_info): Remove.
24948 (print_statistics): Likewise.
24949 (dump_bitmap_statistics): Use new memory descriptor.
24950 * bitmap.h (struct bitmap_usage): New class.
24951 * genmatch.c: Extend header file inclusion.
24952 * genpreds.c: Likewise.
24953 * ggc-common.c (struct ggc_usage): New class.
24954 (struct ggc_loc_desc_hasher): Remove.
24955 (ggc_loc_desc_hasher::hash): Likewise.
24956 (ggc_loc_desc_hasher::equal): Likewise.
24957 (struct ggc_ptr_hash_entry): Likewise.
24958 (struct ptr_hash_hasher): Likewise.
24959 (ptr_hash_hasher::hash): Likewise.
24960 (ptr_hash_hasher::equal): Likewise.
24961 (make_loc_descriptor): Likewise.
24962 (ggc_prune_ptr): Likewise.
24963 (dump_ggc_loc_statistics): Use new memory descriptor.
24964 (ggc_record_overhead): Likewise.
24965 (ggc_free_overhead): Likewise.
24966 (final_cmp_statistic): Remove.
24967 (cmp_statistic): Likewise.
24968 (ggc_add_statistics): Liekwise.
24969 (ggc_prune_overhead_list): Likewise.
24970 * hash-map-traits.h: New file.
24971 * hash-map.h (struct default_hashmap_traits): Move the traits to a
24972 separate header file.
24973 * hash-set.h: Pass memory statistics info to ctor.
24974 * hash-table.c (void dump_hash_table_loc_statistics): New function.
24975 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24976 (hash_table::~hash_table): Register memory release operation.
24977 (hash_table::alloc_entries): Handle memory allocation operation.
24978 (hash_table::expand): Likewise.
24979 * inchash.c (iterative_hash_hashval_t): Move implementation to header
24981 (iterative_hash_host_wide_int): Likewise.
24982 * inchash.h (class hash): Likewise.
24983 * mem-stats-traits.h: New file.
24984 * mem-stats.h: New file.
24985 (mem_location): Add new class.
24986 (mem_usage): Likewise.
24987 (mem_alloc_description): Likewise.
24988 * sese.c: Add new header file inclusision.
24989 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24991 * tree-sra.c: Add new header file inclusision.
24992 * vec.c (struct vec_descriptor): Remove.
24993 (hash_descriptor): Likewise.
24994 (struct vec_usage): Likewise.
24995 (struct ptr_hash_entry): Likewise.
24996 (hash_ptr): Likewise.
24997 (eq_ptr): Likewise.
24998 (vec_prefix::register_overhead): Use new memory descriptor API.
24999 (vec_prefix::release_overhead): Likewise.
25000 (add_statistics): Remove.
25001 (dump_vec_loc_statistics): Use new memory descriptor API.
25002 * vec.h (struct vec_prefix): Likewise.
25003 (va_heap::reserve): Likewise.
25004 (va_heap::release): Likewise.
25005 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
25007 2015-05-27 Richard Biener <rguenther@suse.de>
25009 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
25010 earlier and remove ??? comment.
25011 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
25012 and got called from loop analysis bail out. Always pass the SLP
25013 node to the vectorizable_* functions.
25014 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
25015 the premature SLP check here.
25016 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
25017 detected SLP stmts.
25018 (vect_detect_hybrid_slp_1): Likewise.
25020 2015-05-26 Jeff Law <law@redhat.com>
25022 * combine.c (find_split_point): Verify that the shift count is a
25023 constant when choosing (plus (ashift ...)) as a split point.
25025 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
25026 No functional changes.
25028 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
25030 * ipa-polymorphic-call.c
25031 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
25032 case when call target is already known.
25034 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
25037 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
25038 take into account the case that operands[1] and operands[2]
25039 are the same register.
25041 2015-05-26 Michael Matz <matz@suse.de>
25043 PR middle-end/66251
25045 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
25047 (vect_create_vectorized_demotion_stmts): Always set
25048 STMT_VINFO_VEC_STMT, also with SLP.
25049 (vectorizable_store): Handle strided group stores.
25051 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25054 * config/aarch64/aarch64.md
25055 (*adds_shift_imm_<mode>): New pattern.
25056 (*subs_shift_imm_<mode>): Likewise.
25057 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25058 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25059 (*add_uxt<mode>_shift2): Likewise.
25060 (*add_uxtsi_shift2_uxtw): Likewise.
25061 (*sub_uxt<mode>_shift2): Likewise.
25062 (*sub_uxtsi_shift2_uxtw): Likewise.
25064 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
25066 * config/rs6000/constraints.md (Y, U): Use match_test.
25068 2015-05-26 Christian Bruel <christian.bruel@st.com>
25071 * config/arm/arm.c (arm_option_check_internal)
25072 (arm_option_params_internal): Check opts->target_flags to set macros.
25073 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25074 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
25075 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25076 (builtin_define): Replaced with def_or_undef_macro.
25077 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25078 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
25079 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25080 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
25081 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
25082 (TARGET_ARM_FEATURE_LDREX_P)
25083 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
25084 * config/arm/arm-c.c (def_or_undef_macro): New function.
25085 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
25087 2015-05-26 Christian Bruel <christian.bruel@st.com>
25089 * c-common.h (builtin_define_with_int_value)
25090 (builtin_define_type_sizeof): Declare.
25091 * c-cppbuiltin.c (builtin_define_with_int_value)
25092 (builtin_define_type_sizeof): Externalize.
25093 (builtin_define_std): Cleanup declaration.
25094 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
25095 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
25096 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
25097 (builtin_define, builtin_assert): New macros.
25099 2015-05-26 Richard Biener <rguenther@suse.de>
25101 PR tree-optimization/66142
25102 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
25103 MEM_REFs for the same base address.
25105 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25108 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
25110 2015-05-26 Jason Merrill <jason@redhat.com>
25112 * configure.ac: Set CXXFLAGS for ISL test.
25113 * configure: Regenerate.
25115 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
25116 strstr and basename.
25117 * configure: Regenerate.
25119 2015-05-26 Richard Biener <rguenther@suse.de>
25121 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
25122 X % C -> X & (C - 1) for C being a power-of two to ...
25123 * match.pd: ... patterns.
25125 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
25127 * match.pd (swapped_tcc_comparison): New operator list.
25128 (-A CMP -B): New simplification.
25129 * fold-const.c (fold_comparison): Remove corresponding code.
25131 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
25133 * caller-save.c (init_caller_save): Base temporary register numbers
25134 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
25135 * cfgloopanal.c (init_set_costs): Likewise.
25136 * dojump.c (prefer_and_bit_test): Likewise.
25137 * expr.c (init_expr_target): Likewise.
25138 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25139 * lower-subreg.c (init_lower_subreg): Likewise.
25140 * postreload.c (reload_cse_regs_1): Likewise.
25142 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
25144 * gensupport.h (compute_test_codes): Declare.
25145 * gensupport.c (compute_predicate_codes): Rename to...
25146 (compute_test_codes): ...this. Generalize error message.
25147 (process_define_predicate): Update accordingly.
25148 * genpreds.c (compute_maybe_allows): Delete.
25149 (add_constraint): Use compute_test_codes to determine whether
25150 something can accept a SUBREG, REG or MEM.
25152 2015-05-26 Torvald Riegel <triegel@redhat.com>
25154 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25155 'memory model' to align with C++11; fix description of memory orders;
25158 2015-05-26 Richard Biener <rguenther@suse.de>
25160 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25161 (vect_analyze_loop_operations): ... here. Remove slp parameter,
25162 detect whether we apply SLP. Remove call to
25163 vect_update_slp_costs_according_to_vf.
25164 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25165 vect_update_slp_costs_according_to_vf from here. Dispatch
25166 to vect_slp_analyze_operations to analyze SLP stmts.
25167 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25168 unused bb_vec_info parameter, adjust assert.
25169 (vect_slp_analyze_operations): Pass in the slp instance tree
25170 instead of bb_vec_info.
25171 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25172 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25174 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25176 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25177 Q_REGS. Expand comment.
25178 (REG_CLASS_NAMES): Ditto.
25179 (REG_CLASS_CONTENTS): Ditto.
25181 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
25184 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25185 when LEGACY_INT_REGNO_P is processed.
25187 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25189 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25191 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25193 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25194 register if not marked dead/unused, before return.
25196 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25199 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25200 is set; check for assembler name at LTO time.
25201 (type_in_anonymous_namespace): Remove hacks, check that all
25202 anonymous types are called "<anon>"
25203 (odr_type_p): Simplify; add check for "<anon>"
25204 (odr_subtypes_equivalent): Add odr_type_p check.
25205 * tree.c (need_assembler_name_p): Even anonymous namespace needs
25208 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25210 * ipa-utils.h (method_class_type): Remove.
25211 * cgraphunit.c (walk_polymorphic_call_targets): Use
25212 TYPE_METHOD_BASETYPE.
25213 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25214 on main variants only.
25215 (method_class_type): Remove.
25216 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25217 (build_type_inheritance_graph): Likewise.
25218 * ipa-icf.c (sem_function::equals_wpa): Likewise.
25219 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25220 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25222 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25224 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25225 is_typedef_decl, typedef_variant_p): Constify.
25226 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25227 is_typedef_decl, typedef_variant_p): Constify.
25229 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25231 * defaults.h (gen_tablejump): New function.
25232 (HAVE_tablejump): Add default value.
25234 * stmt.c: Likewise.
25236 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25238 * defaults.h (gen_store_multiple): New function.
25239 (HAVE_store_multiple): Add default value.
25240 * expr.c (move_block_from_reg): Adjust.
25242 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25244 * defaults.h (gen_load_multiple): New function.
25245 (HAVE_load_multiple): Add default value.
25246 * expr.c (move_block_to_reg): Adjust.
25248 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25250 * defaults.h (gen_mem_signal_fence): New function.
25251 (HAVE_mem_signal_fence): Add default value.
25252 * optabs.c: Adjust.
25254 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25256 * defaults.h (gen_memory_barrier): New function.
25257 (HAVE_memory_barrier): Add default value.
25258 * optabs.c: Adjust.
25260 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25262 * defaults.h (gen_mem_thread_fence): New function.
25263 (HAVE_mem_thread_fence): Add default definition.
25264 * optabs.c: Adjust.
25266 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25268 * combine.c (find_split_point): Check the value of HAVE_lo_sum
25269 instead of if it is defined.
25270 (combine_simplify_rtx): Likewise.
25271 * lra-constraints.c (process_address_1): Likewise.
25272 * config/darwin.c: Adjust.
25273 * genconfig.c (main): Always define HAVE_lo_sum.
25275 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25277 * genmatch.c (parser::parse_operation): Reject expanding
25278 operator-list inside 'for'.
25280 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25282 * genmatch.c (parser::parse_for): Reject iterator if used as
25285 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25287 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25288 after end of id-list.
25290 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25292 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25293 we do not try to compute canonical type for type that does not need
25295 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25297 * tree.h (type_with_alias_set_p): New.
25299 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25301 * tree.c (gimple_canonical_types_compatible_p): Do not compare
25302 function attributes.
25303 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25305 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
25307 * Makefile.in (check_gcc_parallelize): Delete.
25308 (lang_checks_parallelized): Update comment.
25310 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
25312 PR rtl-optimization/66237
25313 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25314 location of an "as_a" cast.
25316 2015-05-22 Jeff Law <law@redhat.com>
25318 * config/pa/pa.md (non-canonical shift-add insns): Remove.
25319 (peepholes with non-canonical RTL sources): Remove.
25320 (peepholes for indexed stores of FP regs in integer modes): Match and
25321 generate canonical RTL.
25323 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25325 PR tree-optimization/63387
25326 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25327 ((x ord x) & (y ord y) -> (x ord y),
25328 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25329 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25330 vectors like scalars.
25332 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25334 * convert.c (convert_to_integer, convert_to_vector): Include the
25335 types in the error message.
25337 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25339 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25342 2015-05-22 Jeff Law <law@redhat.com>
25344 * config/pa/pa.md (integer_indexed_store splitters): Use
25345 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
25346 insns -- adjusting the constant 2nd operand accordingly.
25348 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25349 (plus (ashift X log2) Y) if it is a split point.
25351 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25352 out of hppa_legitimize_address to handle both forms of a multiply
25354 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25355 Always generate the ASHIFT variant as the result is not directly
25356 used in a MEM. Update comments and refactor slightly to improve
25359 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25362 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25363 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
25364 (aarch64_composite_type_p): Return false if given type and mode are
25365 for a short vector.
25367 2015-05-22 Richard Biener <rguenther@suse.de>
25369 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25371 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25372 patterns when determining whether SLP is pure.
25373 (vect_is_slp_reduction): Remove check for pattern stmts.
25374 (vect_is_simple_reduction_1): Remove dead code.
25375 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25376 (vect_get_and_check_slp_defs): Pass in the stmt number.
25377 Allow the first def in a reduction to be not a pattern stmt when
25378 the rest of the stmts def are patterns.
25379 (vect_build_slp_tree_1): Allow tcc_expression codes like
25380 SAD_EXPR and DOT_PROD_EXPR.
25381 (vect_build_slp_tree): Adjust.
25382 (vect_analyze_slp): Refactor and move BB vect error message ...
25383 (vect_slp_analyze_bb_1): ... here.
25385 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
25387 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25388 for CSWTCH temporary.
25390 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25392 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25393 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
25396 2015-05-22 Richard Biener <rguenther@suse.de>
25398 PR tree-optimization/66251
25399 * tree-vect-stmts.c (vectorizable_conversion): Properly
25400 set STMT_VINFO_VEC_STMT even for the SLP case.
25402 2015-05-22 Marek Polacek <polacek@redhat.com>
25404 * doc/extend.texi: Use @pxref instead of @xref.
25406 2015-05-22 hiraditya <hiraditya@msn.com>
25408 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25411 2015-05-22 Richard Biener <rguenther@suse.de>
25413 PR tree-optimization/65701
25414 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25415 Move peeling cost models into one place. Peel for alignment
25416 for single loads only if an aligned load is cheaper than
25419 2015-05-22 Marek Polacek <polacek@redhat.com>
25422 * doc/extend.texi (Enumerator Attributes): New section.
25423 Document syntax of enumerator attributes.
25425 2015-05-22 Richard Biener <rguenther@suse.de>
25427 * tree-vect-loop.c (get_reduction_op): New function.
25428 (vect_model_reduction_cost): Use it, add reduc_index parameter.
25429 Make ready for BB reductions.
25430 (vect_create_epilog_for_reduction): Use get_reduction_op.
25431 (vectorizable_reduction): Init reduc_index to a valid value.
25432 Adjust vect_model_reduction_cost call.
25433 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25434 operand for reduction defaults. Add SAD_EXPR support.
25435 Assert we have a neutral op for SLP reductions.
25436 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25437 walking pattern stmt ops only recurse to SSA names.
25439 2015-05-22 Richard Biener <rguenther@suse.de>
25441 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25442 assert with guard, remove check on detected reduction.
25443 (vect_recog_sad_pattern): Likewise.
25444 (vect_recog_widen_sum_pattern): Likewise.
25446 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25448 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25449 __always_inline__ attribute.
25450 (vaesdq_u8): Likewise.
25451 (vaesmcq_u8): Likewise.
25452 (vaesimcq_u8): Likewise.
25453 (vsha1cq_u32): Likewise.
25454 (vsha1mq_u32): Likewise.
25455 (vsha1pq_u32): Likewise.
25456 (vsha1h_u32): Likewise.
25457 (vsha1su0q_u32): Likewise.
25458 (vsha1su1q_u32): Likewise.
25459 (vsha256hq_u32): Likewise.
25460 (vsha256h2q_u32): Likewise.
25461 (vsha256su0q_u32): Likewise.
25462 (vsha256su1q_u32): Likewise.
25463 (vmull_p64): Likewise.
25464 (vmull_high_p64): Likewise.
25466 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25468 * final.c (final_scan_insn): Don't check HAVE_peephole with the
25470 * output.h: Likewise.
25471 * genconfig.c (main): Alwways define HAVE_peephole.
25472 * genpeep.c: Don't emit checks of HAVE_peephole.
25474 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25476 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25477 check HAVE_conditional_move with the preprocessor.
25479 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25481 * genconfig.c (main): Always define HAVE_conditional_move.
25482 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25483 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25486 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25488 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25489 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25490 and FRAME_POINTER_REGNUM with the preprocessor.
25492 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25494 * defaults.h: Add default for STACK_PUSH_CODE.
25495 * expr.c: Don't redefine STACK_PUSH_CODE.
25496 * recog.c: Likewise.
25498 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25500 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25501 sched-deps.c: Use if instead of preprocessor checks with
25502 STACK_GROWS_DOWNWARD.
25504 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25506 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25508 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25509 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25510 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25511 * doc/tm.texi: Regenerate.
25513 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
25516 * config/i386/constraints.md (Bg): New constraint for GOT memory
25518 * config/i386/i386.md (*call_got_x32): New pattern.
25519 (*call_value_got_x32): Likewise.
25520 * config/i386/predicates.md (GOT_memory_operand): New predicate.
25522 2015-05-21 Jakub Jelinek <jakub@redhat.com>
25524 PR tree-optimization/66233
25525 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25528 2015-05-21 Jeff Law <law@redhat.com>
25530 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25531 than MULT for shadd sequences.
25533 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
25535 * alias.c (alias_stats): New static var.
25536 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25537 (dump_alias_stats_in_alias_c): New function.
25538 * alias.h (dump_alias_stats_in_alias_c): Declare.
25539 * tree-ssa-alias.c (dump_alias_stats): Call it.
25541 2015-05-08 Michael Matz <matz@suse.de>
25543 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25545 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25546 (STMT_VINFO_STRIDED_P): ... this.
25547 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25548 (vect_verify_datarefs_alignment): Likewise.
25549 (vect_enhance_data_refs_alignment): Likewise.
25550 (vect_analyze_data_ref_access): Likewise.
25551 (vect_analyze_data_refs): Accept strided stores.
25552 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25553 (vect_model_load_cost): Adjust for macro rename.
25554 (vectorizable_mask_load_store): Likewise.
25555 (vectorizable_load): Likewise.
25556 (vectorizable_store): Open code strided stores.
25558 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25560 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25561 Document sqrt_insn.
25563 2015-05-21 Richard Biener <rguenther@suse.de>
25566 * match.pd: Guard pattern optimzing (int)(float)int
25567 conversions to apply only on GIMPLE.
25569 2015-05-21 Jeff Law <law@redhat.com>
25571 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25572 multiply-accumulate/shift-add insn generation.
25574 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
25577 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25578 operands[1] are the same.
25580 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
25582 PR middle-end/66221
25583 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25584 build_distinct_type_copy to copy bounds.
25586 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
25588 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25589 Change to unsigned int.
25591 2015-05-20 Jeff Law <law@redhat.com>
25593 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25594 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25595 (pa_shadd_constant_p): Allow constants for shadd insns rather
25596 than valid scaling constants for memory addresses.
25597 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25598 * config/pa/predicates.md (mem_shadd_operand): New predicate.
25599 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25600 (shift-add insns using ASHIFT): New patterns.
25602 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
25604 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25606 (fix_up_fall_thru_edges): Likewise.
25607 (fix_crossing_conditional_branches): Likewise. Promote jump targets
25608 from to rtx_insn to rtx_code_label where feasible.
25609 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25610 gen_move_insn (returned type changed to rtx_insn).
25611 * builtins.c (expand_errno_check): Fix arguments of
25612 do_compare_rtx_and_jump (now expects rtx_code_label).
25613 (expand_builtin_acc_on_device): Likewise.
25614 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25615 invert_jump (now exprects rtx_jump_insn).
25616 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25617 (construct_init_block): Use rtx_code_label.
25618 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25619 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25620 calling redirect_jump.
25621 (patch_jump_insn): Likewise.
25622 (redirect_branch_edge): Likewise.
25623 (force_nonfallthru_and_redirect): Likewise.
25624 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25626 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25627 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25628 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25629 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25630 to store the value retured by gen_label_rtx.
25631 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25633 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25634 (split_branches): Fix calls of redirect_jump.
25635 * dojump.c (jumpifnot): Promote argument type from rtx to
25637 (jumpifnot_1): Likewise.
25638 (jumpif): Likewise.
25639 (jumpif_1): Likewise.
25640 (do_jump_1): Likewise.
25641 (do_jump): Likewise. Use rtx_code_label when feasible.
25642 (do_jump_by_parts_greater_rtx): Likewise.
25643 (do_jump_by_parts_zero_rtx): Likewise.
25644 (do_jump_by_parts_equality_rtx): Likewise.
25645 (do_compare_rtx_and_jump): Likewise.
25646 * dojump.h: Update function prototypes.
25647 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25649 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25651 (emit_label_before): Likewise.
25652 (emit_jump_insn_after_noloc): Likewise.
25653 (emit_jump_insn_after_setloc): Likewise.
25654 (emit_jump_insn_after): Likewise
25655 (emit_jump_insn_before_setloc): Likewise.
25656 (emit_jump_insn_before): Likewise.
25657 (emit_label_before): Promote return type to rtx_code_label.
25658 (emit_label): Likewise.
25659 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25660 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25662 (emit_stack_restore): Likewise.
25663 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25664 (do_cmp_and_jump): Likewise.
25665 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25666 from rtx to rtx_code_label.
25667 (gen_move_insn_uncast): New function.
25668 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25669 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25670 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25671 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25672 invert_jump_1 and redirect_jump_1.
25673 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25674 do_compare_rtx_and_jump.
25675 (expand_addsub_overflow): Likewise.
25676 (expand_neg_overflow): Likewise.
25677 (expand_mul_overflow): Likewise.
25678 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25679 return value of gen_move_insn.
25680 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25681 * loop-doloop.c (add_test): Use rtx_code_label.
25682 (doloop_modify): Likewise.
25683 (doloop_optimize): Likewise.
25684 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25685 * lra-constraints.c (emit_spill_move): Remove cast of value returned
25687 (inherit_reload_reg): Add cast when calling dump_insn_slim.
25688 (split_reg): Likewise.
25689 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25691 * optabs.c (expand_binop_directly): Remove casts of values returned by
25693 (expand_unop_direct): Likewise.
25694 (expand_abs): Likewise.
25695 (maybe_emit_unop_insn): Likewise.
25696 (maybe_gen_insn): Promote return type to rtx_insn.
25697 * optabs.h: Update prototype of maybe_gen_insn.
25698 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25700 * recog.c (struct peep2_insn_data): Promote type of insn field to
25702 (peep2_reinit_state): Use NULL instead of NULL_RTX.
25703 (peep2_attempt): Remove casts of insn in peep2_insn_data.
25704 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25705 * recog.h (struct insn_gen_fn): Promote return types of function
25706 pointers and operator ().from rtx to rtx_insn.
25707 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25708 (fill_eager_delay_slots): Likewise.
25709 (relax_delay_slots): Likewise.
25710 (make_return_insns): Likewise.
25711 (dbr_schedule): Likewise.
25712 (optimize_skips): Likewise.
25713 (reorg_redirect_jump): Likewise.
25714 (fill_slots_from_thread): Likewise.
25715 * reorg.h: Update prototypes.
25716 * resource.c (find_dead_or_set_registers): Use dyn_cast to
25717 rtx_jump_insn instead of check. Use it's jump_target method.
25718 * rtl.h (rtx_jump_insn::jump_label): Define new method.
25719 (rtx_jump_insn::jump_target): Define new method.
25720 (rtx_jump_insn::set_jump_target): Define new method.
25721 * rtlanal.c (tablejump_p): Promote type of one local variable.
25722 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25723 (sched_analyze_insn): Likewise.
25724 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25725 (print_insn): Likewise.
25726 * stmt.c (label_rtx): Promote return type to rtx_insn.
25727 (force_label_rtx): Likewise.
25728 (jump_target_rtx): Define new function.
25729 (expand_label): Use it, get rid of one cast.
25730 (expand_naked_return): Promote rtx to rtx_code_label.
25731 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25732 (expand_case): Use rtx_code_label instread of rtx where feasible.
25733 (expand_sjlj_dispatch_table): Likewise.
25734 (emit_case_nodes): Likewise.
25735 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
25736 * store-motion.c (insert_store): Make use of new return type of
25737 gen_move_insn and remove a cast.
25738 (replace_store_insn): Likewise.
25740 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
25742 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25743 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25745 2015-05-20 Jeff Law <law@redhat.com>
25747 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25748 dispose of the jump thread path when the jump threading
25749 opportunity is cancelled.
25751 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
25753 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25754 when printing the caret character.
25756 2015-05-20 Marek Polacek <polacek@redhat.com>
25758 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25760 2015-05-20 Marek Polacek <polacek@redhat.com>
25762 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25763 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25764 * gimple-fold.c (canonicalize_bool): Likewise.
25765 (same_bool_result_p): Likewise.
25766 * tree-if-conv.c (parse_predicate): Likewise.
25768 2015-05-20 Marek Polacek <polacek@redhat.com>
25770 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25771 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25773 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25775 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25776 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25779 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
25781 * config/mips/mips.h (micromips_globals): Declare.
25783 2015-05-20 David Malcolm <dmalcolm@redhat.com>
25785 * timevar.def (TV_INITIALIZE_RTL): New.
25786 * toplev.c (initialize_rtl): Use an auto_timevar to account this
25787 function's time to TV_INITIALIZE_RTL.
25789 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25791 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25792 gimple_build_nop calls.
25793 (chkp_find_bounds_for_elem): Likewise.
25794 (chkp_get_zero_bounds): Likewise.
25795 (chkp_get_none_bounds): Likewise.
25796 (chkp_get_bounds_by_definition): Likewise.
25797 (chkp_generate_extern_var_bounds): Likewise.
25798 (chkp_get_bounds_for_decl_addr): Likewise.
25799 (chkp_get_bounds_for_string_cst): Likewise.
25801 2015-05-20 Bin Cheng <bin.cheng@arm.com>
25803 PR tree-optimization/65447
25804 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25805 (dump_use, dump_uses): Support to dump sub use.
25806 (record_use): New parameters to support sub use. Remove call to
25808 (record_sub_use, record_group_use): New functions.
25809 (compute_max_addr_offset, split_all_small_groups): New functions.
25810 (group_address_uses, rewrite_use_address): New functions.
25811 (strip_offset): New declaration.
25812 (find_interesting_uses_address): Call record_group_use.
25813 (add_candidate): New assertion.
25814 (infinite_cost_p): Move definition forward.
25815 (add_costs): Check INFTY cost and return immediately.
25816 (get_computation_cost_at): Clear setup cost and dependent bitmap
25818 (determine_use_iv_cost_address): Compute cost for sub uses.
25819 (rewrite_use_address_1): Rename from old rewrite_use_address.
25820 (free_loop_data): Free sub uses.
25821 (tree_ssa_iv_optimize_loop): Call group_address_uses.
25823 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25824 Jim Wilson <jim.wilson@linaro.org>
25826 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25827 new fields loadv and storev.
25828 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25829 Initialize loadv and storev.
25830 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25831 (cortexa53_extra_costs): Likewise.
25832 (cortexa57_extra_costs): Likewise.
25833 (xgene1_extra_costs): Likewise.
25834 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25837 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25839 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25841 (cortexa8_extra_costs): Likewise.
25842 (cortexa5_extra_costs): Likewise.
25843 (cortexa7_extra_costs): Likewise.
25844 (cortexa12_extra_costs): Likewise.
25845 (cortexa15_extra_costs): Likewise.
25846 (v7m_extra_costs): Likewise.
25848 2015-05-20 Jeff Law <law@redhat.com>
25850 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25851 instead of open-coded version. Also delete the jump thread created
25852 within this function.
25854 2015-05-20 Alan Modra <amodra@gmail.com>
25856 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25857 stack adjusting insn. Formatting.
25858 (rs6000_emit_prologue): Track stack adjusting insn, and use of
25859 r12. If possible, emit first -fsplit-stack arg pointer insn
25860 before stack adjust. Don't use r12 to save cr if split-stack.
25862 2015-05-20 Alan Modra <amodra@gmail.com>
25864 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25866 (rs6000_supports_split_stack): New function.
25867 * config/rs6000/rs6000.c (machine_function): Add
25868 split_stack_arg_pointer.
25869 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25870 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25871 rather than virtual_incoming_args_rtx.
25872 (rs6000_va_start): Likewise.
25873 (split_stack_arg_pointer_used_p): New function.
25874 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25875 (morestack_ref): New var.
25876 (gen_add3_const, rs6000_expand_split_stack_prologue,
25877 rs6000_internal_arg_pointer, rs6000_live_on_entry,
25878 rs6000_split_stack_space_check): New functions.
25879 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25880 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25881 (UNSPECV_SPLIT_STACK_RETURN): Define.
25882 (split_stack_prologue, load_split_stack_limit,
25883 load_split_stack_limit_di, load_split_stack_limit_si,
25884 split_stack_return, split_stack_space_check): New expands and insns.
25885 * config/rs6000/rs6000-protos.h
25886 (rs6000_expand_split_stack_prologue): Declare.
25887 (rs6000_split_stack_space_check): Declare.
25889 2015-05-20 Alan Modra <amodra@gmail.com>
25891 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25892 (direct_return): Test vrsave_size rather than vrsave_mask.
25893 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
25894 (rs6000_emit_epilogue): Likewise.
25896 2015-05-20 Alan Modra <amodra@gmail.com>
25898 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25899 when not saving registers.
25900 (debug_stack_info): Adjust to omit printing unused offsets,
25902 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25905 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25908 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25909 value_type to const char *.
25911 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
25913 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25914 to build a biarch toolchain again.
25916 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25918 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25919 or implicit declarations.
25920 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25922 (get_odr_type): Check type has linkage before adding bases.
25923 (register_odr_type): Check that type has linkage before adding it.
25924 (type_known_to_have_no_deriavations_p): Rename to ..
25925 (type_known_to_have_no_derivations_p): This one.
25926 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25927 (type_known_to_have_no_derivations_p): This one.
25928 * ipa-polymorphic-call.c
25929 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25932 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25934 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25935 (layout_type): Use RECORD_OR_UNION_TYPE_P.
25937 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25939 * config/s390/s390.c (s390_vector_bool_type_p): New function.
25940 (s390_invalid_binary_op): New function.
25941 (TARGET_INVALID_BINARY_OP): Define macro.
25943 2015-05-19 David Sherwood <david.sherwood@arm.com>
25945 * loop-invariant.c (create_new_invariant): Don't calculate address cost
25946 if mode is not a scalar integer.
25947 (get_inv_cost): Increase computational cost for unused invariants.
25949 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25951 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
25952 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
25953 * config/s390/s390-builtin-types.def: New file.
25954 * config/s390/s390-builtins.def: New file.
25955 * config/s390/s390-builtins.h: New file.
25956 * config/s390/s390-c.c: New file.
25957 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25958 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25959 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25960 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25962 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25964 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25965 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25966 variable definitions.
25967 (s390_const_operand_ok): New function.
25968 (s390_expand_builtin): Rewrite.
25969 (s390_init_builtins): New function.
25970 (s390_handle_vectorbool_attribute): New function.
25971 (s390_attribute_table): Add s390_vector_bool attribute.
25972 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25973 (s390_branch_condition_mask): Generate masks for new modes.
25974 (s390_expand_vec_compare_cc): New function.
25975 (s390_mangle_type): Add mangling for vector bool types.
25976 (enum s390_builtin): Remove.
25977 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25979 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25980 s390_cpu_cpp_builtins.
25981 (REGISTER_TARGET_PRAGMAS): New macro.
25982 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25983 (insn_cmp mode attribute): Add new CC modes.
25984 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25985 (lcbb): New pattern definition.
25986 * config/s390/s390intrin.h: Include vecintrin.h.
25987 * config/s390/t-s390: New file.
25988 * config/s390/vecintrin.h: New file.
25989 * config/s390/vector.md: Include vx-builtins.md.
25990 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25993 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25995 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25997 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25998 (s390_select_ccmode): Likewise.
25999 (s390_canonicalize_comparison): Swap operands if necessary.
26000 (s390_expand_vec_compare_scalar): Expand DFmode compare using
26001 single element vector instructions.
26002 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
26003 (s390_branch_condition_mask): Generate CC masks for the new modes.
26004 * config/s390/s390.md (v0, vf, vd): New mode attributes.
26005 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
26006 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
26007 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
26008 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
26009 (*extend<DSF:mode><BFP:mode>2): New insn definition.
26010 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
26011 (extend<DSF:mode><BFP:mode>2): Turn into expander.
26012 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
26013 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
26014 (sqrt<mode>2): Add vector instruction.
26016 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26018 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
26020 * config/s390/predicates.md (const0_operand, constm1_operand)
26021 (constable_operand): Accept vector operands.
26022 * config/s390/s390-modes.def: Add supported vector modes.
26023 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
26024 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
26025 (s390_bytemask_vector_p, s390_expand_vec_strlen)
26026 (s390_expand_vec_compare, s390_expand_vcond)
26027 (s390_expand_vec_init): Add prototypes.
26028 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
26029 (s390_vector_mode_supported_p): New function.
26030 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
26031 (s390_contiguous_bitmask_vector_p): New function.
26032 (s390_bytemask_vector_p): New function.
26033 (s390_split_ok_p): Vector regs don't work either.
26034 (regclass_map): Add VEC_REGS.
26035 (s390_legitimate_constant_p): Handle vector constants.
26036 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
26037 (legitimate_reload_vector_constant_p): New function.
26038 (s390_preferred_reload_class): Handle CONST_VECTOR.
26039 (s390_reload_symref_address): Likewise.
26040 (s390_secondary_reload): Vector memory instructions only support
26041 short displacements. Rename reload*_nonoffmem* to reload*_la*.
26042 (s390_emit_ccraw_jump): New function.
26043 (s390_expand_vec_strlen): New function.
26044 (s390_expand_vec_compare): New function.
26045 (s390_expand_vcond): New function.
26046 (s390_expand_vec_init): New function.
26047 (s390_dwarf_frame_reg_mode): New function.
26048 (print_operand): Handle addresses with 'O' and 'R' constraints.
26049 (NR_C_MODES, constant_modes): Add vector modes.
26050 (s390_output_pool_entry): Handle vector constants.
26051 (s390_hard_regno_mode_ok): Handle vector registers.
26052 (s390_class_max_nregs): Likewise.
26053 (s390_cannot_change_mode_class): New function.
26054 (s390_invalid_arg_for_unprototyped_fn): New function.
26055 (s390_function_arg_vector): New function.
26056 (s390_function_arg_float): Remove size variable.
26057 (s390_pass_by_reference): Handle vector arguments.
26058 (s390_function_arg_advance): Likewise.
26059 (s390_function_arg): Likewise.
26060 (s390_return_in_memory): Vector values are returned in a VR if
26062 (s390_function_and_libcall_value): Handle vector arguments.
26063 (s390_gimplify_va_arg): Likewise.
26064 (s390_call_saved_register_used): Consider the arguments named.
26065 (s390_conditional_register_usage): Disable v16-v31 for non-vec
26067 (s390_preferred_simd_mode): New function.
26068 (s390_support_vector_misalignment): New function.
26069 (s390_vector_alignment): New function.
26070 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
26071 (TARGET_VECTOR_MODE_SUPPORTED_P)
26072 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
26073 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26074 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
26075 (TARGET_VECTOR_ALIGNMENT): Define target macro.
26076 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
26077 (FIRST_PSEUDO_REGISTER): Increase value.
26078 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
26079 (VECTOR_REG_P): Define macros.
26080 (FIXED_REGISTERS, CALL_USED_REGISTERS)
26081 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
26082 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
26083 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
26084 Add vector registers.
26085 (CANNOT_CHANGE_MODE_CLASS): Call C function.
26086 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
26087 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
26089 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
26090 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
26091 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
26092 (VR*_REGNUM): New constants.
26093 (ALL): New mode iterator.
26094 (INTALL): Remove mode iterator.
26096 (movti): Implement TImode moves for VRs.
26097 Disable TImode splitter for VR targets.
26098 Implement splitting TImode GPR<->VR moves.
26099 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
26100 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
26101 reload<mode>_la_in, reload<mode>_la_out.
26102 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
26103 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
26104 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
26105 (mov<mode> SF SD): Prefer lder, lde for loading.
26106 Add lrl and strl instructions.
26107 Add vector instructions.
26108 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
26109 Call s390_expand_vec_strlen on z13.
26110 (*cc_to_int): Change predicate to nonimmediate_operand.
26111 (addti3): Rename to *addti3. New expander.
26112 (subti3): Rename to *subti3. New expander.
26113 * config/s390/vector.md: New file.
26115 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26117 * common/config/s390/s390-common.c (processor_flags_table): Add
26119 * config.gcc: Add z13.
26120 * config/s390/s390-opts.h (enum processor_type): Add
26121 PROCESSOR_2964_Z13.
26122 * config/s390/s390.c (s390_adjust_priority): Check for
26123 PROCESSOR_2964_Z13.
26124 (s390_reorg): Likewise.
26125 (s390_sched_reorder): Likewise.
26126 (s390_sched_variable_issue): Likewise.
26127 (s390_loop_unroll_adjust): Likewise.
26128 (s390_option_override): Likewise. Default to -mvx when available.
26129 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
26130 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
26131 (TARGET_VX_ABI): Define macros.
26133 (TARGET_DEFAULT): Add MASK_OPT_VX.
26134 * config/s390/s390.md ("cpu" attribute): Add z13.
26135 ("cpu_facility" attribute): Add vec.
26136 * config/s390/s390.opt (processor_type): Add z13.
26137 (mvx): New options.
26138 * doc/invoke.texi: Add z13 option for -march.
26140 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26142 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
26143 mode check to make sure that only scalar integer values are
26146 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
26148 * tree.c (verify_type_variant): Fix #undef.
26149 (gimple_canonical_types_compatible_p): Move here from lto.c
26150 (verify_type): Verify TYPE_CANONICAL compatibility.
26151 * tree.h (gimple_canonical_types_compatible_p): Declare.
26153 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26155 PR middle-end/66199
26156 * tree.h (OMP_TEAMS_COMBINED): Define.
26157 * gimplify.c (enum gimplify_omp_var_data): Add
26158 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26159 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26160 (omp_notice_variable): Accept both ORT_TEAMS
26161 and ORT_COMBINED_TEAMS. Don't recurse if
26162 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26163 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26165 (omp_no_lastprivate): New function.
26166 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26167 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26168 notice_outer and set appropriate bits, otherwise make
26169 sure default(none) combined constructs won't complain.
26170 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26171 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26172 omp_no_lastprivate either remove the clause or turn it
26173 into OMP_CLAUSE_PRIVATE.
26174 (gimplify_omp_for): Fix up handling of implicit
26175 lastprivate or linear iterators.
26176 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26177 ORT_COMBINED_TEAMS.
26178 * omp-low.c (lower_omp_for_lastprivate): For combined
26179 for simd use fd.loop.n2 from the for rather than simd.
26181 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26183 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26184 instead of gen_rtx_raw_REG.
26185 (cris_expand_epilogue): Likewise.
26186 * config/microblaze/microblaze.c (microblaze_classify_address):
26188 * config/sparc/sparc.md: Likewise.
26190 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
26192 * config/alpha/alpha.c (alpha_legitimize_reload_address)
26193 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26194 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26195 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26196 Use CASE_CONST_SCALAR_INT.
26197 (print_operand) <case 'M'>: Use mode_width_operand to check the
26198 value of the constant.
26199 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26200 * config/alpha/predicates.md (input_operand): Use general_operand
26201 instead of match_code as operand check.
26202 (symbolic_operand): Use match_code with subexpression digits.
26203 * config/alpha/constraints.md (Q): Ditto.
26205 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26207 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26209 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26211 * config/s390/s390.c (s390_secondary_reload): Fix check for
26212 load/store relative.
26214 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26216 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
26217 alternative_mask to uint64_t.
26219 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26221 PR tree-optimization/66187
26222 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26223 Pass TYPE_SIGN to tree_int_cst_min_precision. If
26224 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26226 2015-05-19 David Malcolm <dmalcolm@redhat.com>
26228 * diagnostic.c (diagnostic_report_current_module): Strengthen
26229 local "new_map" from const line_map * to
26230 const line_map_ordinary *.
26231 * genmatch.c (error_cb): Likewise for local "map".
26232 (output_line_directive): Likewise for local "map".
26233 * input.c (expand_location_1): Likewise for local "map".
26234 Pass NULL rather than &map to
26235 linemap_unwind_to_first_non_reserved_loc, since the value is never
26236 read from there, and the value written back not read from here.
26237 (is_location_from_builtin_token): Strengthen local "map" from
26238 const line_map * to const line_map_ordinary *.
26239 (dump_location_info): Strengthen locals "map" from
26240 line_map *, one to const line_map_ordinary *, the other
26241 to const line_map_macro *.
26242 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26243 const line_map * to const line_map_macro *.
26244 (maybe_unwind_expanded_macro_loc): Add a call to
26245 linemap_check_macro when writing to the "map" field of the
26247 Introduce local const line_map_ordinary * "ord_map", using it in
26248 place of "map" in the part of the function where we know we have
26249 an ordinary map. Strengthen local "m" from const line_map * to
26250 const line_map_ordinary *.
26252 2015-05-19 Nick Clifton <nickc@redhat.com>
26255 * config/msp430/msp430.md (zero_extendhisi2): Add support for
26256 separate source and destination registers.
26258 2015-05-19 Richard Biener <rguenther@suse.de>
26260 PR tree-optimization/66165
26261 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26262 for no load permutation.
26264 PR tree-optimization/66185
26265 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26266 when building the SLP node from scalars.
26268 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26269 Tristan Gingold <gingold@adacore.com>
26271 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26272 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26273 (expand_stack_restore): Call record_new_stack_level.
26274 (expand_stack_save): Do not call do_pending_stack_adjust.
26275 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26276 * calls.c (expand_call): Call record_new_stack_level for alloca.
26277 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26278 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26279 (update_sjlj_context): New global function.
26280 * except.h (update_sjlj_context): Declare.
26281 * explow.c (record_new_stack_level): New global function.
26282 (allocate_dynamic_stack_space): Call record_new_stack_level.
26283 * explow.h (record_new_stack_level): Declare.
26284 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26285 * cfgrtl.c (duplicate_insn_chain): Likewise.
26287 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26289 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26290 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26291 STACK_GROWS_DOWNWARD as normal if.
26292 (expand_call): Likewise.
26294 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
26297 * config/sh/sh.md (*round_int_even): New insn_and_split and
26298 accompanying new unnamed split.
26300 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26302 * bitmap.c (bitmap_set_range): Handle count==1 specially.
26303 (bitmap_clear_range): Likewise.
26304 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26305 bitmap_set_range unconditionally.
26306 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26307 * df-scan.c (df_mark_reg): Likewise.
26308 * haifa-sched.c (setup_ref_regs): Likewise.
26309 * sched-rgn.c (update_live_1): Likewise.
26311 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26313 * regs.h (END_HARD_REGNO): Delete.
26314 (END_REGNO): Move to...
26316 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26317 * caller-save.c (mark_set_regs): Likewise.
26318 * combine.c (move_deaths, distribute_notes): Likewise.
26319 * cse.c (invalidate, invalidate_for_call): Likewise.
26320 * df-scan.c (df_ref_record): Likewise.
26321 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26322 (record_last_reg_set_info): Likewise.
26323 * reg-stack.c (convert_regs_exit): Likewise.
26324 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26325 * resource.c (update_live_status): Likewise.
26326 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26328 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26330 * rtl.h (reg_info): Add an nregs field.
26331 (REG_NREGS): Use it.
26332 (SET_REGNO_RAW): Delete.
26333 (set_regno_raw): New function.
26334 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26335 (END_REGNO): Redefine in terms of REG_NREGS.
26336 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26338 * emit-rtl.c (set_mode_and_regno): Likewise.
26339 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26340 instead of SET_REGNO_RAW.
26342 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26344 * rtl.h (PUT_MODE_RAW): New macro.
26345 (PUT_REG_NOTE_KIND): Use it.
26346 (set_mode_and_regno): Declare.
26347 (gen_raw_REG): Change regno to "unsigned int".
26348 (gen_rtx_REG): Change "unsigned" to "unsigned int".
26349 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26350 use set_mode_and_regno to change the mode of registers.
26351 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26352 * emit-rtl.c (set_mode_and_regno): New function.
26353 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
26354 * caller-save.c (reg_save_code): Use set_mode_and_regno.
26355 * expr.c (init_expr_target): Likewise.
26356 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26357 * postreload.c (reload_cse_simplify_operands): Likewise.
26359 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26361 * caller-save.c (init_caller_save): Use word_mode and
26362 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26363 * expr.c (init_expr_target): Likewise.
26364 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26365 * postreload.c (reload_cse_regs_1): Likewise.
26367 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26369 * rtl.def (REG): Change format to "r".
26370 * rtl.h (rtunion): Remove rt_reg.
26371 (reg_info): New structure.
26372 (rtx_def): Add reg field to main union.
26373 (X0REGATTR): Delete.
26374 (REG_CHECK): New macro.
26375 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26376 * rtl.c (rtx_format): Document "r".
26377 (rtx_code_size): Handle REG specially.
26378 * gengenrtl.c (special_format): Return true for formats
26380 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26381 Deal with REG_ATTRS after the field loop.
26382 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26383 * expmed.c (init_expmed): Call gen_raw_REG instead of
26385 * expr.c (init_expr_target): Likewise.
26386 * regcprop.c (maybe_mode_change): Likewise.
26387 * varasm.c (make_decl_rtl): Likewise.
26388 * final.c (leaf_renumber_regs_insn): Return early after
26390 * genemit.c (gen_exp): Handle 'r' fields.
26391 * genpeep.c (match_rtx): Likewise.
26392 * gensupport.c (subst_pattern_match): Likewise.
26393 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26394 (alter_constraints, subst_dup): Likewise.
26395 * read-rtl.c (read_rtx_code): Likewise.
26396 * print-rtl.c (print_rtx): Likewise.
26397 * genrecog.c (find_operand, find_matching_operand): Likewise.
26398 (validate_pattern, match_pattern_2): Likewise.
26399 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26400 (rtx_test::regno_field): New function.
26401 (operator ==, safe_to_hoist_p, transition_parameter_type)
26402 (parameter_type_string, print_parameter_value)
26403 (print_nonbool_test, print_test): Handle new enum values.
26404 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26405 * lra-constraints.c (operands_match_p): Likewise.
26407 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26409 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26410 Change type of new_regno to unsigned int.
26411 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26412 new_regno to unsigned int.
26413 (df_ref_change_reg_with_loc): Remove old_regno parameter.
26414 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
26415 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26416 (SET_REGNO_RAW): Add space after ",".
26418 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26420 * rtl.h (REG_NREGS): New macro
26421 * alias.c (record_set): Use it.
26422 * cfgcleanup.c (mark_effect): Likewise.
26423 * combine.c (likely_spilled_retval_1): Likewise.
26424 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26425 (move_deaths, distribute_notes): Likewise.
26426 * cselib.c (cselib_record_set): Likewise.
26427 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26428 * df-scan.c (df_mark_reg): Likewise.
26429 * dse.c (look_for_hardregs): Likewise.
26430 * dwarf2out.c (reg_loc_descriptor): Likewise.
26431 (multiple_reg_loc_descriptor): Likewise.
26432 * expr.c (write_complex_part, read_complex_part): Likewise.
26433 (emit_move_complex): Likewise.
26434 * haifa-sched.c (setup_ref_regs): Likewise.
26435 * ira-lives.c (mark_hard_reg_live): Likewise.
26436 * lra.c (lra_set_insn_recog_data): Likewise.
26437 * mode-switching.c (create_pre_exit): Likewise.
26438 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26439 (reload_combine_recognize_pattern): Likewise.
26440 (reload_combine_note_use, move2add_record_mode): Likewise.
26441 (reload_cse_move2add): Likewise.
26442 * reg-stack.c (subst_stack_regs_pat): Likewise.
26443 * regcprop.c (kill_value, copy_value): Likewise.
26444 (copyprop_hardreg_forward_1): Likewise.
26445 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26446 (build_def_use): Likewise.
26447 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26448 (deps_analyze_insn): Likewise.
26449 * sched-rgn.c (check_live_1, update_live_1): Likewise.
26450 * sel-sched.c (count_occurrences_equiv): Likewise.
26451 * valtrack.c (dead_debug_insert_temp): Likewise.
26453 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26455 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26456 * dse.c (note_add_store): Likewise.
26457 * ira-lives.c (mark_hard_reg_dead): Likewise.
26458 * loop-invariant.c (mark_reg_store): Likewise.
26459 (mark_reg_death): Likewise.
26460 * postreload.c (reload_combine): Likewise.
26461 (reload_combine_note_store): Likewise.
26462 (reload_combine_note_use): Likewise.
26463 * recog.c (peep2_reg_dead_p): Likewise.
26465 2015-05-19 Alan Modra <amodra@gmail.com>
26467 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26468 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26469 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26471 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26472 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
26473 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26474 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26476 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
26478 * config/mips/mips.md (JOIN_MODE): New mode iterator.
26479 (join2_load_Store<JOIN_MODE:mode>): New pattern.
26480 (join2_loadhi): Likewise.
26481 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26482 load-load and store-stores.
26483 * config/mips/mips.opt (mload-store-pairs): New option.
26484 (TARGET_LOAD_STORE_PAIRS): New macro.
26485 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26486 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26487 * config/mips/mips.c (mips_load_store_bonding_p): New function.
26489 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
26491 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26493 * dojump.c (do_compare_rtx_and_jump): Likewise.
26494 * expmed.c (emit_store_flag_1): Likewise.
26495 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26496 * final.c (sprint_ul): Use std::reverse for reversing a string.
26497 * fold-const.c (extract_muldiv_1): Use std::swap.
26498 * genmodes.c (emit_mode_int_n): Likewise.
26499 * ifcvt.c (dead_or_predicable): Likewise.
26500 * ira-build.c (ira_merge_live_ranges): Likewise.
26501 (swap_allocno_copy_ends_if_necessary): Likewise.
26502 * ira.c (ira_setup_alts): Likewise.
26503 * loop-iv.c (iv_analyze_expr): Likewise.
26504 (implies_p): Likewise.
26505 (canon_condition): Likewise.
26506 * lra-constraints.c (swap_operands): Likewise.
26507 * lra-lives.c (lra_merge_live_ranges): Likewise.
26508 * omega.c (swap): Remove.
26510 (omega_unprotect_1): Use std::swap.
26511 (omega_solve_geq): Likewise.
26512 * optabs.c (expand_binop_directly): Likewise.
26513 (expand_binop): Likewise.
26514 (emit_conditional_move): Likewise.
26515 (emit_conditional_add): Likewise.
26516 * postreload.c (reload_cse_simplify_operands): Likewise.
26517 * reg-stack.c (emit_swap_insn): Likewise.
26518 (swap_to_top): Likewise.
26519 (compare_for_stack_reg): Likewise.
26520 (subst_asm_stack_regs): Likewise.
26521 * reload.c (find_reloads): Likewise.
26522 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26523 * sel-sched.c (invoke_reorder_hooks): Likewise.
26524 (create_block_for_bookkeeping): Likewise.
26525 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26526 (lambda_matrix_right_hermite): Use std::swap.
26527 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26528 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26529 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26530 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26531 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26532 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26533 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26534 * tree-vrp.c (compare_ranges): Likewise.
26535 * var-tracking.c (add_with_sets): Likewise.
26536 (vt_find_locations): Likewise.
26538 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
26540 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26542 (FBSD_ENDFILE_SPEC): Likewise.
26543 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26544 config/freebsd-spec.h.
26545 (ENDFILE_SPEC): Likewise.
26547 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
26548 Richard Henderson <rth@redhat.com>
26551 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26552 Check for a memory location that is not a reference (using an AND)
26553 to an unaligned location here.
26554 * config/alpha/predicates.md (normal_memory_operand): Remove.
26556 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
26558 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26559 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26561 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
26563 * config/mips/mips.c (micromips_globals): New variable.
26564 (mips_set_compression_mode): Save and reinitialize target-dependent
26565 state for microMIPS.
26567 2015-05-18 Martin Liska <mliska@suse.cz>
26569 * dbgcnt.def: Add new counter.
26570 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26572 2015-05-18 Martin Liska <mliska@suse.cz>
26574 * dbgcnt.def: Sort counters.
26575 * opts.c (common_handle_option): Do not compile if
26576 -fdbg-cnt-list is enabled.
26578 2015-05-18 Tom de Vries <tom@codesourcery.com>
26580 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26581 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
26582 address operator to va_list operand.
26583 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26585 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26587 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26588 * config/s390/s390.c (s390_gimplify_va_arg): Same.
26589 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26591 2015-05-18 Tom de Vries <tom@codesourcery.com>
26593 * tree-ssa-tail-merge.c: Fix whitespace.
26595 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
26597 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26598 cortex-a17, and cortex-a17.cortex-a7.
26600 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
26603 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26605 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
26608 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26609 QImode inner modes for TARGET_AVX512BW. Force mask operand
26610 to a register for AVX512F modes.
26612 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26614 * toplev.c (emit_debug_global_declarations): Do not output debug info
26615 when doing slim LTO objects.
26617 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26619 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26620 odr_types_equivalent_p): Declare.
26621 (odr_type_p): Use gcc_checking_assert.
26622 (type_in_anonymous_namespace_p) Declare.
26623 (type_with_linkage_p): Declare.
26624 * common.opt (Wlto-type-mismatch): New warning.
26625 * ipa-devirt.c (compound_type_base): New function.
26626 (odr_or_derived_type_p): New function.
26627 (odr_types_equivalent_p): New function.
26628 (add_type_duplicate): Simplify.
26629 (type_with_linkage_p): Add hack to prevent false positives on C types
26630 (type_in_anonymous_namespace_p): Likewise.
26631 * tree.c (need_assembler_name_p): Use type_with_linkage.
26632 * tree.h (type_in_anonymous_namespace_p): Remove.
26633 * doc/invoke.texi (-Wlto-type-mismatch): Document
26635 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26637 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26638 (verify_type): Verify STRING_FLAG.
26640 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
26643 * tree-pretty-print.c (percent_K_format): Replace locus pointer
26644 with accessor function.
26645 * tree-diagnostic.c (diagnostic_report_current_function): Use
26646 diagnostic_location function.
26647 (maybe_unwind_expanded_macro_loc): Likewise.
26648 (virt_loc_aware_diagnostic_finalizer): Likewise.
26649 (default_tree_printer): Replace locus pointer with accessor function.
26650 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26651 (diagnostic_set_info_translated): Initialize second location.
26652 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26653 (diagnostic_show_locus): Handle two locations. Call
26654 diagnostic_print_caret_line.
26655 (diagnostic_print_caret_line): New.
26656 (default_diagnostic_starter): Use diagnostic_location function.
26657 (diagnostic_report_diagnostic): Use diagnostic_location function.
26658 (verbatim): Do not set text.locus.
26659 * diagnostic.h (struct diagnostic_info): Remove location field.
26660 (struct diagnostic_context): Make caret_chars an array of two.
26661 (diagnostic_location): New inline.
26662 (diagnostic_expand_location): Handle two locations.
26663 (diagnostic_same_line): New inline.
26664 (diagnostic_print_caret_line): Declare.
26665 (CARET_LINE_MARGIN): New constant.
26666 * pretty-print.c (pp_printf): Do not set text.locus.
26667 (pp_verbatim): Do not set text.locus.
26668 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26669 (struct text_info): Replace locus pointer with locations
26670 array. Add accessor functions.
26672 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
26673 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26676 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26677 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26678 large constants in register instead of splitting them.
26680 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
26683 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26684 replacements in memory addresses.
26685 (get_unaligned_address): Ditto.
26687 2015-05-16 James Bowman <james.bowman@ftdichip.com>
26689 * config/ft32/*: New files for FT32 port.
26690 * doc/install.texi: Add FT32 information.
26691 * doc/invoke.texi: Add FT32 information.
26692 * doc/md.texi: Add FT32 information.
26693 * doc/contrib.texi: Self added.
26695 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
26697 PR tree-optimization/64454
26698 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26699 (-1 - A -> ~A): Remove unnecessary condition.
26701 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
26703 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26704 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26705 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26707 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
26709 * ipa-chkp.h (chkp_wrap_function): New.
26710 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26711 (chkp_wrap_function_name): New.
26712 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26713 to get wrapper name.
26714 * lto-cgraph.c: Include ipa-chkp.h.
26715 (input_cgraph_1): Avoid alias chain for wrappers.
26717 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26719 PR middle-end/66134
26720 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26721 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26723 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26725 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26726 (AARCH64_FL_SLOWMUL): Delete.
26727 (AARCH64_FL_CRC): Redefine to 1<<3.
26728 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26730 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26732 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26735 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26737 * config/alpha/alpha.md (extendqidi2): Use general_operand
26738 instead of some_operand for operand[1] predicate.
26739 (extendhidi2): Ditto.
26740 (cbranchdi4): Use general_operand instead of some_operand
26741 for operand[1] and operands[2] predicates.
26742 (cstoredi4): Ditto.
26743 * config/alpha/predicates.md (some_operand): Remove unused predicate.
26744 (some_ni_operand): Ditto.
26746 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26748 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26749 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
26750 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26751 low part of the constant using alpha_emit_set_const_1.
26752 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26754 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
26756 * varasm.c (output_constant_pool_1): Pass down alignment from
26757 constant pool entry's descriptor to output_constant_pool_2.
26758 (output_object_block): Add comment prior to call to
26759 output_constant_pool_1.
26761 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
26763 PR rtl-optimization/65862
26764 * target.def (ira_change_pseudo_allocno_class): New hook.
26765 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26767 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26768 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26770 * ira-costs.c (find_costs_and_classes): Call the hook and change
26771 classes when it is necessary.
26772 * doc/tm.texi: Update.
26774 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
26776 * config/i386/i386.md (sibcall_memory): Check that register with
26777 callee address is not also used as one of the arguments, instead
26778 of checking that it is not live after the sibcall.
26779 (sibcall_pop_memory): Ditto.
26780 (sibcall_value_memory): Ditto.
26781 (sibcall_value_pop_memory): Ditto.
26783 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
26785 * generic-match-head.c (types_match): Handle non-types.
26786 * gimple-match-head.c (types_match): Likewise.
26787 * match.pd: Remove unnecessary TREE_TYPE for types_match.
26789 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
26791 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26792 (csneg3<mode>_insn): Enable expansion of pattern.
26794 2015-05-14 Nick Clifton <nickc@redhat.com>
26796 * config/rl78/rl78.c (rl78_select_section): Select the correct
26797 default section based upon the category of the decl.
26799 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26801 PR rtl-optimization/30967
26802 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26803 destination mode for the cost of scc patterns.
26805 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26807 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26808 using SWIM248 mode iterator.
26809 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26810 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
26811 for operand[2] constraint.
26812 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26814 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26816 PR middle-end/66133
26817 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26818 make sure it is never noreturn, even when the task body does not
26820 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26821 right before GIMPLE_OMP_RETURN.
26822 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26823 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
26824 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26826 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26828 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26829 * tree-ssa-math-opts.c: Include params.h
26830 (pow_synth_sqrt_info): New struct.
26831 (representable_as_half_series_p): New function.
26832 (get_fn_chain): Likewise.
26833 (print_nested_fn): Likewise.
26834 (dump_fractional_sqrt_sequence): Likewise.
26835 (dump_integer_part): Likewise.
26836 (expand_pow_as_sqrts): Likewise.
26837 (gimple_expand_builtin_pow): Use above to attempt to expand
26838 pow as series of square roots. Removed now unused variables.
26840 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26842 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26843 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26844 Remove *p0 and *p1 arguments. Rewrite function.
26845 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26846 (alpha_split_const_mov): Update calls to alpha_extract_integer and
26847 alpha_emit_set_long_const.
26848 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26849 (alpha_output_mi_thunk_osf): Ditto.
26850 * config/alpha/alpha.md (movti): Do not check operands[1]
26853 2015-05-13 Richard Biener <rguenther@suse.de>
26855 PR tree-optimization/66129
26856 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26858 (vect_schedule_slp_instance): Fix typo.
26860 2015-05-13 David Malcolm <dmalcolm@redhat.com>
26862 * common.opt (fdump-internal-locations): New option.
26863 * input.c: Include diagnostic-core.h.
26864 (get_end_location): New function.
26865 (write_digit): New function.
26866 (write_digit_row): New function.
26867 (dump_location_range): New function.
26868 (dump_labelled_location_range): New function.
26869 (dump_location_info): New function.
26870 * input.h (dump_location_info): New prototype.
26871 * toplev.c (compile_file): Handle flag_dump_locations.
26873 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
26875 * gimple-expr.h (is_gimple_constant): Reorder.
26876 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26878 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26880 * combine.c (simplify_set): When generating a CC set, if the
26881 source already is in the correct mode, do not wrap it in a
26882 compare. Simplify the rest of that code.
26884 2015-05-13 Richard Biener <rguenther@suse.de>
26886 PR tree-optimization/66123
26887 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26890 2015-05-13 Richard Biener <rguenther@suse.de>
26892 PR middle-end/66110
26893 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26895 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26897 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26899 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26900 * aclocal.m4: Regenerated with automake-1.11.6.
26902 2015-05-13 Tom de Vries <tom@codesourcery.com>
26904 PR tree-optimization/66010
26905 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26906 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26907 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
26908 and rval based on do_deref.
26910 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26913 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26914 link time constants into adress expressions and therefore set
26917 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26920 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26921 Use SWI248 iterator instead of SWI.
26922 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
26923 Use eq_attr "alternative" "0" instead of match_test in
26924 length_immediate attribute computation.
26925 (*mulvhi4, *mulvhi4_1): New define_insns.
26928 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26929 SIGNED to get precision of non-negative value.
26931 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26934 * function.c (diddle_return_value_1): Process bounds first.
26935 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26938 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26940 PR rtl-optimization/64616
26941 * loop-invariant.c (can_move_invariant_reg): New.
26942 (move_invariant_reg): Call above new function to decide whether
26943 instruction can just be moved, skipping creation of temporary
26946 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26948 PR target/pr66047.c
26949 * i386.c (ix86_function_sseregparm): Only return -1 if local function
26950 with implied regparm is called from -mno-sse function.
26951 (init_cumulative_args): Output error if ix86_function_sseregparm
26952 return -1 and SSE register would be needed.
26953 (function_arg_advance_32): Likewise.
26954 (function_arg_32): Likewise.
26955 * i386.h (ix86_args): Add decl field.
26957 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26960 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26961 inlines across optimization boundary.
26963 2015-05-12 Jason Merrill <jason@redhat.com>
26965 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26966 string literal and macro name.
26968 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
26970 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26971 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26972 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26974 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26976 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26977 (-Wmisleading-indentation): New option.
26978 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26980 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
26982 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26983 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26984 (alpha_extract_integer): Ditto.
26985 (alpha_legitimate_constant_p): Ditto.
26986 (alpha_split_tmode_pair): Ditto.
26987 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26988 (alpha_expand_mov): Ditto.
26989 (print_operand): Remove handling of 'H' modifier.
26990 <case 'm'>: Remove CONST_DOUBLE handling.
26991 (summarize_insn): Handle CONST_WIDE_INT.
26992 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26994 (movti): Handle CONST_WIDE_INT.
26995 * config/alpha/constraints.md ('H'): Remove constraint definition.
26996 ('G'): Do not match MODE_FLOAT class.
26997 * config/alpha/predicates.md (const0_operand): Also match
26999 (non_add_const_operand): Ditto.
27000 (non_zero_const_operand): Ditto.
27001 (some_operand): Ditto.
27002 (input_operand): Ditto. Handle CONST_WIDE_INT.
27003 (and_operand): Do not match const_double.
27004 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
27006 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
27009 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
27010 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
27011 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
27012 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
27013 is_mm_seq_cst, is_mm_sync): New accessor functions.
27014 * builtins.c (expand_builtin_sync_operation,
27015 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
27016 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
27017 (get_memmodel, expand_builtin_atomic_compare_exchange,
27018 expand_builtin_atomic_load, expand_builtin_atomic_store,
27019 expand_builtin_atomic_clear): Use new accessor routines.
27020 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
27021 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
27022 (maybe_emit_sync_lock_test_and_set): Use new accessors and
27023 MEMMODEL_SYNC_ACQUIRE.
27024 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
27025 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
27026 expand_atomic_store): Use new accessors.
27027 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
27028 * tsan.c (instrument_builtin_call): Update check for memory model beyond
27029 final enum to use MEMMODEL_LAST.
27030 * c-family/c-common.c: Use new accessor for memmodel_base.
27031 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
27033 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
27034 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
27035 mem_thread_fence, *dmb): Likewise.
27036 * config/alpha/alpha.c (alpha_split_compare_and_swap,
27037 alpha_split_compare_and_swap_12): Likewise.
27038 * config/arm/arm.c (arm_expand_compare_and_swap,
27039 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
27040 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
27041 atomic_loaddi): Likewise.
27042 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
27044 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
27045 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
27047 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
27048 atomic_store<mode>, atomic_compare_and_swap<mode>,
27049 atomic_exchange<mode>): Use new accessors.
27050 * config/mips/mips.c (mips_process_sync_loop): Likewise.
27051 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
27052 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
27053 rs6000_post_atomic_barrier): Add new cases.
27054 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
27055 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
27056 (atomic_load<mode>): Add new cases and use new accessors.
27057 (store_quadpti): Add new cases.
27058 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
27060 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
27061 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
27064 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27066 * ipa-devirt.c (type_with_linkage_p): New function.
27067 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
27069 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
27070 (can_be_name_hashed_p): Simplify.
27071 (hash_odr_name): Check that type has linkage before checking if it is
27073 (types_same_for_odr): Likewise.
27074 (odr_name_hasher::equal): Likewise.
27075 (odr_subtypes_equivalent_p): Likewise.
27076 (warn_types_mismatch): Likewise.
27077 (get_odr_type): Likewise.
27078 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
27079 * ipa-utils.h (odr_type_p): Move offline.
27080 * tree.c (need_assembler_name_p): Fix handling of types
27082 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
27084 2015-05-12 David Malcolm <dmalcolm@redhat.com>
27086 * timevar.c (timevar_enable): Delete in favor of...
27087 (g_timer): New global.
27088 (struct timevar_def): Move to timevar.h inside class timer.
27089 (struct timevar_stack_def): Likewise.
27090 (timevars): Delete global in favor of field "m_timevars" within
27091 class timer in timevar.h
27092 (stack): Likewise, in favor of field "m_stack".
27093 (unused_stack_instances): Likewise, in favor of field
27094 "m_unused_stack_instances".
27095 (start_time): Likewise, in favor of field "m_start_time".
27096 (get_time): Eliminate check for timevar_enable.
27097 (timer::timer): New function, built from part of timevar_init.
27098 (timevar_init): Rewrite idempotency test from using
27099 "timevar_enable" bool to using dynamic allocation of "g_timer".
27100 Move rest of implementation into timer's constructor.
27101 (timevar_push_1): Rename to...
27102 (timer::push): ...this, adding "m_" prefixes to variables that
27103 are now fields of timer.
27104 (timevar_pop_1): Likewise, rename to...
27105 (timer::pop): ...this, and add "m_" prefixes.
27106 (timevar_start): Replace test for "timevar_enable" with one for
27107 "g_timer", and move bulk of implementation to...
27108 (timer::start): ...here, adding "m_" prefixes.
27109 (timevar_stop): Likewise, from here...
27110 (timer::stop): ...to here.
27111 (timevar_cond_start): Likewise, from here...
27112 (timer::cond_start): ...to here.
27113 (timevar_cond_stop): Likewise, from here...
27114 (timer::cond_stop): ...to here.
27115 (validate_phases): Rename to...
27116 (timer::validate_phases): ...this, and add "m_" prefixes. Make
27117 locals "total" and "tv" const.
27118 (timevar_print): Rename to...
27119 (timer::print): ...this, and add "m_" prefixes. Make locals
27120 "total" and "tv" const. Eliminate test for timevar_enable.
27121 * timevar.h (timevar_enable): Eliminate.
27122 (g_timer): New declaration.
27123 (timevar_push_1): Eliminate.
27124 (timevar_pop_1): Eliminate.
27125 (timevar_print): Eliminate.
27126 (class timer): New class.
27127 (timevar_push): Rewrite to use g_timer.
27128 (timevar_pop): Likewise.
27129 * toplev.c (toplev::~toplev): Likewise.
27131 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
27133 * arm-protos.h (arm_sched_autopref): Delete.
27134 (tune_params): Re-organize, use enums for flag values.
27135 (FUSE_OPS): New macro.
27136 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
27137 (ARM_PREFETCH_BENEFICIAL): Likewise.
27138 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
27139 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
27140 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
27141 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
27142 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
27143 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
27144 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
27145 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
27147 (arm_option_override, thumb2_reorg, arm_print_tune_info)
27148 (aarch_macro_fusion_pair_p): Update uses of current_tune.
27149 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
27151 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
27153 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27156 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
27157 Sandra Loosemore <sandra@codesourcery.com>
27159 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27161 (REG_CLASS_NAMES): Add "IJMP_REGS".
27162 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27163 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27164 use new "c" register constraint.
27165 * config/nios2/constraint.md (c): New register constraint
27166 corresponding to IJMP_REGS.
27168 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27170 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27171 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27172 define_splits): Delete, revamp, transmogrify into ...
27173 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27174 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27175 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27178 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27180 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27181 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27183 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27185 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27186 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27187 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27188 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27189 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27190 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27191 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27192 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27193 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27194 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27195 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27196 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27197 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27198 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27199 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27200 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27201 and 30 corresponding splitters): Delete.
27203 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27205 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27208 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27210 * combine.c (recog_for_combine_1): New function, factored out
27211 from recog_for_combine.
27212 (change_zero_ext): New function.
27213 (recog_for_combine): If recog fails, try again with the pattern
27214 modified by change_zero_ext; if that still fails, restore the
27217 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27219 * combine.c (get_undo_marker): New function.
27220 (undo_to_marker): New function, largely factored out from ...
27221 (undo_all): ... this. Adjust.
27223 2015-05-12 Richard Biener <rguenther@suse.de>
27225 PR tree-optimization/66101
27226 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27227 fixup if we turn a loop exit edge to a fallthru edge.
27229 2015-05-12 Richard Biener <rguenther@suse.de>
27231 PR tree-optimization/37021
27232 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27233 (SLP_TREE_TWO_OPERATORS): New define.
27234 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27235 SLP_TREE_TWO_OPERATORS.
27236 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27238 (vect_build_slp_tree): Adjust.
27239 (vect_analyze_slp_cost_1): Likewise.
27240 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27241 emitting two vector stmts and mixing the results.
27243 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27245 * call.c (print_z_candidates): Remove dead code.
27247 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27249 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27250 and zEC12_simple_fp.
27251 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27254 2015-05-12 Tom de Vries <tom@codesourcery.com>
27256 PR tree-optimization/66010
27257 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27259 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27260 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
27261 va_lists are passed, and remove corresponding handling.
27262 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
27263 do_deref argument to ifn_va_arg.
27264 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27267 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27270 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27271 REG before taking its REGNO.
27273 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
27275 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27276 rsp->sign_bit_copies and rsp->nonzero_bits into ...
27277 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
27278 present to get more accurate information about the number of sign bit
27279 copies and non zero bits.
27281 2015-05-12 Richard Biener <rguenther@suse.de>
27283 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27284 do not allow unrolling.
27286 2015-05-11 Richard Henderson <rth@redhat.com>
27288 * config/i386/i386-modes.def (CCP): New.
27289 * config/i386/i386.c (put_condition_code): Handle it.
27290 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27292 2015-05-11 Richard Henderson <rth@redhat.com>
27294 * target.def (md_asm_clobbers): Replace with...
27295 (md_asm_adjust): this.
27296 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27297 (TARGET_MD_ASM_ADJUST): New.
27298 * tm.texi: Rebuild.
27299 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27300 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27301 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27303 * cfgexpand.c (check_operand_nalternatives): Accept vector of
27304 constraints instead of lists of outputs and inputs.
27305 (expand_asm_stmt): Save and restore input_location around the
27306 body of the function. Move asm data into vectors instead of
27307 building tree lists. Generate cleanup sequences as needed,
27308 rather than waiting til the end. Use new md_asm_adjust hook.
27310 * config/vxworks.c: Include vec.h before target.h.
27311 * gimple.c: Likewise.
27312 * incpath.c: Likewise.
27313 * mode-switching.c: Likewise.
27315 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27316 (cris_md_asm_adjust): this.
27317 (TARGET_MD_ASM_CLOBBERS): Remove.
27318 (TARGET_MD_ASM_ADJUST): New.
27319 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27320 (ix86_md_asm_adjust): this.
27321 (TARGET_MD_ASM_CLOBBERS): Remove.
27322 (TARGET_MD_ASM_ADJUST): New.
27323 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27324 (mn10300_md_asm_adjust): this.
27325 (TARGET_MD_ASM_CLOBBERS): Remove.
27326 (TARGET_MD_ASM_ADJUST): New.
27327 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27328 (rs6000_md_asm_adjust): this.
27329 (TARGET_MD_ASM_CLOBBERS): Remove.
27330 (TARGET_MD_ASM_ADJUST): New.
27331 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27332 (visium_md_asm_adjust): this.
27333 (TARGET_MD_ASM_CLOBBERS): Remove.
27334 (TARGET_MD_ASM_ADJUST): New.
27336 2015-05-11 Richard Henderson <rth@redhat.com>
27338 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27339 if noutputs is zero.
27340 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27342 * cfgexpand.c (expand_asm_operands): Merge into...
27343 (expand_asm_stmt): ... here.
27345 * cfgexpand.c (expand_asm_operands): Don't call
27346 resolve_asm_operand_names.
27347 * stmt.c (resolve_asm_operand_names): Clarify block comment.
27349 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
27351 * dwarf2out.c (gen_member_die): Sanity check that we access
27352 TYPE_MAIN_VARIANT for TYPE_METHODS.
27353 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27354 checking TYPE_METHODS.
27355 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27357 (build_distinct_type_copy): Clear TYPE_METHODS.
27358 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27359 (verify_type): Allow TYPE_METHODS to be error_mark_node.
27360 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27362 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
27364 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27365 (emit_pattern_before_setloc): Likewise.
27367 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27369 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27370 for define_peephole2s.
27371 (get_peephole2_pattern): New function.
27372 (main): Use it. Call validate_pattern.
27374 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27376 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27377 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27378 (Last callee saved reg is different for AVR_TINY architecture)
27380 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27382 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27383 when looking for memory references.
27385 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27388 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27389 via function pointers.
27391 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27393 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27394 indirect call by forcing address into a pseudo with -fno-plt.
27395 * common.opt (flag_plt): New option.
27396 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27397 ([-fno-plt]): Document.
27399 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
27402 * config/rs6000/option-defaults.h: Add space between string literal
27405 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27407 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27408 accross ARM targets.
27410 2015-05-11 Christian Bruel <christian.bruel@st.com>
27412 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27413 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27415 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27417 PR rtl-optimization/66076
27418 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27419 Don't grow the heap array if it is already big enough from a
27420 previous iteration.
27422 2015-05-11 Christian Bruel <christian.bruel@st.com>
27424 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27425 (is_called_in_ARM_mode): Remove.
27426 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27427 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27428 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27429 arm_declare_function_name.
27431 2015-05-11 Christian Bruel <christian.bruel@st.com>
27433 * config/arm/arm.c (arm_option_override): Reoganized and split into :
27434 (arm_option_params_internal); New function.
27435 (arm_option_check_internal): New function.
27436 (arm_option_override_internal): New function.
27437 (thumb_code, thumb1_code): Remove.
27438 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27439 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27440 (thumb_code, thumb1_code): Remove.
27441 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27443 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27445 * config/alpha/alpha.c (alpha_emit_set_const_1)
27446 (alpha_emit_set_long_const, alpha_extract_integer)
27447 (alpha_legitimate_constant_p, alpha_split_const_mov)
27448 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27449 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27450 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27452 * config/alpha/predicates.md (mode_mask_operand): Do not match
27454 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27455 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27456 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27457 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27458 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27460 2015-05-11 Jakub Jelinek <jakub@redhat.com>
27463 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27464 default_binds_local_p_2.
27465 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27466 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27468 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27470 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27472 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27474 Patch by Richard Biener
27475 * coverage.c (coverage_obj_init): Delay building of type variant
27476 until the type is finished.
27478 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27480 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27481 mismatch between C and C++ type; compoare correctly ARG_TYPES
27482 for non-prototypes and output correctly parameter index for METHOD_TYPE.
27483 (odr_types_equivalent_p): Fix wording of warning about attributes;
27484 it is OK to match prototype and non-prototype.
27486 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27488 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27489 TYPE_ARG_TYPES list.
27490 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27491 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27493 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27495 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27496 * tree.h (is_lang_specific): Constify.
27498 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
27500 PR tree-optimization/64454
27501 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27504 2015-05-08 Jason Merrill <jason@redhat.com>
27506 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27507 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27508 config/darwin.h, config/darwin9.h, config/elfos.h,
27509 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27510 config/microblaze/microblaze.h, config/mips/mips.h,
27511 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27512 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27513 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27514 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27515 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27516 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27517 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27518 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27519 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27520 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27521 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27522 between string literal and macro name.
27524 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27526 * jump.c: Change argument types to rtx_insn *.
27529 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27531 * lra-constraints.c: Change argument type to rtx_insn *.
27533 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27535 * df-problems.c: Change argument type to rtx_insn *.
27537 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27539 * combine.c: Change argument type to rtx_insn *.
27541 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27544 * rtlanal.c: Change argument type to rtx_insn *.
27546 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27548 * sched-deps.c: Change argument types to rtx_insn *.
27549 * sched-int.h: Adjust.
27551 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27553 * dwarf2cfi.c: Change argument type to rtx_insn *.
27555 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27557 * ira.c (decrease_live_ranges_number): Changetype of local
27558 variable to rtx_insn *.
27559 * recog.c: Change argument types to rtx_insn *.
27562 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27564 * reorg.c: Change argument types to rtx_insn *.
27566 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27568 * ira-color.c: Change argument types to rtx_insn *.
27569 * lra-eliminations.c: Likewise.
27572 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27574 * gcse.c: Change argument types to rtx_insn *.
27576 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27578 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27580 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27582 * emit-rtl.c (emit_debug_insn_before): Change argument type to
27586 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27588 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27591 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27593 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27596 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27598 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27601 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27603 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27606 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27608 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27612 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27614 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27618 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27620 * except.c (can_nonlocal_goto): Change type of argument to
27624 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27626 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27629 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27631 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27632 * cfgrtl.c (can_delete_label_p): Adjust.
27635 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27637 * reorg.c (stop_search_p): Change argument to rtx_insn *.
27639 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27641 * except.c (make_reg_eh_region_note): Change argument to
27643 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27644 * except.h: Adjust.
27646 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27648 * mode-switching.c (commit_mode_sets): Change type of local
27649 variable from rtx to rtx_insn *.
27651 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
27653 * doc/install.texi (--enable-languages): Add missing jit and lto info.
27654 Add ^ to grep command.
27655 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27656 arg to last gimple_simplify declaration. Add missing gimple_build
27657 declaration for built-in function case with four tree args.
27659 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27660 Szabolcs Nagy <szabolcs.nagy@arm.com>
27662 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27663 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27664 (GNU_USER_DYNAMIC_LINKERN32): Update.
27666 2015-05-08 Richard Biener <rguenther@suse.de>
27668 PR tree-optimization/66036
27669 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27670 Handle strided group loads.
27671 (vect_verify_datarefs_alignment): Likewise.
27672 (vect_enhance_data_refs_alignment): Likewise.
27673 (vect_analyze_group_access): Likewise.
27674 (vect_analyze_data_ref_access): Likewise.
27675 (vect_analyze_data_ref_accesses): Likewise.
27676 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27677 (vectorizable_load): Likewise.
27679 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
27681 * config/rs6000/rs6000.md: Require operand inequality in one
27684 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
27685 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27687 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27689 * config/rx/rx.md (movdi, movdf): Likewise.
27690 Likewise for define_peephole2s.
27692 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27694 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27695 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27696 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27697 vtst_u64): Rewrite using gcc vector extensions.
27699 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27701 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27702 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27704 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27706 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27708 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
27710 * config/glibc-stdint.h (OPTION_MUSL): Define.
27711 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27712 Change the definition based on OPTION_MUSL for 64 bit targets.
27713 * config/linux.h (OPTION_MUSL): Redefine.
27714 * config/alpha/linux.h (OPTION_MUSL): Redefine.
27715 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27716 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27718 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27719 Szabolcs Nagy <szabolcs.nagy@arm.com>
27721 * config.gcc (LIBC_MUSL): New tm_defines macro.
27722 * config/linux.h (OPTION_MUSL): Define.
27723 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27724 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27725 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27726 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27727 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27728 * config/linux.opt (mmusl): New option.
27729 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27730 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27731 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27732 * configure: Regenerate.
27734 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
27735 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27738 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27739 * config/i386/knetbsd-gnu64.h: New file.
27741 2015-05-08 Marek Polacek <polacek@redhat.com>
27744 * doc/invoke.texi: Document -Woverride-init-side-effects.
27746 2015-05-07 Marek Polacek <polacek@redhat.com>
27749 * doc/invoke.texi: Document -Wshift-negative-value.
27751 2015-05-06 Aditya Kumar <hiraditya@msn.com>
27753 * gcov-tool.c (do_merge): Refactore to remove int ret.
27754 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27755 !type == FUNC to type != FUNC.
27756 * reload.h (struct target_reload): Changee to type of
27757 x_spill_indirect_levels from bool to unsigned char.
27759 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
27761 * rtl.h (always_void_p): New function.
27762 * gengenrtl.c (always_void_p): Likewise.
27763 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27764 with code foo are always VOIDmode.
27765 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27766 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27767 compare-elim.c, config/aarch64/aarch64.c,
27768 config/aarch64/aarch64.md, config/alpha/alpha.c,
27769 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27770 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27771 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27772 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27773 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27774 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27775 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27776 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27777 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27778 config/ia64/vect.md, config/iq2000/iq2000.c,
27779 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27780 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27781 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27782 config/mep/mep.c, config/microblaze/microblaze.c,
27783 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27784 config/mn10300/mn10300.c, config/msp430/msp430.c,
27785 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27786 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27787 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27788 config/rs6000/altivec.md, config/rs6000/rs6000.c,
27789 config/rs6000/rs6000.md, config/rs6000/vector.md,
27790 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27791 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27792 config/sh/sh.md, config/sh/sh_treg_combine.cc,
27793 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27794 config/spu/spu.md, config/stormy16/stormy16.c,
27795 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27796 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27797 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27798 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27799 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27800 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27801 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27802 var-tracking.c: Update calls accordingly.
27804 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27807 PR middle-end/54303
27808 * varasm.c (function_mergeable_rodata_prefix): New function.
27809 (mergeable_string_section): Use it.
27810 (mergeable_constant_section): Use it.
27812 2015-05-07 Jeff Law <law@redhat.com>
27815 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27816 simplifier to narrow arithmetic.
27817 * generic-match-head.c: (types_match, single_use): New functions.
27818 * gimple-match-head.c: (types_match, single_use): New functions.
27820 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27822 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27825 2015-05-07 Richard Biener <rguenther@suse.de>
27827 PR tree-optimization/66002
27828 * passes.def: Schedule another pass_merge_phi after ifcombine, right
27831 2015-05-07 Marek Polacek <polacek@redhat.com>
27832 Martin Uecker <uecker@eecs.berkeley.edu>
27834 * doc/invoke.texi: Document -fsanitize=bounds-strict.
27835 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27836 into SANITIZE_NONDEFAULT.
27837 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27839 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
27842 * config/alpha/alpha.c (alpha_override_options_after_change): New.
27843 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27844 (alpha_override_options): Move align_loops, align_jumps and
27845 align_functions handling into alpha_override_options_after_change.
27847 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
27848 Chris Jones <chrisj@nvidia.com>
27849 Joshua Conner <jconner@nvidia.com>
27851 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27852 linking of crtfastmath.o.
27853 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27855 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27857 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27858 (cstore<mode>4_unsigned_imm): New expander.
27859 (cstore<mode>4): Remove empty constraint strings. Use the new
27862 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
27865 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27868 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
27870 * config/aarch64/geniterators.sh: Use standard BRE in sed.
27872 2015-05-06 Alan Modra <amodra@gmail.com>
27875 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27876 (UNSPEC_NOP): Define.
27877 (reload_vsx_from_gpr<mode>): Add missing DONE.
27878 (reload_gpr_from_vsx<mode>): Likewise.
27879 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27880 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27882 2015-05-06 Christian Bruel <christian.bruel@st.com>
27885 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27886 align_jumps, align_functions into aarch64_override_options_after_change.
27888 2015-05-06 Richard Biener <rguenther@suse.de>
27890 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27891 vect_transform_slp_perm_load to check if we support a permutation
27892 for basic-block vectorization.
27894 2015-05-06 Nick Clifton <nickc@redhat.com>
27896 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27897 used, even if it is not being used as a frame pointer.
27899 2015-05-05 Jason Merrill <jason@redhat.com>
27901 * dwarf2out.c (gen_member_die): Don't emit anything for an
27902 anonymous class constructor.
27904 2015-05-05 David Malcolm <dmalcolm@redhat.com>
27906 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27907 that it reflects the block structure.
27908 (afdo_propagate_edge): Likewise.
27909 (afdo_calculate_branch_prob): Likewise.
27910 (afdo_annotate_cfg): Likewise.
27911 * cfgcleanup.c (equal_different_set_p): Likewise.
27912 (try_crossjump_to_edge): Likewise.
27913 * cgraph.c (cgraph_node::verify_node): Likewise.
27914 * cgraphunit.c (expand_all_functions): Likewise.
27915 * config/i386/i386.c (ix86_expand_copysign): Likewise.
27916 (exact_dependency_1): Likewise.
27917 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27918 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27919 * gensupport.c (process_define_subst): Likewise.
27920 * lto-wrapper.c (merge_and_complain): Likewise.
27921 * tree-if-conv.c (if_convertible_bb_p): Likewise.
27922 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27923 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27924 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27925 * tree-vect-loop.c (vectorizable_reduction): Likewise.
27926 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27927 * tree-vect-stmts.c (vectorizable_shift): Likewise.
27928 * tree-vrp.c (vrp_finalize): Likewise.
27929 * tree.c (variably_modified_type_p): Likewise.
27931 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
27933 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27934 on darwin12 and later.
27935 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27936 file to pass -rdynamic on darwin12 and later.
27937 * config/darwin.opt (rdynamic): Add.
27939 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27941 * doc/extend.texi (C Extensions): Update menu for moved Variable
27942 Attributes and Type Attributes sections.
27944 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27947 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27948 if rep_8byte stringop strategy was specified for 32-bit target.
27950 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
27953 * config/i386/i386.md (vector convert to float spltiter): Check for
27954 xmm16+, when splitting scalar float conversion.
27955 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27957 2015-05-05 Nick Clifton <nickc@redhat.com>
27959 * config/msp430/msp430-opts.h (enum msp430_regions): New.
27960 * config/msp430/msp430.c (msp430_override_options): Complain if
27961 -mcode-region or -mdata-region is used on a non MSP430X.
27962 (msp430_section_attr): New function. Checks lower, upper and
27964 (msp430_attribute_table): Add lower, upper and either.
27965 (gen_prefix): New function. Generates a prefix for a section
27967 (msp430_select_section): New function - handles the choice of
27968 section for an object. Takes into account memory region
27969 attributes and options.
27970 (msp430_function_section): Use gen_prefix.
27971 (TARGET_SECTION_TYPE_FLAGS): Define.
27972 (msp430_section_type_flags): New function.
27973 (TARGET_ASM_UNIQUE_SECTION): Define.
27974 (msp430_unique_section): New function.
27975 (msp430_output_aligned_decl_common): New function.
27976 (msp430_do_not_relax_short_jumps): New function.
27977 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27979 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27980 * config/msp430/msp430-protos.h
27981 (msp430_do_not_relax_short_jumps): New prototype.
27982 (msp430_output_aligned_decl_common): New prototype.
27983 * config/msp430/msp430.md (length): New attribute.
27984 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27985 then use a long code sequence for short jumps.
27986 * config/msp430/msp430.opt (mcode-region): New.
27987 (mdata-region): New.
27988 * doc/invoke.texi: Document new options.
27989 * doc/extend.texi: Document new attributes.
27991 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27993 * config/aarch64-protos.h (struct cpu_branch_cost): New.
27994 (tune_params): Add field branch_costs.
27995 (aarch64_branch_cost): Declare.
27996 * config/aarch64.c (generic_branch_cost): New.
27997 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27998 (cortexa53_tunings): Likewise.
27999 (cortexa57_tunings): Likewise.
28000 (thunderx_tunings): Likewise.
28001 (xgene1_tunings): Likewise.
28002 (aarch64_branch_cost): Define.
28003 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
28005 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28007 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
28008 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
28009 * config/i386/i386.md: Ditto.
28010 * config/i386/winnt.c: Ditto.
28012 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
28014 * doc/extend.texi (__atomic Builtins): Move implementation details
28015 to the end of the description, rewrite opening paragraphs, state
28016 difference with __sync builtins, state C11/C++11 assumptions,
28017 weaken itemized descriptions, add explanation of memory model
28018 behaviour, expand description of compare-exchange, simplify text.
28020 2015-05-05 Renlin Li <renlin.li@arm.com>
28022 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
28024 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
28026 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
28027 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28028 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
28029 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28030 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
28031 * configure: Regenerate.
28032 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
28033 * doc/install.texi (aarch64*-*-*): Document new
28034 --enable-fix-cortex-a53-843419 option.
28035 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
28036 and -mno-fix-cortex-a53-843419 options.
28038 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28041 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
28043 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
28045 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
28046 fix overactive TYPE_MIN_VALUE check and add FIXME for type
28047 compatibility problems.
28049 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
28051 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
28053 (cbranchsi4_reg): New.
28054 * config/microblaze/microblaze.c
28055 (microblaze_expand_conditional_branch_reg): New.
28056 * config/microblaze/microblaze-protos.h
28057 (microblaze_expand_conditional_branch_reg): New prototype.
28059 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
28061 * config/microblaze/microblaze.md (peephole2): New.
28063 2015-05-04 Jeff Law <law@redhat.com>
28066 2015-05-04 Jeff Law <law@redhat.com>
28068 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28069 simplifier to narrow arithmetic.
28070 * generic-match-head.c: (types_match, single_use): New functions.
28071 * gimple-match-head.c: (types_match, single_use): New functions.
28073 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
28076 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
28077 (split_branches): Likewise.
28079 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
28081 * common.opt (fdelete-null-pointer-checks): Init to -1.
28082 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
28083 override flag_delete_null_pointer_checks default.
28084 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
28085 behavior re address zero. Better document target-specific behavior.
28086 (-fisolate-errneous-paths-dereference): Mention relationship to
28087 -fdelete-null-pointer-checks.
28089 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28091 PR tree-optimization/65984
28092 * ubsan.c: Include tree-cfg.h.
28093 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
28094 stmt_could_throw_p test, rename can_throw variable to ends_bb.
28096 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
28098 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
28099 to CONST_DOUBLE_P predicate.
28100 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
28101 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
28102 allow only operands that satisfy standard_sse_constant_p predicate.
28103 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
28104 to CONST_DOUBLE_P predicate.
28106 2015-05-04 Jeff Law <law@redhat.com>
28108 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28109 simplifier to narrow arithmetic.
28110 * generic-match-head.c: (types_match, single_use): New functions.
28111 * gimple-match-head.c: (types_match, single_use): New functions.
28113 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
28115 * config/arm/arm.c: Restore bootstrap.
28117 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
28119 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
28120 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
28121 as CONST_WIDE_INT, not CONST_DOUBLE.
28122 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
28123 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
28124 (ix86_find_base_term): Do not check for CONST_DOUBLE.
28125 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
28126 (ix86_build_signbit_mask): Rewrite using wide ints.
28127 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
28128 (ix86_rtx_costs): Handle CONST_WIDE_INT.
28129 (find_constant): Ditto.
28130 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
28131 using gen_int_mode.
28132 * config/i386/predicates.md (x86_64_immediate_operand)
28133 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28134 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
28135 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28136 (const0_operand): Also match const_wide_int.
28137 (constm1_operand): Ditto.
28138 (const1_operand): Ditto.
28140 2015-05-04 Richard Biener <rguenther@suse.de>
28142 PR tree-optimization/65965
28143 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
28144 store groups at gaps.
28146 2015-05-04 Richard Biener <rguenther@suse.de>
28148 PR tree-optimization/65935
28149 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
28150 then make sure to apply that swapping to the IL.
28152 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28154 * Makefile.in (PATCHLEVEL_c): New variable.
28155 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28156 expand the same way as if DEVPHASE_c was non-empty.
28158 2015-05-04 Kai Tietz <ktietz@redhat.com>
28161 * lto-wrapper.c (run_gcc): Open filename
28164 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
28166 * doc/extend.texi (Variable Attributes, Type Attributes): Move
28167 sections up in file, to immediately after the Function Attributes
28170 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
28172 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28174 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28176 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28177 (insert_partition_copy_on_edge): Adjust.
28178 (insert_rtx_to_part_on_edge): Likewise.
28179 (insert_part_to_rtx_on_edge): Likewise.
28181 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28183 * function.c (set_return_jump_label): Change type of argument to
28185 * function.h (set_return_jump_label): Adjust.
28187 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28189 * reload.h (struct reg_equivs_t): Change type of init to
28191 * ira.c (fix_reg_equiv_init): Adjust.
28192 * reload1.c (eliminate_regs_1): Likewise.
28193 (init_eliminable_invariants): Likewise.
28195 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28197 * cselib.c (fp_setter_insn): Take a rtx_insn *.
28198 * cselib.h (fp_setter_insn): Adjust.
28200 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28202 * recog.c (struct validate_replace_src_data): Change type of
28203 insn field to rtx_insn *.
28204 (validate_replace_src_group): Change type of argument to rtx_insn *.
28205 * recog.h (validate_replace_src_group): Adjust.
28207 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28209 * haifa-sched.c: Change the type of some variables to rtx_insn *.
28210 * sched-deps.c: Likewise.
28211 * sched-int.h: Likewise.
28212 * sched-rgn.c: Likewise.
28213 * sel-sched.c: Likewise.
28215 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28218 * config/i386/i386.c: Change the type of some arguments to
28220 * config/arm/arm.c: Likewise.
28222 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28224 * lra-constraints.c: Change type of some arguments to rtx_insn *.
28226 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28228 * regcprop.c (kill_autoinc_value): Change type of argument to
28231 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28233 * genrecog.c (print_subroutine): Adjust.
28234 * recog.c (get_bool_attr_mask_uncached): Likewise.
28235 * recog.h (struct recog_data_d): Change the type of insn to
28238 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28240 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28242 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28244 * df-problems.c (df_set_note): Change type of argument to
28247 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28249 * builtins.c (expand_builtin_trap): Change type of local
28250 variable to rtx_insn *.
28251 (add_sched_insns_for_speculation): Likewise.
28252 (ix86_emit_save_regs): Likewise.
28253 (get_scratch_register_on_entry): Likewise.
28254 (ix86_emit_restore_reg_using_pop): Likewise.
28255 (ix86_emit_leave): Likewise.
28256 (ix86_emit_restore_regs_using_mov): Likewise.
28257 (ix86_expand_epilogue): Likewise.
28259 (rl78_alloc_physical_registers_umul): Likewise.
28260 * cselib.c (discard_useless_locs): Likewise.
28261 (cselib_invalidate_regno): Likewise.
28262 (cselib_invalidate_mem): Likewise.
28263 * function.c (expand_function_start): Likewise.
28264 (emit_use_return_register_into_block): Likewise.
28265 * gcse.c: Likewise.
28266 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28267 * ifcvt.c (noce_get_alt_condition): Likewise.
28268 * loop-doloop.c (doloop_condition_get): Likewise.
28269 * lra-constraints.c (inherit_in_ebb): Likewise.
28270 * modulo-sched.c (sms_schedule_by_order): Likewise.
28271 * recog.c (next_insn_tests_no_inequality): Likewise.
28272 * reorg.c (emit_delay_sequence): Likewise.
28273 (update_reg_dead_notes): Likewise.
28274 (fix_reg_dead_note): Likewise.
28275 (fill_slots_from_thread): Likewise.
28276 (delete_computation): Likewise.
28278 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
28280 * doc/extend.texi (Variable Attributes): Add menu and proper
28281 @nodes to subsections. Move Microsoft Windows attributes to
28282 their own subsection.
28283 (Type Attributes): Reorganize introduction to remove duplicate
28284 list of attributes. Add menu and proper @nodes to subsections.
28285 Alphabetize the main table of common attributes.
28287 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
28289 * match.pd: New simplification patterns.
28290 (x + (x & 1)) -> ((x + 1) & ~1)
28291 (x & ~(x & y)) -> ((x & ~y))
28292 (x | ~(x | y)) -> ((x | ~y))
28294 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28296 * target.def (attribute_table): Mention that struct attribute_spec
28297 is defined in tree-core.h rather than tree.h
28298 * doc/tm.texi: Regenerate.
28300 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
28302 * genrecog.c (test): Rename to rtx_test. Update rest of file
28305 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
28307 PR translation/65959
28308 * params.h (DEFPARAM): Rename msgid to nocmsgid.
28310 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28312 * config/aarch64/aarch64-protos.h (tune_params):
28313 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28314 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28315 Return value depending on target.
28316 (generic_tunings): Initialize new target settings.
28317 (cortexa53_tunings): Likewise.
28318 (cortexa57_tunings): Likewise.
28319 (thunderx_tunings): Likewise.
28320 (xgene1_tunings): Likewise.
28322 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28324 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28325 Make Cortex-A53 shift costs more accurate.
28327 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28329 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28332 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28334 * config/aarch64/aarch64.c (aarch64_rtx_costs):
28335 Calculate cost of op0 and op1 in PLUS and MINUS cases.
28337 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28339 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28340 Add cost of op0 in the compare-with-fpzero case.
28342 2015-04-30 David Malcolm <dmalcolm@redhat.com>
28344 * builtins.c (fold_builtin_1): Remove spurious second
28346 * cgraph.h (symtab_node::get_availability): Likewise.
28347 * opts.c (common_handle_option): Remove spurious second semicolon.
28348 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28349 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28351 2015-04-30 Caroline Tice <cmtice@google.com>
28353 PR gcov-profile/65929
28354 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28355 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28356 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28357 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28358 * doc/tm.texi: Regenerate.
28359 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
28360 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28361 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
28362 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28364 2015-04-30 Marek Polacek <polacek@redhat.com>
28366 * varasm.c (handle_cache_entry): Fix logic.
28368 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28370 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28371 (*extrsi5_insn_uxtw_alt): Likewise.
28372 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28373 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28376 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28378 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28381 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28383 * config/aarch64/aarch64.md
28384 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28385 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28386 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28387 appropriately. Handle alternative EON form.
28389 2015-04-30 Renlin Li <renlin.li@arm.com>
28391 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28392 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28394 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28397 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28398 -fstrict-aliasing boundaries.
28400 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28402 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28403 and [SU]MNEGL patterns.
28405 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28407 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28408 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28409 combined arithmetic-shift ops. Properly handle all shift and extend
28410 operations that can occur in combination with PLUS/MINUS.
28411 Rename maybe_fma to compound_p.
28412 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28413 arithmetic and shift operations.
28415 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28417 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28418 rather than arith_shift cost when costing ADD/MINUS of an
28421 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28424 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28427 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
28429 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28430 are for the same position.
28432 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
28434 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
28436 (vectorize_loops): Use it.
28438 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28440 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28441 for aggregate types.
28442 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28443 type to be non_ODR.
28444 * tree.c (need_assembler_name_p): Compute mangled name for
28445 non-fundamental types and integer types.
28447 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
28449 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28451 * expr.c (expand_expr_real_2): Likewise.
28453 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28455 * tree.c (build_common_builtin_nodes): Do not build
28456 __builtin_alloca_with_align as equivalent of library alloca.
28458 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28460 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28461 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28463 * tree.c: Include print-tree.h and ipa-utils.h
28464 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28465 (free_lang_data_in_cgraph): Call verify_type.
28466 (verify_type_variant): New function.
28467 (verify_type): New function.
28468 * tree.h (verify_type): Declare.
28470 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
28472 * config/mips/mips-cpus.def: (mips4): Change default processor
28473 from PROCESSOR_R8000 to PROCESSOR_R10000.
28475 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
28477 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28478 la/jalr instead of jal.
28480 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
28483 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28484 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28485 (setcc+movzbl peephole2): Check also clobbered reg.
28486 (setcc+andl peephole2): Ditto.
28488 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28491 * config/nvptx/mkoffload.c (target_ilp32): New variable.
28492 (main): Set it depending on "-foffload-abi=[...]".
28493 (compile_native, main): Use it to pass "-m32" or "-m64" to the
28496 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28499 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28500 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28501 Flip lane index back at assembly time for bigendian.
28503 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28505 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28506 * gimplify.c (gimplify_omp_workshare): Use it.
28508 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28510 * Makefile.in (build/genrecog.o): Depend on inchash.h.
28511 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28513 * genrecog.c: Rewrite most of the code except for the third page.
28515 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28517 * inchash.h, inchash.c: Include bconfig.h for build objects.
28518 * Makefile.in (build/inchash.o): New rule.
28520 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
28523 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28524 number in type attribute expression.
28526 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28528 * loop-iv.c (canon_condition): Generalize to all types of integer
28531 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
28533 * gimple-walk.c: Prune duplicate or unneeded includes.
28534 (walk_gimple_asm): Only call parse_input_constraint or
28535 parse_output_constraint if their findings are used.
28536 Honour parse_input_constraint and parse_output_constraint
28539 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28541 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28543 2015-04-29 Tom de Vries <tom@codesourcery.com>
28545 PR tree-optimization/65893
28546 * passes.def (pass_all_optimizations): Move pass_stdarg to after
28549 2015-04-29 Richard Biener <rguenther@suse.de>
28551 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28552 compute GROUP_SIZE for basic-block SLP.
28553 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28554 take into account gaps.
28555 (vect_get_mask_element): Properly reject references to previous
28557 (vect_transform_slp_perm_load): Likewise.
28559 2015-04-29 Christian Bruel <christian.bruel@st.com>
28562 * config/i386/i386.c (ix86_default_align): New function.
28563 (ix86_override_options_after_change): Call ix86_default_align.
28564 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28565 (ix86_override_options_after_change): New function.
28567 2015-04-28 Jeff Law <law@redhat.com>
28569 * tree-ssa-dom.c (record_equality); Fix comment typos.
28571 2015-04-28 Tom de Vries <tom@codesourcery.com>
28573 PR tree-optimization/65887
28574 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28576 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
28578 * doc/extend.texi (Declaring Attributes of Functions): Split into
28579 subsections by target. Alphabetize the table of common attributes.
28580 Rewrite some of the introductory text to reflect the new structure.
28581 Update some cross-references to point to the new subsections.
28582 (Attribute Syntax): Put paragraph about "__" naming here. Remove
28583 duplicate copies in the discussion of function, label, and type
28586 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
28589 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28591 2015-04-28 Jason Merrill <jason@redhat.com>
28594 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28595 (finalize_type_size): Respect TYPE_USER_ALIGN.
28596 (layout_type) [ARRAY_TYPE]: Likewise.
28598 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
28600 * config/arm/arm.md (*arm_movt): Fix type attribute.
28601 (*cmpsi_shiftsi): Likewise.
28602 (*cmpsi_shiftsi_swp): Likewise.
28603 (*movsicc_insn): Likewise.
28604 (*cond_move): Likewise.
28605 (*if_plus_move): Likewise.
28606 (*if_move_plus): Likewise.
28607 (*if_arith_move): Likewise.
28608 (*if_move_arith): Likewise.
28609 (*if_shift_move): Likewise.
28610 (*if_move_shift): Likewise.
28611 (*arm_movtas_ze): Likewise.
28612 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28613 redundancy and type attribute.
28614 (*thumb2_movsi_insn): Fix type attribute.
28615 (*thumb2_addsi_short): Likewise.
28616 (thumb2_addsi3_compare0): Likewise.
28617 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28618 attributes accordingly.
28620 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
28623 * function.c (pad_to_arg_alignment): Add parentheses.
28625 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
28627 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28628 libgcc/config/frv/elf-lib.h.
28630 2015-04-28 Tom de Vries <tom@codesourcery.com>
28632 * tree-call-cdce.c: Fix example in header comment.
28634 2015-04-28 Richard Biener <rguenther@suse.de>
28636 PR tree-optimization/62283
28637 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28638 fails fatally and we are vectorizing a basic-block simply
28639 cause the child to be constructed piecewise.
28640 (vect_analyze_slp_cost_1): Adjust.
28641 (vect_detect_hybrid_slp_stmts): Likewise.
28642 (vect_bb_slp_scalar_cost): Likewise.
28643 (vect_get_constant_vectors): For piecewise constructed
28644 constants place them after the last def.
28645 (vect_get_slp_defs): Adjust.
28646 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28647 externals for basic-block vectorization.
28649 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28652 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28654 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28655 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28656 (AARCH64_TUNE_FMA_STEERING): Likewise.
28657 * config/aarch64/aarch64-cores.def: Set
28658 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28659 FMUL/FMADD instructions.
28660 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28661 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
28662 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28663 * config/aarch64/cortex-a57-fma-steering.h: New file.
28664 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28666 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
28668 * gensupport.c (std_preds): Add missing codes to address_operand entry.
28670 2015-04-28 Richard Biener <rguenther@suse.de>
28672 PR tree-optimization/65851
28673 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28674 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
28675 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
28676 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28677 (ccp_visit_phi_node): Adjust.
28678 (evaluate_stmt): For simplifications to SSA names return its
28679 lattice value if that isn't VARYING. Return immediately when
28680 simplified to a constant.
28681 (visit_assignment): Adjust.
28682 (ccp_visit_stmt): Likewise.
28684 2015-04-28 Tom de Vries <tom@codesourcery.com>
28686 PR tree-optimization/65818
28687 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28690 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28692 * calls.c (save_fixed_argument_area): Don't check
28693 ARGS_GROW_DOWNWARD with the preprocessor.
28694 (restore_fixed_argument_area): Likewise.
28695 (mem_overlaps_already_clobbered_arg_p): Likewise.
28696 (check_sibcall_argument_overlap): Likewise.
28697 (expand_call): Likewise.
28698 (emit_library_call_value_1): Likewise.
28699 (store_one_arg): Likewise.
28700 * function.c (assign_parms): Likewise.
28701 (locate_and_pad_parm): Likewise.
28702 (pad_to_arg_alignment): Likewise.
28703 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28705 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28707 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28708 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28709 * calls.c (save_fixed_argument_area): Don't chekc if
28710 ARGS_GROW_DOWNWARD is defined.
28711 (restore_fixed_argument_area): Likewise.
28712 (mem_overlaps_already_clobbered_arg_p): Likewise.
28713 (check_sibcall_argument_overlap): Likewise.
28714 (expand_call): Likewise.
28715 (emit_library_call_value_1): Likewise.
28716 (store_one_arg): Likewise.
28717 * function.c (assign_parms): Likewise.
28718 (locate_and_pad_parm): Likewise.
28719 (pad_to_arg_alignment): Likewise.
28720 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28722 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28724 * defaults.h (gen_epilogue): New function.
28725 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28727 * cfgrtl.c (cfg_layout_finalize): Likewise.
28728 * df-scan.c: Likewise.
28729 * function.c (thread_prologue_and_epilogue_insns): Likewise.
28730 (reposition_prologue_and_epilogue_notes): Likewise.
28731 * reorg.c (find_end_label): Likewise.
28732 * toplev.c: Likewise.
28734 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28736 * bb-reorder.c (HAVE_return): Don't check if its undefined.
28737 * defaults.h (gen_simple_return): New function.
28738 (gen_simple_return): Likewise.
28739 (HAVE_return): Add default definition to false.
28740 (HAVE_simple_return): Likewise.
28741 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28742 HAVE_return and HAVE_simple_return are defined.
28743 * function.c (gen_return_pattern): Likewise.
28744 (convert_jumps_to_returns): Likewise.
28745 (thread_prologue_and_epilogue_insns): Likewise.
28746 * reorg.c (find_end_label): Likewise.
28747 (dbr_schedule): Likewise.
28748 * shrink-wrap.c: Likewise.
28749 * shrink-wrap.h: Likewise.
28751 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28753 * defaults.h (EPILOGUE_USES): Add default definition of false.
28754 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28755 * resource.c (init_resource_info): Likewise.
28757 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28759 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28761 * dwarf2out.c (field_byte_offset): REmove check if
28762 PCC_BITFIELD_TYPE_MATTERS is defined.
28763 * stor-layout.c (layout_decl): Likewise.
28764 (update_alignment_for_field): Likewise.
28765 (place_field): Likewise.
28767 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28769 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28771 * regrename.c (check_new_reg_p): Remove check if
28772 HARD_REGNO_RENAME_OK is defined.
28773 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28775 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28777 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28778 * cse.c (fold_rtx): Likewise.
28779 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28780 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28781 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28782 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28783 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28784 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28785 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28786 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28787 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28788 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28790 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28791 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28792 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28793 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28794 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28795 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28796 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28797 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28798 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28799 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28800 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28801 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28802 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28803 * doc/tm.texi: Regenerate.
28804 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28805 either true or false.
28807 2015-04-27 Jeff Law <law@redhat.com>
28809 PR tree-optimization/65217
28810 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28811 of them has a single use, make sure it is the LHS of the implied
28814 2015-04-28 Alan Modra <amodra@gmail.com>
28817 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28818 (offsettable_ok_by_alignment): Use minimum of decl and toc
28819 pointer alignment. Replace dead code with assertion.
28820 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
28821 case if size exceeds toc pointer alignment.
28822 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28823 (rs6000_emit_move): Likewise.
28824 * configure.ac: Add linker toc pointer alignment check.
28825 * configure: Regenerate.
28826 * config.in: Regenerate.
28828 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
28830 * config.gcc: Add h8300-*-linux.
28831 * config/h8300/linux.h: New.
28832 * config/h8300/t-linux: New.
28833 * config/h8300/h8300.c (h8300_option_override): Normal mode
28834 is not supported for h8300-*-linux.
28835 (h8300_file_start): Target priority change.
28836 (get_shift_alg): Likewise.
28837 (h8300_shift_need_scratch_p): Likewise.
28838 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28839 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28841 2015-04-27 Caroline Tice <cmtice@google.com>
28843 * final.c (final_scan_insn): Output cold_function_name as function
28845 * varasm.c (cold_function_name): Make global.
28846 (assemble_start_function): Re-set cold_function_name.
28847 (assemble_end_function): Output cold partition size.
28848 * varasm.h (cold_function_name): Declare global.
28850 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
28852 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28853 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28855 (*movxi_internal_avx512f): Ditto.
28856 (define_split): Check for xmm16+, when splitting scalar float_extend.
28857 (*extendsfdf2_mixed): Use "v" constraint.
28858 (define_split): Check for xmm16+, when splitting scalar float_truncate.
28859 (*truncdfsf_fast_sse): Use "v" constraint.
28860 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28861 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28862 (define_peephole2): Check for xmm16+, when converting scalar
28864 (define_peephole2): Check for xmm16+, when converting scalar
28866 (*fop_<mode>_comm_mixed): Use "v" constraint.
28867 (*fop_<mode>_comm_sse): Ditto.
28868 (*fop_<mode>_1_mixed): Ditto.
28869 (*sqrt<mode>2_sse): Ditto.
28870 (*ieee_s<ieee_maxmin><mode>3): Ditto.
28872 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28874 * combine.c (simplify_if_then_else): Use std::swap instead
28875 of manually swapping.
28876 (known_cond): Likewise.
28877 (simplify_comparison): Likewise.
28879 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
28882 * config/rs6000/htm.md: Remove all define_expands.
28883 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28884 UNSPECV_HTM_TABORTWCI): Remove.
28885 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28886 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28887 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28888 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28889 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28890 tabortwci_internal): Remove define_insns.
28891 (tabort<wd>c, tabort<wd>ci): New define_insns.
28892 (tabort): Use gpc_reg_operand.
28893 (tcheck): Remove operand.
28894 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28895 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28897 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28898 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
28899 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28900 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28901 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28902 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28903 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28904 (tcheck): Remove builtin argument.
28905 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28907 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
28908 tabortdc and tabortdci builtins when not in 64-bit mode.
28909 Modify code to handle the loss of the HTM define_expands.
28910 Emit code to copy the CR register to TARGET.
28911 (htm_init_builtins): Modify code to handle the loss of the HTM
28913 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28914 (RS6000_BTC_64BIT): Likewise.
28915 (RS6000_BTC_CR): New macro.
28916 * doc/extend.texi: Update documentation for htm builtins.
28918 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28920 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28921 of manually swapping.
28922 (simplify_associative_operation): Likewise.
28923 (simplify_binary_operation): Likewise.
28924 (simplify_plus_minus): Likewise.
28925 (simplify_relational_operation): Likewise.
28926 (simplify_ternary_operation): Likewise.
28928 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28930 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28931 (xs_hi_nonmemory_operand): Remove error.
28932 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28933 general_operand rather than xs_hi_general_operand.
28935 2015-04-27 Richard Biener <rguenther@suse.de>
28937 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28938 (record_equivalences_from_stmt): Valueize rhs.
28939 (record_equality): Canonicalize x and y order via
28940 tree_swap_operands_p. Do not swap operands for same loop depth.
28942 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
28946 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28947 Add hint how to use own spec file.
28949 2015-04-27 Jakub Jelinek <jakub@redhat.com>
28951 PR tree-optimization/65875
28952 * tree-vrp.c (update_value_range): If in is_new case setting
28953 old_vr to VR_VARYING, also set new_vr to it. Remove
28954 old_vr->type == VR_VARYING test.
28955 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28956 SSA_PROP_INTERESTING if update_value_range returned true,
28957 but new range is VR_VARYING.
28959 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
28961 * combine.c (sign_extend_short_imm): New.
28962 (set_nonzero_bits_and_sign_copies): Use above new function for sign
28963 extension of src short immediate.
28964 (reg_nonzero_bits_for_combine): Likewise for tem.
28966 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28968 * stor-layout.c (self_referential_component_ref_p): New predicate.
28969 (copy_self_referential_tree_r): Use it.
28970 (self_referential_size): Punt for simple operations directly involving
28971 self-referential component references.
28972 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28974 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28976 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28978 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28980 * vec.h (vec): Make splice arguments const. Update definitions
28983 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
28985 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28988 2015-04-26 Tom de Vries <tom@codesourcery.com>
28990 PR tree-optimization/65826
28991 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28993 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
28995 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28996 (*madd3<mode>): Ditto.
28997 (*msub4<mode>): Ditto.
28998 (*msub3<mode>): Ditto.
28999 (*nmadd4<mode>): Ditto.
29000 (*nmadd3<mode>): Ditto.
29001 (*nmadd4<mode>_fastmath): Ditto.
29002 (*nmadd3<mode>_fastmath): Ditto.
29003 (*nmsub4<mode>): Ditto.
29004 (*nmsub3<mode>): Ditto.
29005 (*nmsub4<mode>_fastmath): Ditto.
29006 (*nmsub3<mode>_fastmath): Ditto.
29008 2015-04-24 Jason Merrill <jason@redhat.com>
29011 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
29012 down when building TYPE_CANONICAL.
29013 (build_pointer_type_for_mode): Likewise.
29015 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
29017 * genrecog.c (validate_pattern): Check matching constraint refers
29018 to a lower numbered operand.
29020 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29023 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
29024 save to independent variables use the Save attribute. This will
29025 allow these options to be modified with the #pragma/attribute
29027 (-mallow-movmisalign): Likewise.
29028 (-mallow-df-permute): Likewise.
29029 (-msched-groups): Likewise.
29030 (-malways-hint): Likewise.
29031 (-malign-branch-targets): Likewise.
29032 (-mvectorize-builtins): Likewise.
29033 (-msave-toc-indirect): Likewise.
29035 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
29036 can be set via the #pragma/attribute target support.
29037 (rs6000_opt_vars): Likewise.
29038 (rs6000_inner_target_options): If VSX was set, also set
29039 -mno-avoid-indexed-addresses.
29041 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29043 * config/arm/iterators.md (shiftable_ops): Rename to...
29044 (SHIFTABLE_OPS): ... This. Update use in comments.
29045 (ior_xor): Rename to...
29046 (IOR_XOR): ... This.
29047 (vqh_ops): Rename to...
29048 (VQH_OPS): ... This.
29049 (vqhs_ops): Rename to...
29050 (VQHS_OPS): ... This.
29051 (rshifts): Rename to...
29052 (RSHIFTS): ... This.
29053 (returns): Rename to...
29054 (RETURNS): ... This.
29055 * config/arm/arm.md: Update uses of the above.
29056 * config/arm/neon.md: Likewise.
29058 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29060 * config.host (case ${host}): Add aarch64*-*-linux case.
29061 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
29062 fields to all the cores.
29063 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
29064 Add MCPU_MTUNE_NATIVE_SPECS.
29065 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
29066 field to all extensions.
29067 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
29068 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
29069 Adjust definition of AARCH64_OPT_EXTENSION.
29070 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
29071 (MCPU_MTUNE_NATIVE_SPECS): Define.
29072 * config/aarch64/driver-aarch64.c: New file.
29073 * config/aarch64/x-arch64: New file.
29074 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
29077 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29078 Wei Mi <wmi@google.com>
29080 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
29081 * config/i386/i386.c (extract_base_offset_in_addr): New function.
29082 (ix86_operands_ok_for_move_multiple): Ditto.
29083 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
29084 (movlpd/movhpd to movupd peephole2): Ditto.
29086 2015-04-24 Marek Polacek <polacek@redhat.com>
29089 * input.h (from_macro_expansion_at): Define.
29092 * doc/invoke.texi: Update description of -Wlogical-op.
29094 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
29096 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
29097 ternary operator in fprintf and harmonize spacing.
29099 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29101 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
29102 Mark operand1 commutative.
29104 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29106 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
29107 input operands in memory.
29108 (*vec_concatv2si_sse4_1): Ditto.
29109 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
29110 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
29112 (vec_extract_hi_v32hi): Ditto.
29113 (vec_extract_hi_v64hi): Ditto.
29114 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
29116 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
29117 Steven Bosscher <steven@gcc.gnu.org>
29119 PR rtl-optimization/34503
29120 * cprop.c (cprop_reg_p): New.
29121 (hash_scan_set): Use above function to check if register can be
29123 (find_avail_set): Return up to two sets, one whose source is a
29124 register and one whose source is a constant. Sets are returned in an
29125 array passed as parameter rather than as a return value.
29126 (cprop_insn): Use a do while loop rather than a goto. Try each of the
29127 sets returned by find_avail_set, starting with the one whose source is
29128 a constant. Use cprop_reg_p to check if register can be propagated.
29129 (do_local_cprop): Use cprop_reg_p to check if register can be
29131 (implicit_set_cond_p): Likewise.
29133 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29135 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
29136 (sem_function::equals): IGNORED_NODES parameter is now unused;
29137 update call of equals_private.
29138 (sem_function::equals_private): Do not call equals_wpa; skip
29139 gimple body matching if there is no body.
29140 (sem_function::init): Add logic to hash tthunk info.
29141 (sem_function::parse): Also parse thunks.
29142 * ipa-icf.h (equals_private): Update declaration.
29144 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29146 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
29147 asterisk from name so this can be generated directly.
29148 (*altivec_stvx_<mode>_internal): Likewise.
29149 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
29150 that this is never called during or after reload/lra.
29151 (rs6000_frame_related): Remove split_reg
29152 argument and logic that references it.
29153 (emit_frame_save): Remove last parameter from call to
29154 rs6000_frame_related.
29155 (rs6000_emit_prologue): Remove last parameter from eight calls to
29156 rs6000_frame_related. Force generation of stvx instruction for
29157 Altivec register saves. Remove split_reg handling, which is no
29159 (rs6000_emit_epilogue): Force generation of lvx instruction for
29160 Altivec register restores.
29162 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29164 * config/rs6000/rs6000.opt (mcrypto): Change option description to
29165 match category changes in ISA 2.07B.
29167 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29169 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29171 (cmp_op, cmp_type): New code attributes.
29172 (NEON_VCMP, NEON_VACMP): New int iterators.
29173 (cmp_op_unsp): New int attribute.
29174 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29175 (neon_vceq<mode>): Delete.
29176 (neon_vc<cmp_op><mode>_insn): New pattern.
29177 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29178 (neon_vcgeu<mode>): Delete.
29179 (neon_vcle<mode>): Likewise.
29180 (neon_vclt<mode>: Likewise.
29181 (neon_vcage<mode>): Likewise.
29182 (neon_vcagt<mode>): Likewise.
29183 (neon_vca<cmp_op><mode>): New define_expand.
29184 (neon_vca<cmp_op><mode>_insn): New pattern.
29185 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29187 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29189 * tree.h (attribute_value_equal): Declare.
29190 * tree.c (attribute_value_equal): Export.
29192 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29194 * ipa-icf.c (sem_item::compare_attributes): New function.
29195 (sem_item::compare_referenced_symbol_properties): Compare variable
29197 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29198 (sem_function::param_used_p): New function.
29199 (sem_function::equals_wpa): Fix attribute comparsion; match
29200 parameter type codes; do not compare paremter flags when
29201 they are not used; compare edge flags; compare indirect calls.
29202 (sem_item::update_hash_by_addr_refs): Hash reference type.
29203 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29204 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29205 reference use type.
29206 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29207 * ipa-icf.h (compare_attributes, param_used_p): Declare.
29209 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29211 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29213 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29214 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29215 (sem_item::compare_referenced_symbol_properties): New.
29216 (sem_item::hash_referenced_symbol_properties): New.
29217 (sem_item::compare_cgraph_references): Rename to ...
29218 (sem_item::compare_symbol_references): ... this one; use
29219 compare_referenced_symbol_properties.
29220 (sem_function::equals_wpa): Do not compare
29221 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29222 DECL_IS_OPERATOR_NEW; compare pointer sizes.
29223 (sem_item::update_hash_by_addr_refs): Call
29224 hash_referenced_symbol_properties.
29225 (sem_item::update_hash_by_local_refs): Cleanup.
29226 (sem_function::merge): Do not mix up symbol properties.
29227 (sem_variable::equals_wpa): Use compare_symbol_references.
29228 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29229 (sem_item::hash_referenced_symbol_properties): New.
29230 (sem_item::compare_symbol_references): New.
29231 (sem_item::compare_cgraph_references): Remove.
29233 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
29236 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29237 Emit size of local.
29239 2015-04-23 Nick Clifton <nickc@redhat.com>
29241 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29242 ATTRIBUTE_UNUSED to x parameter.
29243 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29245 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29247 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29248 TARGET_CRYPTO to TARGET_P8_VECTOR>
29249 (crypto_vpermxor_<mode>): Likewise.
29250 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29251 (BU_CRYPTO_3A): Likewise.
29252 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29253 (BU_CRYPTO_OVERLOAD_3A): New #define.
29254 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29255 (VPMSUMH): Likewise.
29256 (VPMSUMW): Likewise.
29257 (VPMSUMD): Likewise.
29258 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29259 (VPERMXOR_V4SI): Likewise.
29260 (VPERMXOR_V8HI): Likewise.
29261 (VPERMXOR_V16QI): Likewise.
29262 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29263 BU_CRYPTO_OVERLOAD_2A.
29264 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29265 BU_CRYPTO_OVERLOAD_3A.
29266 * config/rs6000/rs6000.opt (mcrypto): Change description of
29269 2015-04-23 Richard Biener <rguenther@suse.de>
29271 * passes.def: Remove copy propagation passes run directly after CCP.
29272 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29274 (ccp_visit_phi_node): Rework to handle first executable edge
29277 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
29279 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29280 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29281 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29282 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29283 (thumb_legimitimize_reload_address): Remove.
29284 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29286 (thumb_legimitimize_reload_address): Remove.
29288 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29290 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29292 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29294 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29296 (store_multiple): Likewise.
29298 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29300 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29301 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29302 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29303 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29304 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29305 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29306 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29307 Specify issue_rate value.
29308 (arm_issue_rate): Look up issue rate from tuning structs. Remove
29309 large switch statement.
29310 (arm_marvell_pj4_tune): New struct.
29311 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29314 2015-04-23 Richard Biener <rguenther@suse.de>
29316 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29317 (vect_find_last_store_in_slp_instance): Rename to ...
29318 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29319 (vect_analyze_slp_cost_1): Use vector_load for constant defs
29320 and vec_construct for external defs when estimating prologue cost.
29321 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29322 Compute costs here only when vectorizing loops.
29323 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29324 have been determined.
29325 (vect_schedule_slp_instance): Simplify vectorized code placement
29326 and prepare for in-BB external defs.
29327 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29328 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29329 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29331 (vect_model_load_cost): Likewise.
29332 (vectorizable_store): Instead add it here.
29333 (vectorizable_load): Likewise.
29334 (vect_is_simple_use): Dump def type textually.
29336 2015-04-23 Richard Biener <rguenther@suse.de>
29338 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29339 * cfgloop.c (verify_loop_structure): Verify the root loop node.
29340 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29341 instead of get_eh_region_from_lp_number.
29342 * loop-init.c (fix_loop_structure): If we removed a loop, reset
29345 2015-04-23 Anton Blanchard <anton@samba.org>
29347 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29348 need for -mprofile-kernel to save LR to stack.
29350 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29352 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29354 (insn_is_swappable_p): Return 1 for a convert from double to
29355 single precision when all of its uses are splats of BE element
29358 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
29360 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29362 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29365 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
29366 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29367 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29369 (rs6000_builtin_mask_for_load): Return 0 for targets with
29370 efficient unaligned VSX accesses so that the vectorizer will use
29371 direct unaligned loads.
29372 (rs6000_builtin_support_vector_misalignment): Always return true
29373 for targets with efficient unaligned VSX accesses.
29374 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29375 stores on targets with efficient unaligned VSX accesses is almost
29376 always the same as the cost of an aligned load or store, so model
29378 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29379 unaligned vectors if we have efficient unaligned VSX accesses.
29380 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29381 undocumented option.
29383 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29386 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29388 * config.gcc (LIBC_MUSL): New tm_defines macro.
29389 * config/linux.h (OPTION_MUSL): Define.
29390 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29391 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29392 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29394 * config/linux.opt (mmusl): New option.
29395 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29396 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29398 * configure: Regenerate.
29400 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29402 * config.gcc (LIBC_MUSL): New tm_defines macro.
29403 * config/linux.h (OPTION_MUSL): Define.
29404 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29405 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29406 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29408 * config/linux.opt (mmusl): New option.
29409 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29410 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29412 * configure: Regenerate.
29414 2015-04-22 Yury Gribov <y.gribov@samsung.com>
29416 * doc/invoke.texi (-fsanitize-sections): Update description.
29417 * asan.c (set_sanitized_sections): Parse incoming arg.
29418 (section_sanitized_p): Support wildcards.
29420 2015-04-22 Tom de Vries <tom@codesourcery.com>
29422 PR tree-optimization/65823
29423 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29424 equality between ap_copy and ap.
29426 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29429 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29431 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29434 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29436 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29439 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29440 remove already contained t-files.
29442 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29444 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29445 Remove unneeded forward declarations.
29446 (suitable_for_tail_call_opt_p): Commentary typo fix.
29448 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29450 * varasm.c (emit_bss): Remove redundant guard.
29452 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29454 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29456 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29458 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29460 2015-04-22 Hale Wang <hale.wang@arm.com>
29461 Terry Guo <terry.guo@arm.com>
29463 PR rtl-optimization/64818
29464 * combine.c (can_combine_p): Don't combine user-specified
29465 register if it is in an asm input.
29467 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
29470 * passes.def (early_optimizations): Add pass_dse.
29472 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29474 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29475 * reorg.c (redundant_insn): Remove ifdef
29476 INSN_REFERENCES_ARE_DELAYED.
29477 * resource.c (mark_referenced_resources): Likewise.
29479 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29481 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29482 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29483 * resource.c (mark_set_resources): Likewise.
29485 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29487 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29488 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29489 (flow_find_head_matching_sequence): Likewise.
29490 (try_head_merge_bb): Likewise.
29491 * combine.c (can_combine_p): Likewise.
29492 (try_combine): Likewise.
29493 (distribute_notes): Likewise.
29494 * df-problems.c (can_move_insns_across): Likewise.
29495 * final.c (final): Likewise.
29496 * gcse.c (insert_insn_end_basic_block): Likewise.
29497 * ira.c (find_moveable_pseudos): Likewise.
29498 * reorg.c (try_merge_delay_insns): Likewise.
29499 (fill_simple_delay_slots): Likewise.
29500 (fill_slots_from_thread): Likewise.
29501 * sched-deps.c (sched_analyze_2): Likewise.
29503 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29505 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29506 PIC_OFFSET_TABLE_REGNUM.
29508 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29510 * alias.c (init_alias_target): Remove ifdef
29511 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29512 * df-scan.c (df_insn_refs_collect): Likewise.
29513 (df_get_regular_block_artificial_uses): Likewise.
29514 (df_get_eh_block_artificial_uses): Likewise.
29515 (df_get_entry_block_def_set): Likewise.
29516 (df_get_exit_block_use_set): Likewise.
29517 * emit-rtl.c (gen_rtx_REG): Likewise.
29518 * ira.c (ira_setup_eliminable_regset): Likewise.
29519 * reginfo.c (init_reg_sets_1): Likewise.
29520 * regrename.c (rename_chains): Likewise.
29521 * reload1.c (reload): Likewise.
29522 (eliminate_regs_in_insn): Likewise.
29523 * resource.c (mark_referenced_resources): Likewise.
29524 (init_resource_info): Likewise.
29526 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29528 * defaults.h (MASK_RETURN_ADDR): New definition.
29529 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29532 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29534 * defaults.h (RETURN_ADDR_OFFSET): New definition.
29535 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29536 RETURN_ADDR_OFFSET.
29537 (expand_builtin_frob_return_addr): Likewise.
29539 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29541 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29542 (try_redirect_by_replacing_jump): Likewise.
29543 (rtl_tidy_fallthru_edge): Likewise.
29544 * combine.c (insn_a_feeds_b): Likewise.
29545 (find_split_point): Likewise.
29546 (simplify_set): Likewise.
29547 * cprop.c (cprop_jump): Likewise.
29548 * cse.c (cse_extended_basic_block): Likewise.
29549 * df-problems.c (can_move_insns_across): Likewise.
29550 * function.c (emit_use_return_register_into_block): Likewise.
29551 * haifa-sched.c (sched_init): Likewise.
29552 * ira.c (find_moveable_pseudos): Likewise.
29553 * loop-invariant.c (find_invariant_insn): Likewise.
29554 * lra-constraints.c (curr_insn_transform): Likewise.
29555 * postreload.c (reload_combine_recognize_const_pattern):
29557 * reload.c (find_reloads): Likewise.
29558 * reorg.c (delete_scheduled_jump): Likewise.
29559 (steal_delay_list_from_target): Likewise.
29560 (steal_delay_list_from_fallthrough): Likewise.
29561 (redundant_insn): Likewise.
29562 (fill_simple_delay_slots): Likewise.
29563 (fill_slots_from_thread): Likewise.
29564 (delete_computation): Likewise.
29565 * sched-rgn.c (add_branch_dependences): Likewise.
29567 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29569 * genconfig.c (main): Always define HAVE_cc0.
29570 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29572 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29573 (flow_find_head_matching_sequence): Likewise.
29574 (try_head_merge_bb): Likewise.
29575 * cfgrtl.c (rtl_merge_blocks): Likewise.
29576 (try_redirect_by_replacing_jump): Likewise.
29577 (rtl_tidy_fallthru_edge): Likewise.
29578 * combine.c (do_SUBST_MODE): Likewise.
29579 (insn_a_feeds_b): Likewise.
29580 (combine_instructions): Likewise.
29581 (can_combine_p): Likewise.
29582 (try_combine): Likewise.
29583 (find_split_point): Likewise.
29585 (simplify_set): Likewise.
29586 (distribute_notes): Likewise.
29587 * cprop.c (cprop_jump): Likewise.
29588 * cse.c (cse_extended_basic_block): Likewise.
29589 * df-problems.c (can_move_insns_across): Likewise.
29590 * final.c (final): Likewise.
29591 (final_scan_insn): Likewise.
29592 * function.c (emit_use_return_register_into_block): Likewise.
29593 * gcse.c (insert_insn_end_basic_block): Likewise.
29594 * haifa-sched.c (sched_init): Likewise.
29595 * ira.c (find_moveable_pseudos): Likewise.
29596 * loop-invariant.c (find_invariant_insn): Likewise.
29597 * lra-constraints.c (curr_insn_transform): Likewise.
29598 * optabs.c (prepare_cmp_insn): Likewise.
29599 * postreload.c (reload_combine_recognize_const_pattern):
29601 * reload.c (find_reloads): Likewise.
29602 (find_reloads_address_1): Likewise.
29603 * reorg.c (delete_scheduled_jump): Likewise.
29604 (steal_delay_list_from_target): Likewise.
29605 (steal_delay_list_from_fallthrough): Likewise.
29606 (try_merge_delay_insns): Likewise.
29607 (redundant_insn): Likewise.
29608 (fill_simple_delay_slots): Likewise.
29609 (fill_slots_from_thread): Likewise.
29610 (delete_computation): Likewise.
29611 (relax_delay_slots): Likewise.
29612 * sched-deps.c (sched_analyze_2): Likewise.
29613 * sched-rgn.c (add_branch_dependences): Likewise.
29615 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29617 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29618 that is trivially ded on non cc0 targets.
29619 (simplify_set): Likewise.
29620 (mark_used_regs_combine): Likewise.
29621 * cse.c (new_basic_block): Likewise.
29622 (fold_rtx): Likewise.
29623 (cse_insn): Likewise.
29624 (cse_extended_basic_block): Likewise.
29625 (set_live_p): Likewise.
29626 * rtlanal.c (canonicalize_condition): Likewise.
29627 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29629 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29631 * conditions.h: Define macros even if HAVE_cc0 is undefined.
29632 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29633 * final.c: Likewise.
29634 * jump.c: Likewise.
29635 * recog.c: Likewise.
29636 * recog.h: Declare functions even when HAVE_cc0 is undefined.
29637 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29639 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29641 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29642 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29643 * builtins.c (expand_builtin): Remove check if
29644 EH_RETURN_DATA_REGNO is defined.
29645 * df-scan.c (df_bb_refs_collect): Likewise.
29646 (df_get_exit_block_use_set): Likewise.
29647 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29648 * ira-lives.c (process_bb_node_lives): Likewise.
29649 * lra-lives.c (process_bb_lives): Likewise.
29651 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29653 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29654 FIRST_PSEUDO_REG): New.
29655 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29656 (ARG_POINTER_REGNUM): Define to ARGP_REG.
29657 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29658 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29659 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29660 (FIRST_INT_REG): New.
29661 (LAST_INT_REG): New.
29662 (FIRST_*_REG): Define using *_REG.
29663 (LAST_*_REG): Ditto.
29664 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29665 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29666 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29668 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29670 * expmed.c: (synth_mult): Only assume overlapping
29671 shift with previous steps in alg_sub_t_m2 case.
29673 2015-04-21 Richard Biener <rguenther@suse.de>
29675 PR tree-optimization/65650
29676 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29677 transitions involving copies.
29678 (set_lattice_value): Adjust for copy lattice state.
29679 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29680 if that doesn't dominate the merge point.
29681 (bit_value_unop): Adjust what we treat as varying mask.
29682 (bit_value_binop): Likewise.
29683 (bit_value_assume_aligned): Likewise.
29684 (evaluate_stmt): When we simplified to a SSA name record a copy
29685 instead of dropping to varying.
29686 (visit_assignment): Simplify.
29688 * gimple-match.h (gimple_simplify): Add another callback.
29689 * gimple-fold.c (fold_stmt_1): Adjust caller.
29690 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29691 for the 2nd callback.
29692 * gimple-match-head.c (gimple_simplify): Add a callback that is
29693 used to valueize the stmt operands and use it that way.
29695 2015-04-21 Richard Biener <rguenther@suse.de>
29697 PR tree-optimization/65788
29698 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29700 2015-04-21 Richard Biener <rguenther@suse.de>
29702 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29703 vec_construct cost by vec_stmt_cost.
29705 2015-04-21 Richard Biener <rguenther@suse.de>
29707 * cfghooks.h (create_basic_block): Replace with two overloads
29708 for RTL and GIMPLE.
29709 (split_block): Likewise.
29710 * cfghooks.c (split_block): Rename to ...
29711 (split_block_1): ... this.
29712 (split_block): Add two type-safe overloads for RTL and GIMPLE.
29713 (split_block_after_labels): Call split_block_1.
29714 (create_basic_block): Rename to ...
29715 (create_basic_block_1): ... this.
29716 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29717 (create_empty_bb): Call create_basic_block_1.
29718 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29719 split_block_after_labels.
29720 * omp-low.c (expand_parallel_call): Likewise.
29721 (expand_omp_target): Likewise.
29722 (simd_clone_adjust): Likewise.
29723 * tree-chkp.c (chkp_get_entry_block): Likewise.
29724 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29725 create_basic_block overload.
29726 (cgraph_node::expand_thunk): Likewise.
29727 * tree-cfg.c (make_blocks): Likewise.
29728 (handle_abnormal_edges): Likewise.
29729 * tree-inline.c (copy_bb): Likewise.
29731 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29733 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29735 (*xor_one_cmplsidi3_ze): Likewise.
29737 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
29739 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29740 use df_remove_problem rather than manually removing problems, leaving
29741 holes in df->problems_in_order[].
29743 2015-04-21 Tom de Vries <tom@codesourcery.com>
29745 PR tree-optimization/65802
29746 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29748 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29750 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29752 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29753 at '.'. Assert that there's enough space for everything.
29755 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29757 PR tree-optimization/64950
29759 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
29762 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29765 2015-04-20 Shiva Chen <shiva0217@gmail.com>
29767 PR rtl-optimization/64916
29768 * cfgcleanup.c (values_equal_p): New function.
29769 (can_replace_by): Use it.
29771 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
29774 * doc/invoke.texi ([-Wnarrowing]): Update.
29776 2015-04-20 Jeff Law <law@redhat.com>
29778 PR tree-optimization/65658
29779 * tree-ssa-threadupdate.c (redirection_block_p): Remove
29780 redundant test for GIMPLE_ASSIGN in last change.
29782 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
29784 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29785 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29786 (legitimize_tls_address): Ditto.
29787 (ix86_expand_move): Ditto.
29788 (ix86_expand_binary_operator): Remove reload_in_progress checks.
29789 (ix86_expand_unary_operator): Ditto.
29790 * config/i386/predicates.md (index_register_operand): Ditto.
29792 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
29794 * reorg.c (try_merge_delay_insns): Improve correctness checking
29795 for targets with multiple delay slots.
29797 2015-04-20 Jeff Law <law@redhat.com>
29799 PR tree-optimization/65658
29800 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29803 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29805 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29806 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29809 2015-04-20 Jakub Jelinek <jakub@redhat.com>
29812 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29814 2015-04-20 Richard Biener <rguenther@suse.de>
29816 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29817 * gimple-fold.c (gimple_build_valueize): New function.
29818 (gimple_build): Always use gimple_build_valueize as valueize hook.
29820 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29823 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29824 and overwrite variable parts if <= 1/2 the elements are variable.
29826 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
29828 PR rtl-optimization/65805
29829 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29830 Don't use difference of offset and previous offset if
29831 update_sp_offset is non-zero.
29832 (eliminate_regs_in_insn): Ditto.
29833 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29834 lra_eliminate_regs_1 call.
29835 * lra-constraints.c (get_equiv_with_elimination): Ditto.
29837 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
29839 * hash-table.h: Remove version of hash_table that stored value_type *.
29840 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29841 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29842 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29843 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29844 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29845 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29846 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29847 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29848 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29849 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29850 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29851 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29852 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29853 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29854 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29855 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29857 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29858 Jakub Jelinek <jakub@redhat.com>
29861 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29862 subsequent SH_NONE operand does not overwrite an existing *special
29864 (adjust_extract): Handle case where a vec_extract operation is
29865 wrapped in a PARALLEL.
29867 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29870 * config/i386/i386.c (ix86_binds_local_p): Define only if
29871 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29873 2015-04-17 Jeff Law <law@redhat.com>
29875 PR tree-optimization/47679
29876 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29877 * tree-ssa-scopedtables.c: New file.
29878 * tree-ssa-scopedtables.h: New file.
29879 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29880 (const_and_copies): Change name/type.
29881 (record_const_or_copy): Move into tree-ssa-scopedtables.c
29882 (record_const_or_copy_1): Similarly.
29883 (restore_vars_to_original_value): Similarly.
29884 (pass_dominator::execute): Create and destroy const_and_copies table.
29885 (thread_across_edge): Update passing of const_and_copies.
29886 (record_temporary_equivalence): Use method calls rather than
29887 manipulating const_and_copies directly.
29888 (record_equality, cprop_into_successor_phis): Similarly.
29889 (dom_opt_dom_walker::before_dom_children): Similarly.
29890 (dom_opt_dom_walker::after_dom_children): Similarly.
29891 (eliminate_redundant_computations): Similarly.
29892 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29893 (record_temporary_equivalence): Likewise.
29894 (invalidate_equivalences): Likewise.
29895 (record_temporary_equivalences_from_phis): Update due to type
29896 change of const_and_copies. Use method calls rather than
29897 manipulating the stack directly.
29898 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29899 (thread_through_normal_block, thread_across_edge): Likewise.
29900 (thread_across_edge): Likewise.
29901 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29902 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
29904 (identify_jump_threads): Update due to type change of equiv_stack.
29905 (finalize_jump_threads): Delete the equiv_stack when complete.
29907 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
29909 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29910 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29911 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29913 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
29916 * config.gcc: Exit with a comment when we do not have a major version
29917 number for the FreeBSD target.
29919 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29922 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29923 maybe_allows_mem bitfields.
29924 (maybe_allows_none_start, maybe_allows_none_end,
29925 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29926 maybe_allows_mem_end): New variables.
29927 (compute_maybe_allows): New function.
29928 (add_constraint): Use it to initialize maybe_allows_reg and
29929 maybe_allows_mem fields.
29930 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29931 is_address constraints such that those that allow neither mem nor
29932 reg come first, then those that only allow reg but not mem, then
29933 those that only allow mem but not reg, then the rest.
29934 (write_allows_reg_mem_function): New function.
29935 (write_tm_preds_h): Call it.
29936 * stmt.c (parse_output_constraint, parse_input_constraint): Use
29937 the generated insn_extra_constraint_allows_reg_mem function
29938 instead of always setting *allows_reg = true; *allows_mem = true;
29939 for unknown extra constraints.
29941 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29944 * output.h (default_binds_local_p_3): New.
29945 * varasm.c (default_binds_local_p_3): Make it public. Take an
29946 argument to indicate if common symbol may be local. If common
29947 symbol may be local, treat non-external variable as defined
29949 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29950 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29951 * config/i386/i386.c (ix86_binds_local_p): New.
29952 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29953 ix86_binds_local_p.
29955 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29958 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29959 trying mem_loc_descriptor on XEXP (rtl, 0).
29961 2015-04-17 Martin Liska <mliska@suse.cz>
29963 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29964 Release symbol_compare_collection.
29965 * ipa-reference.c: Add TODO that a vector should be released.
29967 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29970 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29971 to new AVR-LibC file layout (bug #44574).
29972 (*avrlibc_devicelib): Same.
29973 * config/avr/avr-mcus.def: Adjust comments.
29974 * config/avr/avr.opt (nodevicelib): Adjust help.
29976 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
29978 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29980 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
29983 * gimplify.c (gimplify_init_constructor): Always emit a
29984 side-effecting constructor.
29986 2015-04-17 Tom de Vries <tom@codesourcery.com>
29988 PR tree-optimization/64950
29989 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29990 in cfun->curr_properties.
29991 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29992 if we generate an IFN_VA_ARG.
29993 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29994 function if PROP_gimple_lva is not set in src function.
29996 2015-04-17 Tom de Vries <tom@codesourcery.com>
29997 Michael Matz <matz@suse.de>
29999 PR tree-optimization/64950
30000 * gimple-iterator.c (update_modified_stmts): Remove static.
30001 * gimple-iterator.h (update_modified_stmts): Declare.
30002 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
30003 (gimplify_va_arg_internal): New function.
30004 (gimplify_va_arg_expr): Use IFN_VA_ARG.
30005 * gimplify.h (gimplify_va_arg_internal): Declare.
30006 * internal-fn.c (expand_VA_ARG): New unreachable function.
30007 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
30008 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
30009 (expand_ifn_va_arg): New function.
30010 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
30011 (pass_stdarg::execute): Call expand_ifn_va_arg.
30012 (pass_data_lower_vaarg): New pass_data.
30013 (pass_lower_vaarg): New gimple_opt_pass.
30014 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
30015 (make_pass_lower_vaarg): New function.
30016 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
30017 properties_required field.
30018 * passes.def (all_passes): Add pass_lower_vaarg.
30019 * tree-pass.h (PROP_gimple_lva): Add define.
30020 (make_pass_lower_vaarg): Declare.
30022 2015-04-17 Tom de Vries <tom@codesourcery.com>
30024 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
30025 * calls.c (call_expr_flags): Same.
30027 2015-04-17 Tom de Vries <tom@codesourcery.com>
30029 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
30030 (pass_stdarg::execute): ... here.
30032 2015-04-17 Tom de Vries <tom@codesourcery.com>
30033 Michael Matz <matz@suse.de>
30035 * tree-cfg.c (make_blocks_1): Factor out of ...
30036 (make_blocks): ... here.
30037 (make_edges_bb): Factor out of ...
30038 (make_edges): ... here.
30039 (gimple_find_sub_bbs): New function.
30040 * tree-cfg.h (gimple_find_sub_bbs): Declare.
30042 2015-04-17 Tom de Vries <tom@codesourcery.com>
30044 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
30046 2015-04-17 Yury Gribov <y.gribov@samsung.com>
30048 * asan.c (set_sanitized_sections): New function.
30049 (section_sanitized_p): Ditto.
30050 (asan_protect_global): Optionally sanitize user-defined
30052 * asan.h (set_sanitized_sections): Declare new function.
30053 * common.opt (fsanitize-sections): New option.
30054 * doc/invoke.texi (-fsanitize-sections): Document new option.
30055 * opts-global.c (handle_common_deferred_options): Handle new
30058 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30061 * dwarf2out.c (loc_list_from_tree): Return NULL
30062 for DEBUG_EXPR_DECL.
30064 2015-04-17 Christian Bruel <christian.bruel@st.com>
30066 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
30069 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30071 * ira-color.c (setup_left_conflict_sizes_p): Do not process
30072 node itself when computing left conflict subnode size.
30074 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
30076 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
30077 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
30078 *fop_<mode>_1_sse using enabled attribute. Use
30079 register_mixssei387nonimm_operand operand 1 predicate. Change
30080 alternative 3 constraints from "x" to "v".
30082 2015-04-16 Richard Biener <rguenther@suse.de>
30084 PR tree-optimization/65774
30085 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
30086 bit-value tracking on.
30088 2015-04-16 Richard Biener <rguenther@suse.de>
30090 PR tree-optimization/64277
30091 * tree-vrp.c (check_array_ref): Fix anti-range handling,
30092 simplify upper bound handling.
30093 (search_for_addr_array): Simplify.
30094 (check_array_bounds): Handle ADDR_EXPRs here.
30095 (check_all_array_refs): Simplify.
30097 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
30099 * config/i386/i386.c (print_reg): Rewrite function.
30101 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30103 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
30104 Invert the condition.
30106 2015-04-16 Renlin Li <renlin.li@arm.com>
30108 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
30109 simplifications for UNSIGNED_FLOAT.
30111 2015-04-16 Nick Clifton <nickc@redhat.com>
30113 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
30115 (enum rl78_cpu_type): New.
30116 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
30117 (umulhi3_shift_virt): Remove m constraint from operand 1.
30118 (umulqihi3_virt): Likewise.
30119 * config/rl78/rl78.c (rl78_option_override): Add code to process
30120 -mcpu and -mmul options.
30121 (rl78_alloc_physical_registers): Add code to handle divhi and
30122 divsi valloc attributes.
30123 (set_origin): Likewise.
30124 * config/rl78/rl78.h (RL78_MUL_G14): Define.
30125 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
30126 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
30128 (ASM_SPEC): Pass -mcpu on to assembler.
30129 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
30130 (mulqi3_rl78): Likewise.
30131 (mulhi3_g13): Likewise.
30132 (mulhi3): Generate the G13 or G14 versions of the insn directly.
30133 (mulsi3): Likewise.
30134 (mulhi3_g14): Add clobbers of AX and BC.
30135 (mulsi3_g14): Likewise.
30136 (mulsi3_g13): Likewise.
30137 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
30138 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
30139 * config/rl78/rl78.opt (mmul): Initialise value to
30141 (mcpu): New option.
30142 (m13, m14, mrl78): New option aliases.
30143 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
30144 (MULTILIB_DIRNAMES): Add g13 and g14.
30145 * doc/invoke.texi: Document -mcpu and -mmul options.
30147 2015-04-16 Richard Biener <rguenther@suse.de>
30149 * tree-ssa-ccp.c (likely_value): See if we have operands that
30150 are marked as never simulate again and return CONSTANT in this
30152 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
30153 not have any operands that will be simulated again as
30154 not being simulated again.
30156 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
30158 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30159 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30160 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30162 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30164 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30165 *float<SWI48:mode><MODEF:mode>2_sse.
30166 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30168 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30171 2015-04-15 Tom de Vries <tom@codesourcery.com>
30174 * function.c (push_dummy_function): New function.
30175 (init_dummy_function_start): Use push_dummy_function.
30176 (pop_dummy_function): New function. Factored out of ...
30177 (expand_dummy_function_end): ... here.
30178 * function.h (push_dummy_function, pop_dummy_function): Declare.
30179 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30180 pop_dummy_function.
30181 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30183 2015-04-15 Jeff Law <law@redhat.com>
30185 PR tree-optimization/47679
30186 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30187 need for forward declaration in upcoming changes.
30188 (record_conditions, record_edge_info): Likewise.
30190 PR rtl-optimization/42522
30191 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30192 SIGN_EXTRACT as a whole object rather than simplifying
30195 2015-04-15 Jakub Jelinek <jakub@redhat.com>
30198 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30199 and GIMPLE_PREDICT use break instead of return true. For
30200 GIMPLE_EH_DISPATCH, compare dispatch region.
30202 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
30204 * doc/extend.texi (__sync Builtins): Simplify some text. Update
30205 details about the implementation. Make clear preference for
30206 __atomic builtins. Reduce possibility of future change.
30208 2015-04-15 Nick Clifton <nickc@redhat.com>
30210 * config/rx/rx.opt (mallow-string-insns): New option.
30211 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30212 builtin if string instructions are denied.
30213 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30214 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30216 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30217 * config/rx/rx.md (movstr): Enable pattern only if string
30218 instructions are allowed.
30219 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30220 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30221 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30222 (MULTILIB_DIRNAMES): Add no-strings.
30223 * doc/invoke.texi: Document -mno-allow-string-insns.
30225 2015-04-15 Alan Modra <amodra@gmail.com>
30229 PR middle-end/36043
30230 * calls.c (load_register_parameters): Don't load past end of
30231 mem unless suitably aligned.
30233 2015-04-15 Nick Clifton <nickc@redhat.com>
30235 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30236 decrement instruction as being frame related.
30237 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30239 If zero extending a function address enclose the operation in
30241 (rl78_preferred_reload_class): New function.
30242 (TARGET_PREFERRED_RELOAD_CLASS): Define.
30243 * config/rl78/rl78.md: Remove useless constraints in expanders.
30244 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30245 (mulhi3_rl78): Likewise.
30246 (mulhi3_g13): Likewise.
30247 (mulsi3_rl78): Likewise.
30248 (es_addr): Move to before the multiply patterns.
30250 2015-04-15 Alan Modra <amodra@gmail.com>
30252 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30253 and sequence_stack. Add seq.
30254 (seq_stack): Delete.
30255 * function.c (prepare_function_start): Don't access x_last_insn.
30256 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30257 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30258 * emit_rtl.c (start_sequence, push_topmost_sequence,
30259 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30260 sequence accessors.
30261 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30262 remove_insn): Likewise. Simplify.
30263 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30264 and pop_topmost_sequence.
30265 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
30267 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30269 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
30272 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30275 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30277 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30278 (LEGACY_INT_REGNO_P): Ditto.
30279 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30280 (ANY_MASK_REG_P): Remove.
30281 (BND_REG_P): Rename from ANY_BND_REG_P.
30282 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30283 legacy integer registers. Do not handle MMX_REG_P in a special way.
30284 Merge 64byte and 32byte SSE handling.
30286 2015-04-14 Nick Clifton <nickc@redhat.com>
30288 * expr.c (expand_assignment): Force an address offset computation
30289 into a register before changing its mode.
30290 (expand_expr_real_1): Likewise.
30292 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
30294 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30295 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30296 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30297 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30298 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30299 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30300 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30301 and __aarch64_vget_lane_any.
30303 2015-04-14 Jakub Jelinek <jakub@redhat.com>
30305 PR rtl-optimization/65761
30306 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30307 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30309 2015-04-14 Richard Biener <rguenther@suse.de>
30311 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30312 (graphite_can_represent_scev): Use POINTER_TYPE_P.
30314 2015-04-14 Richard Biener <rguenther@suse.de>
30316 PR tree-optimization/65758
30317 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30319 (ccp_lattice_meet): Likewise.
30320 (bit_value_unop): Likewise.
30321 (bit_value_binop): Likewise.
30322 (bit_value_assume_aligned): Likewise.
30324 2015-04-14 Christian Bruel <christian.bruel@st.com>
30326 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30329 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
30331 PR tree-optimization/63387
30332 * match.pd ((x unord x) | (y unord y) -> (x unord y),
30333 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30335 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30337 * config/i386/predicates.md (any_QIreg_operand): Rename from
30338 q_regs_operand. Do not process subregs.
30339 (QIreg_operand): Use QI_REGNO_P predicate.
30340 (ext_QIreg_operand): Ditto.
30341 (ext_register_operand): Ditto.
30342 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30343 (AND splitters): Ditto.
30344 (AND with -65536 splitter): Add SWI48 mode for operand 0.
30345 (AND with -256 splitter): Use any_QIreg_operand predicate and
30346 SWI248 mode for operand 0.
30347 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30348 mode for operand 0.
30349 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30351 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
30353 * doc/plugins.texi: Rewrite first introductory paragraph.
30355 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30357 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30358 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30360 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30362 * ipa-profie.c (ipa_profile): Check number of parameters
30363 and possible polymorphic call targets before
30366 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
30368 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30369 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30371 2015-04-13 Richard Biener <rguenther@suse.de>
30373 PR tree-optimization/65204
30374 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30375 takens for bit-CCP.
30377 2015-04-13 Richard Biener <rguenther@suse.de>
30380 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30381 and cond_not_taken_branch_cost to 4 and 2.
30382 (bdver2_cost): Likewise.
30383 (bdver3_cost): Likewise.
30384 (bdver4_cost): Likewise.
30386 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30388 * hash-table.h (hash_table constructor): Add mem stats.
30389 (alloc_entries): Likewise.
30391 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30393 * ipa-cp.c (ipcp_driver): Relase prev_edge.
30394 * passes.c (execute_one_pass): Only add transform if pass has one.
30396 2015-04-12 Joseph Myers <joseph@codesourcery.com>
30398 * config/i386/i386.c (ix86_option_override_internal): Don't set
30399 -fprefetch-loop-arrays if optimizing for size.
30401 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30402 Gerald Pfeifer <gerald@pfeifer.com>
30404 * doc/contrib.texi (Contributors): Add Martin Jambor and
30407 2015-04-12 Jakub Jelinek <jakub@redhat.com>
30409 * BASE-VER: Set to 6.0.0.
30411 PR tree-optimization/65747
30412 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30413 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30415 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30417 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30418 sentence. Improve grammar.
30420 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30422 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30424 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30427 * ipa-inline-transform.c (speculation_removed): Remove static var.
30428 (check_speculations): New function.
30429 (clone_inlined_nodes): Do not check spculations.
30430 (inline_call): Call check_speculations.
30431 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30432 consider non-invariants.
30434 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30435 Martin Liska <mliska@suse.cz>
30438 * ipa-icf.c (sem_item::compare_cgraph_references): function and
30439 variable can not match.
30440 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30441 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30443 2015-04-11 Jakub Jelinek <jakub@redhat.com>
30445 PR tree-optimization/65735
30446 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30447 Remove visited_phis argument, add visited_bbs, avoid recursing into the
30448 same bb rather than just into the same phi node.
30449 (thread_through_normal_block): Adjust caller.
30451 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30453 * doc/contrib.texi (Contributors): Add Ira Rosen.
30455 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
30457 * gcov.c (find_source): Fix miswording in error message.
30458 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30459 (ix86_expand_sse_comi_round): Fix typo in error message.
30461 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30463 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30465 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
30467 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30469 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30472 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30473 Print bad_spills_num and insn_pseudos_num.
30475 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30478 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30479 when creating +1 values for SImode.
30481 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30484 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30487 2015-04-10 Jakub Jelinek <jakub@redhat.com>
30488 Iain Sandoe <iain@codesourcery.com>
30491 * configure: Regenerate.
30493 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30496 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30498 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
30500 * doc/contrib.texi (Contributors): Add John Marino.
30502 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30504 PR tree-optimization/65709
30505 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30506 TREE_TYPE (TREE_TYPE (t)).
30508 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
30511 * lra-int.h (lra_bad_spill_regno_start): New.
30512 * lra.c (lra_bad_spill_regno_start): New.
30513 (lra): Set up lra_bad_spill_regno_start. Set up
30514 lra_constraint_new_regno_start unconditionally.
30515 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30518 2015-04-09 Marek Polacek <polacek@redhat.com>
30519 Jakub Jelinek <jakub@redhat.com>
30521 PR middle-end/65554
30522 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30523 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30526 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
30528 PR rtl-optimization/65693
30529 * combine.c (is_parallel_of_n_reg_sets): Move outside of
30532 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
30535 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30536 device specs file if "device-specs%s" didn't resolve to a path.
30538 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30541 * config/i386/i386.c (fixup_modeless_constant): New.
30542 (ix86_expand_args_builtin): Fixup modeless constant operand.
30543 (ix86_expand_round_builtin): Ditto.
30544 (ix86_expand_special_args_builtin): Ditto.
30545 (ix86_expand_builtin): Ditto.
30547 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30550 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30551 any pow2 integer in between 2 and 0x80000000U inclusive.
30553 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
30555 PR rtl-optimization/65693
30556 * combine.c (is_parallel_of_n_reg_sets): Change first argument
30557 from an rtx_insn * to an rtx.
30558 (try_combine): Adjust both callers. Use it once more.
30560 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30562 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30563 (chkp_make_static_const_bounds): Search existing
30564 symbol by assembler name. Use make_decl_one_only.
30565 (chkp_get_zero_bounds_var): Remove node search which
30566 is now performed in chkp_make_static_const_bounds.
30567 (chkp_get_none_bounds_var): Likewise.
30569 2015-04-08 Michael Witten <mfwitten@gmail.com>
30571 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30574 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30576 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30578 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30580 * doc/extend.texi (__sync Builtins): Fix grammar.
30582 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30584 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30586 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30588 * varasm.c (emit_local): Move definition of align.
30590 2015-04-08 Julian Brown <julian@codesourcery.com>
30592 * config/nvptx/mkoffload.c (process): Support variable mapping.
30594 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
30596 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30598 (alpha_write_one_linkage): Correct typo.
30600 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30602 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30604 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30606 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30608 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30610 * tree-chkp.h (chkp_insert_retbnd_call): New.
30611 * tree-chkp.c (chkp_insert_retbnd_call): New.
30612 * ipa-split.c (insert_bndret_call_after): Remove.
30613 (split_function): Use chkp_insert_retbnd_call.
30614 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30615 bounds for instrumented functions.
30617 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
30620 * calls.c (initialize_argument_information): When producing tail
30621 call also turn SSA_NAMES passed by references to original PARM_DECLs
30623 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
30626 * lra-remat.c (do_remat): Process input and non-input insn
30627 registers separately.
30629 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30632 * valtrack.c (debug_lowpart_subreg): New function.
30633 (dead_debug_insert_temp): Use it.
30635 PR middle-end/65680
30636 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30637 into signed HOST_WIDE_INT the same as negative bit_offset.
30639 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
30641 * ipa-comdats.c (ipa_comdats): Visit all thunks
30642 to set proper comdat group.
30644 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30647 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30648 on constants for NEON VSTRUCT modes.
30650 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30651 Iain Sandoe <iain@codesourcery.com>
30654 * configure: Regenerate.
30656 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30659 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30660 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30661 that LFD is used to load double constants instead of LFS. Add
30662 defaults for all costs structures. Add comments for missing
30663 initialization fields.
30664 (size32_cost): Likewise.
30665 (size64_cost): Likewise.
30666 (rs64a_cost): Likewise.
30667 (mpccore_cost): Likewise.
30668 (ppc403_cost): Likewise.
30669 (ppc405_cost): Likewise.
30670 (ppc440_cost): Likewise.
30671 (ppc476_cost): Likewise.
30672 (ppc601_cost): Likewise.
30673 (ppc603_cost): Likewise.
30674 (ppc604_cost): Likewise.
30675 (ppc604e_cost): Likewise.
30676 (ppc620_cost): Likewise.
30677 (ppc630_cost): Likewise.
30678 (ppccell_cost): Likewise.
30679 (ppc750_cost): Likewise.
30680 (ppc7450_cost): Likewise.
30681 (ppc8540_cost): Likewise.
30682 (ppce300c2c3_cost): Likewise.
30683 (ppce500mc_cost): Likewise.
30684 (ppce500mc64_cost): Likewise.
30685 (ppce5500_cost): Likewise.
30686 (ppce6500_cost): Likewise.
30687 (titan_cost): Likewise.
30688 (power4_cost): Likewise.
30689 (power6_cost): Likewise.
30690 (power7_cost): Likewise.
30691 (power8_cost): Likewise.
30692 (ppca2_cost): Likewise.
30693 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30695 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30696 instead of XXLOR to copy SFmode to clear out dirty bits created
30697 when SFmode denormals are generated.
30698 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30699 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30701 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30703 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30704 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30705 * config/aarch64/aarch64-tune.md: Regenerate.
30707 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30709 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30710 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30711 * config/arm/arm-cores.def (exynos-m1): New core.
30712 * config/arm/arm-tune.md: Regenerate.
30713 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30714 * config/arm/bpabi.h: Likewise.
30716 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30718 * ipa-cp (set_single_call_flag): Remove too
30719 restrictive assert.
30721 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
30723 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30724 GOMP_offload_unregister from the destructor.
30726 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30728 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30729 flags for instrumentation thunk.
30730 (chkp_produce_thunks): Likewise.
30732 2015-04-05 Martin Liska <mliska@suse.cz>
30735 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30736 has computed data structure.
30737 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30739 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
30741 * invoke.texi (inline-unit-growth): Increase growth to 20%
30742 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30744 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
30747 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
30749 (lra_rematerialization_iter): New.
30750 * lra.c (lra): Initialize lra_rematerialization_iter.
30751 Stop updating lra_constraint_new_regno_start after switching of
30752 inheritance and rematerialization.
30753 * lra-remat.c (lra_rematerialization_iter): New.
30754 (lra_remat): Add printing pass iteration. Do rematerialization
30755 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30757 2015-04-04 Richard Biener <rguenther@suse.de>
30759 PR tree-optimization/64909
30760 PR tree-optimization/65660
30761 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30762 to take a cost vector for scalar iteration cost.
30763 (vect_get_single_scalar_iteration_cost): Likewise.
30764 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30765 Compute the scalar iteration cost into a cost vector.
30766 (vect_get_known_peeling_cost): Use the scalar cost vector to
30767 account for the cost of the peeled iterations.
30768 (vect_estimate_min_profitable_iters): Likewise.
30769 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30772 2015-04-04 Alan Modra <amodra@gmail.com>
30776 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30777 0.0 constant unless TARGET_VSX.
30778 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30781 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30784 * ipa-inline-transform.c (inline_call): Skip sanity check to work
30787 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30790 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30791 speculative indirect edges to avoid ordering issue.
30793 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30796 * ipa-inline.c (edge_badness): Add combined size to the denominator.
30798 2015-04-03 Jakub Jelinek <jakub@redhat.com>
30800 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30801 TYPE_ARTIFICIAL on the .omp_data* types.
30803 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30805 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30806 instrumentation thunks.
30808 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30810 * config/i386/i386.c (ix86_expand_call): Avoid nested
30811 PARALLEL in returned call value.
30813 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30815 * lto-cgraph.c (input_cgraph_1): Always link instrumented
30816 assembler name with original one.
30818 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30820 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30822 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30824 Revert parts of r216820.
30825 * config/i386/i386.md (movqi_internal): Correct type calculation
30826 for alternatives 3 and 5.
30828 2015-04-02 Jakub Jelinek <jakub@redhat.com>
30830 PR preprocessor/61977
30831 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30832 predefine __vector/__bool/__pixel macros nor context sensitive
30833 macros for CLK_ASM.
30834 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30836 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
30838 * config/pa/pa.c (pa_output_move_double): Directly handle register
30839 indexed memory operand. Simplify handling of scaled register indexed
30842 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30845 * config/i386/linux-common.h (MPX_SPEC): New.
30846 (CHKP_SPEC): Add MPX_SPEC.
30847 * doc/invoke.texi (-fcheck-pointer-boudns): Document
30848 possible issues with '-z bndplt' support in linker.
30850 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30852 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30853 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30854 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30855 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30856 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30858 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
30860 * config/i386/sync.md (UNSPEC_MOVA): Remove.
30861 (atomic_load<mode>): Change operand 0 predicate to
30862 nonimmediate_operand and fix up the destination when needed.
30864 (atomic_loaddi_fpu): Use UNSPEC_LDA.
30865 (atomic_store<mode>): Change operand 1 predicate to
30866 nonimmendate_operand and move the source to register when needed.
30868 (atomic_store<mode>_1): Use UNSPEC_STA.
30869 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30870 Fix moves from memory operand. Use UNSPEC_STA.
30872 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
30874 * expmed.c (strict_volatile_bitfield_p): Check that the access will
30875 not cross a MODESIZE boundary.
30876 (store_bit_field, extract_bit_field): Added assertions in the
30877 strict volatile bitfields code path.
30879 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
30882 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30883 Increase args array size by one to avoid buffer overflow.
30885 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30887 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30889 * ipa-inline.c (edge_badness): Add wrapper penalty.
30890 (sum_callers): Move up.
30891 (inline_small_functions): Set single_caller.
30892 * ipa-inline.h (inline_summary): Add single_caller.
30893 * ipa-split.c (split_function): Set split_part.
30894 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30895 * cgraph.h (cgraph_node): Add split_part.
30897 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
30900 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30901 Do not split operands 0 and operands 2 to halfmode.
30902 (atomic_compare_and_swap<mode>): Update for
30903 atomic_compare_and_swap<dwi>_doubleword changes.
30905 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30907 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30908 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30909 no caching is done.
30911 2015-03-31 Martin Liska <mliska@suse.cz>
30914 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30915 has already filled up function summary.
30916 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30918 2015-03-31 Richard Biener <rguenther@suse.de>
30920 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30923 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
30925 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30927 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30928 (s390_asm_output_function_label): Adapt to new signature of
30929 s390_function_num_hotpatch_hw
30930 Optimise the code generating assembler output.
30931 Add comments to assembler file.
30933 2015-03-31 Richard Biener <rguenther@suse.de>
30935 PR middle-end/65626
30936 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30937 of the noreturn call so it is last and cleanup_control_flow_bb
30938 can do the CFG part.
30940 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
30943 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30944 same_comdat_group for external symbols.
30945 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30946 infinite same_comdat_group traversal loop.
30948 2015-03-31 Jakub Jelinek <jakub@redhat.com>
30951 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30952 automatically to $headers.
30954 2015-03-30 Jakub Jelinek <jakub@redhat.com>
30957 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30958 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30960 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30962 * ipa-prop.c (param_type_may_change_p): Likewise.
30963 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30964 (remove_unused_scope_block_p): Add in_ctor_dtor_block
30965 argument. Before inlining, preserve
30966 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30967 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
30969 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30971 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30974 * ipa-inline.c (edge_badness): Base denominator on callee's
30977 2015-03-27 Martin Jambor <mjambor@suse.cz>
30980 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30981 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30982 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30983 node_calling_single_call.
30984 * ipa-cp.c (count_callers): New function.
30985 (set_single_call_flag): Likewise.
30986 (initialize_node_lattices): Count callers and set single_flag_call if
30988 (incorporate_penalties): New function.
30989 (good_cloning_opportunity_p): Use it, dump new flags.
30990 (propagate_constants_topo): Set node_within_scc flag if appropriate.
30991 * doc/invoke.texi (ipa-cp-recursion-penalty,
30992 ipa-cp-single-call-pentalty): Document.
30994 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30997 * symtab.c (symtab_node::get_partitioning_class): Register vars
30999 * varpool.c (symbol_table::output_variables) Do not assemble unefined
31000 decls for non-symbols.
31002 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
31005 * output.h (default_binds_local_p_2): New.
31006 * varasm.c (default_binds_local_p_2): Renamed to ...
31007 (default_binds_local_p_3): This. Don't return true on protected
31008 data symbol if protected data may be external.
31009 (default_binds_local_p): Use default_binds_local_p_3.
31010 (default_binds_local_p_1): Likewise.
31011 (default_binds_local_p_2): New.
31012 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
31013 default_binds_local_p_2 if TARGET_MACHO is undefined.
31015 2015-03-27 Jakub Jelinek <jakub@redhat.com>
31018 * config/i386/i386.c (legitimize_pic_address): If base
31019 is SYMBOL_REF or LABEL_REF using %rip addressing, force
31020 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
31022 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31025 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
31028 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31031 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
31032 of optimized out indirect call.
31033 (redirect_to_unreachable): Always build symbol table node for
31034 BUILT_IN_UNREACHABLE
31036 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
31039 * ira-costs.c (record_reg_classes): Process all constraint string
31042 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
31044 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
31048 * config/c6x/constraints.md (S3): New constraint.
31049 * config/c6x/c6x.md (real_jump): Use it.
31051 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31053 PR middle-end/65595
31054 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
31055 do redirection if the call is not optimized out.
31057 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
31060 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
31061 (fchkp-check-incomplete-type): Add LTO.
31062 (fchkp-zero-input-bounds-for-main): Likewise.
31063 (fchkp-first-field-has-own-bounds): Likewise.
31064 (fchkp-narrow-bounds): Likewise.
31065 (fchkp-narrow-to-innermost-array): Likewise.
31066 (fchkp-use-static-bounds): Likewise.
31067 (fchkp-use-static-const-bounds): Likewise.
31068 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31070 2015-03-27 Marek Polacek <polacek@redhat.com>
31072 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
31074 2015-03-27 Marek Polacek <polacek@redhat.com>
31077 * ubsan.c (ubsan_create_edge): New function.
31078 (instrument_bool_enum_load): Call it.
31079 (instrument_nonnull_arg): Likewise.
31080 (instrument_nonnull_return): Likewise.
31081 (instrument_object_size): Likewise.
31083 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31085 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
31088 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31091 * lto-streamer.h (class lto_location_cache): New.
31092 (struct data_in): Add location_cache.
31093 (lto_input_location): Update prototype.
31094 (stream_input_location_now): New.
31095 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
31096 pointer to location.
31097 (stream_input_location): Update.
31098 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
31099 (warn_odr): Apply location cache before warning.
31100 (lto_input_location): Update prototype.
31101 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
31102 Use stream_input_location_now.
31103 * lto-streamer-in.c (lto_location_cache::current_cache): New static
31105 (lto_location_cache::cmp_loc): New function.
31106 (lto_location_cache::apply_location_cache): New function.
31107 (lto_location_cache::accept_location_cache): New function.
31108 (lto_location_cache::revert_location_cache): New function.
31109 (lto_location_cache::input_location): New function.
31110 (lto_input_location): Do location caching.
31111 (stream_input_location_now): New function.
31112 (input_eh_region, input_struct_function_base): Use
31113 stream_input_location_now.
31114 (lto_data_in_create): use new.
31115 (lto_data_in_delete): Use delete.
31116 * tree-streamer-in.c (unpack_ts_block_value_fields,
31117 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
31118 lto_input_ts_exp_tree_pointers): Update for cached location api.
31120 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31123 * passes.def: Add pass_nothrow.
31124 * ipa-pure-const.c: (pass_data_nothrow): New.
31125 (pass_nothrow): New.
31126 (pass_nothrow::execute): New.
31127 (make_pass_nothrow): New.
31128 * tree-pass.h (make_pass_nothrow): Declare.
31130 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31132 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
31133 edge to change by speculation resolution or redirection.
31134 (edge_set_predicate): Likewise.
31135 (inline_summary_t::duplicate): Likewise.
31136 (remap_edge_summaries): Likewise.
31138 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31140 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
31142 (can_inline_edge_p): Relax option matching for always inline functions.
31144 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
31147 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
31148 Check operand 4 and operand 0 for equality.
31149 (avx512f_vextract<shuffletype>32x4_1_maskm):
31150 Check operand 6 and operand 0 for equality.
31151 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
31153 (vec_extract_hi_<mode>_maskm): Ditto.
31155 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31157 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31158 dead calls back to live.
31159 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31161 (cgraph_node::verify_node): ... here; verify only callee edges,
31163 * cif-code.def (CILK_SPAWN): New code.
31165 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31167 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31168 (edge_set_predicate): Use it to mark unreachable edges.
31169 (inline_summary_t::duplicate): Remove unnecesary code.
31170 (remap_edge_summaries): Likewise.
31171 (dump_inline_summary): Report contains_cilk_spawn.
31172 (compute_inline_parameters): Compute contains_cilk_spawn.
31173 (inline_read_section, inline_write_summary): Stream
31174 contains_cilk_spawn.
31175 * ipa-inline.c (can_inline_edge_p): Do not touch
31176 DECL_STRUCT_FUNCTION that may not be available;
31177 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31178 remove check for callee_fun->can_throw_non_call_exceptions and
31179 replace it by optimization attribute check; check for flag_exceptions.
31180 * ipa-inline-transform.c (inline_call): Maintain
31181 DECL_FUNCTION_PERSONALITY
31182 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31184 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31186 PR tree-optimization/65551
31187 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31188 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31190 2015-03-26 Richard Biener <rguenther@suse.de>
31192 PR middle-end/65555
31193 * tree-cfg.c (verify_gimple_call): Do not require a call to
31194 have no LHS if it wasn't recognized as control altering yet.
31196 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31198 PR tree-optimization/64715
31199 * passes.def: Add another instance of pass_object_sizes before ccp1.
31200 * tree-object-size.c (pass_object_sizes::execute): In
31201 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31202 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31203 __bos result and the computed constant. Remove redundant
31204 checks, obsoleted by gimple_call_builtin_p test.
31206 * var-tracking.c (variable_tracking_main_1): Don't track
31207 variables for targetm.no_register_allocation targets.
31209 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
31211 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31212 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31214 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31217 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31218 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
31219 0.0 is correctly setup.
31220 (extenddftf2_internal): Likewise.
31222 2015-03-25 Sebastian Pop <s.pop@samsung.com>
31224 PR tree-optimization/65177
31225 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31227 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
31228 edges not adjacent on the path to the original code.
31230 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
31233 * doc/install.texi (Building a native compiler): Document new
31234 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
31235 configuration assumes that the host supports the linker plugin.
31237 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
31240 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31241 chain for generated call.
31243 2015-03-25 Richard Biener <rguenther@suse.de>
31245 * passes.c (pass_manager::execute_early_local_passes): Guard
31246 execution of pass_chkp_instrumentation_passes with
31247 flag_check_pointer_bounds.
31248 (pass_chkp_instrumentation_passes::gate): Likewise.
31250 2015-03-25 Martin Liska <mliska@suse.cz>
31252 PR tree-optimization/65538
31253 * symbol-summary.h (function_summary::~function_summary):
31254 Relese memory for allocated summaries.
31255 (function_summary::release): New function.
31257 2015-03-25 Jakub Jelinek <jakub@redhat.com>
31260 * lto-streamer-out.c (DFS::worklist): New struct.
31261 (DFS::worklist_vec): New data member.
31262 (DFS::next_dfs_num): Remove.
31263 (DFS::DFS): Rewritten using worklist instead of recursion,
31264 using most of code from DFS::DFS_write_tree.
31265 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31266 pass it to DFS_write_tree calls.
31267 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31268 quick initial checks push it into worklist_vec and return.
31270 2015-03-25 Richard Biener <rguenther@suse.de>
31272 PR middle-end/65519
31273 * genmatch.c (expr::gen_transform): Re-write to avoid
31274 using gimple_build.
31276 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31278 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31280 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31282 * config/arm/arm.opt (print_tune_info): New option.
31283 * config/arm/arm.c (arm_print_tune_info): New function.
31284 (arm_file_start): Call arm_print_tune_info.
31285 * config/arm/arm-protos.h (struct tune_params): Add comment.
31286 * doc/invoke.texi (@item -mprint-tune-info): New item.
31287 (-mtune): mention it in ARM Option Summary.
31289 2015-03-25 DJ Delorie <dj@redhat.com>
31291 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31294 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
31295 Martin Liska <mliska@suse.cz>
31297 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31298 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31299 (sem_item::add_type): New function.
31300 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31301 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31302 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31303 (sem_function::equals_wpa): Fix typo.
31304 * ipa-icf.h (sem_item::add_type): New function.
31305 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31308 2015-03-24 Jakub Jelinek <jakub@redhat.com>
31310 PR tree-optimization/65533
31311 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31312 with swapped operands, call vect_free_slp_tree on
31313 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31316 2015-03-24 Richard Biener <rguenther@suse.de>
31318 PR middle-end/65517
31319 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31320 for fixup if necessary.
31322 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
31324 * doc/extend.texi (Function Attributes): Add @cindex entries
31325 for all attributes and regularize their format. Delete text
31326 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
31327 information about "eightbit_data", "tiny_data", and "model"
31328 variable attributes to the Variable Attributes section. Fix
31329 some obvious typos and copy-editing issues.
31330 (Variable Attributes, Type Attributes): Likewise add/fix
31331 @cindex entries for all attributes.
31333 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31336 * tree-chkp.c (chkp_build_returned_bound): Ignore
31337 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31339 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
31342 * config/sh/predicates.md (simple_mem_operand,
31343 displacement_mem_operand): Add test for reg.
31344 (short_displacement_mem_operand): Test for displacement_mem_operand
31345 before invoking sh_disp_addr_displacement.
31346 * config/sh/constraints.md (Sdd, Sra): Simplify.
31347 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31348 Remove redundant displacement_mem_operand tests.
31350 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
31353 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31354 the same -mmcu=MCU more than once.
31356 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31359 * ipa-devirt.c: Remove duplicate demangle.h include.
31362 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31364 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31365 REG_POINTER on *destptr after adjusting it for prologue size.
31368 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31369 ultimate_alias_target ()->order ints instead of
31370 ultimate_alias_target () pointers.
31372 2015-03-23 Richard Biener <rguenther@suse.de>
31374 PR tree-optimization/65518
31375 * tree-vect-stmts.c (vectorizable_load): Reject single-element
31376 interleaving cases we generate absymal code for.
31378 2015-03-23 Richard Biener <rguenther@suse.de>
31380 PR tree-optimization/65494
31381 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31383 (vect_analyze_slp_instance): But do that here, always and once.
31385 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31387 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31388 adding T or multiplying by T+1 and subracting T.
31390 2015-03-22 Jeff Law <law@redhat.com>
31392 PR rtl-optimization/64317
31393 * Makefile.in (OBJS): Add gcse-common.c
31394 * gcse.c: Include gcse-common.h
31395 (struct modify_pair_s): Move structure definition to gcse-common.h
31396 (compute_transp): Move function to gcse-common.c.
31397 (canon_list_insert): Similarly.
31398 (record_last_mem_set_info): Break out some code and put it into
31399 gcse-common.c. Call into the new common code.
31400 (compute_local_properties): Pass additional arguments to compute_transp.
31401 * postreload-gcse.c: Include gcse-common.h and df.h
31402 (modify_mem_list_set, blocks_with_calls): New variables.
31403 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31404 (get_bb_avail_insn): Pass in the expression index too.
31405 (alloc_mem): Allocate memory for the new bitmaps and lists.
31406 (free_mem): Free memory for the new bitmaps and lists.
31407 (insert_expr_in_table): Record a bitmap index for each entry we
31409 (record_last_mem_set_info): Call into common code in gcse-common.c.
31410 (get_bb_avail_insn): If no available insn was found in the requested
31411 BB. If BB has a single predecessor, see if the expression is
31412 transparent in BB and available in that single predecessor.
31413 (compute_expr_transp): New wrapper for compute_transp.
31414 (eliminate_partially_redundant_load): Pass expression's bitmap_index
31415 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
31416 (gcse_after_reload_main): If there are elements in the hash table,
31417 then compute transparency for all the elements in the hash table.
31418 * gcse-common.h: New file.
31419 * gcse-common.c: New file.
31421 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
31423 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31425 (System Headers): Likewise.
31427 (Traditional macros): Likewise.
31428 (Invocation): Likewise.
31429 (Option Index): Likewise.
31430 * doc/cppopts.texi (-M): Likewise.
31431 (-finput-charset): Likewise.
31432 (--help): Likewise.
31433 * doc.invoke.texi (AVR Options): Likewise.
31434 (V850 Options): Likewise.
31436 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
31439 * ipa-devirt.c: Include demangle.h
31440 (odr_type_d): Add field rtti_broken.
31441 (odr_subtypes_equivalent_p): Do not require name to match.
31442 (compare_virtual_tables): Fix typo; if type already has ODR violation,
31443 bypass the tests; be ready for function referneces in vtables that are
31444 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31445 (warn_odr): Give up for nameless types.
31446 (warn_types_mismatch): Report mismatch in mangled names;
31447 report mismatch in anonymous namespaces; look into component types to
31448 give useful error; report when mismatch is dragged in from other ODR
31450 (odr_types_equivalent_p): Match types for being polymorphic; avoid
31451 duplicated diagnostics.
31452 (add_type_duplicate): Reorder checks so more informative ones come
31453 first; fix typo; do not output "the extra base is defined here" when
31455 (BINFO_N_BASE_BINFOS): Relax sanity check.
31457 2015-03-22 Martin Liska <mliska@suse.cz>
31458 Jakub Jelinek <jakub@redhat.com>
31460 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31461 masks that can potentially include a builtin.
31462 (ix86_add_new_builtins): Introduce fast filter for isa values
31463 that cannot trigger builtin inclusion.
31465 2015-03-22 Martin Liska <mliska@suse.cz>
31467 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31468 (sem_item::update_hash_by_local_refs): Likewise.
31469 (sem_variable::get_hash): Empty line is fixed.
31470 (sem_item_optimizer::execute): Include adding of hash references.
31471 (sem_item_optimizer::update_hash_by_addr_refs): New function.
31472 (sem_item_optimizer::build_hash_based_classes): Use local hash.
31473 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31474 (sem_item::update_hash_by_local_refs): Likewise.
31476 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31479 * ipa-comdats.c (enqueue_references): Walk through thunks.
31480 (ipa_comdats): Likewise.
31481 (set_comdat_group_1): New function.
31483 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31486 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31489 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
31490 Gerald Pfeifer <gerald@pfeifer.com>
31492 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31494 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
31495 Sandra Loosemore <sandra@codesourcery.com>
31497 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31498 function parameter declaration.
31499 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31500 Update arguments to nios2_adjust_call_address().
31501 (sibcall_internal): Rename from *sibcall.
31502 (sibcall_value_internal): Rename from *sibcall_value.
31503 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31504 (nios2_large_got_address): Add target temp reg parameter.
31505 (nios2_got_address): Adjust call to nios2_large_got_address, add
31506 force_reg around it.
31507 (nios2_load_pic_address): Add target temp reg parameter, replace call
31508 to nios2_got_address with corresponding code.
31509 (nios2_legitimize_constant_address): Update call to
31510 nios2_load_pic_address.
31511 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31512 to use temp reg for PIC loading purposes.
31513 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31514 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31515 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31517 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31519 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31520 usage of "the @option{...}".
31521 (-Wopenmp-simd): Likewise.
31522 (-fsanitize-recover): Likewise.
31523 (-fsanitize-undefined-trap-on-error): Likewise.
31525 (tracer-dynamic-coverage-feedback): Likewise.
31526 (reorder-block-duplicate-feedback): Likewise.
31527 (loop-unroll-jam-size): Likewise.
31530 (-mabs=legacy): Likewise.
31531 (-mupper-regs-df): Likewise.
31532 (-mupper-regs-sf): Likewise.
31533 (-mpointers-to-nested-functions): Likewise.
31535 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31537 * doc/extend.texi (Cilk Plus Builtins): Add markup.
31539 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31541 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31542 additional index entries and cross-references.
31543 (-fchkp-check-incomplete-type): Likewise.
31544 (-fchkp-first-field-has-own-bounds): Likewise.
31545 (-fchkp-narrow-to-innermost-array): Likewise.
31546 (-fchkp-use-fast-string-functions): Likewise.
31547 (-fchkp-use-nochk-string-functions): Likewise.
31548 (-fchkp-use-static-const-bounds): Likewise.
31549 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31550 (-fchkp-instrument-marked-only): Likewise.
31551 (-fchkp-use-wrappers): Likewise.
31552 (-static-libmpx): Likewise.
31553 (-static-libmpxwrappers): Likewise.
31554 * doc/extend.texi (bnd_legacy): Likewise.
31555 (bnd_instrument): Likewise.
31556 (bnd_variable_size): Likewise.
31557 (Pointer Bounds Checker builtins): Likewise.
31559 2015-03-21 Tom de Vries <tom@codesourcery.com>
31561 PR tree-optimization/65458
31562 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31563 * cgraph.h (cgraph_node): Add parallelized_function field.
31564 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31565 (input_overwrite_node): Read parallelized_function field.
31566 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31567 parallelized_function on cgraph_node for child_fn.
31568 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31569 Remove include of gt-tree-parloops.h.
31570 (parallelized_functions): Remove static variable.
31571 (parallelized_function_p): Rewrite using parallelized_function field of
31573 (create_loop_fn): Remove adding to parallelized_functions.
31574 * Makefile.in (GTFILES): Remove tree-parloops.c
31576 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
31578 PR rtl-optimization/64366
31579 * lra.c (lra_update_insn_regno_info): Consider regs in
31580 CALL_INSN_FUNCTION_USAGE memory.
31582 2015-03-20 Richard Biener <rguenther@suse.de>
31584 PR middle-end/64715
31585 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31586 for type comparison and gcc_checking_assert.
31587 (chrec_fold_plus_poly_poly): Likewise.
31588 (chrec_fold_multiply_poly_poly): Likewise.
31589 (chrec_convert_1): Likewise.
31590 * gimplify.c (gimplify_expr): Remove premature folding of
31591 &X + CST to &MEM[&X, CST].
31593 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31595 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31597 (ipa_inline): Recompute inline_failed codes.
31598 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31599 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31602 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
31604 PR rtl-optimization/60851
31605 * recog.c (constrain_operands): Accept a pseudo register before reload
31606 for LRA enabled targets.
31608 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
31611 * config/rs6000/predicates.md (easy_fp_constant): Remove special
31612 -ffast-math handling that kept non-0 constants live in the RTL
31613 until reload. Remove logic testing the number of instructions it
31614 took to create a constant in a GPR that was never used, due to a
31615 test for soft-float earlier.
31616 (memory_fp_constant): Delete, no longer used.
31618 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31619 alternatives for loading non-0 constants into GPRs for hard
31620 floating point that is no longer needed due to changes in
31621 easy_fp_constant. Add support for loading 0.0 into GPRs.
31622 (mov<mode>_hardfloat32): Likewise.
31623 (mov<mode>_hardfloat64): Likewise.
31624 (mov<mode>_64bit_dm): Likewise.
31625 (movtd_64bit_nodm): Likewise.
31626 (pre-reload move FP constant define_split): Delete define_split,
31627 since it is no longer used.
31628 (extenddftf2_internal): Remove GHF constraints that are not valid
31631 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
31633 PR rtl-optimization/63491
31634 * lra-constraints.c (check_and_process_move): Use src instead of
31635 sreg. Remove some dead code.
31637 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
31640 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31641 (sem_variable::merge): Likewise.
31643 2015-03-19 Martin Liska <mliska@suse.cz>
31646 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31647 all fields of cgraph_thunk_info.
31649 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
31651 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31652 clone instrumented thunks.
31654 2015-03-19 Richard Biener <rguenther@suse.de>
31657 2015-03-10 Richard Biener <rguenther@suse.de>
31659 PR middle-end/63155
31660 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31661 * tree-ssa-coalesce.c: Include timevar.h.
31662 (attempt_coalesce): Handle graph being NULL.
31663 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31664 Split out abnormal coalescing to ...
31665 (perform_abnormal_coalescing): ... this function.
31666 (coalesce_ssa_name): Perform abnormal coalescing without computing
31668 (verify_ssa_coalescing_worker): New function.
31669 (verify_ssa_coalescing): Likewise.
31671 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
31672 Jakub Jelinek <jakub@redhat.com>
31675 * tsan.c (instrument_gimple): Clear tail call flag on
31678 2015-03-19 Jakub Jelinek <jakub@redhat.com>
31681 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31682 call in the return bb.
31683 (find_split_points): Add RETURN_BB argument, don't call
31685 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
31686 if true append TSAN_FUNC_EXIT internal call after the call to
31687 the split off function.
31688 (execute_split_functions): Call find_return_bb here.
31689 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31690 Adjust find_split_points and split_function calls.
31692 2015-03-18 DJ Delorie <dj@redhat.com>
31694 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31695 (iorqi3_virt): Likewise.
31697 2015-03-18 Tom de Vries <tom@codesourcery.com>
31699 * tree-parloops.c (parallelize_loops): Make static.
31700 * tree-parloops.h (parallelize_loops): Remove extern declaration.
31702 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
31704 PR middle-end/64491
31706 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
31708 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31709 condition would be removed due to undefined behaviour.
31711 2015-03-18 Martin Liska <mliska@suse.cz>
31714 * cgraph.c (cgraph_node::get_create): Remove unnecessary
31715 xstrdup_for_dump wrapper.
31716 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31718 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31719 with xstrdup_for_dump.
31720 (sem_variable::equals): Likewise.
31721 (sem_item_optimizer::read_section): Use symtab_node::name instead of
31723 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31724 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31725 symtab_node::asm_name with xstrdup_for_dump.
31726 (congruence_class::dump): Use symtab_node::name instead of
31728 * ipa-icf.h (symtab_node::name): Remove.
31729 (symtab_node::asm_name): Likewise.
31731 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31733 PR tree-optimization/65450
31734 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31736 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31737 it instead of duplicate_ssa_name_ptr_info.
31740 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31742 2015-03-18 Richard Biener <rguenther@suse.de>
31744 * tree-data-ref.h (struct access_matrix): Remove.
31745 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31746 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31747 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31748 (am_vector_index_for_loop): Likewise.
31749 (struct data_reference): Remove access_matrix member.
31750 (DR_ACCESS_MATRIX): Remove.
31751 (lambda_vector_new): Add comment.
31752 (lambda_matrix_new): Use XOBNEWVEC.
31754 2015-03-18 Richard Biener <rguenther@suse.de>
31756 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31757 (pass_ch::execute): Cleanup the CFG only if we did sth.
31758 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31760 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31762 * expmed.c (synth_mult): Use std::swap instead of manually
31763 swapping algorithms.
31765 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31768 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31770 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
31773 * config/avr/avr.opt (-nodevicelib): New option.
31774 * doc/invoke.texi (AVR Options): Document it.
31775 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31776 libgcc.a, libc.a, libm.a.
31777 * config/avr/specs.h: Same.
31778 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31779 which don't (directly) depend on the device. Print more help.
31780 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31781 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31782 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31784 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31785 for specs file name.
31786 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31787 * config/avr/avr-mcus.def: Adjust initializers and comments.
31789 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
31791 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31792 DECL_ONE_ONLY to check if decl is one only.
31793 * ipa-split.c (consider_split): Limit splitt of one only functions.
31795 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31797 PR tree-optimization/65427
31798 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31800 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31802 2015-03-16 Marek Polacek <polacek@redhat.com>
31804 * cgraph.h (add_new_static_var): Remove declaration.
31805 * varpool.c (add_new_static_var): Remove function.
31807 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31809 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31810 instead of vec<tree> * with vec_alloc and release for args.
31813 PR middle-end/65431
31814 * omp-low.c (delete_omp_context): Only splay_tree_delete
31815 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31816 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
31818 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
31821 * cfgexpand.c (align_base): New function.
31822 (alloc_stack_frame_space): Call it.
31823 (expand_stack_vars): Align prev_frame to be sure
31824 data->asan_vec elements aligned properly.
31826 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
31828 PR middle-end/65409
31829 * expr.c (store_field): Do not do a direct block copy if the source is
31830 a PARALLEL with BLKmode.
31832 2015-03-16 Tom de Vries <tom@codesourcery.com>
31834 PR middle-end/65414
31836 2015-03-12 Tom de Vries <tom@codesourcery.com>
31838 PR rtl-optimization/64895
31839 * lra-lives.c (check_pseudos_live_through_calls): Use
31840 actual_call_used_reg_set instead of call_used_reg_set, if available.
31842 2015-03-16 Alan Modra <amodra@gmail.com>
31845 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31846 Modify Z->r bswapdi splitter to use dest in place of scratch.
31847 In r->Z and Z->r bswapdi splitter rename word_high, word_low
31848 to word1, word2 and rearrange logic to suit.
31849 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31850 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
31851 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31852 Add one '?' on r->r. Modify Z->r splitter to avoid need for
31855 2015-03-14 Jakub Jelinek <jakub@redhat.com>
31857 PR tree-optimization/65369
31858 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31859 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31860 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31862 PR tree-optimization/65418
31863 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31864 are casts in the first PLUS_EXPR operand, ensure tbias and
31865 *totallowp are in the inner type.
31867 PR rtl-optimization/65401
31868 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31869 argument. If true, adjust_address_nv of x with big-endian
31870 correction for the mode widening to GET_MODE (y).
31871 (make_field_assignment): Don't do MEM mode widening here.
31872 Use MEM_P instead of GET_CODE == MEM.
31874 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
31876 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31877 the external decls.
31879 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31882 * config/arm/arm.c (arm_gen_constant, AND case): Use
31883 ARM_SIGN_EXTEND when constructing AND mask.
31885 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31887 * graph.c (print_graph_cfg): Make function names visible and append
31888 parenthesis to it. Also make groups of basic blocks belonging to the
31889 same function visible.
31891 2015-03-12 Richard Biener <rguenther@suse.de>
31893 PR middle-end/44563
31894 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31895 to avoid quadratic behavior with inline expansion splitting blocks.
31896 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31897 with the successor if the predecessor will be merged with it.
31898 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31899 entry block with its successor.
31901 2015-03-13 Richard Biener <rguenther@suse.de>
31903 PR middle-end/44563
31904 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31905 (cleanup_tree_cfg_1): Do not call it.
31906 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31907 (fixup_noreturn_call): Mark the stmt as control altering.
31908 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31910 (pass_data_fixup_cfg): Produce a dump file.
31911 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31912 (need_noreturn_fixup): New global.
31913 (pass_dominator::execute): Fixup queued noreturn calls.
31914 (optimize_stmt): Queue calls that became noreturn for fixup.
31915 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31916 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31917 (el_to_fixup): New global.
31918 (eliminate_dom_walker::before_dom_childre): Queue calls that
31919 became noreturn for fixup.
31920 (eliminate): Fixup queued noreturn calls.
31921 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31922 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31923 (substitute_and_fold_dom_walker::before_dom_children): Queue
31924 alls that became noreturn for fixup.
31925 (substitute_and_fold): Fixup queued noreturn calls.
31927 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
31929 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31930 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31931 are building; for methods check ODR type of class they belong to if
31932 they may lead to a polymorphic call.
31933 (sem_function::compare_polymorphic_p): Be bit smarter about testing
31934 when function may lead to a polymorphic call.
31935 (sem_function::compare_type_list): Remove.
31936 (sem_variable::equals): Update use of compatible_types_p.
31937 (sem_variable::parse_tree_refs): Remove.
31938 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31940 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31942 (func_checker::compatible_polymorphic_types_p): Break out from ...
31943 (unc_checker::compatible_types_p): ... here.
31944 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31946 (unc_checker::compatible_types_p): Update.
31947 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31950 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31952 PR rtl-optimization/65235
31953 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31954 When first element of vec_concat is const_int, calculate its size
31955 using second element.
31957 2015-03-12 Richard Biener <rguenther@suse.de>
31959 PR middle-end/65270
31960 * fold-const.c (operand_equal_p): Fix ordering of resetting
31961 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31963 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31965 * config/s390/s390.c (s390_reorg): Move code to output nops after label
31967 (s390_asm_output_function_label): Likewise.
31968 * config/s390/s390.c (s390_asm_output_function_label):
31969 Fix function label alignment with -mhtopatch.
31970 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31971 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31972 ("nop_2_byte"): New define_insn.
31973 ("nop_4_byte"): Likewise.
31974 ("nop_6_byte"): Likewise.
31975 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31976 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31978 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31981 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31984 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31987 * toplev.c (process_options): Restrict Pointer Bounds Checker
31988 usage with Address Sanitizer.
31990 2015-03-12 Richard Biener <rguenther@suse.de>
31992 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31994 * omp-low.c (expand_omp_taskreg): Split block before removing
31996 (expand_omp_target): Likewise.
31997 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31998 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31999 stmt to split_block.
32001 2015-03-12 Tom de Vries <tom@codesourcery.com>
32003 PR rtl-optimization/64895
32004 * lra-lives.c (check_pseudos_live_through_calls): Use
32005 actual_call_used_reg_set instead of call_used_reg_set, if available.
32007 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32009 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
32010 (cgraph_node::remove): Likewise.
32011 (cgraph_node::get_untransformed_body): Likewise.
32012 * varpool.c (varpool_node::remove): Likewise.
32013 (varpool_node::get_constructor): Add sanity check.
32015 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
32017 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
32019 (-fabi-compat-version): Likewise.
32020 (-ffriend-injection): Likewise.
32021 (-Wdeclaration-after-statement): Likewise.
32022 (-fomit-frame-pointer): Likewise.
32023 (-ftree-coalesce-inlined-vars): Likewise.
32024 (-fvisibility=): Likewise.
32025 * doc/extend.texi (Typeof): Likewise.
32026 (Zero Length): Likewise.
32027 (Escaped Newlines): Likewise.
32028 (Compound Literals): Likewise.
32029 (Function Attributes): Likewise.
32030 (Label Attributes): Likewise.
32031 (Type Attributes): Likewise.
32032 (Function Names): Likewise.
32033 (Other Builtins): Likewise.
32034 (Function Specific Option Pragmas): Likewise.
32035 (C++ Interface): Likewise.
32037 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
32039 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
32041 2015-03-11 Marek Polacek <polacek@redhat.com>
32043 PR tree-optimization/65388
32044 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
32046 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32049 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
32050 * configure: Regenerate.
32051 * config.in: Regenerate.
32052 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
32053 [-mn-flash]: Document it.
32054 [__AVR_ARCH__]: Document avrtiny.
32056 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
32057 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
32058 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
32060 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32062 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
32064 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32067 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
32068 allow reloads of PLUS in floating point/VSX registers.
32070 2015-03-11 Junmo Park <junmoz.park@samsung.com>
32072 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
32073 crypto_sha256_fast.
32074 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
32076 2015-03-11 Richard Biener <rguenther@suse.de>
32078 PR tree-optimization/65310
32079 * tree-sra.c (build_ref_for_offset): Also preserve larger
32082 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
32084 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
32086 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32089 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
32091 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
32093 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32095 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
32096 (sem_function::equals_wpa): ... here.
32098 2015-03-10 Marek Polacek <polacek@redhat.com>
32099 Jakub Jelinek <jakub@redhat.com>
32102 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
32103 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
32106 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32109 * config/rs6000/t-linux: For powerpc64* target set
32110 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
32112 2015-03-10 Richard Biener <rguenther@suse.de>
32114 PR middle-end/44563
32115 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
32116 for redirect_all_calls.
32118 2015-03-10 Marek Polacek <polacek@redhat.com>
32120 * gdbinit.in (pcfun): Define and document.
32122 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
32124 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
32125 of libgomp-plugin.h.
32126 (find_target_compiler): Support a case when the path to gcc is
32127 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
32128 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
32129 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
32131 (main): Use GCC_INSTALL_NAME as target_driver_name.
32132 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
32134 (mkoffload.o): Remove obsolete include path and defines.
32135 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
32137 2015-03-10 Richard Biener <rguenther@suse.de>
32139 PR middle-end/63155
32140 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32141 * tree-ssa-coalesce.c: Include timevar.h.
32142 (attempt_coalesce): Handle graph being NULL.
32143 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32144 Split out abnormal coalescing to ...
32145 (perform_abnormal_coalescing): ... this function.
32146 (coalesce_ssa_name): Perform abnormal coalescing without computing
32148 (verify_ssa_coalescing_worker): New function.
32149 (verify_ssa_coalescing): Likewise.
32151 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32154 * config.gcc (extra_options) [avr]: Remove.
32155 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32156 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32157 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32159 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32160 (-mmcu=): Add Var and MissingArgError properties.
32162 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32163 * config/avr/t-multilib: Regenerate.
32164 * config/avr/specs.h: New file.
32165 * config/avr/driver-avr.c: New file.
32166 * config/avr/genopt.sh: Remove file.
32167 * config/avr/avr-tables.opt: Remove file.
32168 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32169 * config/avr/avr-c.c: Same.
32170 * avr-arch.h: Same.
32171 (avr_current_device): Remove proto.
32172 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32173 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32174 (EXTRA_SPEC_FUNCTIONS): Define.
32175 (avr_devicespecs_file): New specs function proto.
32176 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32177 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32178 (avr_current_device): Remove definition and usage.
32179 (avr_set_core_architecture): New static function.
32180 (avr_option_override): Use it.
32181 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32182 (mcu_name): New static array.
32183 (comparator, avr_archs_str, avr_mcus_str): New static functions.
32184 (avr_inform_devices, avr_inform_core_architectures): New functions.
32185 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32186 (avrlibc.h) [WITH_AVRLIBC]: Include.
32187 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32188 (print_mcu): Rewrite from scratch.
32189 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32190 Forward to avr-specific specs defined in device-specs file.
32191 * config/avr/t-avr (driver-avr.o): New rule.
32192 (avr-devices.o): Depend on avr-arch.h.
32193 (avr-mcus): No more depend on avr-tables.opt.
32194 (avr-tables.opt): Remove rule.
32195 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32197 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32199 * c-family/c.opt (fchkp-use-wrappers): New.
32200 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32201 (chkp_wrap_function): New.
32202 (chkp_build_instrumented_fndecl): Support wrapped
32204 * doc/invoke.texi (-fcheck-pointer-bounds): New.
32205 (-fchkp-check-incomplete-type): New.
32206 (-fchkp-first-field-has-own-bounds): New.
32207 (-fchkp-narrow-bounds): New.
32208 (-fchkp-narrow-to-innermost-array): New.
32209 (-fchkp-optimize): New.
32210 (-fchkp-use-fast-string-functions): New.
32211 (-fchkp-use-nochk-string-functions): New.
32212 (-fchkp-use-static-bounds): New.
32213 (-fchkp-use-static-const-bounds): New.
32214 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32215 (-fchkp-check-read): New.
32216 (-fchkp-check-write): New.
32217 (-fchkp-store-bounds): New.
32218 (-fchkp-instrument-calls): New.
32219 (-fchkp-instrument-marked-only): New.
32220 (-fchkp-use-wrappers): New.
32221 (-static-libmpx): New.
32222 (-static-libmpxwrappers): New.
32224 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32226 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32227 (CHKP_SPEC): Add wrappers library.
32228 * c-family/c.opt (static-libmpxwrappers): New.
32230 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32232 * config/i386/linux-common.h (LIBMPX_LIBS): New.
32233 (LIBMPX_SPEC): New.
32235 * gcc.c (CHKP_SPEC): New.
32236 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32237 * c-family/c.opt (static-libmpx): New.
32239 2015-03-10 Richard Biener <rguenther@suse.de>
32241 PR middle-end/44563
32242 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32244 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32245 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32246 (cgraph_add_edge_to_call_site_hash): Likewise.
32247 (cgraph_node::get_edge): Likewise.
32248 (cgraph_edge::set_call_stmt): Likewise.
32249 (cgraph_edge::remove_caller): Likewise.
32251 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
32253 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32254 (callee_saved_gpr_regs_size): ... this.
32255 (callee_saved_regs_first_regno): Rename to ...
32256 (callee_saved_first_gpr_regno): ... this.
32257 (callee_saved_regs_last_regno) Rename to ...
32258 (callee_saved_last_gpr_regno): ... this.
32259 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32261 (nds32_initial_elimination_offset): Likewise.
32262 (nds32_expand_prologue): Likewise.
32263 (nds32_expand_epilogue): Likewise.
32264 (nds32_expand_prologue_v3push): Likewise.
32265 (nds32_expand_epilogue_v3pop): Likewise.
32266 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32267 Adjust renamed variables.
32268 (nds32_output_stack_pop): Likewise.
32270 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
32272 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32275 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32277 PR rtl-optimization/65321
32278 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32280 * var-tracking.c (use_narrower_mode): Likewise.
32282 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32284 PR tree-optimization/65355
32285 * varasm.c (notice_global_symbol): Do not produce RTL.
32286 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32288 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32289 check for section anchors.
32291 2015-03-10 Alan Modra <amodra@gmail.com>
32294 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32295 to be single-arch by default. Set cpu_is_64bit for powerpc64
32296 given --with-cpu=native.
32297 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32298 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32300 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32301 rs6000_isa_flags rather than TARGET_64BIT.
32303 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
32304 Kaz Kojima <kkojima@gcc.gnu.org>
32306 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32308 2015-03-09 Jakub Jelinek <jakub@redhat.com>
32311 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32312 on a TREE_BINFO, instead use BINFO_TYPE.
32314 2015-03-09 Richard Biener <rguenther@suse.de>
32316 PR middle-end/65270
32317 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32318 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32319 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
32320 of that. When comparing dereferences compare alignment.
32321 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32323 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32325 * ipa-inline-analysis.c (check_callers): Check
32326 node->can_remove_if_no_direct_calls_and_refs_p.
32327 (growth_likely_positive): Reorganize to call
32328 can_remove_if_no_direct_calls_p later.
32329 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32330 will_be_removed_from_program_if_no_direct_calls_p): Add
32331 will_inline parameter.
32332 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32333 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32334 Handle inliner case correctly.
32336 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32338 PR tree-optimization/63743
32339 * cfgexpand.c (reorder_operands): Also reorder if only second operand
32340 had its definition forwarded by TER.
32342 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32345 * ipa-utils.h (types_odr_comparable): Add strict argument.
32346 * ipa-devirt.c: Fix whitespace;
32347 (odr_hasher): Remove.
32348 (odr_name_hasher, odr_vtable_hasher): New hashers.
32349 (can_be_name_hashed_p): New predicate.
32350 (hash_type_name): remove.
32351 (hash_odr_name): New.
32352 (odr_name_hasher::hash): new.
32353 (can_be_vtable_hashed_p): New.
32354 (hash_odr_vtable): New.
32355 (odr_vtable_hasher::hash): New.
32356 (types_same_for_odr): Add strict parameter.
32357 (types_odr_comparable): Likewise.
32358 (odr_name_hasher::equal): New.
32359 (odr_vtable_hasher::equal): New.
32360 (odr_name_hasher::remove): New.
32361 (odr_hash_type): Change to hash_table<odr_name_hasher>.
32362 (odr_vtable_hash_type): New.
32363 (odr_vtable_hash): New.
32364 (odr_subtypes_equivalent_p): Do strict comparsion.
32365 (add_type_duplicate): Merge type names; cleanup; avoid type
32367 (register_odr_type): Initialize vtable hash.
32368 (build_type_inheritance_graph): Likewise
32369 (get_odr_type): Reorg to use two hashes.
32370 (dump_possible_polymorphic_call_targets): Move sanity check after debug
32372 (ipa_devirt): Dump type_inheritance_graph.
32373 (types_same_for_odr): Add strict mode.
32375 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32378 * cgraph.h (symtab_node): Add definition_alignment,
32379 can_increase_alignment_p and increase_alignment.
32380 * symtab.c (symtab_node::can_increase_alignment_p,
32381 increase_alignment_1, symtab_node::increase_alignment,
32382 symtab_node::definition_alignment): New.
32383 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32384 can_increase_alignment_p.
32385 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32386 * tree-vect-stmts.c (ensure_base_align): Likewise.
32387 * varasm.c (function_section_1): Use definition_alignment.
32388 (assemble_start_function): Likewise.
32389 (emit_local): likewise.
32390 (build_constant_desc): Likewsie.
32391 (output_constant_def_contents): Likewise.
32392 (place_block_symbol): Likewise.
32393 (output_object_block): Likewise.
32395 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32398 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32399 when outputting debug.
32401 2015-03-07 Marek Polacek <polacek@redhat.com>
32402 Martin Uecker <uecker@eecs.berkeley.edu>
32405 * doc/invoke.texi: Update description of -fsanitize=bounds.
32407 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
32409 * tree-ssa-phiopt.c (neg_replacement): Remove.
32410 (tree_ssa_phiopt_worker): Remove negate optimization.
32412 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32415 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32417 2015-03-06 Richard Biener <rguenther@suse.de>
32419 PR middle-end/64928
32420 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32421 and liveout_obstack members.
32422 (calculate_live_on_exit): Remove.
32423 (calculate_live_ranges): Change declaration.
32424 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32425 (new_tree_live_info): Adjust.
32426 (calculate_live_ranges): Delete livein when not wanted.
32427 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32428 Deal with partly deleted live info.
32429 (loe_visit_block): Remove temporary bitmap by using
32430 bitmap_ior_and_compl_into.
32431 (live_worklist): Adjust accordingly.
32432 (calculate_live_on_exit): Make static.
32433 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32434 we do not need livein.
32436 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
32438 * real.c (real_from_string): Fix typo in assertion.
32440 2015-03-06 Alex Velenko <alex.velenko@arm.com>
32442 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32445 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32447 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32449 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
32452 * lra-assigns.c (find_hard_regno_for): Rename to
32453 find_hard_regno_for_1. Add a new parameter.
32454 (find_hard_regno_for): New function using find_hard_regno_for_1.
32456 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32458 PR rtl-optimization/65067
32459 * expmed.c (store_bit_field, extract_bit_field): Reworked the
32460 strict volatile bitfield handling.
32462 2015-03-05 Martin Liska <mliska@suse.cz>
32465 * ipa-icf.c (sem_variable::equals): Compare variables types.
32467 2015-03-05 Richard Henderson <rth@redhat.com>
32470 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32471 correctly check weak symbol binding.
32473 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
32475 PR middle-end/65315
32476 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32479 2015-03-05 Martin Liska <mliska@suse.cz>
32481 * ipa-inline.c (inline_small_functions): Set default value to
32482 prevent warning during bootstrap.
32483 * tree.h: Add pragma guard that ignores false positives during
32486 2015-03-05 Richard Biener <rguenther@suse.de>
32488 PR tree-optimization/65310
32489 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32490 Properly preserve alignment of the base of the access.
32492 2015-03-05 Richard Biener <rguenther@suse.de>
32495 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32496 Compare dependence info.
32498 2015-03-05 Richard Biener <rguenther@suse.de>
32500 PR middle-end/65233
32501 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32503 (walk_ssa_copies): Revert last chage. Instead do not walk
32504 SSA names registered for SSA update.
32506 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32509 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32510 vtable references for their containing type.
32511 (sem_function::equals_wpa): Compare TYPE_RESTRICT
32512 and type attributes.
32514 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
32516 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32517 before negating it.
32518 * stor-layout.c (finalize_record_size): Revert latest change.
32520 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
32522 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32524 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32526 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32527 for correct comdat handling.
32528 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32530 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32531 (used_from_object_file_p_worker): Remove.
32532 (cgraph_node::only_called_directly_or_alised): Add
32533 used_from_object_file_p.
32534 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32535 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32536 can_remove_if_no_direct_calls_and_refs_p.
32538 2015-03-04 Nick Clifton <nickc@redhat.com>
32540 * config/rl78/rl78.h (enum reg_class): Remove real registers from
32541 General register class.
32542 * config/rl78/rl78-real.md: Replace general register constraints
32543 with real+virtual register constraints.
32545 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32547 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32548 from checking for -mhtm option.
32550 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32552 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32553 (struct ipa_sra_check_caller_data): Add has_thunk field.
32554 (ipa_sra_check_caller): Check for thunk.
32555 (ipa_sra_preliminary_function_checks): Give up on function with
32557 (ipa_early_sra): Use call_for_symbol_and_aliases.
32559 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
32562 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32563 called for __stack_chk_guard symbol.
32565 2015-03-03 DJ Delorie <dj@redhat.com>
32567 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32569 (*addhi3_real): Likewise.
32570 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32571 pattern to match incrementing memory.
32572 * config/rl78/predicates.md (rl78_1_2_operand): New.
32573 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32574 it's the same and only mem.
32575 (rl78_alloc_physical_registers_op2): If there's effectively only
32576 one MEM, transcode it into HL.
32577 (rl78_far_p): Reject addresses that aren't legitimate.
32579 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32581 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32584 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32586 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32588 Implement call0 ABI for xtensa
32589 * config/xtensa/constraints.md ("a" constraint): Include stack
32590 pointer in case of call0 ABI.
32591 ("q" constraint): Make empty in case of call0 ABI.
32592 ("D" constraint): Include stack pointer in case of call0 ABI.
32593 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32594 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32596 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32598 (xtensa_regno_to_class): Make it a local variable in the
32599 function xtensa_regno_to_class.
32600 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32601 macro, function prototype and implementation.
32602 (reg_nonleaf_alloc_order): Make it a local variable in the
32603 function order_regs_for_local_alloc.
32604 (xtensa_conditional_register_usage): New function.
32605 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32606 (xtensa_valid_move): Allow direct moves to stack pointer
32607 register in call0 ABI.
32608 (xtensa_setup_frame_addresses): Only spill register windows in
32610 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32611 call0 ABI respectively.
32612 (xtensa_function_arg_1): Only mark a7 register for copying in
32614 (xtensa_call_save_reg): New function.
32615 (compute_frame_size): Add space for callee saved register
32616 storage to the frame size in call0 ABI.
32617 (xtensa_expand_prologue): Generate code to set up stack frame
32618 and save callee-saved registers in call0 ABI.
32619 (xtensa_expand_epilogue): New function.
32620 (xtensa_set_return_address): New function.
32621 (xtensa_return_addr): Calculate return address in call0 ABI.
32622 (xtensa_builtin_saveregs): Only mark a7 register for copying and
32623 emit copying code in windowed ABI.
32624 (order_regs_for_local_alloc): Add preferred register allocation
32625 order for non-leaf function in call0 ABI.
32626 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32627 (xtensa_asm_trampoline_template): Add trampoline generation for
32629 (xtensa_trampoline_init): Add trampoline initialization for
32631 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32633 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32634 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32635 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32636 ABI call-used registers.
32637 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32638 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32640 (REG_CLASS_CONTENTS): Include all registers into the preferred
32641 reload registers set, adjust the set in the
32642 xtensa_conditional_register_usage.
32643 (xtensa_regno_to_class): Drop variable declaration.
32644 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32646 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32648 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32649 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32650 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32651 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32652 location in call0 ABI.
32653 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32654 stack adjustment size when handling exception.
32655 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32656 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32658 ("return" pattern): Generate ret.n/ret in call0 ABI.
32659 ("epilogue" pattern): Expand epilogue.
32660 ("nonlocal_goto" pattern): Use default in call0 ABI.
32661 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32662 emit eh_set_a0_* depending on ABI.
32663 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32664 ("eh_set_a0_call0", "blockage"): New patterns.
32666 2015-03-03 Martin Liska <mliska@suse.cz>
32669 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32671 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32674 * config/rs6000/rs6000-tables.opt: Regenerate table.
32676 2015-03-03 Renlin Li <renlin.li@arm.com>
32678 * doc/md.texi (@item ^): Change ? into ^.
32680 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
32682 * doc/tm.texi: Regenerated.
32684 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32686 * builtins.c (expand_builtin_return_addr): Add
32687 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32688 surrounding #ifdef.
32689 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32691 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32693 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32695 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32698 2015-03-03 Martin Jambor <mjambor@suse.cz>
32699 Eric Botcazou <ebotcazou@adacore.com>
32701 * tree-sra.c (ipa_sra_check_caller_data): New type.
32702 (has_caller_p): Removed.
32703 (ipa_sra_check_caller): New function.
32704 (ipa_sra_preliminary_function_checks): Use it.
32706 2015-03-03 Martin Liska <mliska@suse.cz>
32708 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32709 instead of if branch.
32711 2015-03-03 Martin Liska <mliska@suse.cz>
32714 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32716 2015-03-23 Jeff Law <law@redhat.com>
32718 PR tree-optimization/65241
32719 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32720 hash table if INSERT is true.
32722 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32725 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32727 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32730 * config/avr/avr.c (context.h, tree-pass.h): Include them.
32731 (avr_pass_data_recompute_notes): New static variable.
32732 (avr_pass_recompute_notes): New class.
32733 (avr_register_passes): New static function.
32734 (avr_option_override): Call it.
32736 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32738 Fix various problems with specs file generation.
32741 * config.gcc (extra_gcc_objs) [avr]: Remove.
32742 * config/avr/driver-avr.c: Remove file.
32743 * config/avr/t-avr (driver-avr.o): Remove rule.
32744 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32745 INCLUDES to build. Depend on TM_H.
32746 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
32747 build warnings. Fix non-matching types and non-existing %-codes.
32749 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32750 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32751 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32752 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32753 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32754 (LIBGCC_SPEC): Remove definitions.
32756 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32758 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32759 to create a register in testing mode.
32761 2015-03-03 Martin Liska <mliska@suse.cz>
32762 Jan Hubicka <hubicka@ucw.cz>
32765 * cgraph.c (cgraph_node::has_thunk_p): New function.
32766 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32767 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32768 (sem_function::merge): Assert is changed.
32770 2015-03-03 Martin Liska <mliska@suse.cz>
32771 Martin Jambor <mjambor@suse.cz>
32774 * ipa-icf.c (sem_item_optimizer::execute): Change function
32775 return value to boolean.
32776 (sem_item_optimizer::merge_classes): Likewise.
32777 (ipa_icf_driver): Return TODO_remove_functions in case there's
32778 a merge operation processed.
32779 * ipa-icf.h: Change function return value to boolean.
32781 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
32784 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32785 processor type for 64-bit little endian PowerPC.
32787 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32788 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
32789 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
32790 printing built-in mask so it does not pass NULL pointers.
32792 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32795 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
32798 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32799 !ISA_HAS_FP_CONDMOVE.
32801 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
32803 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32806 2015-03-02 Ulrich Drepper <drepper@gmail.com>
32808 * doc/invoke.texi (Options for Code Generation Conventions):
32809 Fix URL of DSO paper.
32811 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32814 * ipa-inline.c (check_callers): Looks for recursion.
32815 (inline_to_all_callers): Give up on uninlinable or recursive edges.
32816 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32817 summary of inline clones.
32818 (do_estimate_growth_1): Fix recursion check.
32820 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32823 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32826 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32827 Aldy Hernandez <aldyh@redhat.com>
32830 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32831 when checking TYPE_BINFO.
32833 2015-03-02 Richard Biener <rguenther@suse.de>
32836 * ipa-icf-gimple.c: Include builtins.h.
32837 (func_checker::compare_memory_operand): Compare base alignment.
32839 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32842 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32843 passed by reference.
32845 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32848 * tree-chkp.c (chkp_check_lower): Don't check against
32849 zero bounds for already instrumented functions.
32850 (chkp_check_upper): Likewise.
32851 (chkp_fini): Clean pass local data to avoid wrong reusage.
32853 2015-02-28 Martin Liska <mliska@suse.cz>
32854 Jan Hubicka <hubicka@ucw.cz>
32856 * ipa-icf.c (sem_variable::equals): Improve debug output;
32857 get variable constructor.
32858 (sem_variable::parse): Do not filter out too early; give up on
32859 volatile and register vars.
32860 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32862 * ipa-icf.h (sem_variable::init): Do not set ctor.
32863 (sem_variable::ctor): Remove.
32865 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
32867 PR middle-end/65233
32868 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32870 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32872 * ipa-icf.c: Include stor-layout.h
32873 (sem_function::compare_cgraph_references): Rename to ...
32874 (sem_item::compare_cgraph_references): ... this one.
32875 (sem_variable::equals_wpa): New function
32876 (sem_variable::equals): Do not check stuff already verified by
32878 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32879 * ipa-icf.h (sem_item): Add compare_cgraph_references.
32880 (sem_function): Remove compare_cgraph_references.
32881 (sem_variable): Turns equals_wpa into non-inline.
32883 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32885 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32886 (sem_item::add_expr): New function.
32887 (sem_function::hash_stmt): Handle operands of most statements.
32888 (sem_variable::get_hash): Hash the actual constructor.
32889 * ipa-icf.h (sem_item): Add add_expr.
32890 (sem_function): Update prototype of hash_stmt
32892 2015-02-28 Martin Liska <mliska@suse.cz>
32893 Jan Hubicka <hubicka@ucw.cz>
32896 * ipa-icf-gimple.c (func_checker::compare_function_decl):
32898 (func_checker::compare_variable_decl): Skip symtab vars.
32899 (func_checker::compare_cst_or_decl): Update.
32900 * ipa-icf.c (sem_function::parse): Do not consider aliases.
32901 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32902 use correct symtab predicates.
32903 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32904 (sem_variable::parse): Update comment.
32905 (sem_item_optimizer::build_graph): Consider ultimate aliases
32908 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32910 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32913 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32915 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32916 (sem_variable::merge) Likewise.
32918 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32920 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32921 target; also match flag_ipa_devirt.
32923 2015-03-01 Martin Liska <mliska@suse.cz>
32924 Jan Hubicka <hubicka@ucw.cz>
32926 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32927 Validate variable alignment.
32928 * ipa-icf.c (sem_function::equals_private): Be more precise
32929 about non-common function attributes.
32930 (sem_variable::equals): Likewise.
32932 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32935 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32936 across COMDAT group boundary.
32938 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32941 * ipa-icf.c (clear_decl_rtl): New function.
32942 (sem_function::merge): Clear RTL before forming alias.
32943 (sem_variable::merge): Clear RTL before forming alias.
32945 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32948 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32950 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
32952 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32955 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32957 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32958 a typo in the description.
32960 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32963 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32964 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32965 * lra-constraints.c: Include "params.h".
32966 (EBB_PROBABILITY_CUTOFF): Use
32967 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32968 (lra_inheritance): Use '<' instead of '<=' for
32969 EBB_PROBABILITY_CUTOFF.
32970 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32973 2015-02-27 Martin Liska <mliska@suse.cz>
32975 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32976 vector length condition.
32978 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
32980 * doc/extend.texi (x86 transactional memory intrinsics):
32981 Reorganize discussion of _xbegin. Clarify that the return
32982 value is a bit mask. Expand example and move to end of section.
32984 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32985 Aldy Hernandez <aldyh@redhat.com>
32987 PR rtl-optimization/65220
32988 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32990 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32993 * lra-remat.c (update_scratch_ops): New.
32994 (do_remat): Call it.
32995 * lra.c (lra_register_new_scratch_op): New. Take code from ...
32996 (remove_scratches): ... here.
32997 * lra-int.h (lra_register_new_scratch_op): New prototype.
32999 2015-02-27 Marek Polacek <polacek@redhat.com>
33002 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
33003 -Wformat-signedness anymore.
33005 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33007 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
33009 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
33011 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33013 * config/s390/s390.c (enum s390_builtin):
33014 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
33015 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
33016 (s390_init_builtins): Generate new builtin functions.
33017 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
33018 (s390_sfpc, s390_efpc): New pattern definitions.
33020 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33022 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
33023 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
33024 (s390_builtin_decls): New array.
33025 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
33026 (s390_builtin_decl): New function.
33027 (TARGET_BUILTIN_DECL): Define macro.
33029 2015-02-27 Richard Biener <rguenther@suse.de>
33031 PR middle-end/63175
33032 * builtins.c (get_object_alignment_2): Make sure to re-apply
33033 the ANDed mask after recursing to its operand gets us a new
33034 misalignment bit position.
33036 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
33037 Martin Liska <mliska@suse.cz>
33040 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
33041 Use address_matters_p.
33042 (redirect_all_callers, set_addressable): New functions.
33043 (sem_function::merge): Reorganize and fix merging issues.
33044 (sem_variable::merge): Likewise.
33045 (sem_variable::compare_sections): Remove.
33046 * common.opt (fmerge-all-constants, fmerge-constants): Remove
33048 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
33050 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
33052 (address_matters_1): New function.
33053 (symtab_node::address_matters_p): New function.
33054 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
33055 check for merged flag.
33056 * cgraph.h (address_matters_p): Declare.
33057 (symtab_node::address_taken_from_non_vtable_p): Remove.
33058 (symtab_node::address_can_be_compared_p): New method.
33059 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
33060 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
33062 (comdat_can_be_unshared_p_1) Use address_matters_p.
33063 (update_vtable_references): Fix formating.
33064 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
33065 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
33066 * cgraphclones.c: Preserve merged and icf_merged flags.
33068 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
33070 * doc/extend.texi (Function Attributes): Fix spelling and typos.
33071 (Label Attributes): Likewise.
33072 (Cilk Plus Builtins): Likewise.
33073 (ARC SIMD Built-in Functions): Likewise.
33074 (ARM C Language Extensions (ACLE)): Likewise.
33075 (PowerPC Built-in Functions): Likewise.
33076 (PowerPC Hardware Transactional Memory Built-in Functions):
33079 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33081 PR tree-optimization/65216
33082 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
33083 new stmt and new SSA_NAME for lhs whenever the arguments have
33084 changed and weren't just swapped. Fix comment typo.
33086 PR tree-optimization/65215
33087 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
33088 for PDP endian targets.
33089 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
33090 Fix up formatting issues.
33091 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
33092 size is smaller than the original, adjust MEM_REF offset by the
33093 difference of sizes. Use is_gimple_mem_ref_addr instead of
33094 is_gimple_min_invariant test to avoid adding address temporaries.
33096 2015-02-26 Martin Liska <mliska@suse.cz>
33097 Jan Hubicka <hubicka@ucw.cz>
33100 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
33101 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
33102 (sem_item_optimizer::process_cong_reduction): Include division by
33103 sensitive references.
33104 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
33105 * ipa-ref.c (ipa_ref::address_matters_p): New function.
33106 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
33108 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
33111 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
33113 * config/avr/avr.c: Same.
33114 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
33115 Refuse any constant address not in 0..0xbf.
33116 * config/avr/avr.md (*mov<mode>, *movsf): Remove
33117 tiny_valid_direct_memory_access_range from insn conditions.
33118 (mov<mode>): Don't special-case expansion of avrtiny addresses.
33120 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
33123 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
33124 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
33125 * config/sh/predicates.md (const_logical_operand): New predicate.
33126 * config/sh/sh.md: Add new peephole2 patterns.
33128 2015-02-26 Marek Polacek <polacek@redhat.com>
33131 * ipa-inline.c (early_inliner): Recompute inline parameters.
33133 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33136 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
33137 instructions with TImode operands are included in the analysis.
33139 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33141 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
33142 of an EDGE_FSM_THREAD.
33144 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
33146 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
33148 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
33151 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
33153 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33155 PR tree-optimization/65048
33156 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33157 (thread_through_all_blocks): Call valid_jump_thread_path.
33158 Remove invalid FSM jump-thread paths.
33160 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33162 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33163 (ipa_write_optimization_summaries): Likewise.
33164 * tree-streamer.h: Include data-streamer.h.
33165 (streamer_mode_table): Declare extern variable.
33166 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33167 * lto-streamer-out.c (lto_output_init_mode_table,
33168 lto_write_mode_table): New functions.
33169 (produce_asm_for_decls): Call lto_write_mode_table when streaming
33171 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33172 (lto_create_simple_input_block): Add mode_table argument to the
33173 lto_input_block constructors.
33174 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33176 * data-streamer-in.c (string_for_index): Likewise.
33177 * ipa-inline-analysis.c (inline_read_section): Likewise.
33178 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33179 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33180 * lto-streamer-in.c (lto_read_body_or_constructor,
33181 lto_input_toplevel_asms): Likewise.
33182 (lto_input_mode_table): New function.
33183 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33184 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33185 Use bp_pack_machine_mode.
33186 * real.h (struct real_format): Add name field.
33187 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33188 (class lto_input_block): Add mode_table member.
33189 (lto_input_block::lto_input_block): Add mode_table_ argument,
33190 initialize mode_table.
33191 (struct lto_file_decl_data): Add mode_table field.
33192 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33193 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33194 unpack_ts_decl_common_value_fields,
33195 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33196 * tree-streamer.c (streamer_mode_table): New variable.
33197 * real.c (ieee_single_format, mips_single_format,
33198 motorola_single_format, spu_single_format, ieee_double_format,
33199 mips_double_format, motorola_double_format,
33200 ieee_extended_motorola_format, ieee_extended_intel_96_format,
33201 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33202 ibm_extended_format, mips_extended_format, ieee_quad_format,
33203 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33204 decimal_single_format, decimal_double_format, decimal_quad_format,
33205 ieee_half_format, arm_half_format, real_internal_format): Add name
33207 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33209 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
33212 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33213 reordering for selective scheduling.
33215 2015-02-26 Terry Guo <terry.guo@arm.com>
33217 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33218 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33219 (arm_arch_no_volatile_ce): Declare new global variable.
33220 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33221 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33222 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33223 (TARGET_NO_VOLATILE_CE): New macro.
33224 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33225 volatile memory access in IT block
33227 2015-02-25 Kai Tietz <ktietz@redhat.com>
33229 PR tree-optimization/61917
33230 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33231 that reduc_def_stmt is null.
33233 2015-02-25 Martin Liska <mliska@suse.cz>
33235 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33236 hard register variables.
33238 2015-02-25 Kai Tietz <ktietz@redhat.com>
33241 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33242 (symtab::noninterposable_alias): Likewise.
33244 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
33247 * config/i386/i386.c (ix86_function_arg_regno_p): Support
33249 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33251 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
33254 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33255 as split condition; force split via '#' in output pattern.
33257 2015-02-25 Richard Biener <rguenther@suse.de>
33258 Kai Tietz <ktietz@redhat.com>
33260 PR tree-optimization/61917
33261 * tree-vect-loop.c (vectorizable_reduction): Allow
33262 vect_internal_def without reduction to exit graceful.
33264 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33267 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33268 only with NONDEBUG_INSN_P.
33270 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33272 Use variadic macros with avr-log.c.
33274 * config/avr/avr-protos.h (avr_vdump): New prototype.
33275 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33276 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33277 * config/avr/avr-log.c: Adjust comments.
33278 (avr_vdump): New function.
33279 (avr_vadump): Pass caller as 2nd argument instead of format string.
33280 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33281 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33283 2015-02-25 Jakub Jelinek <jakub@redhat.com>
33286 * target.def (target_option_stream_in): New target hook.
33287 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33288 targetm.target_option.post_stream_in if non-NULL.
33289 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33290 * doc/tm.texi: Updated.
33291 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33293 (TARGET_OPTION_POST_STREAM_IN): Redefine.
33295 2015-02-24 Jeff Law <law@redhat.com>
33298 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33299 of operand 0 and operand 2.
33300 (zero_cost_loop_end, loop_end): Similarly.
33302 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
33304 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33307 2015-02-24 DJ Delorie <dj@redhat.com>
33309 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33310 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33311 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33312 instead of hardcoding SImode.
33314 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
33316 * omp-low.c (create_omp_child_function): Tag entrypoint
33317 functions with a special attribute.
33319 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33322 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33324 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
33326 PR rtl-optimization/65123
33327 * lra-remat.c (operand_to_remat): Check hard regs in insn
33330 2015-02-24 Nick Clifton <nickc@redhat.com>
33332 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33335 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
33338 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33339 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33340 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33341 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33342 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33343 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33344 (BUILT_IN_GOACC_PARALLEL): Specify as
33345 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33346 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33347 * builtin-types.def
33348 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33349 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33350 Remove function types.
33351 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33352 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33353 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33354 New function types.
33356 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
33358 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33360 2015-02-24 Jakub Jelinek <jakub@redhat.com>
33362 PR tree-optimization/65170
33363 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33364 if val[1] < 0, clear also val[2] and return 3.
33366 2015-02-24 Alan Modra <amodra@gmail.com>
33369 * config/rs6000/rs6000.c (get_memref_parts): Only return true
33370 when *base is a reg. Handle nested plus addresses. Simplify
33373 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
33375 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33376 use natural alignment when optimizing for size.
33378 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
33381 * config/sh/sh.md (movsicc_true+3): Remove peephole.
33382 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33383 * config/sh/sh.c (replace_n_hard_rtx): Remove.
33385 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
33388 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33389 too big for a wide_int. Implement missing wrapping operation.
33391 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
33394 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33395 instead of const_int 4294901760.
33397 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
33399 * config/avr/t-avr: Fix typo in comment.
33401 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
33403 * doc/rtl.texi (fma): Clarify documentation.
33405 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
33408 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33409 over input_location.
33411 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33413 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33414 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33415 restrict alignments to absolute_biggest_alignment.
33416 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33418 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33419 * doc/tm.texi: Regenerate.
33420 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33422 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
33425 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33427 2015-02-20 Richard Biener <rguenther@suse.de>
33429 PR tree-optimization/65136
33430 * tree-ssa-propagate.c: Include cfgloop.h.
33431 (replace_phi_args_in): Avoid replacing loop latch edge PHI
33432 arguments with constants.
33434 2015-02-20 Jakub Jelinek <jakub@redhat.com>
33435 Martin Liska <mliska@suse.cz>
33438 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33439 don't try to create_thunk if stdarg_p. If
33440 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33441 redirect_callers if possible.
33442 (sem_item_optimizer::execute): Call unregister_hooks here...
33443 (ipa_icf_driver): ... instead of here.
33445 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33447 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33448 Mark operand 0 as earlyclobber in 2nd alternative.
33449 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33450 Write negated shift amount into QI lowpart operand 0 and use it
33452 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33454 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33456 * cgraph.h (clone_function_name_1): Declare.
33457 * cgraphclones.c (clone_function_name_1): New function.
33458 (clone_function_name): Use it.
33459 * lto-partition.c: Include "stringpool.h".
33460 (must_not_rename, maybe_rewrite_identifier)
33461 (validize_symbol_for_target): New static functions.
33462 (privatize_symbol_name): Use must_not_rename.
33463 (promote_symbol): Call validize_symbol_for_target.
33464 (lto_promote_cross_file_statics): Likewise.
33465 (lto_promote_statics_nonwpa): Likewise.
33467 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
33470 * config/avr/avr.md (pushhi_insn): New insn.
33471 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33473 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33474 Jakub Jelinek <jakub@redhat.com>
33476 * tree-streamer.c (preload_common_nodes): Don't preload
33477 TI_VA_LIST* for offloading.
33478 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33481 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
33483 * config/pa/pa.c (pa_emit_move_sequence): Always force
33484 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
33487 * config/pa/pa.c (pa_reloc_rw_mask): New function.
33488 (TARGET_ASM_RELOC_RW_MASK): Define.
33489 (pa_cannot_force_const_mem): Revert previous change.
33491 2015-02-19 Martin Jambor <mjmabor@suse.cz>
33492 Jan Hubicka <hubicka@ucw.cz>
33495 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33496 across jump functions.
33498 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
33500 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33502 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
33504 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33506 2015-02-19 Richard Henderson <rth@redhat.com>
33508 PR middle-end/65074
33509 * varasm.c (default_binds_local_p_2): Don't test node->definition;
33510 test DECL_EXTERNAL independent of symtab_node.
33512 2015-02-19 Jakub Jelinek <jakub@redhat.com>
33515 * varpool.c (varpool_node::get_constructor): Return early
33516 if this->lto_file_data is NULL.
33518 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33520 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33521 (rank_for_schedule_debug): Update.
33522 (ready_sort): Make static. Move sorting logic to ...
33523 (ready_sort_debug, ready_sort_real): New static functions.
33524 (schedule_block): Sort both debug insns and real insns in preparation
33525 for ready list trimming. Improve debug output.
33526 * sched-int.h (ready_sort): Remove global declaration.
33528 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
33530 * ipa-icf.c (sem_function::equals_private): Adjust.
33531 (sem_function::bb_dict_test): Take a vec<int> * instead of
33533 * ipa-icf.h (bb_dict_test): Likewise.
33535 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33537 PR gcov-profile/64634
33538 * tree-eh.c (frob_into_branch_around): Fix up typos
33539 in function comment.
33540 (lower_catch): Put eh_seq resulting from EH lowering of
33541 the cleanup sequence after the cleanup rather than before it.
33543 2015-02-18 Tom de Vries <tom@codesourcery.com>
33545 * common.opt (fstdarg-opt): New option.
33546 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33547 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33548 (@item -fstdarg-opt): New item.
33550 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
33553 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33554 for common symbols.
33556 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33558 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33560 (ALL_HOST_OBJS): Add mkoffload.o.
33561 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33563 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
33565 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33566 (compare_virtual_tables): Be smarter about skipping typeinfos;
33567 do sane output on virtual table table mismatch.
33568 (warn_odr): Be ready for forward declarations of enums;
33569 output sane info on base mismatch and virtual table mismatch.
33570 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33571 when only one type is polymorphic.
33572 (get_odr_type): Fix hashtable corruption.
33573 (dump_odr_type): Dump mangled names.
33575 2015-02-18 Richard Biener <rguenther@suse.de>
33577 PR tree-optimization/65063
33578 * tree-predcom.c (determine_unroll_factor): Return 1 if we
33579 have replaced looparound PHIs.
33581 2015-02-18 Martin Liska <mliska@suse.cz>
33583 * lto-streamer.c (lto_streamer_init): Encapsulate
33584 streamer_check_handled_ts_structures with checking macro.
33586 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33589 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33590 section if !implicit_section.
33591 (cgraph_node::create_version_clone_with_body): Likewise.
33592 * trans-mem.c (ipa_tm_create_version): Likewise.
33594 2015-02-18 Richard Biener <rguenther@suse.de>
33596 PR tree-optimization/62217
33597 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33600 2015-02-18 Marek Polacek <polacek@redhat.com>
33603 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33604 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33605 is in range [-16K, -1]. Don't issue run-time error if
33606 (ptr > ptr + offset).
33608 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
33610 * doc/install.texi (nvptx-*-none): New section.
33611 * doc/invoke.texi (Nvidia PTX Options): Likewise.
33612 * config/nvptx/nvptx.opt: Update.
33614 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33615 (access_check): New functions, copied from
33616 config/i386/intelmic-mkoffload.c.
33617 (main): For non-installed testing, look in all COMPILER_PATHs for
33620 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33622 2015-02-18 Andrew Pinski <apinski@cavium.com>
33623 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33625 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33626 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33628 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33630 * ipa-visibility.c (function_and_variable_visibility): Only
33631 check locality if node is not already local.
33632 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33633 call_for_symbol_and_aliases instead of
33634 call_for_symbol_thunks_and_aliases.
33635 (ipa_inline): Likewise.
33636 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33637 first walk aliases.
33638 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33639 call_for_symbol_and_aliases.
33640 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33641 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33642 (ipa_propagate_frequency): Update.
33643 (ipa_profile): Add opt_for_fn gueards.
33645 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33647 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33648 * doc/invoke.texi (SH options): Document it.
33649 * config/sh/sh.c (sh_insn_length_adjustment): Check
33650 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33652 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
33654 * common.opt (fipa-cp-alignment): New.
33655 * ipa-cp.c (ipcp_store_alignment_results): Check
33656 flag_ipa_cp_alignment.
33657 * opts.c (default_options_table): Enable -fipa-cp-alignment for
33659 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33660 * doc/invoke.texi: Document -fipa-cp-alignment.
33662 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33665 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33666 to nil. Adjust comments.
33668 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33670 * ipa-visibility.c (function_and_variable_visibility): Only
33671 check locality if node is not already local.
33672 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33673 call_for_symbol_and_aliases instead of
33674 call_for_symbol_thunks_and_aliases.
33675 (ipa_inline): Likewise.
33676 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33677 first walk aliases.
33678 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33679 call_for_symbol_and_aliases.
33680 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33681 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33682 (ipa_propagate_frequency): Update.
33683 (ipa_profile): Add opt_for_fn guards.
33685 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
33687 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33688 skipping of "strange" tokens.
33690 2015-02-17 Jeff Law <law@redhat.com>
33692 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
33695 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
33697 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33698 as forcing a HARD_DEP between instructions, thereby
33699 disallowing rewriting to break dependencies.
33701 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33703 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33704 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33705 variables in boundary that have no inlitalizer encoded and are
33707 * varasm.c (default_binds_local_p_2): External definitions do not
33708 count as definitions here.
33710 2015-02-16 Jeff Law <law@redhat.com>
33712 PR tree-optimization/64823
33713 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33715 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33716 threading through blocks with PHIs, but no statements.
33717 (thread_through_normal_block): Distinguish between blocks where
33718 we did not process all the statements and blocks with no statements.
33720 2015-02-16 Jakub Jelinek <jakub@redhat.com>
33721 James Greenhalgh <james.greenhalgh@arm.com>
33724 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33725 section if not linkonce. Fix up formatting.
33726 (cgraph_node::create_version_clone_with_body): Copy section.
33727 * trans-mem.c (ipa_tm_create_version): Likewise.
33729 2015-02-16 Richard Biener <rguenther@suse.de>
33731 PR tree-optimization/65077
33732 * tree-ssa-structalias.c (get_constraint_for_1): Handle
33733 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33734 (find_func_aliases): Allow float values to carry pointers again.
33736 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
33738 * doc/install.texi (Specific): Reorder targets list to put
33739 aarch64 in alphabetical order. Add a link to aarch64*-*-*
33742 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33743 David Edelsohn <dje.gcc@gmail.com>
33746 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33747 mapping class to external variable or function reference.
33748 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33751 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
33754 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33755 ASM_WEAKEN_DECL if defined.
33757 2015-02-16 Richard Biener <rguenther@suse.de>
33760 * varasm.c (default_file_start): For LTO produced units
33761 emit <artificial> as file directive.
33763 2015-02-16 Richard Biener <rguenther@suse.de>
33765 PR tree-optimization/63593
33766 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33767 stmts and releasing SSA names until...
33768 (execute_pred_commoning): ... after processing all chains.
33770 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33773 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33774 external functions.
33776 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
33778 * doc/bugreport.texi: Adjust section titles throughout the file
33779 to use "Title Case".
33780 * doc/extend.texi: Likewise.
33781 * doc/gcov.texi: Likewise.
33782 * doc/implement-c.texi: Likewise.
33783 * doc/implement-cxx.texi: Likewise.
33784 * doc/invoke.texi: Likewise.
33785 * doc/objc.texi: Likewise.
33786 * doc/standards.texi: Likewise.
33787 * doc/trouble.texi: Likewise.
33789 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
33791 * cgraph.h (symtab_node::has_aliases_p): Simplify.
33792 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33793 * tree.c (lookup_binfo_at_offset): Make static.
33794 (get_binfo_at_offset): Do not shadow offset; add explanatory
33797 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
33799 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33800 for all floading point loads and stores except those using a register
33802 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33805 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33807 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33808 (do_estimate_growth_1): Record if any uninlinable edge was seen.
33809 (estimate_growth): Handle uninlinable edges correctly.
33810 (check_callers): New.
33811 (growth_likely_positive): Handle aliases correctly.
33813 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33815 * ipa-chkp.c: Use iterate_direct_aliases.
33816 * symtab.c (resolution_used_from_other_file_p): Move inline.
33817 (symtab_node::create_reference): Fix formating.
33818 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33819 (symtab_node::iterate_reference): Move inline.
33820 (symtab_node::iterate_referring): Move inline.
33821 (symtab_node::iterate_direct_aliases): Move inline.
33822 (symtab_node::used_from_object_file_p_worker): Inline into ...
33823 (symtab_node::used_from_object_file_p): ... this one; move inline.
33824 (symtab_node::call_for_symbol_and_aliases): Move inline;
33825 use iterate_direct_aliases.
33826 (symtab_node::call_for_symbol_and_aliases_1): New method.
33827 (cgraph_node::call_for_symbol_and_aliases): Move inline;
33828 use iterate_direct_aliases.
33829 (cgraph_node::call_for_symbol_and_aliases_1): New method.
33830 (varpool_node::call_for_node_and_aliases): Rename to ...
33831 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33832 use iterate_direct_aliases.
33833 (varpool_node::call_for_symbol_and_aliases_1): New method.
33834 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33835 (ipa_discover_readonly_nonaddressable_var): Update.
33836 * ipa-devirt.c: Fix formating.
33837 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33839 (cgraph_node::call_for_symbol_and_aliases): Move inline.
33840 (cgraph_node::call_for_symbol_and_aliases_1): New function..
33841 * cgraph.h (used_from_object_file_p_worker): Remove.
33842 (resolution_used_from_other_file_p): Move inline.
33843 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33844 (symtab_node::iterate_reference): Move inline.
33845 (symtab_node::iterate_referring): Move inline.
33846 (symtab_node::iterate_direct_aliases): Move inline.
33847 (symtab_node::used_from_object_file_p_worker): Inline into ...
33848 (symtab_node::used_from_object_file_p): Move inline.
33849 * tree-emutls.c (ipa_lower_emutls): Update.
33850 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33851 (varpool_node::call_for_node_and_aliases): Remove.
33853 2015-02-14 Jakub Jelinek <jakub@redhat.com>
33855 PR tree-optimization/62209
33856 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33857 op == range->exp, insert seq and gimplified code after labels
33858 instead of after the phi.
33860 2015-02-13 Jeff Law <law@redhat.com>
33863 Revert my change for tree-optimization/64823.
33865 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33867 PR tree-optimization/65053
33868 * tree-ssa-phiopt.c (value_replacement): When moving assign before
33869 cond, either reset VR on lhs or set it to phi result VR.
33871 2015-02-13 Jeff Law <law@redhat.com>
33873 PR tree-optimization/64823
33874 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33875 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33876 threading through blocks with PHIs, but no statements.
33877 (thread_through_normal_block): Distinguish between blocks where
33878 we did not process all the statements and blocks with no statements.
33880 PR rtl-optimization/47477
33881 * match.pd (convert (plus/minus (convert @0) (convert @1): New
33882 simplifier to narrow arithmetic.
33884 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
33887 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33888 polymorphic call info when type is not known to be preserved.
33890 2015-02-13 Maritn Jambor <mjambor@suse.cz>
33893 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33894 (inline_call): Use it.
33896 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
33898 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33899 GOMP_DEVICE_NVIDIA_PTX.
33901 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33904 * stmt.c (emit_case_nodes): Use void_type_node instead of
33905 NULL_TREE as LABEL_DECL type.
33907 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
33909 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33911 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33912 symbolic references to data to be forced to constant memory on the
33915 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
33917 PR tree-optimization/65002
33918 * tree-cfg.c (pass_data_fixup_cfg): Don't update
33920 * tree-sra.c (some_callers_have_no_vuse_p): New.
33921 (ipa_early_sra): Reject functions whose callers
33922 assume function is read only.
33924 2015-02-13 Richard Biener <rguenther@suse.de>
33927 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33928 for LTO produced CUs.
33930 2015-02-13 Bin Cheng <bin.cheng@arm.com>
33932 PR tree-optimization/64705
33933 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33934 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33935 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33936 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33937 expand_simple_operations.
33939 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
33940 Richard Henderson <rth@redhat.com>
33943 * cgraphunit.c (cgraph_node::finalize_function): Set definition
33944 before notice_global_symbol.
33945 (varpool_node::finalize_decl): Likewise.
33946 * varasm.c (default_binds_local_p_2): Rename from
33947 default_binds_local_p_1, add weak_dominate argument. Use direct
33948 returns instead of assigning to local variable. Unify varpool and
33949 cgraph paths via symtab_node. Reject undef weak variables before
33950 testing visibility. Reorder tests for simplicity.
33951 (default_binds_local_p): Use default_binds_local_p_2.
33952 (default_binds_local_p_1): Likewise.
33953 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33955 (default_elf_asm_output_external): Emit visibility when specified.
33957 2015-02-13 Alan Modra <amodra@gmail.com>
33959 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33960 code setting up r11 for out-of-line fp restore.
33962 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
33964 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33965 (muser-mode): Likewise.
33967 2015-02-13 Alan Modra <amodra@gmail.com>
33969 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33970 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33972 2015-02-12 David Howells <dhowells@redhat.com>
33974 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33976 * tree-ssa-uninit.c (dump_predicates): Likewise.
33977 * opts.c (print_filtered_help): Likewise.
33979 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33981 * dwarf2out.c (output_die): Use "%s", name instead of name to
33982 avoid -Wformat-security warning.
33984 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33985 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33986 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33987 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33989 2015-02-12 Jason Merrill <jason@redhat.com>
33991 * common.opt (-flifetime-dse): New.
33993 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33996 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33998 PR tree-optimization/65014
33999 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
34000 use original second operand of arg0 or arg1 instead of
34001 that adjusted by STRIP_NOPS.
34003 2015-02-11 Jeff Law <law@redhat.com>
34006 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
34007 that needs to be queued, just queue it for a single cycle.
34009 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
34011 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
34012 bodies of thunks; comment on why.
34013 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
34014 symbols are extern.
34016 2015-02-11 Richard Henderson <rth@redhat.com>
34019 * tree-eh.c (mark_reachable_handlers): Mark source and destination
34020 regions of __builtin_eh_copy_values.
34022 2015-02-11 Jakub Jelinek <jakub@redhat.com>
34024 PR middle-end/65003
34025 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
34026 ultimate alias is MEM with SYMBOL_REF satisfying
34027 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
34028 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
34030 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
34032 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
34033 "diagnostic-core.h".
34034 (main): Initialize progname, and call diagnostic_initialize.
34036 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
34037 instead of __OPENMP_TARGET__.
34039 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
34040 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
34041 hard-coding PTX_ID.
34043 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
34045 * doc/sourcebuild.texi (pie_enabled): Document.
34047 2015-02-11 Martin Liska <mliska@suse.cz>
34050 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
34051 a return value for call to a function that is noreturn.
34053 2015-02-11 Richard Biener <rguenther@suse.de>
34056 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
34059 2015-02-11 Andrew Pinski <apinski@cavium.com>
34062 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
34063 Change the first argument type to size_type_node and add another
34065 (aarch64_simd_expand_builtin): Handle the new argument to
34066 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
34067 print an out when the first two arguments are not
34068 nonzero integer constants.
34069 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
34070 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
34072 2015-02-11 Jakub Jelinek <jakub@redhat.com>
34075 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
34076 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
34077 (ix86_set_current_function): Rewritten.
34078 (ix86_add_new_builtins): Temporarily clear current_target_pragma
34079 when creating builtin fndecls.
34081 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34084 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
34086 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
34087 have no comdat group.
34088 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
34089 (lto_output_varpool_node): Always output alias info.
34090 (output_refs): Output refs of boundary aliases, too.
34091 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
34092 (output_symtab): Output call eges in thunks in boundary.
34093 (get_alias_symbol): Remove.
34094 (input_node, input_varpool_node): Do not special case weakrefs.
34095 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
34096 alias and thunks targets in the boundary; do not take removed symbols
34097 from their comdat groups.
34098 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
34099 (cgraph_node::global_info): Remove.
34100 (cgraph_node::rtl_info): Look through aliases and thunks.
34101 * cgrpah.h (global_info): Remove.
34102 (non_local_p): Remove.
34104 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34105 Sandra Loosemore <sandra@codesourcery.com>
34107 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
34108 to inline asm. List dialects in proper order.
34110 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34111 Sandra Loosemore <sandra@codesourcery.com>
34113 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
34115 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34117 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
34118 modified) reference to Solaris.
34120 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
34122 * doc/extend.texi (Extended Asm): Fix typos.
34124 2015-02-10 Jakub Jelinek <jakub@redhat.com>
34127 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
34129 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
34132 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
34133 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
34134 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
34135 * config/sh/constraints.md (Ara, Add): New constraints.
34136 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
34138 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
34139 atomic_mem_operand_0. Don't use force_reg on the memory address.
34140 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
34141 Sra constraint. Convert to insn_and_split. Add workaround for
34143 (atomic_compare_and_swap<mode>_hard): Copy to
34144 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
34145 Use atomic_mem_operand_0 predicate.
34146 (atomic_compare_and_swap<mode>_soft_gusa,
34147 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
34148 AraAdd constraints.
34149 (atomic_compare_and_swap<mode>_soft_tcb,
34150 atomic_compare_and_swap<mode>_soft_imask,
34151 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
34152 atomic_mem_operand_0 predicate and SraSdd constraints.
34153 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34155 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34156 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
34157 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34158 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
34159 force_reg on the memory address.
34160 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34161 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34162 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34163 atomic_mem_operand_1 predicate and Sra constraint.
34164 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34165 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34166 Use atomic_mem_operand_1 predicate.
34167 (atomic_<fetchop_name><mode>_hard): Copy to
34168 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34169 Use atomic_mem_operand_1 predicate.
34170 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34171 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34172 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
34173 insn_and_split. Use atomic_mem_operand_1 predicate.
34174 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34175 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
34176 Use atomic_mem_operand_1 predicate.
34177 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34178 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34179 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34180 in generated insn with original mem operand before emitting the insn.
34181 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34182 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34183 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34184 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34185 Use atomic_mem_operand_1 predicate and AraAdd constraints.
34186 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34187 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34188 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34189 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34190 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34191 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34192 atomic_not_fetch<mode>_soft_tcb,
34193 atomic_<fetchop_name>_fetch<mode>_soft_imask,
34194 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34195 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34196 Use atomic_mem_operand_1 predicate and SraSdd constraints.
34198 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
34200 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34201 and 3 earlyclobber operands.
34203 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34205 * common.opt (fstack-reuse): Mark as optimization.
34207 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34210 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34212 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
34214 PR tree-optimization/64326
34215 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34217 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
34219 PR gcov-profile/61889
34220 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34222 2015-02-10 Richard Biener <rguenther@suse.de>
34224 PR tree-optimization/64995
34225 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34226 value we use is final.
34227 (visit_reference_op_store): Always valueize op.
34228 (visit_use): Properly valueize vuses.
34230 2015-02-10 Richard Biener <rguenther@suse.de>
34232 PR tree-optimization/64909
34233 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34234 pass a scalar-stmt count estimate to the cost model.
34235 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34237 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
34239 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34240 enabled by default together with var-tracking.
34242 2015-02-10 Nick Clifton <nickc@redhat.com>
34244 * config/rl78/rl78.c: Remove DIV attribute code accidentally
34245 included in previous rl78 commit.
34247 2015-02-10 Richard Biener <rguenther@suse.de>
34249 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34250 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34251 return the bitpack.
34253 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34255 PR gcov-profile/61889
34256 * config.in: regenerate.
34257 * configure.in: Likewise.
34258 * configure.ac: Check for ftw.h.
34259 * gcov-tool.c: Check for ftw.h before using nftw.
34261 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34264 * ipa-visibility.c (update_visibility_by_resolution_info): Only
34265 assert when not in lto mode.
34267 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34269 * ira-color.c (setup_left_conflict_sizes_p): Simplify
34270 initialization/assignment of conflict_size.
34272 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
34275 * ipa-cp.c (gather_caller_stats): Skip thunks.
34276 (propagate_constants_topo): Skip aliases.
34278 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
34281 * config/sh/sh.c (sh_option_override): Don't change
34282 -freorder-blocks-and-partition to -freorder-blocks even when
34283 unwinding is enabled.
34284 (sh_can_follow_jump): Return false if the followee jump is
34285 a crossing jump when -freorder-blocks-and-partition is specified.
34286 * config/sh/sh.md (*jump_compact_crossing): New insn.
34288 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
34289 Kaz Kojima <kkojima@gcc.gnu.org>
34292 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34293 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34294 (sh_can_redirect_branch): Rename to ...
34295 (sh_can_follow_jump): ... this. Constify argument types.
34296 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34297 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34298 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34299 * doc/tm.texi: Regenerate.
34301 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34304 * builtins.c (expand_builtin): Call targetm.expand_builtin
34305 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34307 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34310 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34312 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34315 * ipa-icf.c (set_local): New function.
34316 (sem_function::merge): Use it.
34318 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34320 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34321 (add_type_duplicate): Fix comparison of BINFOs.
34323 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34325 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34326 on getting VOID pointer.
34328 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34331 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34334 2015-02-09 Richard Biener <rguenther@suse.de>
34336 * genmatch.c (replace_id): Copy expr_type.
34338 2015-02-09 Richard Biener <rguenther@suse.de>
34340 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34341 (streamer_write_tree_bitfields): Declare.
34342 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34343 properly unpack padding.
34344 (unpack_value_fields): Inline ...
34345 (streamer_read_tree_bitfields): ... here.
34346 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34347 and properly add padding bits.
34348 (streamer_pack_tree_bitfields): Fold into ...
34349 (streamer_write_tree_bitfields): ... this new function,
34350 exposing the bitpack object.
34351 * lto-streamer-out.c (lto_write_tree_1): Call
34352 streamer_write_tree_bitfields.
34354 2015-02-09 Richard Biener <rguenther@suse.de>
34356 PR tree-optimization/54000
34357 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34358 (struct ivopts_data): Add loop_loc member.
34359 (tree_ssa_iv_optimize_loop): Dump loop location.
34360 (create_new_ivs): Likewise, also dump number of IVs generated.
34362 2015-02-09 Martin Liska <mliska@suse.cz>
34364 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34365 just if not yet registered.
34366 (ipa_icf_generate_summary): Register callgraph hooks.
34368 2015-02-08 Andrew Pinski <apinski@cavium.com>
34370 * config/aarch64/aarch64.c (gty_dummy): Delete.
34372 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34375 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34376 (cgraph_node::local_p): Remove thunk related FIXME.
34378 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34381 * i386.c (ix86_function_regparm): Look through aliases to see if callee
34382 is local and optimized.
34383 (ix86_function_sseregparm): Likewise; also use target's SSE math
34384 settings; error out instead of silently generating wrong code
34386 (init_cumulative_args): Look through aliases.
34388 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34391 * ipa-split.c (execute_split_functions): Split if function has aliases.
34393 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34396 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34397 aliases before trying to expand it.
34398 (cgraph_node::expand_thunk): Fix formating.
34400 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
34402 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34403 (Using Assembly Language with C): Expand introduction.
34404 (Basic Asm): Copy-edit. Add more information about uses of
34406 (Extended Asm): Copy-edit. Document new escape syntax and
34408 (Global Reg Vars): Copy-edit.
34409 (Local Reg Vars): Likewise.
34411 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
34415 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34416 (DBX_CONTIN_CHAR): Define.
34418 2015-02-06 Sebastian Pop <s.pop@samsung.com>
34419 Brian Rzycki <b.rzycki@samsung.com>
34421 PR tree-optimization/64878
34422 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34423 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34424 Stop recursion at loop phi nodes after having visited a loop phi node.
34426 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34428 * toplev.c (process_options): Change flag_ipa_ra before creating
34429 optimization_{default,current}_node.
34432 * cgraphunit.c (cgraph_node::expand_thunk): If
34433 restype is not is_gimple_reg_type nor the thunk_fndecl
34434 returns aggregate_value_p, set restmp to a temporary variable
34435 instead of resdecl.
34437 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
34439 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34441 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34444 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34445 add a general secondary reload handler for SDmode, unless we have
34446 both read/write support for SDmode.
34448 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34450 PR middle-end/64937
34451 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34452 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34453 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34454 1 before, push it to abstract_vec.
34455 (dwarf2out_abstract_function): Adjust caller. Don't call
34456 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34457 DECL_ABSTRACT_P flags for all abstract_vec elts.
34459 2015-02-06 Renlin Li <renlin.li@arm.com>
34461 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34463 * tree-ssa.c (execute_update_addresses_taken): Likewise.
34465 2015-02-06 Jeff Law <law@redhat.com>
34468 * config/h8300/h8300.c (push): New argument "in_prologue".
34469 Pass "in_prologue" along to "F".
34470 (h8300_push_pop): Corresponding changes.
34471 (h8300_expand_prologue): Likewise.
34472 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
34474 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34476 PR rtl-optimization/64957
34478 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34479 IOR rather than for AND.
34481 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
34484 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34485 of shift-add and (add + shift) operations. Rename local variable.
34487 2015-02-05 Jeff Law <law@redhat.com>
34490 * config/h8300/constraints.md (U): Correctly dectect
34491 "eightbit_data" memory addresses.
34492 * config/h8300/h8300.c (eightbit_constant_address_p): Also
34493 handle (const (plus (symbol_ref (x)))) where x is declared
34494 as an 8-bit data memory address.
34495 * config/h8300/h8300.md (call, call_value): Correctly detect
34496 "funcvec" functions.
34499 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34500 24 to 28 bits for the H8/300.
34502 2015-02-06 Alan Modra <amodra@gmail.com>
34505 * config/rs6000/rs6000.c (chain_already_loaded): New function.
34506 (rs6000_call_aix): Use it.
34508 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
34510 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34513 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
34515 * config/h8300/constraints.md ("U" constraint): Use strict
34516 variant of REG_OK_FOR_BASE_P after reload has started.
34518 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
34520 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34521 define to zero if !TARGET_NEON.
34522 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34524 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34525 Trevor Saunders <tsaunders@mozilla.com>
34528 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34530 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34533 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34534 when removing varpool nodes.
34536 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34539 * varpool.c (varpool_node::remove): Fix order of variables.
34541 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34544 * ipa-inline.c (inline_small_functions): Fix ordering issue between
34545 speculation resolution and key updates.
34547 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34549 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34550 about not letting any speculative edges unupdated.
34552 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34555 * gcov-io.c (gcov_var): Export.
34557 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34559 PR middle-end/64922
34560 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34561 edges that become speculative.
34563 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34565 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34566 or DW_LANG_Fortran08.
34567 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34569 (gen_compile_unit_die): Handle "GNU Fortran2003" and
34570 "GNU Fortran2008" language strings.
34571 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34572 * langhooks.h (lang_GNU_Fortran): New prototype.
34573 * langhooks.c (lang_GNU_Fortran): New function.
34574 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34577 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34579 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34580 (RTX_OK_FOR_OLO10_P): Likewise.
34582 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34584 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34586 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34588 PR middle-end/64922
34589 * gimple.c: Include gimple-ssa.h.
34590 (maybe_remove_unused_call_args): New function.
34591 * gimple.h (maybe_remove_unused_call_args): Declare.
34592 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34593 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34594 * gimple-fold.c (gimple_fold_call): Likewise.
34596 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
34598 PR rtl-optimization/64905
34599 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34600 pointer alignment if it isn't needed.
34602 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34604 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34605 cortex-a72.cortex-a53.
34606 * config/aarch64/aarch64-tune.md: Regenerate.
34607 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34609 2015-02-04 Nick Clifton <nickc@redhat.com>
34611 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34614 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34616 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34617 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34618 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34620 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34621 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34622 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34623 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34624 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34625 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34626 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34627 * tree-core.h (enum built_in_function): In between
34628 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34629 for builtins that use DEF_BUILTIN_CHKP macro.
34631 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
34634 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34635 operands for tcc_comparison exprs. Fix typos.
34638 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34639 of two XORs that have an intervening AND or IOR.
34642 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34643 simplification of XOR of AND to not allocate new rtx before
34644 committing to a simplification.
34646 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34648 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34649 manual swaps in all peepholes.
34651 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34653 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34654 of manual swapping implementation.
34655 (aarch64_expand_vec_perm_const_1): Likewise.
34657 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
34659 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34660 (generic_addrcost_table): Remove NAMED_PARAM.
34661 (cortexa57_addrcost_table): Likewise.
34662 (xgene1_addrcost_table): Likewise.
34663 (generic_regmove_table): Likewise.
34664 (cortexa53_regmove_table): Likewise.
34665 (xgene1_regmove_table): Likewise.
34666 (generic_vector_table): Likewise.
34667 (cortexa57_vector_table): Likewise.
34668 (xgene1_vector_table): Likewise.
34669 (generic_tunings): Likewise.
34670 (cortexa53_tunings): Likewise.
34671 (cortexa57_tunings): Likewise.
34672 (xgene1_tunings): Likewise.
34674 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34676 * config/arm/arm-cores.def: Add cortex-a72 and
34677 cortex-a72.cortex-a53.
34678 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34679 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34680 * config/arm/arm-tune.md: Regenerate.
34681 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34682 "cortex-a72.cortex-a53".
34683 * doc/invoke.texi (ARM Options/-mtune): Likewise.
34685 2015-02-04 Nick Clifton <nickc@redhat.com>
34688 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34690 (nonimmediate_di_operand): Likewise.
34692 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34693 prefixes of known F5 using MSP430 MCUs.
34695 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34697 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34698 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34699 instead of __builtin_sqrt.
34701 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
34703 * varasm.c (do_assemble_alias): Follow transparent alias
34705 (default_assemble_visibility): Follow transparent alias
34706 chain for decl name.
34708 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34710 PR middle-end/62103
34711 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34712 to compute size of referenced value in the constant case.
34714 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34716 PR rtl-optimization/64756
34717 * cse.c (invalidate_dest): New function.
34718 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
34719 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34720 invalidate and do not record it.
34722 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34725 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34726 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34727 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34728 atomic_nand<mode>_soft_tcb): New insns.
34729 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34730 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34731 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34732 Split into atomic_not_fetchsi_hard if operands[0] is unused.
34733 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34734 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34735 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
34736 atomic_not<mode>_hard if operands[0] is unused.
34737 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34738 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34739 if operands[0] is unused.
34740 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
34741 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34742 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34743 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34745 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
34746 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34747 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34748 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34749 if operands[0] is unused.
34750 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
34751 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34752 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
34753 atomic_nand_fetchsi_hard if operands[0] is unused.
34754 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
34755 atomic_nand<mode>_hard if operands[0] is unused.
34756 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
34757 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34758 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
34759 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34760 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
34761 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34762 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34763 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34764 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
34765 atomic_not<mode>_hard if operands[0] is unused.
34766 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34767 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34769 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34770 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34771 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
34772 atomic_nand<mode>_hard if operands[0] is unused.
34773 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34774 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34776 2015-02-03 David Malcolm <dmalcolm@redhat.com>
34779 * Makefile.in (GCC_OBJS): Add gcc-main.o.
34780 * gcc-main.c: New file, containing "main" taken from gcc.c.
34781 * gcc.c (do_self_spec): Free decoded_options.
34782 (class driver): Move declaration to gcc.h.
34783 (main): Move declaration and implementation to new file
34785 (driver_get_configure_time_options): New function.
34786 * gcc.h (class driver): Move this declaration here, from
34788 (driver_get_configure_time_options): New declaration.
34790 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
34792 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34793 cross-module inlining.
34794 * cgraph.h (cgraph_node): Add flag merged.
34795 * ipa-icf.c (sem_function::merge): Maintain it.
34797 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
34799 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34800 instead of OBJECT_P.
34802 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
34805 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34806 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34807 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34808 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34810 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34813 * combine.c (reg_n_sets_max): New variable.
34814 (can_change_dest_mode, reg_nonzero_bits_for_combine,
34815 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34816 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34817 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34818 (rest_of_handle_combine): Initialize reg_n_sets_max.
34820 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
34822 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34823 if some always_inline was inlined, apply changes before inlining
34826 2015-02-02 David Malcolm <dmalcolm@redhat.com>
34829 * config/arm/arm.c (arm_option_override): Set
34830 arm_selected_arch/cpu/tune to NULL on entry.
34832 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
34833 Andrew Pinski <pinskia@gcc.gnu.org>
34834 Jakub Jelinek <jakub@gcc.gnu.org>
34837 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34838 integer typing for small model. Use IN_RANGE.
34840 2015-02-02 Richard Biener <rguenther@suse.de>
34842 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34843 * tree-vrp.c (vrp_valueize_1): Likewise.
34845 2015-02-02 Alan Modra <amodra@gmail.com>
34847 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34848 than mem for toc_restore.
34849 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34850 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34851 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34853 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
34856 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34857 explicit default options.
34859 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
34862 * ipa-utils.c (ipa_merge_profiles): Add release argument.
34863 * ipa-icf.c (sem_function::merge): Do not release body when merging.
34864 * ipa-utils.h (ipa_merge_profiles): Update prototype.
34866 2015-02-01 Jakub Jelinek <jakub@redhat.com>
34869 * cfgexpand.c (deep_ter_debug_map): New variable.
34870 (avoid_deep_ter_for_debug): New function.
34871 (expand_debug_expr): If TERed SSA_NAME is in
34872 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34873 instead of trying to expand SSA_NAME's def stmt.
34874 (expand_debug_locations): When expanding debug bind
34875 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34876 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34878 (pass_expand::execute): Call avoid_deep_ter_for_debug on
34879 all debug bind stmts. Delete deep_ter_debug_map after
34880 expand_debug_location if non-NULL and clear it.
34882 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
34885 * config/sh/sync.md (atomic_fetch_notsi_hard,
34886 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34887 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34888 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34889 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34890 atomic_not_fetch<mode>_soft_imask): New insns.
34892 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34894 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34895 (rank_for_schedule_debug): Split from ...
34896 (rank_for_schedule): ... this.
34897 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34898 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34900 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34902 * doc/md.texi (Machine Constraints): Alphabetize table by target.
34903 * doc/extend.texi (x86 Variable Attributes): Move section to
34904 correct alphabetization after renaming.
34905 (x86 Type Attributes): Likewise.
34906 (Target Builtins): Re-alphabetize menu.
34907 (x86 Built-in Functions): Move section to correct alphabetization
34909 (x86 transactional memory intrinsics): Likewise.
34910 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34911 and x86 Windows Options in table and menu.
34912 (x86 Options): Move section to correct alphabetization after
34914 (x86 Windows Options): Likewise.
34916 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34918 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34919 preferred names of the architecture and its 32- and 64-bit
34921 * doc/invoke.texi: Likewise.
34922 * doc/md.texi: Likewise.
34924 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34927 * config/i386/predicates.md (address_no_seg_operand): Reject
34928 non-CONST_INT_P operands in invalid mode.
34930 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34932 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34933 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
34934 * config/i386/predicates.md (address_no_seg_operand): Call
34935 address_operand with VOIDmode.
34936 (vsib_address_operand): Ditto.
34937 (address_mpx_no_base_operand): Ditto.
34938 (address_mpx_no_index_operand): Ditto.
34940 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34943 * lra-constraints.c (original_subreg_reg_mode): New.
34944 (simplify_operand_subreg): Try to simplify subreg of const. Use
34945 original_subreg_reg_mode for it.
34946 (swap_operands): Update original_subreg_reg_mode.
34947 (curr_insn_transform): Set up original_subreg_reg_mode.
34949 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34952 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34954 (process_alt_operands): Use it.
34955 (curr_insn_transform): Check the optional reload pseudo class is
34958 2015-01-30 Joseph Myers <joseph@codesourcery.com>
34960 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34961 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34963 * toplev.h (init_asm_output): Update comment on use of
34964 UNKNOWN_LOCATION with fatal_error.
34965 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34966 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34967 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34968 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34969 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34970 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34971 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34972 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34973 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34974 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34975 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34976 fatal_error changed to pass input_location as first argument.
34978 2015-01-30 Martin Liska <mliska@suse.cz>
34980 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34981 in #pragma GCC diagnostic guards.
34983 2015-01-30 Richard Biener <rguenther@suse.de>
34985 PR tree-optimization/64829
34986 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34987 not add a widening conversion pattern but hand off extra
34988 widenings to callers.
34989 (vect_recog_widen_mult_pattern): Handle extra widening produced
34990 by vect_handle_widen_op_by_const.
34991 (vect_recog_widen_shift_pattern): Likewise.
34992 (vect_pattern_recog_1): Remove excess vertical space in dumping.
34993 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34994 (vect_init_vector_1): Likewise.
34995 (vect_get_vec_def_for_operand): Likewise.
34996 (vect_finish_stmt_generation): Likewise.
34997 (vectorizable_load): Likewise.
34998 (vect_analyze_stmt): Likewise.
34999 (vect_is_simple_use): Likewise.
35001 2015-01-29 Jeff Law <law@redhat.com>
35003 * combine.c (try_combine): Fix typo in comment.
35005 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
35008 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
35009 (rs6000_stack_info): Add assert.
35010 (rs6000_output_savres_externs): New function, split off from...
35011 (rs6000_output_function_prologue): ... here. Do not call it for
35014 2015-01-29 Jeff Law <law@redhat.com>
35017 * combine.c (try_combine): If I0 is a memory load and I3 a store
35018 to a related address, increase the "goodness" of doing a 4-insn
35019 combination with I0-I3.
35020 (make_field_assignment): Handle SUBREGs in the ior+and case.
35022 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
35024 PR tree-optimization/64746
35025 * tree-if-conv.c (mask_exists): New function.
35026 (predicate_mem_writes): Save created mask with given size for further
35028 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
35029 (ifcvt_repair_bool_pattern): Collect all statements that are root
35030 of bool pattern and use iterative algorithm to remove multiple uses
35031 of predicates, display number of required iterations.
35033 2015-01-29 Richard Biener <rguenther@suse.de>
35035 PR tree-optimization/64853
35036 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
35037 stmt will get simulated again.
35038 * tree-ssa-ccp.c (valueize_op_1): Likewise.
35040 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35042 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
35043 return_in_pc. Remove redundant assignments.
35044 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
35045 (arm_expand_epilogue): Don't compare boolean with true in if condition.
35047 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
35049 * config/i386/i386.c (ix86_mode_after): Make static.
35051 2015-01-29 Richard Biener <rguenther@suse.de>
35053 PR tree-optimization/64844
35054 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
35055 dump cost model analysis.
35056 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35057 Do not register adjusted load/store costs here.
35059 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
35060 Uros Bizjak <ubizjak@gmail.com>
35062 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
35063 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
35064 using x86_use_pseudo_pic_reg.
35065 * config/i386/i386.c (ix86_conditional_register_usage): Remove
35066 support for fixed PIC register.
35067 (ix86_use_pseudo_pic_reg): Not static any more.
35069 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
35071 PR middle-end/64805
35072 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
35073 to avoid error in cgraph node verification.
35075 2015-01-29 Marek Polacek <polacek@redhat.com>
35077 * doc/standards.texi: Reflect that the default for C is gnu11.
35079 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
35082 * reorg.c (switch_text_sections_between_p): New function.
35083 (relax_delay_slots): Call it when testing if the jump insn
35084 is removable. Use targetm.can_follow_jump when testing if
35085 the conditional branch can follow an unconditional jump.
35087 2015-01-27 Caroline Tice <cmtice@google.com>
35089 Committing VTV Cywin/Ming patch for Patrick Wollgast
35090 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
35091 if -fvtable-verify=preinit/std is used.
35092 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
35093 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
35094 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
35095 if -fvtable-verify=preinit/std is used.
35096 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
35097 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
35098 if -fvtable-verify=preinit/std is used.
35099 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
35100 * config/i386/mingw32.h (LIB_SPEC): Likewise.
35101 * varasm.c (assemble_variable): Add code to properly set the comdat
35102 section and name for the .vtable_map_vars section in case the
35103 target is PE or COFF.
35105 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
35108 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
35109 make sane BB profile.
35110 (cgraph_node::expand_thunk): Make sane BB profile.
35111 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
35112 * cgraph.h (init_lowered_empty_function): Update prototype.
35113 * config/i386/i386.c (make_resolver_func): Update call.
35114 * predict.c (gate): Disable branch prediction pass if
35115 profile is already there.
35117 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
35119 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
35120 * opth-gen.awk: Likewise.
35121 * common.opt: Mark flag_fp_contract_mode as Optimization.
35123 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
35125 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
35126 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
35128 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
35131 * config/sh/predicates.md (atomic_arith_operand,
35132 atomic_logical_operand): Remove.
35133 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
35134 (atomic_arith_operand_0): New predicate.
35135 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
35136 Use atomic_arith_operand_0 for input values.
35137 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
35138 atomic_compare_and_swap<mode>_soft_gusa,
35139 atomic_compare_and_swap<mode>_soft_tcb,
35140 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
35141 arith_reg_operand instead of register_operand.
35142 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
35143 atomic_arith_operand_0 for newval input.
35144 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
35145 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
35146 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
35147 arith_reg_operand instead of register_operand.
35148 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
35149 fetchop_predicate_1, fetchop_constraint_1_llcs,
35150 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
35151 fetchop_constraint_1_imask): New code iterator attributes.
35152 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
35153 register_operand. Use fetchop_predicate_1.
35154 (atomic_fetch_<fetchop_name>si_hard,
35155 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35156 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35157 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35158 and arith_reg_operand instead of register_operand. Use
35159 fetchop_predicate_1, fetchop_constraint_1_gusa.
35160 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35161 and arith_reg_operand instead of register_operand. Use
35162 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
35164 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35165 and arith_reg_operand instead of register_operand. Use
35166 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
35168 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35169 register_operand. Use atomic_logical_operand_1.
35170 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35171 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35172 arith_reg_operand instead of register_operand.
35173 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35174 Use arith_reg_dest and arith_reg_operand instead of register_operand.
35175 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
35176 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35177 register_operand. Use fetchop_predicate_1.
35178 (atomic_<fetchop_name>_fetchsi_hard,
35179 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35180 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35181 fetchop_constraint_1_llcs.
35182 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35183 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35184 fetchop_constraint_1_gusa.
35185 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35186 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35187 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
35188 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35189 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35190 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
35191 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35192 register_operand. Use atomic_logical_operand_1.
35193 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35194 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35195 arith_reg_operand instead of register_operand.
35196 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35197 arith_reg_operand instead of register_operand. Use logical_operand
35198 and K08. Adjust asm sequence to allow R0 usage.
35199 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35200 arith_reg_operand instead of register_operand. Use logical_operand
35203 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35206 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35207 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35208 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35209 only get_full_len HOST_WIDE_INTs from get_val () array rather than
35210 all bits in *val_wide.
35212 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
35214 * varpool.c (tls_model_names): Fix names.
35215 (varpool_node::dump): Dump tls- prefix for tls models.
35217 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
35218 Bernd Schmidt <bernds@codesourcery.com>
35219 Nathan Sidwell <nathan@codesourcery.com>
35221 * config/nvptx/mkoffload.c: New file.
35222 * config/nvptx/t-nvptx: Add build rules for it.
35223 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35224 (extra_programs): Add mkoffload.
35225 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35227 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35229 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
35231 PR middle-end/64809
35232 * cfgexpand.c (reorder_operands): Skip debug gimples.
35234 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
35236 PR tree-optimization/64277
35237 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35238 range info when possible to refine estimation.
35240 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
35242 PR tree-optimization/64718
35243 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35244 be a 16bit unsigned integer when n->range is 16.
35245 (bswap_replace): Convert src to that type if necessary for all bswap
35246 sizes. Fix rotation right notation in nearby comment. Use bswap_type
35247 set in pass_optimize_bswap::execute ().
35249 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
35251 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35252 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35253 integer and floating point variants.
35254 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35256 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
35258 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35259 for all vector modes.
35261 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35264 * doc/sourcebuild.texi (comdat_group): Document.
35266 2015-01-28 Terry Guo <terry.guo@arm.com>
35268 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35270 2015-01-27 David Malcolm <dmalcolm@redhat.com>
35272 * toplev.c (print_version): Add param "show_global_state", and
35273 only print GGC and plugin information if it is true.
35274 (init_asm_output): Pass in "true" for the new param when calling
35276 (process_options): Likewise.
35277 (toplev::main): Likewise.
35278 * toplev.h (print_version): Add new param to decl.
35280 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35284 * tree.c (lookup_binfo_at_offset): New function.
35285 (get_binfo_at_offset): Use it.
35287 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35290 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35291 on vtable being vtable.
35293 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
35295 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35296 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35297 -mhotpatch= option.
35298 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35299 -mno-hotpatch options. Change syntax of -mhotpatch= option.
35300 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35302 (s390_hotpatch_trampoline_halfwords_max): Renamed.
35303 (s390_hotpatch_hw_max): New name.
35304 (s390_hotpatch_trampoline_halfwords): Renamed.
35305 (s390_hotpatch_hw_before_label): New name.
35306 (get_hotpatch_attribute): Removed.
35307 (s390_hotpatch_hw_after_label): New name.
35308 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35310 (s390_attribute_table): Ditto.
35311 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35312 (s390_function_num_hotpatch_hw): New name.
35313 Remove special handling of inline functions and hotpatching.
35314 Return number of nops before and after the function label.
35315 (s390_can_inline_p): Removed.
35316 (s390_asm_output_function_label): Emit a configurable number of nops
35317 after the function label.
35318 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35319 (TARGET_CAN_INLINE_P) Removed.
35320 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35322 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35323 Jiong Wang <jiong.wang@arm.com>
35325 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35327 (cb<optab><mode>1): Likewise.
35328 * config/aarch64/iterators.md (bcond): New define_code_attr.
35330 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35332 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35335 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35337 * config/s390/s390.c (s390_register_move_cost): Increase costs for
35340 2015-01-27 Richard Biener <rguenther@suse.de>
35342 * tree-vrp.c (update_value_range): Intersect the range with
35343 old recorded SSA name range information.
35345 2015-01-27 Nick Clifton <nickc@redhat.com>
35347 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35348 BC, DE and HL registers directly, not via AX.
35349 When decrementing the stack pointer by a large amount, transfer SP
35350 into AX and perform the subtraction there.
35351 (rl78_expand_epilogue): Perform the inverse of the above
35354 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35356 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35358 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35359 Yury Gribov <y.gribov@samsung.com>
35362 * ubsan.c (ubsan_source_location): Refactor code.
35363 (ubsan_type_descriptor): Update type size. Refactor code.
35365 2015-01-27 Richard Biener <rguenther@suse.de>
35367 PR tree-optimization/56273
35368 PR tree-optimization/59124
35369 PR tree-optimization/64277
35370 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35371 from the first VRP pass.
35373 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35376 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35377 handle the first argument in the same loop as all the other arguments.
35379 PR rtl-optimization/61058
35380 * jump.c (cleanup_barriers): Update basic block boundaries
35381 if BLOCK_FOR_INSN is non-NULL on PREV.
35383 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
35385 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35386 bounds narrowing, already instrumented calls and calls to
35387 not instrumentable functions.
35389 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35391 PR tree-optimization/64807
35392 * wide-int.cc (wi::divmod_internal): Clear
35393 b_dividend[dividend_blocks_needed].
35395 2015-01-26 DJ Delorie <dj@redhat.com>
35397 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35398 volatile memory references.
35400 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
35403 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35405 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35406 shifts if it already fits into K08.
35408 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35411 * ipa-inline.c (inline_small_functions): Print "unknown" even
35412 if edge->call_stmt is non-NULL, but has builtins or unknown
35415 PR middle-end/64421
35416 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35417 with asterisk, skip the first character.
35419 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35422 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35425 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
35428 * config/i386/i386.md (*movdi_internal): Also check operand 0
35429 to determine TYPE_LEA operand.
35430 (*movsi_internal): Ditto.
35432 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35434 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35435 OPTION_MASK_QUAD_MEMORY_ATOMIC.
35437 2015-01-26 Renlin Li <renlin.li@arm.com>
35439 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35441 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35444 2015-01-26 Richard Biener <rguenther@suse.de>
35446 PR middle-end/64764
35447 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35448 combining two BIT_AND_EXPR predicates.
35450 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35453 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35455 2015-01-26 Terry Guo <terry.guo@arm.com>
35457 * config/arm/arm.c (arm_file_start): Update the assignment of
35458 Tag_ABI_HardFP_use.
35460 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
35462 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35464 config/arm/arm.md: Include the new Cortex-A57 model.
35465 (generic_sched): Don't use generic_sched when tuning for
35468 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
35469 Uros Bizjak <ubizjak@gmail.com>
35471 * config/i386/i386.c (get_builtin_code_for_version): Add
35472 support for BMI and BMI2 multiversion functions.
35474 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35476 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35477 (extract_bit_field): Likewise.
35478 (extract_low_bits): Likewise.
35479 (expand_mult): Likewise.
35480 (expand_mult_highpart_adjust): Likewise.
35482 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
35484 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35485 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35486 * config/i386/i386.c (processor_model): Add
35487 M_INTEL_COREI7_BROADWELL.
35488 (arch_names_table): Add "broadwell".
35490 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
35499 * config/sh/sh-protos.h
35500 (sh_extending_set_of_reg::can_use_as_unextended_reg,
35501 sh_extending_set_of_reg::use_as_unextended_reg,
35502 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35503 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35504 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35505 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35506 (sh_treg_insns): New class.
35507 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35508 (scope_counter): New class.
35509 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35510 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35511 sh_extending_set_of_reg::can_use_as_unextended_reg,
35512 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35513 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35514 sh_split_treg_set_expr): New functions.
35515 (addsubcosts): Handle treg_set_expr.
35516 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35517 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35518 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35519 (sh_insn_operands_modified_between_p): Make non-static.
35520 * config/sh/predicates.md (zero_extend_movu_operand): Allow
35521 simple_mem_operand in addition to displacement_mem_operand.
35522 (zero_extend_operand): Don't allow zero_extend_movu_operand.
35523 (treg_set_expr, treg_set_expr_not_const01,
35524 arith_reg_or_treg_set_expr): New predicates.
35525 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35526 arith_or_int_operand instead of logical_operand. Convert to
35527 insn_and_split. Try to optimize constant operand in splitter.
35528 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
35529 (*tstqi_t_zero): Delete.
35530 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35531 (tstsi_t_and_not): Delete.
35532 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35533 Convert to insn_and_split.
35534 (unnamed split, tstsi_t_zero_extract_xor,
35535 tstsi_t_zero_extract_subreg_xor_little,
35536 tstsi_t_zero_extract_subreg_xor_big): Delete.
35537 (*tstsi_t_shift_mask): New insn_and_split.
35538 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35539 to recombine with surrounding insns when splitting.
35540 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35541 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35542 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35543 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35544 (*cbranch_div0s: Delete.
35545 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35546 Try to recombine with surrounding insns when splitting. Add operand
35548 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35549 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35550 *addc_r_r_msb, *addc_2r_msb): Delete.
35551 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
35553 (*addc_negreg_t): New insn_and_split.
35554 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35555 Try to recombine with surrounding insns when splitting.
35556 Add operand order variants.
35557 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35558 insn_and_split patterns.
35559 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
35560 surrounding insns when splitting.
35561 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35562 (*rotcl): Likewise. Add zero_extract variant.
35563 (*ashrsi2_31): New insn_and_split.
35564 (*negc): Convert to insn_and_split. Use treg_set_expr.
35565 (*zero_extend<mode>si2_disp_mem): Update comment.
35566 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35568 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
35569 with surrounding insns when splitting.
35570 (any_treg_expr_to_reg): New insn_and_split.
35571 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35572 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35573 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35574 *zero_extract_2): New single bit zero extract patterns.
35575 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35576 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35577 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35578 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35580 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35581 register_operand for set source.
35583 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
35585 * i386.opt (prefetch_sse): New targetsave.
35586 * i386.c (ix86_function_specific_save): Save prefetch_sse.
35587 (ix86_function_specific_restore): Restore prefetch_sse and initialize
35588 ix86_cost/ix86_tune_cost.
35590 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35592 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35593 Support the JIT by using 0 as the language type.
35595 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
35598 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
35599 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35600 (mark_regno_live, process_bb_lives): Pass new parameter value to
35601 make_hard_regno_born.
35603 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35605 PR rtl-optimization/63637
35606 PR rtl-optimization/60663
35607 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35608 if elt->cost is MAX_COST for ASM_OPERANDS.
35609 (find_sets_in_insn): Fix up comment typo.
35610 (cse_insn): Don't set src_volatile for all non-volatile
35611 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35612 or with "memory" clobber. Set elt->cost to MAX_COST
35613 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
35614 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35616 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35618 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35621 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35623 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35624 libgcc/config/i386/elf-lib.h.
35626 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35629 * gcc.c (print_configuration): Don't print a blank line at the end
35631 (run_attempt): ... but here unstead.
35633 PR middle-end/64734
35634 * omp-low.c (scan_sharing_clauses): Don't ignore
35635 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35636 on target data/update constructs.
35638 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
35641 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35642 (DEBUG_RELOAD): Removed define.
35643 (m32c_limit_reload_class): Enable traces with if DEBUG0.
35644 (m32c_function_arg): Added a type cast.
35645 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35646 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35647 * config/m32c/bitops.md (andqi3_16): Likewise.
35648 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35649 (push_a01_l): Likewise.
35651 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35654 * main.c (main): Construct toplev instances with init_signals=true.
35655 * toplev.c (general_init): Add param "init_signals", and use it to
35656 conditionalize the calls to signal and host_hooks.extra_signals.
35657 (toplev::toplev): Add param "init_signals".
35658 (toplev::main): When invoking general_init, pass m_init_signals
35659 to control whether signal-handlers are installed.
35660 * toplev.h (toplev::toplev): Add param "init_signals".
35661 (toplev::m_init_signals): New field.
35663 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35666 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35667 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35668 latter may be affected by the former (e.g. on i686).
35670 2015-01-23 Martin Liska <mliska@suse.cz>
35672 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35673 false positive during profiledbootstrap.
35675 2015-01-23 Tom de Vries <tom@codesourcery.com>
35678 * lto-opts.c (lto_write_options): Output non-explicit conservative
35680 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35681 (append_compiler_options): Pass -fopenacc through.
35683 2015-01-23 Tom de Vries <tom@codesourcery.com>
35686 * lto-opts.c (lto_write_options): Output non-explicit conservative
35688 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35689 (append_compiler_options): Pass -fopenmp through.
35691 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35694 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35697 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35698 * diagnostic.def (DK_ICE_NOBT): New kind.
35699 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35700 like DK_ICE, but never print backtrace.
35701 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35702 (internal_error_no_backtrace): New function.
35703 * gcc.c (execute): Use internal_error_no_backtrace instead of
35706 2015-01-22 Jeff Law <law@redhat.com>
35709 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35710 improve code density for small immediate to memory case.
35711 (insv): Better handle bitfield assignments when the field is
35712 being set to all ones.
35713 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35716 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35717 Jakub Jelinek <jakub@redhat.com>
35719 PR middle-end/64729
35720 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35721 for !TARGET_LIBC_PROVIDES_SSP version and
35722 -fstack-protector-{all,strong,explicit} otherwise.
35723 * config/freebsd.h (LINK_SSP_SPEC): Handle
35724 -fstack-protector-{strong,explicit}.
35726 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
35727 H.J. Lu <hongjiu.lu@intel.com>
35730 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35733 2015-01-22 Wei Mi <wmi@google.com>
35735 PR rtl-optimization/64557
35736 * dse.c (record_store): Call get_addr for mem_addr.
35737 (check_mem_read_rtx): Likewise.
35739 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
35741 * fold-const.c (const_binop): Add early return for non-tcc_binary.
35743 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
35745 * toplev.c (init_local_tick): Process the failure when read
35746 fails for random_seed.
35748 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35749 'pretty_name' to avoid memory overflow.
35751 2015-01-22 Richard Biener <rguenther@suse.de>
35753 PR middle-end/64728
35754 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35755 abnormal coalescing on undefined SSA names.
35757 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
35761 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35763 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35765 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
35767 PR middle-end/63325
35768 * fold-const.c (fold_checksum_tree): Don't include value of
35769 expr->decl_with_vis.symtab_node in the checksum.
35771 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35773 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35775 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
35778 * gcc.c (insert_comments): New function.
35779 (try_generate_repro): Call it.
35780 (append_text): Removed.
35782 2015-01-22 Richard Biener <rguenther@suse.de>
35784 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35785 with IL incompatible options. Properly honor user optimize
35788 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
35790 PR rtl-optimization/64682
35791 * combine.c (distribute_notes): When moving a death note for
35792 a register that is set in the new I2, make sure to put it
35793 before that new I2.
35795 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
35797 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35798 not TARGET_DEFAULT.
35800 2015-01-21 Jakub Jelinek <jakub@redhat.com>
35803 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35804 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35805 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35808 * doc/invoke.texi (-fsanitize=vptr): Document.
35810 PR rtl-optimization/62078
35811 * dse.c: Include cfgcleanup.h.
35812 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35813 anything call purge_all_dead_edges and cleanup_cfg at the end
35816 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
35818 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35821 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
35823 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35826 2015-01-21 David Sherwood <david.sherwood@arm.com>
35827 Tejas Belagod <Tejas.Belagod@arm.com>
35829 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35830 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35831 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35834 2015-01-21 David Sherwood <david.sherwood@arm.com>
35835 Tejas Belagod <Tejas.Belagod@arm.com>
35837 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35838 (aarch64_reverse_mask): New decls.
35839 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35840 (insn_count): New mode_attr.
35841 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35842 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35843 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35844 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35845 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35846 (aarch64_simd_st4): New patterns.
35847 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35848 (aarch64_reverse_mask): New functions.
35850 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35852 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35854 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35855 addressing modes for BE.
35856 (aarch64_print_operand): Add 'R' specifier.
35857 (aarch64_simd_disambiguate_copy): Delete.
35858 (aarch64_simd_emit_reg_reg_move): New function.
35859 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35860 in define_splits for structural moves.
35861 (mov<mode>): Use less restrictive predicates.
35862 (*aarch64_mov<mode>): Simplify and only allow for LE.
35863 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35865 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35867 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35869 2015-01-21 Richard Henderson <rth@redhat.com>
35872 * ccmp.c (used_in_cond_stmt_p): Remove.
35873 (expand_ccmp_expr): Don't use it.
35875 2015-01-21 Nick Clifton <nickc@redhat.com>
35877 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35880 2015-01-21 Richard Biener <rguenther@suse.de>
35882 PR middle-end/64313
35883 * tree-core.h (builtin_info, builtin_info_type): Turn from
35884 an object with two arrays into an array of an object with
35885 decl and two flags, implicit_p and declared_p.
35886 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35887 set_builtin_decl, set_builtin_decl_implicit_p,
35888 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35889 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35890 * builtins.c (builtin_info): Adjust.
35891 * gimplify.c (gimplify_addr_expr): References to builtins
35892 that have been declared by the user makes them eligible for
35893 use by the compiler. Call set_builtin_decl_implicit_p on them.
35895 2015-01-20 Jeff Law <law@redhat.com>
35898 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35899 allow pc-relative addresses in operand predicates or constraints.
35901 2015-01-21 Bin Cheng <bin.cheng@arm.com>
35903 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35904 neon on aarch32 processors for stringops.
35906 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35909 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35911 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35914 * ipa-inline.c: Include lto-streamer.h
35915 (report_inline_failed_reason): Output source file differences and
35916 flags on optimization/target node mismatch.
35917 (can_inline_edge_p): Consider caller to be the outer inline function;
35918 be less restrictive about matching opimize and optimize_size attributes.
35919 (inline_account_function_p): Break out from ...
35920 (inline_small_functions): ... here.
35921 * ipa-inline-transform.c (clone_inlined_nodes): Use
35922 inline_account_function_p.
35923 (inline_call): Use optimize attribution; use inline_account_function_p.
35924 (inline_transform): Use opt_for_fn.
35925 * ipa-inline.h (inline_account_function_p): Declare.
35927 2015-01-20 Jakub Jelinek <jakub@redhat.com>
35930 * dwarf2out.c (decl_piece_node): Don't put bitsize into
35931 mode if bitsize <= 0.
35932 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35933 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35934 sizes and positions.
35936 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
35938 * config/nios2/nios2.c (nios2_asm_file_end): Implement
35939 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35941 (TARGET_ASM_FILE_END): Define.
35943 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35945 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35946 (struct tune_params): Use the enum.
35947 * arm.c (arm_*_tune): Update.
35948 (arm_option_override): Update.
35950 2015-01-20 Richard Biener <rguenther@suse.de>
35953 * ipa-reference.c (add_static_var): Inline ...
35954 (analyze_function): ... here after splitting out from ...
35955 (is_proper_for_analysis): ... this.
35957 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
35960 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35961 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35962 replace the conditional with it's true branch.
35963 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35964 (arm_lra_p): Remove.
35966 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
35968 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35970 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35972 * config/tilegx/mul-tables.c: Move symtab.h include after
35973 coretypes.h include.
35974 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35975 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35976 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35977 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35978 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35980 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
35984 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35986 PR rtl-optimization/64081
35987 * loop-iv.c (def_pred_latch_p): New function.
35988 (latch_dominating_def): Allow specific cases with non-single
35990 (iv_get_reaching_def): Likewise.
35991 (check_complex_exit_p): New function.
35992 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35993 with exits not executing on any iteration.
35995 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35998 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35999 to set branch cost.
36001 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36004 * i386.c (gate): Check flag_expensive_optimizations and
36006 (ix86_option_override_internal): Drop optimize_size condition
36007 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
36008 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
36009 MASK_PREFER_AVX128.
36010 (ix86_avx256_split_vector_move_misalign,
36011 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
36012 * sse.md (all uses of TARGET_PREFER_AVX128): Add
36013 optimize_insn_for_speed_p check.
36015 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
36017 * config/mips/mips.h (FP_ASM_SPEC): New define.
36018 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
36021 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
36024 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
36025 nullptr for insn when reaching the first insn.
36026 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
36027 (sh_insn_operands_modified_between_p): Add nullptr check.
36028 (sh_find_extending_set_of_reg): Fix log message. Don't accept
36029 sign extending mem load if the insn contains any UNSPEC or
36032 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36034 * params.def (inline-unit-growth): Drop to 15%.
36035 * invoke.texi (inline-unit-growth): Document change.
36037 2015-01-19 Martin Liska <mliska@suse.cz>
36040 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
36041 function for second argument of OBJ_TYPE_REF.
36043 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36046 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
36047 whether function is an alias.
36049 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36051 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
36054 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
36056 PR rtl-optimization/64671
36057 * lra-remat.c (operand_to_remat): Don't consider jump and call
36060 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
36063 * config/rs6000/default64.h: Include rs6000-cpus.def.
36064 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
36065 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
36066 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
36068 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
36070 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
36071 pseudo-op to specify assembler dialect.
36073 2015-01-19 Martin Liska <mliska@suse.cz>
36076 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
36077 Handle safe potentially removed nodes during filtering.
36079 2015-01-19 Martin Liska <mliska@suse.cz>
36081 * doc/extend.texi (no_icf): Add new attribute description.
36082 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
36083 where the pass attempts to merge a function with no_icf attribute.
36085 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36088 * doc/md.texi (ARM Options): Document register constraints.
36090 2015-01-19 Jiong Wang <jiong.wang@arm.com>
36091 Andrew Pinski <apinski@cavium.com>
36094 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
36095 (ashl<mode>3): Don't expand if operands[2] is not constant.
36097 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36100 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
36101 Match xor-and-xor RTL pattern.
36103 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
36105 PR rtl-optimization/64081
36106 * loop-iv.c (def_pred_latch_p): New function.
36107 (latch_dominating_def): Allow specific cases with non-single
36109 (iv_get_reaching_def): Likewise.
36110 (check_complex_exit_p): New function.
36111 (check_simple_exit): Use check_complex_exit_p to allow certain cases
36112 with exits not executing on any iteration.
36114 2015-01-19 Jakub Jelinek <jakub@redhat.com>
36116 * common.opt (fgraphite): Fix a typo.
36118 2015-01-19 Felix Yang <felix.yang@huawei.com>
36120 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
36122 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
36123 uminp, smax_nanp, smin_nanp): New builtins.
36124 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
36125 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
36126 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
36127 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
36128 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
36129 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
36130 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
36131 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
36132 vpminnms_f32): Rewrite using builtin functions.
36134 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
36137 * omp-low.c (offload_symbol_decl): Remove variable.
36138 (get_offload_symbol_decl): Remove function.
36139 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
36140 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
36141 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
36142 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
36143 BUILT_IN_GOACC_UPDATE don't pass it at all.
36145 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36147 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
36150 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36152 * ipa-chkp.c (chkp_produce_thunks): Add early param
36153 to split thunks production into two passes. Keep
36154 'always_inline' function bodies after the first pass.
36155 (pass_data_ipa_chkp_early_produce_thunks): New.
36156 (pass_ipa_chkp_early_produce_thunks): New.
36157 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36158 chkp_produce_thunks signature.
36159 (make_pass_ipa_chkp_early_produce_thunks): New.
36160 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36161 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36162 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36164 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36166 * cgraph.c (cgraph_node::dump): Dump profile flags.
36168 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
36171 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36172 reg appear first in the parallel.
36174 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36176 * ipa-reference.c (set_reference_optimization_summary,
36177 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36179 (ignore_module_statics): New static var.
36180 (propagate_bits): If ipa-reference is disabled, do not look into local
36182 (analyze_function): Disable analysis when ipa_reference is disabled.
36183 (generate_summary): Do not dump when reference is disabled;
36184 collect vars accessed from functions with ipa-reference disabled.
36185 (get_read_write_all_from_node): When ipa-reference is disabled, use the
36187 (gate): Enable for LTO.
36188 (ignore_edge_p): New function.
36189 (propagate): Skip functions w/o ipa-reference analysis.
36190 * optc-save-gen.awk: Handle optimize_debug correctly.
36191 * opth-gen.awk: Likewise.
36192 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36193 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36194 fira-share-save-slots, fira-share-spill-slots,
36195 fmodulo-sched-allow-regmoves, fpartial-inlining,
36196 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36197 ftracer, ftree-parallelize-loops, fassociative-math,
36198 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36200 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36201 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36203 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36206 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36209 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36211 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36213 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
36215 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36216 Remove duplicate option listings.
36218 2015-01-18 Felix Yang <felix.yang@huawei.com>
36220 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36221 (autofdo_source_profile::get_callsite_total_count,
36222 function_instance::get_function_instance_by_decl,
36223 string_table::get_index, string_table::get_index_by_decl,
36224 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36225 Fix comment typos. Reformatting and minor code rearrangement.
36227 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36229 * config/rs6000/rs6000.md (probe_stack): Delete.
36230 (probe_stack_address): New.
36232 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36234 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36235 to test for 32-bit ABIs, not !TARGET_POWERPC64.
36237 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36239 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36240 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
36241 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
36243 (rs6000_libcall_value): Use the new function.
36245 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
36247 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36249 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
36251 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36252 implement a more precise life analysis for it during backward scan.
36254 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
36256 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36258 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
36260 PR rtl-optimization/52773
36261 * calls.c (emit_library_call_value): When pushing arguments use
36262 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36263 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
36264 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36266 2015-01-17 Jeff Law <law@redhat.com>
36268 PR rtl-optimization/32790
36269 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36270 not ZERO_EXTEND in SET_DESTs.
36272 2015-01-17 Alan Modra <amodra@gmail.com>
36274 * cprop.c (do_local_cprop): Revert last change.
36276 2015-01-16 DJ Delorie <dj@redhat.com>
36277 Nick Clifton <nickc@redhat.com>
36279 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36280 (addhi3_real): Likewise. Fix [HL+0] syntax.
36281 (subqi3_real): Likewise.
36282 (subhi3_real): Likewise.
36283 (cbranchqi4_real): Likewise. Allow saddr,#imm.
36284 (cbranchhi4_real): Likewise.
36285 (cbranchhi4_real_inverted): Likewise.
36286 (cbranchsi4_real_lt): Likewise.
36287 (cbranchsi4_real_ge): Likewise.
36288 (cbranchsi4_real_ge): Likewise.
36289 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36290 (sub<mode>3_virt): Likewise.
36291 (cbranchqi4_virt): Likewise.
36292 (cbranchhi4_virt): Likewise.
36293 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36294 always use '[reg+imm]' even when imm is zero.
36295 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36296 (rl78_general_operand): New.
36297 (rl78_nonimmediate_operand): New.
36298 (rl78_nonfar_operand): Use them.
36299 (rl78_nonfar_nonimm_operand): Likewise.
36300 (rl78_stack_based_mem): Fix.
36301 * config/rl78/constraints.md (Ibqi): New.
36306 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36307 (iorqi3): Likewise.
36308 (xorqi3): Likewise.
36309 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36311 * config/rl78/constrains (Qs8): New constraint.
36312 * config/rl78/rl78.c (rl78_flags_already_set): New function.
36313 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36314 * config/rl78/rl78-real.md (update_Z): New attribute.
36315 Update patterns to set it.
36316 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36317 shorter compare and branch sequence can be used.
36318 (cbranchhi4_real): Likewise.
36319 (cbranchhi4_real_inverted): Likewise.
36321 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36322 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36324 * config/rl78/rl78.c (rl78_get_name_encoding): New.
36325 (rl78_option_override): Allow -mes0 only if C.
36326 (characterize_address): Support subregs of symbol_refs.
36327 (rl78_addr_space_address_mode): Move. Add __near.
36328 (rl78_far_p): Likewise.
36329 (rl78_addr_space_pointer_mode): Likewise.
36330 (rl78_as_legitimate_address): Likewise.
36331 (rl78_addr_space_subset_p): Likewise.
36332 (rl78_addr_space_convert): Likewise.
36333 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36334 symbols with -mes0.
36335 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
36337 (rl78_alloc_physical_registers_op1): Change logic to prefer
36338 symbol[BC] addressing.
36339 (frodata_section): New.
36340 (rl78_asm_init_sections): Initialize it.
36341 (rl78_select_section): Put __far readonly symbols in .frodata.
36342 (rl78_make_type_far): New.
36343 (rl78_insert_attributes): Force all readonly symbols to be
36345 (rl78_asm_out_integer): New.
36346 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36347 * config/rl78/rl78.opt (-mes0): New.
36349 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36350 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36351 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36352 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36353 (rl78_saddr_p): New.
36354 (rl78_output_aligned_common): New.
36355 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36356 (rl78_handle_saddr_attribute): New.
36357 (rl78_handle_naked_attribute): New.
36358 (rl78_attribute_table): Add saddr.
36359 (rl78_print_operand_1): Don't print '!' on saddr operands.
36360 (rl78_print_operand_1): Strip encodings.
36362 (rl78_strip_name_encoding): New.
36363 (rl78_attrlist_to_encoding): New.
36364 (rl78_encode_section_info): New.
36365 (rl78_asm_init_sections): New.
36366 (rl78_select_section): New.
36367 (rl78_output_labelref): New.
36368 (rl78_output_aligned_common): New.
36369 (rl78_asm_out_integer): New.
36370 (rl78_asm_ctor_dtor): New.
36371 (rl78_asm_constructor): New.
36372 (rl78_asm_destructor): New.
36374 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36375 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36376 (transcode_memory_rtx): Update.
36377 (rl78_expand_epilogue): Use A_REG instead of 0.
36379 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36381 * config/arm/arm-protos.h (struct tune_params): New field
36382 sched_autopref_queue_depth.
36383 * config/arm/arm.c (sched-int.h): Include header.
36384 (arm_first_cycle_multipass_dfa_lookahead_guard,)
36385 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36386 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36387 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36388 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36389 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36390 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36391 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36392 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
36393 * config/arm/t-arm (arm.o): Update.
36394 * haifa-sched.c (update_insn_after_change): Update.
36395 (rank_for_schedule): Use auto-prefetcher model, if requested.
36396 (autopref_multipass_init): New static function.
36397 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36398 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36399 variable for debug dumps.
36400 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36401 (autopref_multipass_dfa_lookahead_guard): New global function that
36402 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36403 (init_h_i_d): Update.
36404 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36405 * sched-int.h (enum autopref_multipass_data_status): New const enum.
36406 (autopref_multipass_data_): Structure for auto-prefetcher data.
36407 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36408 (struct _haifa_insn_data:autopref_multipass_data): New field.
36409 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36410 (autopref_multipass_dfa_lookahead_guard): Declare.
36412 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36414 * rtlanal.c (get_base_term): Handle SCRATCH.
36416 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36418 * config/aarch64/aarch64.c
36419 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36420 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36422 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36423 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36425 2015-01-17 Alan Modra <amodra@gmail.com>
36427 * cprop.c (do_local_cprop): Disallow replacement of fixed
36430 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36433 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36436 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
36438 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36439 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36441 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36443 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36444 * config/arm/thumb1.md: ... Here.
36446 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36448 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36449 TImode for TARGET_32BIT.
36451 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36453 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36454 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36456 (rs6000_abi_word_mode): New function.
36458 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36460 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36461 instead of UNITS_PER_WORD to describe the size of stack slots.
36463 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36465 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36466 as rs6000_promote_function_mode. Move comment to there.
36467 (rs6000_promote_function_mode): New function.
36469 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36471 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36472 -mpowerpc64 is active.
36474 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36476 PR middle-end/64353
36477 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36480 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36482 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36483 introduced in revision 219724.
36485 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36486 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36489 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36490 destination is not a GP reg.
36491 (*movdi_aarch64): Likewise.
36493 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
36496 * config/rs6000/default64.h: Revert ISA change.
36498 2015-01-16 Richard Biener <rguenther@suse.de>
36500 PR middle-end/64614
36501 * tree-ssa-uninit.c: Include tree-cfg.h.
36502 (MAX_SWITCH_CASES): New define.
36503 (convert_control_dep_chain_into_preds): Handle switch statements.
36504 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36505 (normalize_one_pred_1): Do not split bit-manipulations.
36508 2015-01-16 Richard Biener <rguenther@suse.de>
36510 PR tree-optimization/64568
36511 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36512 complex load rewriting for TARGET_MEM_REFs.
36514 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
36516 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36518 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
36521 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36523 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36524 (aarch64_lra_p): Remove.
36526 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36529 * ipa-chkp.h (chkp_instrumentable_p): New.
36530 * ipa-chkp.c: Include tree-inline.h.
36531 (chkp_instrumentable_p): New.
36532 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36533 Fix processing of not instrumentable functions.
36534 (chkp_versioning): Use chkp_instrumentable_p. Warn about
36535 not instrumentable functions.
36536 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36537 chkp_instrumentable_p.
36538 * tree-inline.h (copy_forbidden): New.
36539 * tree-inline.c (copy_forbidden): Not static anymore.
36541 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36543 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36546 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36548 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36549 type OP_OUT to OP_INOUT.
36551 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36553 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36554 (high x) y) to y if x and y have the same base.
36556 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36558 * config/arm/cortex-a57.md: New.
36559 * config/aarch64/aarch64.md: Include it.
36560 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36561 * config/aarch64/aarch64-tune.md: Regenerate.
36563 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
36566 * ccmp.c (expand_ccmp_next): New function.
36567 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36568 and compare insn sequence.
36569 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36570 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36571 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36572 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36573 (*ccmp_ior): Changed to ccmp_ior<mode>.
36574 (cmp<mode>): New pattern.
36575 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36577 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36579 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
36581 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36582 _mm256_bsrli_epi128): New.
36583 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36585 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36587 * expmed.c (store_bit_field_using_insv): Improve warning message.
36588 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36590 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36592 PR rtl-optimization/64011
36593 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36594 there is partial overflow.
36596 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36598 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36600 (nds32_expand_epilogue_v3pop): Likewise.
36601 * config/nds32/nds32.md (sibcall): Define this for sibling call
36603 (sibcall_register): Likewise.
36604 (sibcall_immediate): Likewise.
36605 (sibcall_value): Likewise.
36606 (sibcall_value_register): Likewise.
36607 (sibcall_value_immediate): Likewise.
36608 (sibcall_epilogue): Likewise.
36609 (epilogue): Pass false to indicate this is not a sibcall epilogue.
36610 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36611 (nds32_expand_epilogue_v3pop): Likewise.
36613 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36615 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36616 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36617 (return_internal): New.
36618 (return): Define this named pattern.
36619 (simple_return): Define this named pattern.
36620 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36621 pattern instead of unspec_volatile_func_return.
36622 (nds32_expand_epilogue_v3pop): Likewise.
36623 (nds32_can_use_return_insn): New function.
36625 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36627 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36628 * config/nds32/nds32.md (pop25return): New.
36629 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36630 pop25return pattern.
36632 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36634 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36635 -mforbid-fp-as-gp, and -mex9 options.
36637 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36639 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36640 remove -mgp-direct option.
36642 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36644 * doc/invoke.texi (--param early-inlining-insns): Update default value.
36645 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36647 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36649 * ipa-inline.c (inline_small_functions): Work around hints
36652 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
36655 * doc/invoke.texi (Option Summary): Document new Nios II
36657 (Nios II Options): Likewise.
36658 * config/nios2/nios2.opt: Add -mgpopt= option support.
36659 Modify existing -mgpopt and -mno-gpopt options to be aliases.
36660 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36661 * config/nios2/nios2.c (nios2_option_override): Adjust
36662 -mgpopt defaulting.
36663 (nios2_in_small_data_p): Return true for explicit small data
36664 sections even with -G0.
36665 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36668 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36671 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36673 (inline_call): Fix removal of aliases.
36675 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36677 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36678 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36679 * opts.c (common_handle_option): Add -fsanitize=vptr.
36680 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36681 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36682 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36683 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36684 (ubsan_expand_vptr_ifn): New prototype.
36685 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36686 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36687 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36688 expand_LOOP_VECTORIZED): Make argument nameless, remove
36690 (expand_UBSAN_VPTR): New function.
36691 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36693 (UBSAN_VPTR): New internal function.
36694 * sanopt.c (tree_map_traits): Renamed to ...
36695 (sanopt_tree_map_traits): ... this.
36696 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36697 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36698 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
36699 (maybe_optimize_ubsan_vptr_ifn): New function.
36700 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36701 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
36703 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36704 internal calls like pure functions for aliasing, even when they
36705 have other side-effects that prevent making them ECF_PURE.
36706 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36707 (ubsan_expand_vptr_ifn): New function.
36709 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
36711 PR rtl-optimization/64110
36712 * stmt.c (parse_output_constraint): Process '^' and '$'.
36713 (parse_input_constraint): Ditto.
36714 * lra-constraints.c (process_alt_operands): Process the new
36716 * ira-costs.c (record_reg_classes): Process the new constraint
36718 * genoutput.c (indep_constraints): Add '^' and '$'.
36719 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36720 * doc/md.texi: Add description of the new constraints.
36722 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
36723 Bernd Schmidt <bernds@codesourcery.com>
36724 Cesar Philippidis <cesar@codesourcery.com>
36725 James Norris <jnorris@codesourcery.com>
36726 Tom de Vries <tom@codesourcery.com>
36727 Ilmir Usmanov <i.usmanov@samsung.com>
36728 Dmitry Bocharnikov <dmitry.b@samsung.com>
36729 Evgeny Gavrin <e.gavrin@samsung.com>
36730 Jakub Jelinek <jakub@redhat.com>
36732 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36733 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36734 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36735 New function types.
36736 * builtins.c: Include "gomp-constants.h".
36737 (expand_builtin_acc_on_device): New function.
36738 (expand_builtin, is_inexpensive_builtin): Handle
36739 BUILT_IN_ACC_ON_DEVICE.
36740 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36742 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36744 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36745 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36746 i386/intelmic-offload.h.
36747 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36748 to libgomp and its dependencies.
36749 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36750 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36751 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36752 * config/ia64/hpux.h (LIB_SPEC): Likewise.
36753 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36754 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36755 * doc/generic.texi: Update for OpenACC changes.
36756 * doc/gimple.texi: Likewise.
36757 * doc/invoke.texi: Likewise.
36758 * doc/sourcebuild.texi: Likewise.
36759 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36760 GF_OMP_FOR_KIND_OACC_LOOP.
36761 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36762 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36763 GF_OMP_TARGET_KIND_OACC_UPDATE,
36764 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36766 * gimple.c: Update comments for OpenACC changes.
36767 * gimple.def: Likewise.
36768 * gimple.h: Likewise.
36769 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36770 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36771 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36772 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36773 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36775 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36776 * gimplify.c: Include "gomp-constants.h".
36777 Update comments for OpenACC changes.
36778 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36779 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36780 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36781 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36782 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36783 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36784 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36785 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36786 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36788 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36789 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36790 OMP_CLAUSE_SET_MAP_KIND.
36791 (gimplify_oacc_cache): New function.
36792 (gimplify_omp_for): Handle OACC_LOOP.
36793 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36795 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36796 OACC_EXIT_DATA, OACC_UPDATE.
36797 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36798 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36799 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36800 (gimplify_body): Consider flag_openacc next to flag_openmp.
36801 * lto-streamer-out.c: Include "gomp-constants.h".
36802 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36803 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36804 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36805 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36806 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36807 (BUILT_IN_ACC_ON_DEVICE): New builtins.
36808 * omp-low.c: Include "gomp-constants.h".
36809 Update comments for OpenACC changes.
36810 (struct omp_context): Add reduction_map, gwv_below, gwv_this
36812 (extract_omp_for_data, use_pointer_for_field, install_var_field)
36813 (new_omp_context, delete_omp_context, scan_sharing_clauses)
36814 (create_omp_child_function, scan_omp_for, scan_omp_target)
36815 (check_omp_nesting_restrictions, lower_reduction_clauses)
36816 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36817 Update for OpenACC changes.
36818 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36819 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36820 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36821 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36822 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36823 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
36825 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36826 Handle GF_OMP_FOR_KIND_OACC_LOOP.
36827 (expand_omp_target, lower_omp_target): Handle
36828 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36829 GF_OMP_TARGET_KIND_OACC_UPDATE,
36830 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36831 GF_OMP_TARGET_KIND_OACC_DATA.
36832 (pass_expand_omp::execute, execute_lower_omp)
36833 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36835 (offload_symbol_decl): New variable.
36836 (oacc_get_reduction_array_id, oacc_max_threads)
36837 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36838 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36839 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36840 (oacc_gimple_assign, oacc_initialize_reduction_data)
36841 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36843 (is_targetreg_ctx): Remove function.
36844 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36845 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36846 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36847 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36848 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36849 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36850 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36851 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36852 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36853 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36854 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36855 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36856 * tree-core.h: Update comments for OpenACC changes.
36857 (enum omp_clause_map_kind): Remove.
36858 (struct tree_omp_clause): Change type of map_kind member from enum
36859 omp_clause_map_kind to unsigned char.
36860 * tree-inline.c: Update comments for OpenACC changes.
36861 * tree-nested.c: Likewise. Include "gomp-constants.h".
36862 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36863 (convert_tramp_reference_stmt, convert_gimple_call): Update for
36864 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36865 OMP_CLAUSE_SET_MAP_KIND.
36866 * tree-pretty-print.c: Include "gomp-constants.h".
36867 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36868 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36869 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36870 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36871 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36872 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
36873 instead of OMP_CLAUSE_MAP_*.
36874 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36875 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36876 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36877 * tree-streamer-in.c: Include "gomp-constants.h".
36878 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36879 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
36880 * tree-streamer-out.c: Include "gomp-constants.h".
36881 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36883 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36884 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36885 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36886 * tree.c (omp_clause_num_ops): Update accordingly.
36887 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36889 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36890 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36891 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36892 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36893 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36894 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36895 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36896 (OMP_CLAUSE_SET_MAP_KIND): New macro.
36897 * varpool.c (varpool_node::get_create): Consider flag_openacc next
36899 * config/i386/intelmic-offload.h: New file.
36900 * config/nvptx/offload.h: Likewise.
36902 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36904 * explow.h: Remove duplicate contents.
36905 * dojump.h: Likewise.
36907 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
36909 * arm.c (arm_xgene_tune): Add default initializer for instruction
36912 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36916 * ipa.c (symbol_table::remove_unreachable_nodes):
36917 Do not put abstract origins into boundary.
36919 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
36921 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36922 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36924 2015-01-15 Steve Ellcey <sellcey@mips.com>
36926 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36927 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36928 builtins.def, and chkp-builtins.def.
36930 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
36932 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36935 2015-01-15 Richard Biener <rguenther@suse.de>
36937 PR tree-optimization/61743
36938 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36939 information on PHIs for some simple cases.
36941 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36943 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36945 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36946 * config/arm/arm-cores.def (xgene1): New entry.
36947 * config/arm/arm-tables.opt: Regenerate.
36948 * config/arm/arm-tune.md: Regenerate.
36949 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36951 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36953 * tree-if-conv.c: Include hash-map.h.
36954 (aggressive_if_conv): New variable.
36955 (fold_build_cond_expr): Add simplification of non-zero condition.
36956 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36957 destination block is not always executed.
36958 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36959 than two predecessors if AGGRESSIVE_IF_CONV is true.
36960 (if_convertible_stmt_p): Fix commentary.
36961 (all_preds_critical_p): New function.
36962 (has_pred_critical_p): New function.
36963 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36964 BB can have more than two predecessors and all incoming edges can be
36966 (predicate_bbs): Skip predication for loop exit block, use build2_loc
36967 to compute predicate for true edge.
36968 (find_phi_replacement_condition): Delete this function.
36969 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36970 Allow interchange PHI arguments if EXTENDED is false.
36971 Change check that block containing reduction statement candidate
36972 is predecessor of phi-block since phi may have more than two arguments.
36973 (phi_args_hash_traits): New helper structure.
36974 (struct phi_args_hash_traits): New type.
36975 (phi_args_hash_traits::hash): New function.
36976 (phi_args_hash_traits::equal_keys): New function.
36977 (gen_phi_arg_condition): New function.
36978 (predicate_scalar_phi): Add handling of phi nodes with more than two
36979 arguments, delete COND and TRUE_BB arguments, insert body of
36980 find_phi_replacement_condition to predicate ordinary phi nodes.
36981 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36982 delete call of find_phi_replacement_condition and invoke
36983 predicate_scalar_phi with two arguments.
36984 (insert_gimplified_predicates): Add assert that non-predicated block
36985 don't have statements to insert.
36986 (ifcvt_split_critical_edges): New function.
36987 (ifcvt_split_def_stmt): Likewise.
36988 (ifcvt_walk_pattern_tree): Likewise.
36989 (stmt_is_root_of_bool_pattern): Likewise.
36990 (ifcvt_repair_bool_pattern): Likewise.
36991 (ifcvt_local_dce): Likewise.
36992 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36993 is copy of inner or outer loop force_vectorize field, invoke
36994 ifcvt_split_critical_edges, ifcvt_local_dce and
36995 ifcvt_repair_bool_pattern for aggressive if-conversion.
36997 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
36999 * config/aarch64/aarch64.md: Include xgene1.md.
37000 * config/aarch64/xgene1.md: New file.
37002 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37004 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
37005 xgene1 (APM XGene-1) core definition.
37006 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
37007 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
37008 * doc/invoke.texi: Document -mcpu=xgene1.
37010 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37012 * dojump.h: New header file.
37013 * explow.h: Likewise.
37014 * expr.h: Remove includes.
37015 Move expmed.c prototypes to expmed.h.
37016 Move dojump.c prototypes to dojump.h.
37017 Move alias.c prototypes to alias.h.
37018 Move explow.c prototypes to explow.h.
37019 Move calls.c prototypes to calls.h.
37020 Move emit-rtl.c prototypes to emit-rtl.h.
37021 Move varasm.c prototypes to varasm.h.
37022 Move stmt.c prototypes to stmt.h.
37023 (saved_pending_stack_adjust): Move to dojump.h.
37024 (adjust_address): Move to explow.h.
37025 (adjust_address_nv): Move to emit-rtl.h.
37026 (adjust_bitfield_address): Likewise.
37027 (adjust_bitfield_address_size): Likewise.
37028 (adjust_bitfield_address_nv): Likewise.
37029 (adjust_automodify_address_nv): Likewise.
37030 * explow.c (expr_size): Move to expr.c.
37031 (int_expr_size): Likewise.
37032 (tree_expr_size): Likewise.
37033 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37034 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37035 * genemit.c (main): Generate includes statistics.h, real.h,
37036 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
37038 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
37039 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
37040 explow.h, emit-rtl.h, stmt.h.
37041 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
37042 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
37043 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
37044 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
37045 emit-rtl.h, varasm.h, stmt.h.
37046 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
37047 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
37048 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
37049 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
37050 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37051 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
37052 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
37053 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
37054 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
37055 tm.h tree.h varasm.h vec.h wide-int.h.
37056 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37057 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37058 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
37059 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
37060 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
37061 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
37062 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
37063 * loop-iv.c: Likewise.
37064 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
37065 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
37066 statistics.h stmt.h tree.h varasm.h wide-int.h.
37067 * lra-constraints.c: Likewise.
37068 * lra-eliminations.c: Likewise.
37069 * lra-lives.c: Likewise.
37070 * lra-remat.c: Likewise.
37071 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37072 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
37073 statistics.h stmt.h tree.h varasm.h wide-int.h.
37074 * hw-doloop.c: Likewise.
37075 * ira-color.c: Likewise.
37076 * ira-emit.c: Likewise.
37077 * loop-doloop.c: Likewise.
37078 * loop-invariant.c: Likewise.
37079 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37080 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
37081 statistics.h stmt.h tree.h varasm.h wide-int.h.
37082 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
37083 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
37084 statistics.h stmt.h tree.h varasm.h wide-int.h.
37085 * combine-stack-adj.c: Likewise.
37088 * ifcvt.c: Likewise.
37089 * ira-costs.c: Likewise.
37090 * jump.c: Likewise.
37091 * lra-coalesce.c: Likewise.
37092 * lra-spills.c: Likewise.
37093 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37094 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
37095 stmt.h varasm.h wide-int.h.
37096 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37097 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37099 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
37100 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
37101 statistics.h stmt.h varasm.h wide-int.h.
37102 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
37103 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
37104 varasm.h wide-int.h.
37105 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
37106 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37107 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
37108 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
37109 statistics.h stmt.h.
37110 * config/tilepro/tilepro.c: Likewise.
37111 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
37112 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
37113 * config/pdp11/pdp11.c: Likewise.
37114 * config/xtensa/xtensa.c: Likewise.
37115 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
37116 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37118 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37119 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37120 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
37121 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37122 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37123 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
37124 * rtl-chkp.c: Likewise.
37125 * tree-chkp-opt.c: Likewise.
37126 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
37127 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37128 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
37129 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37130 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37131 statistics.h stmt.h.
37132 * tree-vect-data-refs.c: Likewise.
37133 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
37134 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37135 rtl.h statistics.h stmt.h varasm.h.
37136 * internal-fn.c: Likewise.
37137 * ipa-icf-gimple.c: Likewise.
37138 * lto-section-out.c: Likewise.
37139 * tree-data-ref.c: Likewise.
37140 * tree-nested.c: Likewise.
37141 * tree-outof-ssa.c: Likewise.
37142 * tree-predcom.c: Likewise.
37143 * tree-pretty-print.c: Likewise.
37144 * tree-scalar-evolution.c: Likewise.
37145 * tree-ssa-strlen.c: Likewise.
37146 * tree-vect-loop.c: Likewise.
37147 * tree-vect-patterns.c: Likewise.
37148 * tree-vect-slp.c: Likewise.
37149 * tree-vect-stmts.c: Likewise.
37150 * tsan.c: Likewise.
37151 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37152 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
37154 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37155 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37156 statistics.h stmt.h varasm.h.
37157 * loop-unroll.c: Likewise.
37158 * ubsan.c: Likewise.
37159 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37160 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37162 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37163 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37164 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37165 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37166 statistics.h stmt.h.
37167 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37168 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37169 statistics.h stmt.h varasm.h.
37170 * gimple-match-head.c: Likewise.
37171 * lto-cgraph.c: Likewise.
37172 * lto-section-in.c: Likewise.
37173 * lto-streamer-in.c: Likewise.
37174 * lto-streamer-out.c: Likewise.
37175 * tree-affine.c: Likewise.
37176 * tree-cfg.c: Likewise.
37177 * tree-cfgcleanup.c: Likewise.
37178 * tree-if-conv.c: Likewise.
37179 * tree-into-ssa.c: Likewise.
37180 * tree-ssa-alias.c: Likewise.
37181 * tree-ssa-copyrename.c: Likewise.
37182 * tree-ssa-dse.c: Likewise.
37183 * tree-ssa-forwprop.c: Likewise.
37184 * tree-ssa-live.c: Likewise.
37185 * tree-ssa-math-opts.c: Likewise.
37186 * tree-ssa-pre.c: Likewise.
37187 * tree-ssa-sccvn.c: Likewise.
37188 * tree-tailcall.c: Likewise.
37189 * tree-vect-generic.c: Likewise.
37190 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37191 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37192 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37193 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37194 * varasm.c: Likewise.
37195 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37196 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37198 * init-regs.c: Likewise.
37200 * omp-low.c: Likewise.
37201 * stack-ptr-mod.c: Likewise.
37202 * tree-ssa-reassoc.c: Likewise.
37203 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37204 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37206 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37207 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37208 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37209 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37210 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37211 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37212 * tree-ssa-phiopt.c: Likewise.
37213 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37214 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37215 * config/fr30/fr30.c: Likewise.
37216 * config/frv/frv.c: Likewise.
37217 * expr.c: Likewise.
37218 * final.c: Likewise.
37219 * optabs.c: Likewise.
37220 * passes.c: Likewise.
37221 * simplify-rtx.c: Likewise.
37222 * stmt.c: Likewise.
37223 * toplev.c: Likewise.
37224 * var-tracking.c: Likewise.
37225 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37226 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37227 * lower-subreg.c: Likewise.
37228 * postreload-gcse.c: Likewise.
37230 * reginfo.c: Likewise.
37231 * store-motion.c: Likewise.
37232 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37233 fixed-value.h hashtab.h real.h stmt.h varasm.h.
37234 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37235 fixed-value.h hashtab.h statistics.h stmt.h.
37236 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37237 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37238 * except.c: Likewise.
37239 * explow.c: Likewise.
37240 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37241 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37243 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37244 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37245 * tree-ssa-structalias.c: Likewise.
37246 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37247 fixed-value.h insn-config.h real.h statistics.h.
37248 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37249 fixed-value.h insn-config.h real.h statistics.h stmt.h.
37250 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37251 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37252 * cfgbuild.c: Likewise.
37253 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37254 fixed-value.h real.h rtl.h statistics.h stmt.h.
37255 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37256 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37257 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37258 fixed-value.h real.h statistics.h stmt.h.
37259 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37260 fixed-value.h real.h statistics.h stmt.h varasm.h.
37261 * cprop.c: Likewise.
37262 * modulo-sched.c: Likewise.
37263 * postreload.c: Likewise.
37264 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37265 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37266 statistics.h stmt.h varasm.h.
37267 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37268 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37269 rtl.h statistics.h stmt.h varasm.h.
37270 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37271 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37273 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37274 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37276 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37277 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37279 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37280 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37281 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37282 function.h real.h statistics.h stmt.h varasm.h.
37283 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37284 insn-config.h real.h statistics.h stmt.h.
37285 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37286 statistics.h stmt.h.
37287 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37288 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37289 statistics.h stmt.h varasm.h.
37290 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37291 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37292 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37293 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37294 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37295 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37296 statistics.h stmt.h varasm.h.
37297 * ipa-polymorphic-call.c: Likewise.
37298 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37299 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37300 statistics.h stmt.h.
37301 * config/c6x/c6x.c: Likewise.
37302 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37303 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37304 statistics.h stmt.h varasm.h.
37305 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37306 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37308 * ipa-split.c: Likewise.
37309 * tree-eh.c: Likewise.
37310 * tree-ssa-dce.c: Likewise.
37311 * tree-ssa-loop-niter.c: Likewise.
37312 * tree-vrp.c: Likewise.
37313 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37314 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37316 * config/nds32/nds32-fp-as-gp.c: Likewise.
37317 * config/nds32/nds32-intrinsic.c: Likewise.
37318 * config/nds32/nds32-isr.c: Likewise.
37319 * config/nds32/nds32-md-auxiliary.c: Likewise.
37320 * config/nds32/nds32-memory-manipulation.c: Likewise.
37321 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37322 * config/nds32/nds32-predicates.c: Likewise.
37323 * config/nds32/nds32.c: Likewise.
37324 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37325 fixed-value.h hashtab.h real.h statistics.h.
37326 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37327 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37328 * config/arm/arm.c: Likewise.
37329 * config/avr/avr.c: Likewise.
37330 * config/bfin/bfin.c: Likewise.
37331 * config/h8300/h8300.c: Likewise.
37332 * config/i386/i386.c: Likewise.
37333 * config/ia64/ia64.c: Likewise.
37334 * config/iq2000/iq2000.c: Likewise.
37335 * config/m32c/m32c.c: Likewise.
37336 * config/m32r/m32r.c: Likewise.
37337 * config/m68k/m68k.c: Likewise.
37338 * config/mcore/mcore.c: Likewise.
37339 * config/mep/mep.c: Likewise.
37340 * config/mips/mips.c: Likewise.
37341 * config/mn10300/mn10300.c: Likewise.
37342 * config/moxie/moxie.c: Likewise.
37343 * config/pa/pa.c: Likewise.
37344 * config/rl78/rl78.c: Likewise.
37345 * config/rx/rx.c: Likewise.
37346 * config/s390/s390.c: Likewise.
37347 * config/sh/sh.c: Likewise.
37348 * config/sparc/sparc.c: Likewise.
37349 * config/spu/spu.c: Likewise.
37350 * config/stormy16/stormy16.c: Likewise.
37351 * config/v850/v850.c: Likewise.
37352 * config/vax/vax.c: Likewise.
37353 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37354 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37355 * config/msp430/msp430.c: Likewise.
37356 * predict.c: Likewise.
37357 * value-prof.c: Likewise.
37358 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37359 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37360 * config/microblaze/microblaze.c: Likewise.
37361 * config/nios2/nios2.c: Likewise.
37362 * config/rs6000/rs6000.c: Likewise.
37363 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37364 insn-config.h real.h rtl.h statistics.h stmt.h.
37365 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37366 insn-config.h real.h statistics.h stmt.h.
37367 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37368 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37369 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37370 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37371 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37372 fixed-value.h real.h statistics.h stmt.h.
37373 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37374 fixed-value.h statistics.h stmt.h.
37375 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37378 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37380 * gengtype.c (create_user_defined_type): Workaround
37381 -Wmaybe-uninitialized false positives.
37382 * cse.c (fold_rtx): Likewise.
37383 * loop-invariant.c (gain_for_invariant): Likewise.
37385 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
37387 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37388 set the memory attributes in all cases but clear MEM_EXPR if need be.
37390 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37392 PR tree-optimization/64434
37393 * cfgexpand.c (reorder_operands): New function.
37394 (expand_gimple_basic_block): Insert call of reorder_operands if
37397 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
37399 * config/mips/micromips.md (*swp): Remove explicit parallel.
37400 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37401 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37402 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37403 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37404 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37405 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37406 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37407 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37408 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37409 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37410 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37411 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37412 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37413 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37414 (mips_wrdsp): Likewise.
37415 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37417 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37418 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37419 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37420 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37421 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37422 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37423 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37424 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37425 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37427 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37429 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37430 (mips_print_operand): Support 'y' to print exact log2 in decimal
37432 * config/mips/mips.h (ISA_HAS_LSA): New define.
37433 (ISA_HAS_DLSA): Likewise.
37434 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37435 * config/mips/predicates.md (const_immlsa_operand): New predicate.
37437 2015-01-15 Martin Liska <mliska@suse.cz>
37440 * optc-save-gen.awk: Add support for array types.
37442 2015-01-15 Richard Biener <rguenther@suse.de>
37444 PR middle-end/64365
37445 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37446 for MEM_REF access functions with the same base can never partially
37449 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
37451 * common.opt: New option -fstack-protector-explicit.
37452 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37453 (stack_protect_decl_phase): Handle stack_protect attribute for
37454 explicit stack protection requests.
37455 (expand_used_vars): Similarly.
37456 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37457 * doc/extend.texi: Add documentation for "stack_protect" attribute.
37458 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37460 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
37463 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37465 (sh_extending_set_of_reg): New struct.
37466 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37467 sh_remove_reg_dead_or_unused_notes): New Declarations.
37468 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37469 sh_find_extending_set_of_reg, sh_split_tst_subregs,
37470 sh_extending_set_of_reg::use_as_extended_reg): New functions.
37471 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37472 convert to insn_and_split and use new function sh_split_tst_subregs.
37474 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
37476 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37478 (Optimization Options): Move -fuse-ld documentation to...
37479 (Link Options): ...here.
37481 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37483 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37485 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37486 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37487 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37488 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37489 instead of ZR for the memory operand of LL/SC.
37490 (compare_and_swap_12, sync_add<mode>): Likewise.
37491 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37492 (sync_new_<optab>_12, sync_nand_12): Likewise.
37493 (sync_old_nand_12, sync_new_nand_12): Likewise.
37494 (sync_sub<mode>, sync_old_add<mode>): Likewise.
37495 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37496 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37497 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37498 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37499 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37500 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37501 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37502 * doc/md.texi (ZC): Update description.
37504 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37506 * builtins.c (expand_builtin_atomic_exchange): Remove error when
37507 memory model is CONSUME.
37508 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37509 expand_builtin_atomic_store): Change invalid memory model errors to
37511 (expand_builtin_atomic_clear): Change invalid model errors to warnings
37512 and issue warning for CONSUME.
37514 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
37516 * lto-cgraph: Update function comments for
37517 lto_symtab_encoder_encode_*.
37519 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37521 * Makefile.in (site.exp): Do not set ENABLE_LTO.
37523 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37525 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37526 * lto-cgraph.c (select_what_to_stream): Remove argument, use
37527 lto_stream_offload_p instead.
37528 * lto-streamer.h (select_what_to_stream): Remove argument.
37529 * passes.c (ipa_write_summaries): Likewise.
37530 * tree-pass.h (ipa_write_summaries): Likewise.
37532 2015-01-14 Richard Biener <rguenther@suse.de>
37534 PR tree-optimization/59354
37535 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37536 groups larger than the slp group size as having gaps.
37538 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37540 PR middle-end/59448
37541 * builtins.c (get_memmodel): Promote consume to acquire always.
37543 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37546 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37549 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37552 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37554 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37555 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37556 AVX512VBMI, as it implies AVX512BW.
37558 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37561 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37562 (vec_unpacks_hi_v16sf): Ditto.
37564 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37566 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37569 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37571 * doc/invoke.texi (mapcs): Mention deprecation.
37572 (mapcs-frame): Likewise.
37574 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
37577 * config/arm/arm.c (callee_saved_reg_p): Define.
37578 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37579 register is callee saved instead of !call_used_regs[reg].
37580 (thumb1_compute_save_reg_mask): Likewise.
37582 2015-01-14 Hale Wang <hale.wang@arm.com>
37584 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37587 2015-01-14 Richard Biener <rguenther@suse.de>
37590 * tree-inline.c (insert_debug_decl_map): Check destination
37591 function MAY_HAVE_DEBUG_STMTS.
37592 (insert_init_debug_bind): Likewise.
37593 (insert_init_stmt): Remove redundant check.
37594 (remap_gimple_stmt): Drop debug stmts if the destination
37595 function has var-tracking assignments disabled.
37597 2015-01-14 Martin Liska <mliska@suse.cz>
37599 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37600 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37602 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37605 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37606 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37608 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37610 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37611 level from an ARCH; do not inject the default.
37612 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37613 MIPS_ISA_LEVEL_SPEC.
37614 (MIPS_ISA_NAN2008_SPEC): Update comment.
37615 (BASE_DRIVER_SELF_SPECS): Likewise.
37616 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37617 MIPS_DEFAULT_ISA_LEVEL_SPEC.
37618 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37619 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37620 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37622 2015-01-14 Richard Biener <rguenther@suse.de>
37624 PR tree-optimization/64493
37625 PR tree-optimization/64495
37626 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37627 assign the proper vectorized PHI to the inner loop exit PHIs.
37629 2015-01-14 Joey Ye <joey.ye@arm.com>
37631 * config/arm/arm.c (arm_compute_save_reg_mask):
37632 Do not save lr in case of tail call.
37633 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37635 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
37637 * tree-vrp.c (check_array_ref): Emit more warnings
37638 for warn_array_bounds >= 2.
37639 * common.opt: New option -Warray-bounds=.
37640 * doc/invoke.texi: Document -Warray-bounds=.
37642 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
37644 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37645 (mforbid-fp-as-gp): Remove.
37647 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37648 (nds32_symbol_load_store_p): Remove.
37649 (nds32_fp_as_gp_check_available): Clean up implementation.
37650 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37652 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37653 fp-as-gp and ex9 cases.
37655 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37657 * tree-profile.c (init_ic_make_global_vars): Drop workaround
37658 for bintuils bug 14342.
37659 (init_ic_make_global_vars): Likewise.
37660 (gimple_init_edge_profiler): Likewise.
37661 (gimple_gen_ic_func_profiler): Likewise.
37663 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37665 * ipa-inline.c (inline_small_functions): Swap the operands in
37668 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37671 * ipa-inline-analysis.c (node_growth_cache): Remove.
37672 (initialize_growth_caches): Do not initialize it.
37673 (free_growth_caches): Do not free it.
37674 (do_estimate_growth): Rename to ...
37675 (estimate_growth): ... this one; drop growth cache code.
37676 (growth_likely_positive): Always go the heuristics way.
37677 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37678 (reset_edge_caches): Do not reset node growth.
37679 (heap_edge_removal_hook): Do not maintain cache.
37680 (inline_small_functions): Likewise; strenghten sanity check.
37681 (ipa_inline): Do not maintain caches.
37682 * ipa-inline.h (node_growth_cache): Remove.
37683 (do_estimate_growth): Remove to ...
37684 (estimate_growth): this one; remove inline version.
37685 (reset_node_growth_cache): Remove.
37687 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37690 * ipa-inline.c (inline_small_functions): Update callee keys after
37691 resolving speculation
37692 (inline_small_functions): Always check monotonicity of the queue.
37694 2015-01-13 Marek Polacek <polacek@redhat.com>
37696 PR middle-end/64391
37697 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37699 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37701 PR rtl-optimization/64286
37702 * ree.c (combine_reaching_defs): Move part of comment earlier,
37703 remove !SCALAR_INT_MODE_P check.
37704 (add_removable_extension): Don't add vector mode
37705 extensions if all uses of the source register aren't the same
37708 2015-01-13 Renlin Li <renlin.li@arm.com>
37710 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37711 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37713 2015-01-13 Martin Liska <mliska@suse.cz>
37715 * ipa-icf.c (sem_function::equals_private): Call new functions
37716 cl_target_option_print_diff and cl_optimization_print_diff.
37717 * optc-save-gen.awk (cl_target_option_print_diff): New function.
37718 (cl_optimization_print_diff): Likewise.
37719 * opth-gen.awk: Likewise.
37721 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
37723 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37724 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37725 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37726 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37727 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37728 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37730 2015-01-13 Andrew Pinski <apinski@cavium.com>
37732 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37733 instead of src mode.
37735 2015-01-13 Richard Biener <rguenther@suse.de>
37738 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37741 2015-01-13 Andrew Pinski <apinski@cavium.com>
37743 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37745 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37747 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37749 PR middle-end/63974
37750 * cfgexpand.c (expand_computed_goto): Don't call
37751 convert_memory_address here.
37753 2015-01-13 Richard Biener <rguenther@suse.de>
37755 PR tree-optimization/64406
37756 * tree-loop-distibution.c (pass_loop_distribution::execute):
37757 Reset the SCEV hashtable if we distributed anything.
37759 2015-01-13 Richard Biener <rguenther@suse.de>
37761 PR tree-optimization/64404
37762 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37763 SLP types for CSEd loads.
37765 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37767 PR tree-optimization/64436
37768 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37769 merge of two symbolic numbers for a bitwise OR to ...
37770 (perform_symbolic_merge): This. Also fix computation of the range and
37771 end of the symbolic number corresponding to the result of a bitwise OR.
37773 2015-01-13 Richard Biener <rguenther@suse.de>
37775 PR tree-optimization/64568
37776 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37777 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37779 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37781 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37782 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37784 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37786 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37787 target-specific symbol_ref flag.
37788 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37789 resides in rodata section.
37790 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37791 (nds32_encode_section_info): New function.
37793 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37795 * config/nds32/nds32.md (call): Use pseudo instruction bal which
37796 clobbers TA_REGNUM if large code model is specified.
37797 (call_register): Likewise.
37798 (call_immediate): Likewise.
37799 (call_value): Likewise.
37800 (call_value_register): Likewise.
37801 (call_value_immediate): Likewise.
37803 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37805 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37806 (TARGET_CMODEL_MEDIUM): New macro.
37807 (TARGET_CMODEL_LARGE): New macro.
37808 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37809 code model setting in assembly code.
37811 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37813 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37814 Remove MASK_GP_DIRECT flag.
37815 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37816 one of the multilib default options.
37817 * config/nds32/nds32.opt (mgp-direct): Remove.
37818 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37819 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
37821 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37823 * config/nds32/nds32.opt (mcmodel): Add new option.
37824 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37825 to describe code model.
37827 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
37830 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37832 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
37834 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37835 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37836 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37837 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37838 __builtin_sh_set_fpscr.
37840 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37842 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37843 after a funtion name just to indicate it is a function.
37844 ([-fsanitize-undefined-trap-on-error]): Likewise.
37845 ([-fdbg-cnt=]): Likewise.
37846 ([-mmemcpy]): Likewise.
37847 ([-mflush-func]): Likewise.
37848 ([-msynci]): Likewise.
37850 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37852 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37855 2015-01-12 Jakub Jelinek <jakub@redhat.com>
37857 PR tree-optimization/64563
37858 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37859 instead of != VR_VARYING.
37862 * config/i386/i386.c (ix86_expand_prologue): Add
37863 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37865 PR tree-optimization/64454
37866 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37867 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37868 for signed or [0, op1 - 1] for unsigned modulo.
37869 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37870 even if op1 does not satisfy integer_pow2p.
37873 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37875 2015-01-12 Jeff Law <law@redhat.com>
37878 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37879 (trunchiqi2, truncsihi2): Similarly.
37881 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37882 rather than calling F.
37884 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
37886 * tsan.c (instrument_expr): Use force_gimple_operand.
37887 Use may_be_nonaddressable_p instead of is_gimple_addressable.
37889 2015-01-12 Richard Biener <rguenther@suse.de>
37891 PR tree-optimization/64530
37892 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37895 2015-01-12 Richard Biener <rguenther@suse.de>
37897 PR middle-end/64357
37898 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37901 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37903 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37904 Cortex-A17 tuning parameters.
37905 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37907 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37909 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37910 * config/arm/arm.c (arm_macro_fusion_p): New function.
37911 (arm_macro_fusion_pair_p): Likewise.
37912 (TARGET_SCHED_MACRO_FUSION_P): Define.
37913 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37914 (ARM_FUSE_NOTHING): Likewise.
37915 (ARM_FUSE_MOVW_MOVT): Likewise.
37916 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37917 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37918 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37919 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37920 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37921 arm_cortex_a5_tune): Specify fuseable_ops value.
37923 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
37926 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37927 test for PIE with copy reloc.
37928 * configure: Regenerated.
37930 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37932 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37934 (arm_tls_descseq_addr): Likewise.
37935 (arm_gen_movmemqi): Likewise.
37936 (arm_expand_epilogue_apcs_frame): Likewise.
37937 (arm_expand_epilogue): Likewise.
37938 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
37941 2015-01-12 Martin Liska <mliska@suse.cz>
37944 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37945 volatility for correct operands.
37947 2015-01-12 Martin Liska <mliska@suse.cz>
37949 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37950 indication that a function is not leaf.
37951 (sem_function::compare_polymorphic_p): Likewise.
37953 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37955 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37956 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37957 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37958 fold-const.h, tree-check.h.
37960 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37964 * ipa-inline.c (compute_uninlined_call_time,
37965 compute_inlined_call_time): Use counts for extra precision when
37967 (big_speedup_p): Fix formating.
37968 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37969 (relative_time_benefit): Remove.
37970 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37971 merge guessed and read profile paths.
37972 (inline_small_functions): Count only !optimize_size functions into
37973 initial size; be more lax about sanity check when profile is used;
37974 be sure to update inlined function profile when profile is read.
37976 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37979 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37980 cost when edge becomes direct.
37981 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37982 is resolved or when introducing new speculation.
37984 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
37988 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37989 '||' to fix typo issue.
37991 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37992 accept and return NULL.
37994 2015-01-12 Martin Liska <mliska@suse.cz>
37996 * cgraph.c (cgraph_edge::remove_callee): Move function to header
37997 file for being inlined.
37998 (cgraph_set_edge_callee): Delete.
37999 (cgraph_edge::redirect_callee): Move function to header file
38001 (cgraph_edge::make_direct): Use new function.
38002 (cgraph_edge::dump_edge_flags): New function created from
38003 static dump_edge_flags function.
38004 (cgraph_node::dump): Use new function.
38005 (cgraph_edge::verify_count_and_frequency): New function created
38006 from verify_edge_count_and_frequency.
38007 (cgraph_edge::verify_corresponds_to_fndecl): New function created
38008 from verify_edge_corresponds_to_fndecl.
38009 (verify_edge_corresponds_to_fndecl): Delete.
38010 (cgraph_node::verify_node): Use new function.
38011 * cgraph.h (cgraph_edge::set_callee): New function.
38012 (cgraph_edge::dump_edge_flags): Likewise.
38013 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
38015 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
38017 * ipa-utils.c (estimate_function_body_sizes): Do not
38018 free node params when called late with early=true.
38020 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
38022 * doc/md.texi (Instruction Patterns): Rewrite text for
38024 (Example): Likewise.
38026 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
38028 * doc/invoke.texi (Option Summary): Break long lines.
38029 [(-fdiagnostics-color)]: Put long literal in @smallexample
38031 [(-fsanitize-recover)]: Likewise.
38032 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
38033 [(-ffast-math)]: Likewise.
38034 [(--param max-inline-insns-recursive)]: Likewise.
38035 [(--param max-inline-recursive-depth)]: Likewise.
38036 [(-mno-text-section-literals)]: Likewise.
38038 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
38040 * doc/install.texi: Update for libgomp being renamed from "GNU
38041 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
38043 * doc/sourcebuild.texi: Likewise.
38045 2015-01-10 Anthony Green <green@moxielogic.com>
38047 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
38048 mul.x availability for moxiebox configuration.
38050 2015-01-09 Anthony Green <green@moxielogic.com>
38052 * config/moxie/moxie.md: Tabify assembly output.
38054 2015-01-09 Anthony Green <green@moxielogic.com>
38056 * config/moxie/moxie.md (CC_REG): Correct register definition.
38058 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
38060 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
38061 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
38064 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38066 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
38068 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
38069 Jakub Jelinek <jakub@redhat.com>
38071 PR middle-end/64412
38072 * lto-streamer.h (lto_stream_offload_p): New declaration.
38073 * lto-streamer.c (lto_stream_offload_p): New variable.
38074 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
38075 at the same time as section_name_prefix.
38076 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
38077 if lto_stream_offload_p.
38078 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
38079 stream TREE_TARGET_OPTION if lto_stream_offload_p.
38080 (write_ts_function_decl_tree_pointers): Don't
38081 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
38082 * tree-streamer-in.c (unpack_value_fields): Don't stream
38083 TREE_TARGET_OPTION in if ACCEL_COMPILER.
38084 (lto_input_ts_function_decl_tree_pointers): Don't stream
38085 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
38086 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
38087 instead of section_name_prefix string comparisons.
38089 2015-01-09 Jakub Jelinek <jakub@redhat.com>
38091 PR rtl-optimization/64536
38092 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
38095 2015-01-09 Michael Collison <michael.collison@linaro.org>
38097 PR tree-optimization/64322
38098 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
38099 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
38101 2015-01-09 Tom de Vries <tom@codesourcery.com>
38103 PR rtl-optimization/64539
38104 * regcprop.c (kill_clobbered_values): Factor out of ...
38105 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
38106 instead of note_stores with kill_clobbered_value.
38108 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38110 * ginclude/unwind-arm-common.h: Revert previous commit.
38112 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38114 * config.gcc (arm*-*-freebsd*): New configuration.
38115 * config/arm/freebsd.h: New file.
38116 * config.host: Add extra components for arm*-*-freebsd*.
38117 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
38118 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
38120 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38122 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
38124 * config/rs6000/t-rtems: Add e6500 multilibs.
38126 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38128 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
38131 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38133 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
38134 MULTILIB_EXCEPTIONS.
38136 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38138 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
38139 MULTILIB_EXCEPTIONS.
38141 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38143 * config/arm/t-rtems-eabi: Rename to...
38144 * config/arm/t-rtems: ...this.
38145 * config/arm/rtems-eabi.h: Rename to...
38146 * config/arm/rtems.h: ...this.
38147 * config.gcc (arm*-*-rtems*): Reflect changes above.
38149 2015-01-09 Richard Biener <rguenther@suse.de>
38151 PR tree-optimization/64410
38152 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
38154 (execute_update_addresses_taken): Deal with that.
38155 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38156 loads/stores for complex variables.
38158 2015-01-09 Martin Liska <mliska@suse.cz>
38160 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38162 (func_checker::compare_memory_operand): New function.
38163 (func_checker::compare_operand): Split case to newly
38165 (func_checker::compare_cst_or_decl): New function.
38166 (func_checker::compare_gimple_call): Identify
38168 (func_checker::compare_gimple_assign): Likewise.
38169 * ipa-icf-gimple.h: New function.
38171 2015-01-09 Martin Liska <mliska@suse.cz>
38174 * sreal.c (sreal::dump): Change unsigned format to signed for
38176 (sreal::to_double): Replace exp2 with scalbln.
38178 2015-01-09 Martin Liska <mliska@suse.cz>
38180 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38181 * ipa-icf.c (sem_function::equals_private): Add support for target and
38182 (sem_item_optimizer::merge_classes): Remove redundant function
38183 optimization flags comparison.
38184 * tree.h (target_opts_for_fn): New function.
38186 2015-01-09 Tom de Vries <tom@codesourcery.com>
38188 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38190 2015-01-09 Kito Cheng <kito@0xlab.org>
38192 PR rtl-optimization/64348
38193 * lra-constraints.c (split_reg): Fix caller-save store/restore
38194 instruction generation.
38196 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
38198 PR gcov-profile/61790
38199 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38200 long long. Fallback to int64_t if host doesn't have long long and
38201 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
38203 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38205 PR tree-optimization/63989
38206 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38207 from 1000 to 10000.
38208 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38209 (get_stridx): If we don't have a record for certain SSA_NAME,
38210 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38211 constant offset, call get_stridx_plus_constant.
38212 (get_stridx_plus_constant): New function.
38213 (zero_length_string): Don't use get_stridx here.
38216 PR middle-end/64388
38217 * dse.c (struct insn_info): Mention frame_read set also
38218 before reload for tail calls on some targets.
38219 (scan_insn): Revert 2014-12-22 change. Set frame_read
38220 also before reload for tail calls if
38221 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
38222 instead of add_non_frame_wild_read for non-const/memset
38223 tail calls after reload.
38225 2015-01-08 Jason Merrill <jason@redhat.com>
38227 * ubsan.c (do_ubsan_in_current_function): New.
38228 (pass_ubsan::gate): Use it.
38229 * ubsan.h: Declare it.
38230 * convert.c (convert_to_integer): Use it.
38232 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38235 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38236 compare_code when it is unconditionally overwritten afterwards.
38237 Use ix86_reverse_condition instead of reverse_condition. Don't
38238 change code if *reverse_condition* returned UNKNOWN and don't
38239 swap ct/cf and negate diff in that case.
38241 2015-01-08 Mike Stump <mikestump@comcast.net>
38243 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38244 (pass_tsan_O0::gate): Likewise.
38245 * extend.texi (Function Attributes): Add no_sanitize_thread
38248 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
38250 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38251 for registering builtins.
38252 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38253 add -fopenmp to the argv_obstack used when invoking
38254 compile_for_target.
38256 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38257 add "-m32" or "-m64" to argv_obstack.
38258 (generate_host_descr_file): Likewise, when invoking host_compiler.
38259 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38262 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38264 * config/sh/sh-mem.cc: Use constant as second operand when emitting
38267 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38270 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38271 constant load if constant operand fits into I08.
38273 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38276 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38277 and TREE_THIS_VOLATILE for MEM_REFs.
38278 (build5_stat): Fix up initialization of TREE_READONLY and
38279 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38281 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
38284 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38285 of r for the second alternative of the destination operand.
38287 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
38290 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38292 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38294 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38296 ([-fivar-visibility], [-fvisibility]): Likewise.
38298 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38300 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38301 the file where @code, @command, etc is more appropriate.
38303 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
38305 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38306 of -mrecip= documentation.
38308 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38311 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38312 correct reload handler if -m32 -mpowerpc64 is used.
38314 2015-01-06 Tom de Vries <tom@codesourcery.com>
38316 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38318 2015-01-08 Christian Bruel <christian.bruel@st.com>
38321 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38323 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
38325 PR tree-optimization/63259
38326 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38327 if optab exists for 16bit byteswap.
38329 2015-01-06 Jakub Jelinek <jakub@redhat.com>
38331 * opts.c (common_handle_option): Add support for
38332 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38333 * doc/invoke.texi: Document -fno-sanitize=all,
38334 -f{,no-}sanitize-recover=all. Document that
38335 -fsanitize=float-cast-overflow is not enabled
38336 by -fsanitize=undefined. Fix up documentation
38337 of -f{,no-}sanitize-recover.
38339 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
38341 * config.gcc: Add Visium support.
38342 * configure.ac: Likewise.
38343 * configure: Regenerate.
38344 * doc/extend.texi (interrupt attribute): Add Visium.
38345 * doc/invoke.texi: Document Visium options.
38346 * doc/install.texi: Document Visium target.
38347 * doc/md.texi: Document Visium constraints.
38348 * common/config/visium: New directory.
38349 * config/visium: Likewise.
38351 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38353 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38354 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38356 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38358 * combine.c (combine_validate_cost): Do not count the cost of a
38359 split I2 twice. Do not display it twice in the dump, either.
38361 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38363 Revert parts of r219199.
38364 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38366 ([-Wtraditional]): Restore markup on <limits.h>.
38368 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
38371 * doc/invoke.texi: Document -Wsuggest-override.
38373 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
38375 PR rtl-optimization/64287
38376 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38377 (process_options): Disable flag_ipa_ra if profiling.
38379 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
38381 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38383 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
38385 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38386 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38387 put under #if TARGET_LOOPS guard.
38389 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
38391 * config/i386/i386.c (output_387_binary_op): Use std::swap.
38393 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
38395 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38396 * rtl.h (refers_to_regno_p): Add overload.
38398 * bt-load.c: Likewise.
38399 * combine.c: Likewise.
38400 * df-scan.c: Likewise.
38401 * sched-deps.c: Likewise.
38402 * config/s390/s390.c: Likewise.
38403 * config/m32r/m32r.c: Likewise.
38404 * config/rs6000/spe.md: Likewise.
38405 * config/rs6000/rs6000.c: Likewise.
38406 * config/pa/pa.c: Likewise.
38407 * config/stormy16/stormy16.c: Likewise.
38408 * config/cris/cris.c: Likewise.
38409 * config/arc/arc.md: Likewise.
38410 * config/arc/arc.c: Likewise.
38411 * config/sh/sh.md: Likewise.
38412 * config/sh/sh.c: Likewise.
38413 * config/frv/frv.c: Likewise.
38415 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38418 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38419 call as cleanup of the whole body.
38420 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38421 * tsan.c (replace_func_exit): New function.
38422 (instrument_func_exit): Moved earlier.
38423 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38424 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38426 (tsan_pass): Don't call instrument_func_exit.
38427 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38428 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38432 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38433 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38434 it to libubsan handler instead of EXPR. Fold comparisons earlier,
38435 if the result is integer_zerop, return NULL_TREE.
38436 * convert.c (convert_to_integer): Pass expr as ARG.
38438 PR tree-optimization/64465
38439 * tree-inline.c (redirect_all_calls): During inlining
38440 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38441 changed the stmt to a non-throwing call.
38443 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38445 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38446 etc markup throughout the file.
38448 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38450 Enable experimental TSAN support for Ada.
38451 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38453 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38455 PR tree-optimization/64494
38456 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38457 clear SSA_NAME_ANTI_RANGE_P flag.
38459 2015-01-05 Marek Polacek <polacek@redhat.com>
38461 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38463 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38465 Update copyright years.
38467 * gcc.c (process_command): Update copyright notice dates.
38468 * gcov-dump.c: Ditto.
38470 * doc/cpp.texi: Bump @copying's copyright year.
38471 * doc/cppinternals.texi: Ditto.
38472 * doc/gcc.texi: Ditto.
38473 * doc/gccint.texi: Ditto.
38474 * doc/gcov.texi: Ditto.
38475 * doc/install.texi: Ditto.
38476 * doc/invoke.texi: Ditto.
38478 * auto-profile.c, auto-profile.h: Fix up Copyright line.
38480 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
38482 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38484 ([-fvtable-verify], [-fvtv-debug]): Likewise.
38485 ([-Wabi]): Likewise.
38486 ([-fmessage-length]): Likewise.
38487 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38488 ([-Wno-discarded-qualifiers]): Likewise.
38489 ([-Wnodiscarded-array-qualifiers]): Likewise.
38490 ([-Wno-virtual-move-assign]): Likewise.
38491 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38492 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38493 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38494 ([-fsanitize-undefined-trap-on-error]): Likewise.
38495 ([-floop-interchange]): Likewise.
38496 ([-ftree-coalesce-inlined-vars]): Likewise.
38497 ([-fvect-cost-model]): Likewise.
38498 ([-flto]): Likewise.
38499 ([--param]): Likewise.
38500 (Spec Files): Likewise.
38501 ([-mstrict-align]): Likewise.
38502 ([-mfix-cortex-a53-835769]): Likewise.
38503 ([-march], [-mtune]): Likewise.
38504 ([-mpic-register]): Likewise.
38505 ([-munaligned-access]): Likewise.
38506 ([-msp8]): Likewise.
38507 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38508 (AVR Built-in Macros): Likewise.
38509 ([-mpreferred-stack-boundary]): Likewise.
38510 ([-mtune-crtl]): Likewise.
38511 ([-mashf]): Likewise.
38512 ([-mmcu=]): Likewise.
38513 ([-minrt]): Likewise.
38514 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38515 ([-mupper-regs]): Likewise.
38516 ([-matomic-model]): Likewise.
38517 ([-mdiv]): Likewise.
38518 ([-mzdcbranch]): Likewise.
38519 ([-mdisable-callt]): Likewise.
38520 ([-msoft-float]): Likewise.
38521 ([-m8byte-align]): Likewise.
38522 ([-fstack-reuse]): Likewise.
38524 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38526 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38527 Fix markup, light copy-editing.
38528 ([-fauto-profile]): Rewrite to fix formatting and content
38531 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38533 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38534 Copy-edit description.
38535 ([-fisolate-erroneous-paths-attribute]): Likewise.
38536 * common.opt (fisolate-erroneous-paths-dereference):
38537 Copy-edit description.
38538 (fisolate-erroneous-paths-attribute): Likewise.
38540 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38542 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38545 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38547 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38548 ([-fvtv-debug]): Likewise.
38549 ([-Wc++-compat]): Likewise.
38550 ([-Wc++11-compat]): Likewise.
38551 ([-Wc++14-compat]): Likewise.
38552 ([-Wno-sized-deallocation]): Likewise.
38553 ([-femit-class-debug-always]): Likewise.
38554 ([-femit-struct-debug-detailed]): Likewise.
38555 ([-fno-keep-inline-dllexport]): Likewise.
38556 ([-fira-algorithm]): Likewise.
38557 ([-fira-region]): Likewise.
38558 ([-flra-remat]): Likewise.
38559 ([-fipa-ra]): Likewise.
38560 ([-fhoist-adjacent-loads]): Likewise.
38561 ([-fisolate-erroneous-paths-dereference]): Likewise.
38562 ([-fisolate-erroneous-paths-attribute]): Likewise.
38563 ([-ftree-switch-conversion]): Likewise.
38564 ([-ftree-tail-merge]): Likewise.
38565 ([-ftree-loop-if-convert]): Likewise.
38566 ([-ftree-loop-if-convert-stores]): Likewise.
38567 ([-ftree-loop-distribution]): Likewise.
38568 ([-ftree-loop-distribute-patterns]): Likewise.
38569 ([-flto-compression-level]): Likewise.
38570 ([-flto-report]): Likewise.
38571 ([-flto-report-wpa]): Likewise.
38572 ([-fuse-linker-plugin]): Likewise.
38573 ([-mfix-cortex-a53-835769]): Likewise.
38574 ([-mno-fix-cortex-a53-835769]): Likewise.
38575 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38576 explicit listing; add a note to the discussion indicating they
38577 exist. Reorder table to group similar options. Add missing
38578 @opindex entries. Add @need commands throughout the table to
38579 allow it to be split across multiple pages.
38580 ([-m8bit-idiv]): Fix @opindex.
38581 ([-mavx256-split-unaligned-load]): Likewise.
38582 ([-mavx256-split-unaligned-store]): Likewise.
38583 ([-mstack-protector-guard]): Likewise.
38584 ([-mcpu=]): Likewise.
38585 ([-mcpu]): Likewise.
38586 ([-mpointer-size=]): Likewise.
38588 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
38590 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38591 instead of `m' constraint. Likewise for unnamed movb comparison
38592 patterns using reg_before_reload_operand predicate.
38593 * config/pa/predicates.md (reg_before_reload_operand): Tighten
38594 predicate to reject register index and LO_SUM DLT memory forms
38597 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38599 * doc/invoke.texi (Option Summary): Fix spelling of
38600 -fdevirtualize-at-ltrans.
38601 ([-fdevirtualize]): Fix markup.
38602 ([-fdevirtualize-speculatively]): Fix typo.
38603 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
38604 implementor-speaky.
38605 * common.opt (fdevirtualize-at-ltrans): Likewise.
38606 * ipa-devirt.c: Fix typos in comments throughout the file.
38607 (ipa_devirt): Fix typos in format strings for dump output.
38609 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38611 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38612 discussion of defaults, light copy-editing.
38614 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38616 * tsan.c (instrument_expr): corrected previous checkin.
38618 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38620 Instrument bit field and unaligned accesses for TSAN.
38621 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38622 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38623 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38624 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38625 unaligned memory regions.
38627 2015-01-01 Anthony Green <green@moxielogic.com>
38629 * config/moxie/predicates.md (moxie_general_movsrc_operand):
38630 Restrict move source register offsets to 16 bits.
38632 Copyright (C) 2015 Free Software Foundation, Inc.
38634 Copying and distribution of this file, with or without modification,
38635 are permitted in any medium without royalty provided the copyright
38636 notice and this notice are preserved.