]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
tree-vect-loop.c (vect_determine_vectorization_factor): Check mix of boolean and...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
2
3 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4 mix of boolean and integer vectors in a single statement.
5 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
6 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
7 determine constant type.
8 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
9 for loop invariants.
10
11 2015-11-13 Alan Hayward <alan.hayward@arm.com>
12
13 PR tree-optimization/66558
14 * tree-vect-loop.c (is_integer_induction):Add.
15 (vectorizable_reduction): Add integer induction checks.
16
17 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
18
19 Revert [ARM] Remove neon-testgen.ml and generated tests.
20
21 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
22
23 [ARM] Remove neon-testgen.ml and generated tests.
24
25 * config/arm/neon-testgen.ml: Remove.
26
27 2015-11-13 Richard Biener <rguenther@suse.de>
28
29 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
30 Signal fatal failure if early checks fail.
31 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
32 do not bother testing further vector sizes.
33
34 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
35
36 * config/i386/predicates.md (misaligned_operand): Return true if
37 operand is aligned to less than its natural alignmnet.
38
39 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
40
41 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
42 (vec_cmpu@var{m}@var{n}): New item.
43 (vcond@var{m}@var{n}): Specify comparison is signed.
44 (vcondu@var{m}@var{n}): New item.
45 (vcond_mask_@var{m}@var{n}): New item.
46 (maskload@var{m}@var{n}): New item.
47 (maskstore@var{m}@var{n}): New item.
48
49 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
50
51 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
52 types of stored value and storage are compatible.
53
54 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
55
56 * gcc.c (POST_LINK_SPEC): Define if not already defined.
57 (LINK_COMMAND_SPEC): Use post_link.
58 (post_link_spec): New, initialize to POST_LINK_SPEC.
59 (post_link): Initialize new static spec.
60 * doc/tm.texi.in (POST_LINK_SPEC): Document.
61 * doc/tm.texi: Regenerated.
62
63 2015-11-13 David Malcolm <dmalcolm@redhat.com>
64
65 PR driver/67613
66 * Makefile.in (GCC_OBJS): Add spellcheck.o.
67 (OBJS): Add spellcheck-tree.o.
68 * gcc.c: Include "spellcheck.h".
69 (suggest_option): New function.
70 (driver::handle_unrecognized_options): Call suggest_option to
71 provide a hint about misspelled options.
72 * spellcheck.c: Update file comment.
73 (levenshtein_distance): Convert 4-param implementation from static
74 to extern scope. Remove note about unit tests from leading
75 comment for const char * implementation. Move tree
76 implementation to...
77 * spellcheck-tree.c: New file.
78 * spellcheck.h (levenshtein_distance): Add 4-param decl.
79
80 2015-11-13 David Malcolm <dmalcolm@redhat.com>
81
82 * Makefile.in (OBJS): Add spellcheck.o.
83 * spellcheck.c: New file.
84 * spellcheck.h: New file.
85
86 2015-11-13 James Bowman <james.bowman@ftdichip.com>
87
88 * config/ft32/ft32.md (*sne): New insn pattern.
89
90 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
91
92 * gcc/cprop.c (is_too_expensive): Remove.
93 (gcse.h): Include.
94 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
95 is_too_expensive.
96 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
97 * gcc/gcse.c (is_too_expensive): Rename to ...
98 (gcse_or_cprop_is_too_expensive): ... this.
99 Expand warning to add required size of max-gcse-memory.
100 (one_pre_gcse_pass): Use it.
101 (one_code_hoisting_pass): Use it.
102 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
103
104 2015-11-12 James Norris <jnorris@codesourcery.com>
105 Joseph Myers <joseph@codesourcery.com>
106
107 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
108 GF_OMP_TARGET_KIND_OACC_DECLARE.
109 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
110 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
111 * gimplify.c (oacc_declare_returns): New.
112 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
113 (device_resident_p): New function.
114 (oacc_default_clause): Handle device_resident clause.
115 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
116 (gimplify_expr): Handle OACC_DECLARE.
117 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
118 * omp-low.c (expand_omp_target): Handle
119 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
120 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
121 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
122 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
123 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
124 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
125 GOMP_MAP_DEVICE_RESIDENT.
126
127 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
128
129 [ARM] Remove neon-testgen.ml and generated tests.
130
131 * config/arm/neon-testgen.ml: Remove.
132
133 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
134
135 * config/aarch64/aarch64-cores.def (qdf24xx): New.
136 * config/aarch64/aarch64-tune.md: Regenerated.
137 * config/arm/arm-cores.def (qdf24xx): New.
138 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
139 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
140 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
141 (ARM Options/-mtune); Likewise.
142
143 2015-11-12 Martin Liska <mliska@suse.cz>
144
145 * config/i386/i386.c (ix86_valid_target_attribute_p):
146 Finalize options at the of the function.
147 * gcc.c (driver_get_configure_time_options): Call newly
148 introduced init_opts_obstack.
149 * lto-wrapper.c (main): Likewise.
150 * opts.c (init_opts_obstack): New function.
151 (init_options_struct): Call newly
152 introduced init_opts_obstack.
153 * opts.h (init_options_struct): Declare.
154
155 2015-11-12 Martin Liska <mliska@suse.cz>
156
157 PR ipa/68035
158 * ipa-icf.c (void sem_item::set_hash): New function.
159 (sem_function::get_hash): Use renamed m_hash member variable.
160 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
161 (sem_item::update_hash_by_local_refs): Likewise.
162 (sem_variable::get_hash): Use renamed m_hash member variable.
163 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
164 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
165 (sem_item_optimizer::build_graph): As the hash value of an item
166 is lazy initialized, force the calculation.
167 * ipa-icf.h (set_hash): Declare new function and rename hash member
168 variable to m_hash.
169
170 2015-11-12 Richard Biener <rguenther@suse.de>
171
172 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
173 Rename to vect_slp_analyze_instance_dependence.
174 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
175 Remove WAR special-case.
176 (vect_slp_analyze_node_dependences): Instead add more specific
177 code here, not relying on other instances being vectorized.
178 (vect_slp_analyze_instance_dependence): Adjust accordingly.
179 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
180 vertical space in dump files.
181 (vect_print_slp_tree): Likewise.
182 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
183 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
184 not vectorized stmts until after dependence analysis removed
185 instances. Merge alignment and dependence checks.
186 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
187 flag on all stmts.
188
189 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
190
191 * config/aarch64/aarch64-protos.h (tune_params): Add new members
192 "max_case_values" and "cache_line_size".
193 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
194 function.
195 (aarch64_override_options_internal): Tune heuristics based on new
196 members in "tune_params".
197 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
198
199 2015-11-12 Richard Biener <rguenther@suse.de>
200
201 PR tree-optimization/68306
202 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
203 relevant and vectorizable checks here.
204 (vect_verify_datarefs_alignment): Add relevant check here.
205
206 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
207
208 * gimplify.c (oacc_default_clause): New.
209 (omp_notice_variable): Call it.
210
211 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
212
213 PR tree-optimization/68305
214 * tree-vect-slp.c (vect_get_constant_vectors): Support
215 COND_EXPR with SSA_NAME as a condition.
216
217 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
218
219 * config/visium/visium-protos.h (notice_update_cc): Delete.
220 (print_operand): Likewise.
221 (print_operand_address): Likewise.
222
223 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
224
225 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
226 FUNCTION_VALUE_REGNO_P): Remove.
227 * config/alpha/alpha-protos.h (function_value): Remove.
228 * config/alpha/alpha.c (function_value): Rename to...
229 (alpha_function_value_1): ... this. Make static.
230 (alpha_function_value, alpha_libcall_value,
231 alpha_function_value_regno_p): New functions.
232 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
233 TARGET_FUNCTION_VALUE_REGNO_P): Define.
234
235 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
236
237 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
238 * config/alpha/alpha.c (alpha_memory_latency): Make static.
239 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
240 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
241
242 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
243
244 PR target/67265
245 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
246 assertion on the CFA register.
247
248 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
249
250 * expr.c (do_store_flag): Expand vector comparison as
251 VEC_COND_EXPR if vector comparison is not supported
252 by target.
253
254 2015-11-12 Renlin Li <renlin.li@arm.com>
255
256 * config/arm/arm.md (addsi3_compare_op2): Make the order of
257 assembly pattern consistent with constraint order.
258
259 2015-11-12 Tom de Vries <tom@codesourcery.com>
260
261 * gen-pass-instances.awk (handle_line): Simplify match regexp.
262
263 2015-11-12 Tom de Vries <tom@codesourcery.com>
264
265 * gen-pass-instances.awk (handle_line): Simplify init of
266 postfix_starts_at.
267
268 2015-11-12 Tom de Vries <tom@codesourcery.com>
269
270 * gen-pass-instances.awk (handle_line): Rename var where to
271 call_starts_at.
272
273 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
274
275 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
276 do not expand to rtl.
277
278 2015-11-12 Richard Biener <rguenther@suse.de>
279
280 PR tree-optimization/58497
281 * tree-vect-generic.c: Include gimplify.h.
282 (tree_vec_extract): Lookup constant/constructor DEFs.
283 (do_cond): Unshare cond.
284
285 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
286
287 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
288 combined insn if the alignment of vector mode memory operand
289 is less than ssememalign.
290
291 2015-11-12 Tom de Vries <tom@codesourcery.com>
292
293 * gen-pass-instances.awk (handle_line): Print parentheses and
294 pass_name explicitly.
295
296 2015-11-12 Tom de Vries <tom@codesourcery.com>
297
298 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
299 and postfix vars.
300
301 2015-11-12 Tom de Vries <tom@codesourcery.com>
302
303 * gen-pass-instances.awk (handle_line): Add comments.
304
305 2015-11-12 Tom de Vries <tom@codesourcery.com>
306
307 * gen-pass-instances.awk (handle_line): Rename len_of_end to
308 len_of_close.
309
310 2015-11-12 Tom de Vries <tom@codesourcery.com>
311
312 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
313
314 2015-11-12 Tom de Vries <tom@codesourcery.com>
315
316 * gen-pass-instances.awk (handle_line): Restructure using early-out.
317
318 2015-11-12 Tom de Vries <tom@codesourcery.com>
319
320 * gen-pass-instances.awk (handle_line): Unify semicolon use.
321
322 2015-11-12 Tom de Vries <tom@codesourcery.com>
323
324 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
325
326 2015-11-12 Tom de Vries <tom@codesourcery.com>
327
328 * gen-pass-instances.awk: Add emacs indent setting.
329
330 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
331
332 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
333 to match.pd.
334 Move Convert A/(B/C) to (A/B)*C to match.pd.
335 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
336 Move Optimize (X & (-A)) / A where A is a power of 2, to
337 X >> log2(A) to match.pd.
338
339 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
340 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
341 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
342 New simplifier.
343 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
344
345 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
346
347 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
348 variable.
349 (neon_vst2_lane<mode>): Likewise.
350 (neon_vld3_lane<mode>): Likewise.
351 (neon_vst3_lane<mode>): Likewise.
352 (neon_vld4_lane<mode>): Likewise.
353 (neon_vst4_lane<mode>): Likewise.
354
355 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
356 Sebastian Pop <s.pop@samsung.com>
357
358 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
359 New member codegen_error
360 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
361 early return.
362 (translate_isl_ast_node_user): Early return in case of error.
363 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
364 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
365 (add_parameters_to_ivs_params): Remove macro.
366 (graphite_regenerate_ast_isl): Add if_region pointer to region.
367 * graphite-poly.c (new_poly_dr): Remove macro.
368 (print_pdr): Same.
369 (new_gimple_poly_bb): Same.
370 (free_gimple_poly_bb): Same.
371 (print_scop_params): Same.
372 * graphite-poly.h (struct poly_dr): Same.
373 (struct poly_bb): Add new_bb.
374 (gbb_from_bb): Remove dead code.
375 (pbb_from_bb): Same.
376 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
377 (parameter_index_in_region): Same.
378 (find_scop_parameters): Same.
379 (build_cross_bb_scalars_def): New.
380 (build_cross_bb_scalars_use): New.
381 (graphite_find_cross_bb_scalar_vars): New
382 (try_generate_gimple_bb): Reads and Writes.
383 (build_alias_set): Move.
384 (gather_bbs::before_dom_children): Gather bbs visited.
385 (build_scops): call build_alias_set.
386 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
387 (remove_simple_copy_phi): Delete.
388 (remove_invariant_phi): Delete.
389 (simple_copy_phi_p): Delete.
390 (reduction_phi_p): Delete.
391 (isl_id_for_dr): Remove unused param.
392 (parameter_index_in_region_1): Remove macro usage.
393 (set_scop_parameter_dim): Same.
394 (add_param_constraints): Same.
395 (add_conditions_to_constraints): Same
396 (build_scop_iteration_domain): Same.
397 (pdr_add_alias_set): Comment.
398 (add_scalar_version_numbers): New.
399 (build_poly_dr): ISL id.
400 (build_scop_drs): Move.
401 (build_poly_sr_1): Same.
402 (insert_stmts): Remove.
403 (build_poly_sr): New.
404 (new_pbb_from_pbb): Delete.
405 (insert_out_of_ssa_copy_on_edge): Delete.
406 (create_zero_dim_array): Delete.
407 (scalar_close_phi_node_p): Delete.
408 (propagate_expr_outside_region): Delete.
409 (rewrite_close_phi_out_of_ssa): Delete.
410 (rewrite_phi_out_of_ssa): Delete.
411 (rewrite_degenerate_phi): Delete.
412 (rewrite_reductions_out_of_ssa): Delete.
413 (rewrite_cross_bb_scalar_dependence): Delete.
414 (handle_scalar_deps_crossing_scop_limits):
415 (rewrite_cross_bb_scalar_deps): Delete.
416 (build_poly_scop): Remove calls to out-of-ssa functions.
417 * graphite.c (graphite_transform_loops): Early return in case of
418 codegen error.
419 * sese.c (debug_rename_map_1): Delete.
420 (debug_rename_map): Delete.
421 (sese_record_loop): Remove macro.
422 (build_sese_loop_nests): Same.
423 (new_sese_info): Same.
424 (free_sese_info): Same.
425 (sese_insert_phis_for_liveouts):
426 (is_loop_closed_ssa_use): New.
427 (number_of_phi_nodes): New.
428 (bb_contains_loop_close_phi_nodes): New.
429 (bb_contains_loop_phi_nodes): New.
430 (phi_uses_name): New.
431 (is_valid_rename):
432 (get_rename): Add old_bb and loop_phi for more precise matching of
433 exprs.
434 (set_rename): Pass region.
435 (later_of_the_two): New.
436 (gsi_insert_earliest): New.
437 (collect_all_ssa_names): New.
438 (substitute_ssa_name): New.
439 (rename_all_uses): New.
440 (get_rename_from_scev): New.
441 (rename_uses): Pass old_bb for more precise matching of exprs.
442 (get_def_bb_for_const): New.
443 (get_new_name): New.
444 (get_loc): New.
445 (get_edges): New.
446 (copy_loop_phi_args): New.
447 (copy_loop_phi_nodes): New.
448 (get_loop_init_value): New.
449 (find_init_value): New.
450 (find_init_value_close_phi): New.
451 (copy_loop_close_phi_args): New.
452 (copy_loop_close_phi_nodes): New.
453 (add_phi_arg_for_new_expr): New.
454 (copy_cond_phi_args): New.
455 (copy_cond_phi_nodes): New.
456 (copy_phi_nodes): New.
457 (should_copy_to_new_region): New.
458 (set_rename_for_each_def): New.
459 (graphite_copy_stmts_from_block): Early return in case of error.
460 (copy_bb_and_scalar_dependences): Same.
461 * sese.h (vec_find): New.
462 (SESE_PARAMS): Delete.
463 (SESE_LOOPS): Delete.
464 (SESE_LOOP_NEST): Delete.
465 (sese_contains_loop): Remove macro usage.
466 (sese_nb_params): Same.
467 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
468
469 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
470
471 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
472 isl_union_map_add_map on every pbb->schedule.
473
474 2015-11-11 Tom de Vries <tom@codesourcery.com>
475
476 * tree-parloops.c (create_parallel_loop): Return void.
477
478 2015-11-11 Tom de Vries <tom@codesourcery.com>
479
480 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
481 block only when needed.
482
483 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
484
485 * config/alpha/alpha-protos.h (print_operand): Remove.
486 (print_operand_address): Remove.
487 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
488 (PRINT_OPERAND_ADDRESS): Remove.
489 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
490 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
491 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
492 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
493 (print_operand_address): Rename to...
494 (alpha_print_operand_address): ...this and make static.
495 (print_operand): Rename to...
496 (alpha_print_operand): ...this and make static.
497 (alpha_print_operand_punct_valid_p): New static function.
498
499 2015-11-11 Richard Biener <rguenther@suse.de>
500
501 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
502 Declare.
503 (vect_analyze_data_refs_alignment): Make loop vect specific.
504 (vect_verify_datarefs_alignment): Likewise.
505 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
506 Add missing continue.
507 (vect_compute_data_ref_alignment): Export.
508 (vect_compute_data_refs_alignment): Merge into...
509 (vect_analyze_data_refs_alignment): ... this.
510 (verify_data_ref_alignment): Split out from ...
511 (vect_verify_datarefs_alignment): ... here.
512 (vect_slp_analyze_and_verify_node_alignment): New function.
513 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
514 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
515 misplaced checks on alignment.
516 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
517 alignment analysis after SLP discovery and do it per instance.
518 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
519 bother to re-try using different vector sizes.
520
521 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
522 Cesar Philippidis <cesar@codesourcery.com>
523
524 * gimplify.c (enum omp_region_type): Add ORT_ACC,
525 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
526 (gimple_add_tmp_var): Add ORT_ACC checks.
527 (gimplify_var_or_parm_decl): Likewise.
528 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
529 mask.
530 (omp_add_variable): Look in outer contexts for openacc and allow
531 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
532 checks.
533 (omp_notice_variable, omp_is_private, omp_check_private): Add
534 ORT_ACC checks.
535 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
536 Permit private openacc reductions.
537 (gimplify_oacc_cache): Specify ORT_ACC.
538 (gimplify_omp_workshare): Adjust OpenACC region types.
539 (gimplify_omp_target_update): Likewise.
540 * omp-low.c (scan_sharing_clauses): Remove Openacc
541 firstprivate sorry.
542 (lower-rec_input_clauses): Don't handle openacc firstprivate
543 references here.
544 (lower_omp_target): Emit initializers for openacc firstprivate vars.
545
546 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
547
548 PR target/67265
549 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
550 frame pointer for stack checking if non-call exceptions aren't used.
551 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
552
553 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
554
555 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
556 [LA]SHIFTRT.
557
558 2015-11-11 Martin Liska <mliska@suse.cz>
559 Richard Biener <rguenther@suse.de>
560
561 PR rtl-optimization/68287
562 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
563 number of elements.
564
565 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
566
567 * config/mips/mips.c (mips_breakable_sequence_p): New function.
568 (mips_break_sequence): New function.
569 (mips_reorg_process_insns): Use them. Use compact branches in selected
570 situations.
571
572 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
573
574 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
575
576 2015-11-11 Jiong Wang <jiong.wang@arm.com>
577 Jim Wilson <wilson@gcc.gnu.org>
578
579 PR target/67305
580 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
581 be true and eliminable registers mentioned.
582
583 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
584
585 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
586 options.
587 * config/arc/arc-opts.h: Add ARCv2 CPUs.
588 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
589 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
590 situation, and store instructions with large offsets.
591 (arc_secondary_reload_conv): New function.
592 (arc_init): Add ARCv2 options.
593 (arc_conditional_register_usage): Select the proper register usage
594 for ARCv2 processors.
595 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
596 architecture.
597 (arc_compute_function_type): Likewise.
598 (arc_print_operand): Handle new ARCv2 punctuation characters.
599 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
600 bytes.
601 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
602 function.
603 (arc_reorg, arc_hazard): Use it.
604 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
605 __EM__.
606 (ASM_SPEC): Add ARCv2 options.
607 (TARGET_NORM): ARC HS has norm instructions by default.
608 (TARGET_OPTFPE): Use optimized floating point emulation for ARC
609 HS.
610 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
611 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
612 Define.
613 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
614 Likewise.
615 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
616 (TARGET_LP_WR_INTERLOCK): Likewise.
617 * config/arc/arc.md
618 (commutative_binary_mult_comparison_result_used, movsicc_insn)
619 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
620 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
621 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
622 Use it for ARCv2.
623 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
624 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
625 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
626 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
627 (extzvsi): New pattern.
628 * config/arc/arc.opt: New ARCv2 options.
629 * config/arc/arcEM.md: New file.
630 * config/arc/arcHS.md: Likewise.
631 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
632 values.
633 (Cm2): A signed 9-bit integer constant constraint.
634 (C62): An unsigned 6-bit integer constant constraint.
635 (C16): A signed 16-bit integer constant constraint.
636 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
637 (short_const_int_operand): New predicate.
638 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
639 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
640 -mcode-density and -mdiv-rem.
641
642 2015-11-11 Julia Koval <julia.koval@intel.com>
643
644 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
645
646 2015-11-11 Julia Koval <julia.koval@intel.com>
647
648 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
649
650 2015-11-11 Martin Liska <mliska@suse.cz>
651
652 * gimple-ssa-strength-reduction.c (create_phi_basis):
653 Use auto_vec.
654 * passes.c (release_dump_file_name): New function.
655 (pass_init_dump_file): Used from this function.
656 (pass_fini_dump_file): Likewise.
657 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
658 * var-tracking.c (vt_initialize): Use pool_allocator.
659
660 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
661 Jiong Wang <jiong.wang@arm.com>
662
663 PR tree-optimization/68234
664 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
665 node which estimiated to be VR_VARYING initially.
666
667 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
668
669 * regname.c (scan_rtx_reg): Check the matching number of consecutive
670 registers when tying chains.
671 (build_def_use): Move terminated_this_insn earlier in the function.
672
673 2015-11-10 Mike Frysinger <vapier@gentoo.org>
674
675 * configure.ac: Use = with test and not ==.
676 * configure: Regenerated.
677
678 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
679
680 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
681 machine asserts. Update defines for 64 bit.
682
683 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
684
685 PR target/63870
686 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
687 lane number.
688 (neon_vst1_lane<mode>): Likewise.
689 (neon_vld2_lane<mode>): Likewise.
690 (neon_vst2_lane<mode>): Likewise.
691 (neon_vld3_lane<mode>): Likewise.
692 (neon_vst3_lane<mode>): Likewise.
693 (neon_vld4_lane<mode>): Likewise.
694 (neon_vst4_lane<mode>): Likewise.
695
696 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
697
698 PR target/63870
699 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
700 qualifier_struct_load_store_lane_index.
701 (arm_storestruct_lane_qualifiers) Likewise.
702 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
703 big-endian.
704 (neon_vst1_lane<mode>) Likewise.
705 (neon_vld2_lane<mode>) Likewise.
706 (neon_vst2_lane<mode>) Likewise.
707 (neon_vld3_lane<mode>) Likewise.
708 (neon_vst3_lane<mode>) Likewise.
709 (neon_vld4_lane<mode>) Likewise.
710 (neon_vst4_lane<mode>) Likewise.
711
712 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
713
714 PR target/63870
715 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
716 qualifier_struct_load_store_lane_index.
717 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
718 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
719 argument qualifiers.
720 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
721 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
722
723 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
724
725 * config/nvptx/nvptx.opt (moptimize): New flag.
726 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
727 default.
728 (nvptx_optimize_inner): New.
729 (nvptx_process_pars): Call it when optimizing.
730 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
731
732 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
733
734 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
735 Remove redundant code.
736
737 2015-11-10 Jeff Law <law@redhat.com>
738
739 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
740 call to output_address.
741 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
742 Add unnamed machine_mode argument.
743
744 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
745
746 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
747 default to 64-bit.
748
749 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
750
751 * config/i386/i386.md (*movabs<mode>_1): Add explicit
752 size directives for -masm=intel.
753 (*movabs<mode>_2): Ditto.
754
755 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
756
757 * config/i386/i386.c (ix86_print_operand): Remove dead code that
758 tried to avoid (%rip) for call operands.
759
760 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
761
762 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
763 argument. Do not use RIP relative addressing when no_rip is set.
764 (ix86_print_operand): Update call to ix86_print_operand_address_as.
765 (ix86_print_operand_address): Ditto.
766 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
767 absolute movabs operand 0. Add square braces for -masm=intel.
768 (*movabs<mode>_2): Ditto for operand 1.
769
770 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
771
772 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
773 combine_vcvtf2i pattern.
774
775 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
776
777 * config/arm/arm.c (neon_valid_immediate): Remove integer
778 CONST_DOUBLE handling. It should never occur.
779
780 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
781
782 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
783 (ATOMIC_LDOP): Likewise.
784 (atomic_ldop): Likewise.
785 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
786 (ATOMIC_LDOP): Likewise.
787 (atomic_ldop): Likewise.
788
789 2015-11-10 Martin Liska <mliska@suse.cz>
790
791 * alloc-pool.h (allocate_raw): New function.
792 (operator new (size_t, object_allocator<T> &a)): Use the
793 function instead of object_allocator::allocate).
794
795 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
796
797 * config/i386/sse.md (HALFMASKMODE): New attribute.
798 (DOUBLEMASKMODE): New attribute.
799 (vec_pack_trunc_qi): New.
800 (vec_pack_trunc_<mode>): New.
801 (vec_unpacks_lo_hi): New.
802 (vec_unpacks_lo_si): New.
803 (vec_unpacks_lo_di): New.
804 (vec_unpacks_hi_hi): New.
805 (vec_unpacks_hi_<mode>): New.
806
807 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
808
809 * optabs.c (expand_binop_directly): Allow scalar mode for
810 vec_pack_trunc_optab.
811 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
812 boolean vector producers from pattern sequence when computing VF.
813 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
814 vect_recog_mask_conversion_pattern.
815 (search_type_for_mask): Choose the smallest
816 type if different size types are mixed.
817 (build_mask_conversion): New.
818 (vect_recog_mask_conversion_pattern): New.
819 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
820 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
821 load with pattern.
822 (vectorizable_conversion): Support boolean vectors.
823 (free_stmt_vec_info): Allow patterns for statements with no lhs.
824 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
825
826 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
827
828 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
829 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
830 Cast mask to FP mode if required.
831 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
832 (vcond_mask_<mode><avx512fmaskmodelower>): New.
833 (vcond_mask_<mode><sseintvecmodelower>): New.
834 (vcond_mask_<mode><sseintvecmodelower>): New.
835 (vcond_mask_v2div2di): New.
836 (vcond_mask_<mode><sseintvecmodelower>): New.
837 (vcond_mask_<mode><sseintvecmodelower>): New.
838
839 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
840
841 * optabs-query.h (get_vcond_mask_icode): New.
842 * optabs-tree.c (expand_vec_cond_expr_p): Use
843 get_vcond_mask_icode for VEC_COND_EXPR with mask.
844 * optabs.c (expand_vec_cond_mask_expr): New.
845 (expand_vec_cond_expr): Use get_vcond_mask_icode
846 when possible.
847 * optabs.def (vcond_mask_optab): New.
848 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
849 generate redundant comparison for COND_EXPR.
850 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
851 as a condition.
852 (vectorizable_condition): Likewise.
853 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
854 cond_exp with no embedded comparison.
855 (vect_build_slp_tree_1): Likewise.
856
857 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
858
859 * config/i386/sse.md (maskload<mode>): Rename to ...
860 (maskload<mode><sseintvecmodelower>): ... this.
861 (maskstore<mode>): Rename to ...
862 (maskstore<mode><sseintvecmodelower>): ... this.
863 (maskload<mode><avx512fmaskmodelower>): New.
864 (maskstore<mode><avx512fmaskmodelower>): New.
865
866 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
867
868 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
869 (expand_MASK_STORE): Adjust to maskstore optab changes.
870 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
871 Adjust to maskload, maskstore optab changes.
872 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
873 * optabs.def (maskload_optab): Transform into convert optab.
874 (maskstore_optab): Likewise.
875 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
876 can_vec_mask_load_store_p signature change.
877 (predicate_mem_writes): Use boolean mask.
878 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
879 can_vec_mask_load_store_p signature change. Allow invariant masks.
880 (vectorizable_operation): Ignore type precision for boolean vectors.
881
882 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
883
884 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
885 (const_vector_mask_from_tree): New.
886 (const_vector_from_tree): Use const_vector_mask_from_tree
887 for boolean vectors.
888 * optabs-query.h (get_vec_cmp_icode): New.
889 * optabs-tree.c (expand_vec_cmp_expr_p): New.
890 * optabs-tree.h (expand_vec_cmp_expr_p): New.
891 * optabs.c (vector_compare_rtx): Add OPNO arg.
892 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
893 (expand_vec_cmp_expr): New.
894 * optabs.def (vec_cmp_optab): New.
895 (vec_cmpu_optab): New.
896 * optabs.h (expand_vec_cmp_expr): New.
897 * tree-vect-generic.c (expand_vector_comparison): Add vector
898 comparison optabs check.
899 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
900 operations for VF. Add mask type computation.
901 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
902 (vectorizable_comparison): New.
903 (vect_analyze_stmt): Add vectorizable_comparison.
904 (vect_transform_stmt): Likewise.
905 (vect_init_vector): Support boolean vector invariants.
906 (vect_get_vec_def_for_operand): Add VECTYPE arg.
907 (vectorizable_condition): Directly provide vectype for invariants
908 used in comparison.
909 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
910 (enum vect_var_kind): Add vect_mask_var.
911 (enum stmt_vec_info_type): Add comparison_vec_info_type.
912 (vectorizable_comparison): New.
913 (vect_get_vec_def_for_operand): Add VECTYPE arg.
914 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
915 (vect_create_destination_var): Likewise.
916 * tree-vect-patterns.c (check_bool_pattern): Check fails
917 if we can vectorize comparison directly.
918 (search_type_for_mask): New.
919 (vect_recog_bool_pattern): Support cases when bool pattern
920 check fails.
921 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
922 comparison statements.
923 (vect_get_constant_vectors): Support boolean vector
924 constants.
925 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
926 (ix86_expand_int_vec_cmp): New.
927 (ix86_expand_fp_vec_cmp): New.
928 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
929 op_true and op_false.
930 (ix86_int_cmp_code_to_pcmp_immediate): New.
931 (ix86_fp_cmp_code_to_pcmp_immediate): New.
932 (ix86_cmp_code_to_pcmp_immediate): New.
933 (ix86_expand_mask_vec_cmp): New.
934 (ix86_expand_fp_vec_cmp): New.
935 (ix86_expand_int_sse_cmp): New.
936 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
937 (ix86_expand_int_vec_cmp): New.
938 (ix86_get_mask_mode): New.
939 (TARGET_VECTORIZE_GET_MASK_MODE): New.
940 * config/i386/sse.md (avx512fmaskmodelower): New.
941 (vec_cmp<mode><avx512fmaskmodelower>): New.
942 (vec_cmp<mode><sseintvecmodelower>): New.
943 (vec_cmpv2div2di): New.
944 (vec_cmpu<mode><avx512fmaskmodelower>): New.
945 (vec_cmpu<mode><sseintvecmodelower>): New.
946 (vec_cmpuv2div2di): New.
947
948 2015-11-10 Richard Biener <rguenther@suse.de>
949
950 PR tree-optimization/68240
951 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
952 properly.
953 (visit_phi): For PHIs with just a single executable edge
954 take its value directly.
955 (expressions_equal_p): Handle VN_TOP properly.
956
957 2015-11-10 Richard Biener <rguenther@suse.de>
958
959 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
960 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
961 conservatively.
962
963 2015-11-10 Richard Biener <rguenther@suse.de>
964
965 PR tree-optimization/56118
966 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
967 cost favor vectorized version.
968
969 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
970
971 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
972 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
973 (neg_not_op): New code attribute.
974
975 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
976
977 * ifcvt.c (noce_try_inverse_constants): New function.
978 (noce_process_if_block): Call it.
979 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
980 * optabs.def (negcc_optab, notcc_optab): Declare.
981 * optabs.c (emit_conditional_neg_or_complement): New function.
982 * doc/tm.texi (Standard Names): Document negcc, notcc names.
983
984 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
985
986 PR rtl-optimization/68236
987 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
988 if insn_queue doesn't exist.
989 (haifa_sched_finish): Reset insn_queue to NULL.
990
991 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
992
993 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
994 (build_def_use): Initialize terminated_this_insn.
995 (find_best_rename_reg): Pick and check register from the tied chain.
996 (regrename_do_replace): Mark head as renamed.
997 (struct du_head *terminated_this_insn). New static variable.
998 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
999 * regrename.h (struct du_head): Add tied_chain, renamed members.
1000
1001 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1002
1003 PR bootstrap/68256
1004 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
1005 Return false.
1006
1007 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1008
1009 PR target/57845
1010 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
1011 not promote the mode for aggregate types.
1012
1013 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1014
1015 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
1016 * omp-low.c (build_oacc_routine_dims): New.
1017
1018 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1019
1020 * config/rs6000/constraints.md (wF constraint): New constraints
1021 for power9/toc fusion.
1022 (wG constraint): Likewise.
1023
1024 * config/rs6000/predicates.md (u6bit_cint_operand): New
1025 predicate, recognize 0..63.
1026 (upper16_cint_operand): New predicate for power9 and toc fusion.
1027 (fpr_reg_operand): Likewise.
1028 (toc_fusion_or_p9_reg_operand): Likewise.
1029 (toc_fusion_mem_raw): Likewise.
1030 (toc_fusion_mem_wrapped): Likewise.
1031 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
1032 address range.
1033 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
1034 instead.
1035 (fusion_addis_mem_combo_load): Add support for power9 fusion of
1036 floating point loads, floating point stores, and gpr stores.
1037 (fusion_addis_mem_combo_store): Likewise.
1038 (fusion_offsettable_mem_operand): Likewise.
1039
1040 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
1041 declarations.
1042 (emit_fusion_load_store): Likewise.
1043 (fusion_p9_p): Likewise.
1044 (expand_fusion_p9_load): Likewise.
1045 (expand_fusion_p9_store): Likewise.
1046 (emit_fusion_p9_load): Likewise.
1047 (emit_fusion_p9_store): Likewise.
1048 (fusion_wrap_memory_address): Likewise.
1049
1050 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
1051 elements for power9 fusion.
1052 (rs6000_debug_print_mode): Rework debug information to print more
1053 information about fusion.
1054 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
1055 support.
1056 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
1057 offsettable memory address.
1058 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
1059 (emit_fusion_gpr_load): Move most of the code from
1060 emit_fusion_gpr_load into emit_fusion-addis that handles both
1061 power8 and power9 fusion.
1062 (emit_fusion_addis): Likewise.
1063 (emit_fusion_load_store): Likewise.
1064 (fusion_wrap_memory_address): Add support for TOC fusion.
1065 (fusion_split_address): Likewise.
1066 (fusion_p9_p): Add support for power9 fusion.
1067 (expand_fusion_p9_load): Likewise.
1068 (expand_fusion_p9_store): Likewise.
1069 (emit_fusion_p9_load): Likewise.
1070 (emit_fusion_p9_store): Likewise.
1071
1072 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
1073 new instructions in ISA 3.0.
1074 (TARGET_CTZ): Likewise.
1075 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
1076 (TARGET_TOC_FUSION_FP): Likewise.
1077
1078 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
1079 fusion unspecs.
1080 (UNSPEC_FUSION_ADDIS): Likewise.
1081 (QHSI mode iterator): New iterator for power9 fusion.
1082 (GPR_FUSION): Likewise.
1083 (FPR_FUSION): Likewise.
1084 (mod<mode>3): Add support for ISA 3.0
1085 modulus instructions.
1086 (umod<mode>3): Likewise.
1087 (divmod peephole): Likewise.
1088 (udivmod peephole): Likewise.
1089 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
1090 instructions.
1091 (ctz<mode>2_h): Likewise.
1092 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
1093 (ashdi3_extswsli_dot): Likewise.
1094 (ashdi3_extswsli_dot2): Likewise.
1095 (power9 fusion splitter): New power9/toc fusion support.
1096 (toc_fusionload_<mode>): Likewise.
1097 (toc_fusionload_di): Likewise.
1098 (fusion_gpr_load_<mode>): Update predicate function.
1099 (power9 fusion peephole2s): New power9/toc fusion support.
1100 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1101 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
1102 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1103 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1104 (fusion_p9_<mode>_constant): Likewise.
1105
1106 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
1107
1108 * optabs.c (prepare_libcall_arg): New function.
1109 (expand_fixed_convert): Add call to prepare_libcall_arg.
1110
1111 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
1112
1113 * sched-int.h (dump_rgn_dependencies_dot): Declare
1114 * sched-rgn.c (dump_rgn_dependencies_dot): New function
1115 * print-rtl.h (print_insn): Add prototype
1116
1117 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
1118 * common.opt (-fsched-verbose): Set default value to 1.
1119 * invoke.texi (-fsched-verbose): Update the option's description.
1120
1121 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1122
1123 * config/visium/visium.h (PRINT_OPERAND): Delete.
1124 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1125 (PRINT_OPERAND_ADDRESS): Likewise.
1126 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
1127 to...
1128 (visium_print_operand_punct_valid_p): ...this. New function.
1129 (TARGET_PRINT_OPERAND): Define to...
1130 (print_operand): Rename to...
1131 (visium_print_operand): ...this.
1132 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
1133 (visium_output_address): Rename to...
1134 (visium_print_operand_address): ...this.
1135 (print_operand_address): Delete.
1136
1137 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1138
1139 PR middle-end/68259
1140 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1141 Check that the type of the first operand is an aggregate type.
1142
1143 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1144
1145 * omp-low.c: Fix some OpenACC comment typos.
1146 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1147 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1148 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1149
1150 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
1151
1152 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1153
1154 2015-11-09 Jeff Law <law@redhat.com>
1155
1156 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1157 being in gimple/ssa form. Remove redundant check for SSA_NAME.
1158 Fix comment typo.
1159
1160 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1161 Peter Bergner <bergner@vnet.ibm.com>
1162
1163 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1164 ISA 3.0 (power9).
1165 (-mpower9-vector): Likewise.
1166 (-mpower9-dform): Likewise.
1167 (-mpower9-minmax): Likewise.
1168 (-mtoc-fusion): Likewise.
1169 (-mmodulo): Likewise.
1170 (-mfloat128-hardware): Likewise.
1171
1172 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1173 mask for ISA 3.0 (power9).
1174 (POWERPC_MASKS): Add new ISA 3.0 switches.
1175 (power9 cpu): Add power9 cpu.
1176
1177 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
1178 power9.
1179 (ASM_CPU_SPEC): Likewise.
1180 (EXTRA_SPECS): Likewise.
1181
1182 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1183 PROCESSOR_POWER9.
1184
1185 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
1186 power9.
1187 (rs6000_debug_reg_global): Add support for power9 fusion.
1188 (rs6000_setup_reg_addr_masks): Cache mode size.
1189 (rs6000_option_override_internal): Until real power9 tuning is
1190 added, use -mtune=power8 for -mcpu=power9.
1191 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1192 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1193 of Altivec registers.
1194 (rs6000_option_override_internal): Add support for ISA 3.0
1195 switches.
1196 (rs6000_loop_align): Add support for power9 cpu.
1197 (rs6000_file_start): Likewise.
1198 (rs6000_adjust_cost): Likewise.
1199 (rs6000_issue_rate): Likewise.
1200 (insn_must_be_first_in_group): Likewise.
1201 (insn_must_be_last_in_group): Likewise.
1202 (force_new_group): Likewise.
1203 (rs6000_register_move_cost): Likewise.
1204 (rs6000_opt_masks): Likewise.
1205
1206 * config/rs6000/rs6000.md (cpu attribute): Add power9.
1207 * config/rs6000/rs6000-tables.opt: Regenerate.
1208
1209 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1210 _ARCH_PWR9 if power9 support is available.
1211
1212 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1213 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1214
1215 * configure.ac: Determine if the assembler supports the ISA 3.0
1216 instructions.
1217 * config.in (HAVE_AS_POWER9): Likewise.
1218 * configure: Regenerate.
1219
1220 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1221 switches.
1222
1223 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1224
1225 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1226 Remove integer CONST_DOUBLE handling. It should never occur.
1227
1228 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1229
1230 PR target/68129
1231 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1232 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1233 Delete VOIDmode case. Assert that mode is not VOIDmode.
1234 * config/aarch64/predicates.md (const0_operand): Remove const_double
1235 match.
1236
1237 2015-11-09 Martin Liska <mliska@suse.cz>
1238
1239 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1240 body_info release function.
1241 * ipa-prop.c (ipa_release_body_info): New function.
1242 (ipa_analyze_node): Call the function.
1243 (ipa_node_params::~ipa_node_params): Release known_csts.
1244 * ipa-prop.h (ipa_release_body_info): Declare.
1245
1246 2015-11-09 Martin Liska <mliska@suse.cz>
1247
1248 * gcc.c (record_temp_file): Release name string.
1249 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1250 of vec.
1251 * lra-lives.c (free_live_range_list): Utilize
1252 lra_live_range_pool for allocation and deallocation.
1253 (create_live_range): Likewise.
1254 (copy_live_range): Likewise.
1255 (lra_merge_live_ranges): Likewise.
1256 (remove_some_program_points_and_update_live_ranges): Likewise.
1257 (lra_create_live_ranges_1): Release point_freq_vec that can
1258 be not freed from previous iteration of the function.
1259 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1260 vec.
1261 * tree-sra.c (sra_deinitialize): Release all vectors in
1262 base_access_vec.
1263 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1264 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1265 Release edge_info for a removed edge.
1266 (thread_through_all_blocks): Free region vector.
1267 * tree-ssa.h (free_dom_edge_info): Declare function extern.
1268
1269 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
1270
1271 * optabs.c (expand_vec_cond_expr): Always get sign from type.
1272 * tree.c (wide_int_to_tree): Support negative values for boolean.
1273 (build_nonstandard_boolean_type): Use signed type for booleans.
1274
1275 2015-11-09 Richard Biener <rguenther@suse.de>
1276
1277 PR tree-optimization/68248
1278 * tree-vect-generic.c (expand_vector_operations_1): Handle
1279 scalar rhs2.
1280
1281 2015-11-09 Richard Biener <rguenther@suse.de>
1282
1283 PR tree-optimization/56118
1284 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1285 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1286 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1287 function.
1288 (vect_slp_analyze_data_ref_dependences): Instead of computing
1289 all dependences of the region DRs just analyze the code motions
1290 SLP vectorization will perform. Remove SLP instances that
1291 cannot have their store/load motions applied.
1292 (vect_analyze_data_refs): Allow DRs without a vectype
1293 in BB vectorization.
1294
1295 2015-11-09 Julian Brown <julian@codesourcery.com>
1296
1297 * final.c (output_asm_insn): Pass VOIDmode to output_address.
1298 (output_address): Add MODE argument. Pass to print_operand_address
1299 hook.
1300 * targhooks.c (default_print_operand_address): Add MODE argument.
1301 * targhooks.h (default_print_operand_address): Update prototype.
1302 * output.h (output_address): Update prototype.
1303 * target.def (print_operand_address): Add MODE argument.
1304 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1305 output_address.
1306 (print_operand): Pass access mode to output_address.
1307 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1308 argument.
1309 (mcore_print_operand): Update calls to mcore_print_operand_address.
1310 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1311 output_address.
1312 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1313 output_address.
1314 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1315 global.
1316 (tilegx_print_operand): Don't set above global. Update calls to
1317 output_address.
1318 (tilegx_print_operand_address): Add MODE argument. Use instead of
1319 output_memory_reference_mode global.
1320 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1321 (frv_print_operand): Pass mode to frv_print_operand_address calls.
1322 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1323 output_address.
1324 * config/cris/cris.c (cris_print_operand_address): Add MODE
1325 argument.
1326 (cris_print_operand): Pass mode to output_address calls.
1327 * config/spu/spu.c (print_operand): Pass mode to output_address
1328 calls.
1329 * config/aarch64/aarch64.h (aarch64_print_operand)
1330 (aarch64_print_operand_address): Remove prototypes.
1331 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1332 global.
1333 (aarch64_print_operand): Make static. Update calls to
1334 output_address.
1335 (aarch64_print_operand_address): Add MODE argument. Use instead of
1336 aarch64_memory_reference_mode global.
1337 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1338 hooks.
1339 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1340 Delete macro definitions.
1341 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1342 calls.
1343 * config/xtensa/xtensa.c (print_operand): Pass mode in
1344 output_address calls.
1345 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1346 argument.
1347 (h83000_print_operand): Update calls to h8300_print_operand_address
1348 and output_address.
1349 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1350 argument.
1351 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1352 global.
1353 (tilepro_print_operand): Pass mode to output_address.
1354 (tilepro_print_operand_address): Add MODE argument. Use instead of
1355 output_memory_reference_mode.
1356 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1357 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1358 to output_address calls.
1359 (nvptx_print_operand_address): Add MODE argument.
1360 * config/alpha/alpha.c (print_operand): Pass mode argument in
1361 output_address calls.
1362 * config/m68k/m68k.c (print_operand): Pass mode argument in
1363 output_address call.
1364 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1365 (avr_print_operand): Update calls to avr_print_operand_address.
1366 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1367 argument. Update calls to output_address.
1368 (sparc_print_operand): Pass mode to output_address.
1369 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1370 argument.
1371 (iq2000_print_operand): Pass mode in output_address calls.
1372 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1373 MODE argument.
1374 (xstormy16_print_operand): Pass mode to
1375 xstormy16_print_operand_address calls.
1376 * config/mips/mips.c (mips_print_operand): Update calls to
1377 output_address.
1378 (mips_print_operand_address): Add MODE argument.
1379 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1380 to output_address.
1381 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1382 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1383 output_address.
1384 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1385 (rx_print_operand): Update calls to output_address,
1386 rx_print_operand_address.
1387 * config/nds32/nds32.c (nds32_print_operand): Update calls to
1388 output_address.
1389 (nds32_print_operand_address): Add MODE argument.
1390 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1391 output_address calls.
1392 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1393 output_address call.
1394 (c6x_print_address_operand): Update calls to output_address.
1395 (c6x_print_operand_address): Pass mode to above.
1396 * config/v850/v850.c (v850_print_operand_address): Add MODE
1397 argument.
1398 (v850_print_operand): Pass mode to v850_print_operand_address,
1399 output_address.
1400 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1401 argument.
1402 (mmix_print_operand): Pass mode in output_address calls.
1403 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1404 (sh_print_operand): Pass mem mode to output_address,
1405 sh_print_operand_address.
1406 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1407 argument.
1408 (cr16_print_operand): Pass mode to output_address,
1409 cr16_print_operand_address.
1410 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1411 output_address.
1412 * config/microblaze/microblaze.c (print_operand): Pass mode to
1413 output_address.
1414 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1415 output_address.
1416 (nios2_print_operand_address): Add MODE argument. Update call to
1417 nios2_print_operand_address.
1418 * config/s390/s390.c (print_operand): Pass mode to output_address.
1419 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1420 argument.
1421 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1422 output_address.
1423 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1424 Use instead of output_memory_reference_mode.
1425 (output_memory_reference_mode): Delete global.
1426 (arm_print_operand): Pass mem mode to output_address.
1427 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1428 argument.
1429 (m32r_print_operand): Pass mode to output_address.
1430 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1431 argument.
1432 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1433 * config/i386/i386.c (ix86_print_operand): Pass mode to
1434 output_address calls.
1435 (ix86_print_operand_address): Add MODE argument.
1436
1437 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1438
1439 PR middle-end/68251
1440 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1441 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1442 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1443 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1444
1445 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1446
1447 PR rtl-optimization/67749
1448 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1449 case before emitting the two blocks. Instead modify the register
1450 in the corresponding final insn of the basic block.
1451
1452 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1453
1454 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1455 assembler syntax.
1456 Support Solaris ld.
1457 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1458
1459 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1460 HAVE_INITFINI_ARRAY_SUPPORT.
1461 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1462 value.
1463
1464 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1465 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1466 Don't check HAVE_AS_SPARC_NOBITS.
1467 Heed SECTION_NOTYPE.
1468
1469 * configure: Regenerate.
1470 * config.in: Regenerate.
1471
1472 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1473
1474 PR middle-end/68253
1475 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1476
1477 2015-11-09 Richard Henderson <rth@redhat.com>
1478
1479 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1480 __SEG_GS, __SEG_TLS.
1481 (ix86_register_pragmas): Register address spaces __seg_fs,
1482 __seg_gs, __seg_tls.
1483 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1484 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1485 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1486 * config/i386/i386.c (ix86_decompose_address): Likewise.
1487 (ix86_legitimate_address_p): Likewise.
1488 (memory_address_length): Likewise. Check mem address space too.
1489 (ix86_print_operand): Use ix86_print_operand_address_as.
1490 (ix86_print_operand_address_as): Rename from
1491 ix86_print_operand_address, add new addr_space_t parameter.
1492 Validate that either the parameter or the ix86_address segment
1493 is default address space. Handle ADDR_SPACE_SEG_TLS.
1494 (ix86_print_operand_address): New.
1495 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1496 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1497 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1498 (ix86_addr_space_zero_address_valid): New.
1499 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1500 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1501 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1502 * config/i386/predicates.md (address_no_seg_operand): Likewise.
1503 (vsib_address_operand): Likewise.
1504 (address_mpx_no_base_operand): Likewise.
1505 (address_mpx_no_index_operand): Likewise.
1506 * doc/extend.texi (x86 Named Address Spaces): New section.
1507
1508 * config/i386/i386.c (ix86_check_no_addr_space): New.
1509 (decide_alg): Add have_as parameter.
1510 (alg_usable_p): Likewise; disable rep algorithms if set.
1511 (ix86_expand_set_or_movmem): Notice if either MEM has a
1512 non-default address space.
1513 (ix86_expand_strlen): Likewise.
1514 * config/i386/i386.md (strmov, strset): Likewise.
1515 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1516 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1517 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1518 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1519 *cmpstrnqi_1, *strlenqi_1): Likewise.
1520
1521 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1522 (*movabs<mode>_2): Likewise.
1523
1524 * dwarf2out.c (modified_type_die): Pass the address space number
1525 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1526 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1527 * targhooks.c (default_addr_space_debug): New.
1528 * targhooks.h (default_addr_space_debug): Declare.
1529 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1530 * doc/tm.texi: Rebuild.
1531
1532 * gimple.c (check_loadstore): Return false when 0 is a valid address.
1533 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1534 null when 0 is valid in the source address space.
1535 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1536 * targhooks.c (default_addr_space_zero_address_valid): New.
1537 * targhooks.h (default_addr_space_zero_address_valid): Declare.
1538 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1539 * doc/tm.texi: Rebuild.
1540
1541 * cselib.c (add_mem_for_addr): Compare address spaces when
1542 matching memories.
1543 (cselib_lookup_mem): Likewise.
1544 * fold-const.c (operand_equal_p): Check address spaces of
1545 pointer types before checking integer constants.
1546
1547 PR tree-opt/66768
1548 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1549 the correct type for the base.
1550
1551 2015-11-09 Jeff Law <law@redhat.com>
1552
1553 * tree-into-ssa.c (names_to_release): No longer static.
1554 * tree-into-ssa.h (names_to_release): Declare.
1555 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1556 (release_free_names_and_compact_live_names): New function extracted
1557 from pass_release_ssa_names::execute.
1558 (pass_release_ssa_names::execute): Use it.
1559
1560 2015-11-09 Alan Modra <amodra@gmail.com>
1561
1562 * gensupport.c (add_mnemonic_string): Make len param a size_t.
1563 (gen_mnemonic_setattr): Make "size" var a size_t. Use
1564 obstack_blank_fast to shrink obstack. Cast obstack_next_free
1565 return value.
1566
1567 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1568
1569 PR rtl-optimization/68182
1570 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1571 branch with only one successor just like unconditional branches.
1572
1573 2015-11-08 Jeff Law <law@redhat.com>
1574
1575 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1576 non-FSM path has no edges marked with EDGE_DFS_BACK.
1577 (ssa_redirect_edges): No longer call mark_loop_for_removal.
1578 (thread_single_edge, def_split_header_continue_p): Remove.
1579 (bb_ends_with_multiway_branch): Likewise.
1580 (thread_through_loop_header): Remove cases of threading from
1581 latch through the header. Simplify knowing we won't thread
1582 the latch.
1583 (thread_through_all_blocks): Simplify knowing that only the FSM
1584 threader needs to handle backedges.
1585
1586 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1587
1588 * doc/extend.texi (type attributes): Document scalar_storage_order.
1589 (Structure-Packing Pragmas): Rename into...
1590 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
1591 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1592 (Warnings): Document -Wno-scalar-storage-order.
1593 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1594 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1595 extract_bit_field and store_bit_field.
1596 (initialize_argument_information): Adjust call to store_expr.
1597 (load_register_parameters): Adjust call to extract_bit_field.
1598 * expmed.c (check_reverse_storage_order_support): New function.
1599 (check_reverse_float_storage_order_support): Likewise.
1600 (flip_storage_order): Likewise.
1601 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
1602 of the value if it is true. Pass REVERSE to recursive call after
1603 adjusting the target offset.
1604 Do not use extraction or movstrict instruction if REVERSE is true.
1605 Pass REVERSE to store_fixed_bit_field.
1606 (store_bit_field): Add REVERSE parameter and pass to it to above.
1607 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1608 store_split_bit_field and store_fixed_bit_field_1.
1609 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1610 order of the value if it is true and adjust the target offset.
1611 (store_split_bit_field): Add REVERSE parameter and pass it to
1612 store_fixed_bit_field. Adjust the target offset if it is true.
1613 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
1614 of the value if it is true. Pass REVERSE to recursive call after
1615 adjusting the target offset.
1616 Do not use extraction or subreg instruction if REVERSE is true.
1617 Pass REVERSE to extract_fixed_bit_field.
1618 (extract_bit_field): Add REVERSE parameter and pass to it to above.
1619 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1620 extract_split_bit_field and extract_fixed_bit_field_1.
1621 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1622 order of the value if it is true and adjust the target offset.
1623 (extract_split_bit_field): Add REVERSE parameter and pass it to
1624 extract_fixed_bit_field. Adjust the target offset if it is true.
1625 * expmed.h (flip_storage_order): Declare.
1626 (store_bit_field): Adjust prototype.
1627 (extract_bit_field): Likewise.
1628 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1629 (emit_group_store): Adjust call to store_bit_field.
1630 (copy_blkmode_from_reg): Likewise.
1631 (copy_blkmode_to_reg): Likewise.
1632 (write_complex_part): Likewise.
1633 (read_complex_part): Likewise.
1634 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
1635 that it isn't true if the target is a register.
1636 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1637 and flip the storage order of the value.
1638 <BIT_IOR_EXPR>: Flip the storage order of the value.
1639 (get_bit_range): Adjust call to get_inner_reference.
1640 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1641 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
1642 with reverse storage order.
1643 (store_expr_with_bounds): Add REVERSE parameter and pass it to
1644 recursive calls and call to store_bit_field. Force the value into a
1645 register if it is true and then flip the storage order of the value.
1646 (store_expr): Add REVERSE parameter and pass it to above.
1647 (categorize_ctor_elements_1): Adjust call to
1648 initializer_constant_valid_p.
1649 (store_constructor_field): Add REVERSE parameter and pass it to
1650 recursive calls and call to store_field.
1651 (store_constructor): Add REVERSE parameter and pass it to calls to
1652 store_constructor_field and store_expr. Set it to true for an
1653 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1654 (store_field): Add REVERSE parameter and pass it to recursive calls
1655 and calls to store_expr and store_bit_field. Temporarily flip the
1656 storage order of the value with record type and integral mode and
1657 adjust the shift if it is true.
1658 (get_inner_reference): Add PREVERSEP parameter and set it to true
1659 upon encoutering a reference with reverse storage order.
1660 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1661 (expand_constructor): Adjust call to store_constructor.
1662 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1663 of the union type to store_expr in the MEM case and assert that it
1664 isn't set in the REG case. Adjust call to store_field.
1665 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1666 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1667 get_inner_reference and extract_bit_field. Temporarily flip the
1668 storage order of the value with record type and integral mode and
1669 adjust the shift if it is true. Flip the storage order of the value
1670 at the end if it is true.
1671 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1672 get_inner_reference. Do not fetch an inner reference if it is true.
1673 * expr.h (store_expr_with_bounds): Ajust prototype.
1674 (store_expr): Likewise.
1675 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1676 REF_REVERSE_STORAGE_ORDER on the reference according to it.
1677 (optimize_bit_field_compare): Deal with reverse storage order.
1678 Adjust calls to get_inner_reference and make_bit_field_ref.
1679 (decode_field_reference): Add PREVERSEP parameter and adjust call to
1680 get_inner_reference.
1681 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
1682 to decode_field_reference and make_bit_field_ref.
1683 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1684 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1685 (fold_comparison): Adjust call to get_inner_reference.
1686 (split_address_to_core_and_offset): Adjust call to
1687 get_inner_reference.
1688 * gimple-expr.c (useless_type_conversion_p): Return false for array
1689 types with different TYPE_REVERSE_STORAGE_ORDER flag.
1690 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1691 REF_REVERSE_STORAGE_ORDER flag.
1692 * lto-streamer-out.c (hash_tree): Deal with
1693 TYPE_REVERSE_STORAGE_ORDER.
1694 * output.h (assemble_real): Adjust prototype.
1695 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1696 * stor-layout.c (finish_record_layout): Propagate the
1697 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1698 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1699 (TYPE_SATURATING): Adjust.
1700 (REF_REVERSE_STORAGE_ORDER): Document.
1701 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1702 set it to true upon encoutering a reference with reverse storage
1703 order.
1704 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1705 * tree-inline.c (remap_gimple_op_r): Propagate the
1706 REF_REVERSE_STORAGE_ORDER flag.
1707 (copy_tree_body_r): Likewise.
1708 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1709 store_expr.
1710 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1711 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1712 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1713 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1714 REF_REVERSE_STORAGE_ORDER flag.
1715 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1716 (gimple_canonical_types_compatible_p): Likewise.
1717 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1718 (TYPE_SATURATING): Adjust.
1719 (REF_REVERSE_STORAGE_ORDER): New flag.
1720 (reverse_storage_order_for_component_p): New inline predicate.
1721 (storage_order_barrier_p): Likewise.
1722 (get_inner_reference): Adjust prototype.
1723 * varasm.c: Include expmed.h.
1724 (assemble_variable_contents): Adjust call to output_constant.
1725 (assemble_real): Add REVERSE parameter. Flip the storage
1726 order of the value if REVERSE is true.
1727 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1728 (assemble_constant_contents): Adjust call to output_constant.
1729 (output_constant_pool_2): Adjust call to assemble_real.
1730 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
1731 TYPE_REVERSE_STORAGE_ORDER.
1732 (initializer_constant_valid_p): Add REVERSE parameter.
1733 (output_constant): Add REVERSE parameter.
1734 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
1735 <REAL_TYPE>: Adjust call to assemble_real.
1736 <COMPLEX_TYPE>: Pass it to recursive calls.
1737 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
1738 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
1739 (struct oc_local_state): Add REVERSE field.
1740 (output_constructor_array_range): Adjust calls to output_constant.
1741 (output_constructor_regular_field): Likewise.
1742 (output_constructor_bitfield): Adjust call to output_constructor.
1743 Flip the storage order of the value if REVERSE is true.
1744 (output_constructor): Add REVERSE parameter. Set it to true for an
1745 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
1746 output_constructor_bitfield.
1747 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
1748 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
1749 * builtins.c (get_object_alignment_2): Likewise.
1750 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
1751 and get_ref_base_and_extent.
1752 * dbxout.c (dbxout_expand_expr): Likewise.
1753 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1754 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
1755 (loc_list_from_tree): Likewise.
1756 (fortran_common): Likewise.
1757 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
1758 get_ref_base_and_extent.
1759 (get_base_constructor): Likewise.
1760 (fold_const_aggregate_ref_1): Likewise.
1761 * gimple-laddress.c (pass_laddress::execute): Adjust call to
1762 get_inner_reference.
1763 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
1764 get_inner_reference and bail out on reverse storage order.
1765 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
1766 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
1767 build_ref_for_offset.
1768 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
1769 get_ref_base_and_extent.
1770 (ipa_polymorphic_call_context): Likewise.
1771 (extr_type_from_vtbl_ptr_store): Likewise.
1772 (check_stmt_for_type_change): Likewise.
1773 (get_dynamic_type): Likewise.
1774 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
1775 get_ref_base_and_extent.
1776 (compute_complex_assign_jump_func): Likewise.
1777 (get_ancestor_addr_info): Likewise.
1778 (compute_known_type_jump_func): Likewise.
1779 (determine_known_aggregate_parts): Likewise.
1780 (ipa_get_adjustment_candidate): Likewise.
1781 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
1782 MEM_REF.
1783 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
1784 (build_ref_for_offset): Adjust prototype.
1785 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
1786 get_inner_reference.
1787 * tree-affine.c (tree_to_aff_combination): Adjust call to
1788 get_inner_reference.
1789 (get_inner_reference_aff): Likewise.
1790 * tree-data-ref.c (split_constant_offset_1): Likewise.
1791 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
1792 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
1793 get_inner_reference.
1794 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
1795 (dump_access): Print new fields.
1796 (create_access): Adjust call to get_ref_base_and_extent and set the
1797 REVERSE flag according to the result.
1798 (completely_scalarize_record): Set the REVERSE flag.
1799 (scalarize_elem): Add REVERSE parameter.
1800 (build_access_from_expr_1): Preserve storage order barriers.
1801 (build_accesses_from_assign): Likewise.
1802 (build_ref_for_offset): Add REVERSE parameter and set the
1803 REF_REVERSE_STORAGE_ORDER flag accordingly.
1804 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
1805 the REF_REVERSE_STORAGE_ORDER flag if there are components.
1806 (analyze_access_subtree): Likewise.
1807 (create_artificial_child_access): Set the REVERSE flag.
1808 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
1809 (turn_representatives_into_adjustments): Propagate REVERSE flag.
1810 (ipa_sra_check_caller): Adjust call to get_inner_reference.
1811 * tree-ssa-alias.c (ao_ref_base): Adjust call to
1812 get_ref_base_and_extent.
1813 (aliasing_component_refs_p): Likewise.
1814 (stmt_kills_ref_p_1): Likewise.
1815 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1816 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
1817 Return true if reverse storage order.
1818 <BIT_FIELD_REF>: Likewise.
1819 <COMPONENT_REF>: Likewise.
1820 <ARRAY_REF>: Likewise.
1821 <ARRAY_RANGE_REF>: Likewise.
1822 (split_address_cost): Likewise. Bail out if reverse storage order.
1823 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
1824 get_inner_reference. Bail out if reverse storage order.
1825 (bswap_replace): Adjust call to get_inner_reference.
1826 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
1827 the REF_REVERSE_STORAGE_ORDER flag.
1828 <BIT_FIELD_REF>: Likewise.
1829 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
1830 barriers.
1831 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
1832 to the REF_REVERSE_STORAGE_ORDER flag.
1833 <BIT_FIELD_REF>: Likewise.
1834 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
1835 (contains_storage_order_barrier_p): New predicate.
1836 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
1837 Punt on storage order barriers if necessary.
1838 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
1839 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
1840 call to get_ref_base_and_extent.
1841 (do_structure_copy): Likewise.
1842 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
1843 get_inner_reference.
1844 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
1845 order.
1846 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
1847 * ubsan.c (instrument_bool_enum_load): Likewise.
1848 (instrument_object_size): Likewise.
1849 * var-tracking.c (track_expr_p): Adjust call to
1850 get_ref_base_and_extent
1851 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
1852 get_inner_reference.
1853 * config/s390/s390.c (s390_expand_atomic): Adjust call to
1854 store_bit_field.
1855 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
1856 extract_bit_field.
1857 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
1858
1859 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
1860
1861 * config/sparc/sparc.opt (mfix-at697f): Add final period.
1862
1863 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1864
1865 PR rtl-optimization/67864
1866 * common/config/i386/i386-common.c (ix86_option_optimization_table)
1867 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
1868 at -Os and up.
1869
1870 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1871
1872 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
1873 internal functions.
1874
1875 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1876
1877 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
1878 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
1879
1880 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1881
1882 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
1883 * internal-fn.c: Don't undef it here.
1884 * tree-core.h: Likewise.
1885
1886 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1887
1888 * builtins.c (fold_builtin_nan): Delete.
1889 (fold_builtin_memcmp): Remove case where both arguments are constant.
1890 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1891 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
1892 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
1893 * fold-const-call.c: Include fold-const.h.
1894 (host_size_t_cst_p): New function.
1895 (build_cmp_result, fold_const_builtin_nan): Likewise.
1896 (fold_const_call_1): New function, split out from...
1897 (fold_const_call): ...here (for all three interfaces). Handle
1898 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
1899
1900 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1901
1902 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
1903 (fold_builtin_1): Don't call them.
1904 * fold-const-call.c: Include tm.h.
1905 (fold_const_call_ss): New variant for integer-to-integer folds.
1906 (fold_const_call): Call it.
1907
1908 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1909
1910 * builtins.c (fold_builtin_classify): Move constant cases to...
1911 * fold-const-call.c (fold_const_call_ss): ...here.
1912
1913 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1914
1915 * builtins.h (c_getstr): Move to...
1916 * fold-const.h (c_getstr): ...here.
1917 * builtins.c (c_getstr): Move to...
1918 * fold-const.c (c_getstr): ...here.
1919
1920 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1921
1922 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
1923 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
1924
1925 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1926
1927 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
1928 the dominance info; free it if we can't.
1929 (pass_call_cdce::execute): Don't free the dominance info here.
1930
1931 2015-11-06 Jeff Law <law@redhat.com>
1932
1933 * tree-ssa-threadedge.c (dummy_simplify): Remove.
1934 (thread_around_empty_blocks): Remove backedge_seen_p argument.
1935 If we thread to a backedge, then return false. Update recursive
1936 call to eliminate backedge_seen_p argument.
1937 (thread_through_normal_block): Remove backedge_seen_p argument.
1938 Remove backedge_seen_p argument from calls to
1939 thread_around_empty_blocks. Remove checks on backedge_seen_p.
1940 If we thread to a backedge, then return 0.
1941 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
1942 pass it to thread_through_normal_block or thread_through_empty_blocks.
1943 For joiner handling, if we see a backedge, do not try normal
1944 threading.
1945
1946 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1947
1948 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
1949 * graphite-poly.c (new_scop): Initialize original_schedule.
1950 (free_scop): Free original_schedule.
1951 * graphite-poly.h (struct scop): Add field original_schedule.
1952 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
1953 (build_poly_scop): Call build_scop_original_schedule.
1954
1955 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1956
1957 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1958 (build_pbb_minimal_scattering_polyhedrons): New.
1959 (build_scop_scattering): Remove.
1960 (build_scop_minimal_scattering): New.
1961 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
1962 (build_poly_scop): Call build_scop_minimal_scattering.
1963
1964 2015-11-06 Jeff Law <law@redhat.com>
1965
1966 * cfg-flags.def (IGNORE): New edge flag.
1967 * tree-vrp.c (identify_jump_threads): Mark and clear edges
1968 scheduled for removal with EDGE_IGNORE around call into
1969 jump threader. Do no thread across edges with EDGE_IGNORE,
1970 but do allow threading across those with EDGE_DFS_BACK.
1971
1972 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
1973
1974 * doc/md.texi (multi-alternative constraints): Don't document
1975 alternatives inherently tied to reload for the user documentation.
1976
1977 2015-11-06 Michael Collison <michael.collison@linaro.org
1978 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1979
1980 Revert:
1981 2015-08-01 Michael Collison <michael.collison@linaro.org
1982 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1983
1984 * config/arm/arm.md (*arm_smin_cmp): New pattern.
1985 (*arm_umin_cmp): Likewise.
1986
1987 2015-11-06 Jakub Jelinek <jakub@redhat.com>
1988
1989 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
1990 wording.
1991 * omp-low.c (check_omp_nesting_restrictions): Update for the
1992 various new OpenMP 4.5 nesting restrictions, clarified
1993 nesting glossary, closely nested region relationship clarified
1994 to mean explicit or implicit parallel regions (target/teams),
1995 use %</%> or %qs where appropriate.
1996
1997 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1998 Sebastian Pop <s.pop@samsung.com>
1999
2000 * graphite-scop-detection.c (loop_is_valid_scop): Call
2001 optimize_loop_nest_for_speed_p.
2002
2003 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2004 Sebastian Pop <s.pop@samsung.com>
2005
2006 * graphite-optimize-isl.c (optimize_isl): Call
2007 isl_options_set_schedule_maximize_band_depth.
2008
2009 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2010 Sebastian Pop <s.pop@samsung.com>
2011
2012 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
2013 and exit edges should not be a part of irreducible loop.
2014 (scop_detection::can_represent_loop_1): Loops should not be
2015 irreducible.
2016 (scop_detection::harmful_stmt_in_region): All the basic block
2017 should belong to reducible loops.
2018
2019 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
2020
2021 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2022 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
2023 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
2024 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
2025 (aarch64_tbx4v8qi): Rename to...
2026 aarch64_tbx4<mode>): ... this.
2027 (aarch64_qtbl3<mode>): New pattern.
2028 (aarch64_qtbx3<mode>): New pattern.
2029 (aarch64_qtbl4<mode>): New pattern.
2030 (aarch64_qtbx4<mode>): New pattern.
2031 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
2032 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
2033 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
2034 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
2035 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
2036 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
2037 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
2038 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
2039 functions.
2040
2041 2015-11-06 Mike Stump <mikestump@comcast.net>
2042
2043 PR debug/66728
2044 * dwarf2out.c (get_full_len): Return a value based upon the actual
2045 precision needed for the value.
2046 (add_const_value_attribute): Use a maximal wide-int for
2047 CONST_WIDE_INTs, not VOIDmode.
2048 (output_die): Don't ever output NULL with printf.
2049
2050 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
2051 BLKmode nor VOIDmode values.
2052
2053 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2054
2055 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
2056 and "range2".
2057 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
2058 * diagnostic-core.h (warning_at_rich_loc): New declaration.
2059 (error_at_rich_loc): New declaration.
2060 (permerror_at_rich_loc): New declaration.
2061 (inform_at_rich_loc): New declaration.
2062 * diagnostic-show-locus.c (adjust_line): Delete.
2063 (struct point_state): New struct.
2064 (class colorizer): New class.
2065 (class layout_point): New class.
2066 (class layout_range): New class.
2067 (struct line_bounds): New.
2068 (class layout): New class.
2069 (colorizer::colorizer): New ctor.
2070 (colorizer::~colorizer): New dtor.
2071 (layout::layout): New ctor.
2072 (layout::print_source_line): New method.
2073 (layout::print_annotation_line): New method.
2074 (layout::get_state_at_point): New method.
2075 (layout::get_x_bound_for_row): New method.
2076 (diagnostic_show_locus): Reimplement in terms of class layout.
2077 (diagnostic_print_caret_line): Delete.
2078 * diagnostic.c (diagnostic_initialize): Replace
2079 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
2080 (diagnostic_set_info_translated): Convert param from location_t
2081 to rich_location *. Eliminate calls to set_location on the
2082 message in favor of storing the rich_location ptr there.
2083 (diagnostic_set_info): Convert param from location_t to
2084 rich_location *.
2085 (diagnostic_build_prefix): Break out array into...
2086 (diagnostic_kind_color): New variable.
2087 (diagnostic_get_color_for_kind): New function.
2088 (diagnostic_report_diagnostic): Colorize the option_text
2089 using the color for the severity.
2090 (diagnostic_append_note): Update for change in signature of
2091 diagnostic_set_info.
2092 (diagnostic_append_note_at_rich_loc): New function.
2093 (emit_diagnostic): Update for change in signature of
2094 diagnostic_set_info.
2095 (inform): Likewise.
2096 (inform_at_rich_loc): New function.
2097 (inform_n): Update for change in signature of diagnostic_set_info.
2098 (warning): Likewise.
2099 (warning_at): Likewise.
2100 (warning_at_rich_loc): New function.
2101 (warning_n): Update for change in signature of diagnostic_set_info.
2102 (pedwarn): Likewise.
2103 (permerror): Likewise.
2104 (permerror_at_rich_loc): New function.
2105 (error): Update for change in signature of diagnostic_set_info.
2106 (error_n): Likewise.
2107 (error_at): Likewise.
2108 (error_at_rich_loc): New function.
2109 (sorry): Update for change in signature of diagnostic_set_info.
2110 (fatal_error): Likewise.
2111 (internal_error): Likewise.
2112 (internal_error_no_backtrace): Likewise.
2113 (source_range::debug): New function.
2114 * diagnostic.h (struct diagnostic_info): Eliminate field
2115 "override_column". Add field "richloc".
2116 (struct diagnostic_context): Add field "colorize_source_p".
2117 (diagnostic_override_column): Delete.
2118 (diagnostic_set_info): Convert param from location_t to
2119 rich_location *.
2120 (diagnostic_set_info_translated): Likewise.
2121 (diagnostic_append_note_at_rich_loc): New function.
2122 (diagnostic_num_locations): New function.
2123 (diagnostic_expand_location): Get the location from the
2124 rich_location.
2125 (diagnostic_print_caret_line): Delete.
2126 (diagnostic_get_color_for_kind): New declaration.
2127 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
2128 (error_cb): Update for change in signature of "error" callback.
2129 (fatal_at): Likewise.
2130 (warning_at): Likewise.
2131 * input.c (linemap_client_expand_location_to_spelling_point): New.
2132 * pretty-print.c (text_info::set_range): New method.
2133 (text_info::get_location): New method.
2134 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2135 (struct text_info): Eliminate "locations" array in favor of
2136 "m_richloc", a rich_location *.
2137 (textinfo::set_location): Add a "caret_p" param, and reimplement
2138 in terms of a call to set_range.
2139 (textinfo::get_location): Eliminate inline implementation in favor of
2140 an out-of-line reimplementation.
2141 (textinfo::set_range): New method.
2142 * rtl-error.c (diagnostic_for_asm): Update for change in signature
2143 of diagnostic_set_info.
2144 * tree-diagnostic.c (default_tree_printer): Update for new
2145 "caret_p" param for textinfo::set_location.
2146 * tree-pretty-print.c (percent_K_format): Likewise.
2147
2148 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2149
2150 Properly apply.
2151 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2152 * config/aarch64/aarch64.c
2153 (aarch64_can_use_per_function_literal_pools_p): New.
2154 (aarch64_use_blocks_for_constant_p): Adjust declaration
2155 and use aarch64_can_use_function_literal_pools_p.
2156 (aarch64_select_rtx_section): Update.
2157
2158 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2159
2160 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2161 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2162 (arm_output_multireg_pop): Likewise.
2163 (output_move_double): Likewise.
2164 (output_move_quad): Likewise.
2165 (output_return_instruction): Likewise.
2166 (arm_print_operand): Remove support for %( and %. print modifiers.
2167 (arm_output_shift): Make unified asm.
2168 (arm_declare_function_name): Likewise.
2169 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2170 (ASM_APP_OFF): Adjust.
2171 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2172 (ASM_OUTPUT_REG_POP): Likewise.
2173 * config/arm/arm.md: Adjust uses of %., %(, %)
2174 * config/arm/sync.md: Likewise.
2175 * config/arm/thumb2.md: Likewise.
2176 * config/arm/ldmstm.md: Regenerate.
2177 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2178 * doc/invoke.texi (masm-unified-syntax): Update documentation.
2179
2180 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2181
2182 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2183
2184 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2185
2186 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2187 add OEP_MATCH_SIDE_EFFECTS.
2188 * fold-const.c (operand_equal_p): Update documentation; handle
2189 OEP_MATCH_SIDE_EFFECTS.
2190 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2191 OEP_MATCH_SIDE_EFFECTS.
2192
2193 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
2194 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2195
2196 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2197 * config/aarch64/aarch64-protos.h: Declare.
2198 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2199 frsqrts.
2200 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2201 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2202 code when applicable.
2203 * config/aarch64/aarch64.md: Added enum entries.
2204 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2205 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
2206 macros for assembly checks.
2207 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
2208 frsqrts and frsqrte are not emitted.
2209 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
2210 frsqrts and frsqrte are emitted.
2211 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
2212
2213 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2214
2215 PR ipa/68057
2216 PR ipa/68220
2217 * ipa-polymorphic-call.c
2218 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2219 issue when offset is out of range.
2220 (contains_type_p): Fix out of range check, clear dynamic flag.
2221
2222 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
2223
2224 * config.gcc (e6500): Fix cpu_is_64bit typo.
2225
2226 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
2227
2228 * tree-sra.c (completely_scalarize): Properly handle negative array
2229 indices using offset_int.
2230
2231 2015-11-06 Richard Biener <rguenther@suse.de>
2232
2233 * alloc-pool.h (object_allocator::allocate): Default-initialize
2234 object.
2235
2236 2015-11-06 Richard Biener <rguenther@suse.de>
2237
2238 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2239 * lra.c (init_reg_info): Truncate copy_vec instead of
2240 re-allocating a new one and leaking the old.
2241 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2242 bb_infos vec.
2243 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2244 * postreload-gcse.c (free_mem): Free modify_mem_list and
2245 canon_modify_mem_list.
2246
2247 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
2248
2249 PR tree-optimization/68145
2250 * tree-vect-stmts.c (vectorizable_operation): Fix
2251 determination for booleans.
2252
2253 2015-11-06 Tom de Vries <tom@codesourcery.com>
2254
2255 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2256 cond_jump, instead of split after last nondebug insn before cond_jump.
2257 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2258 returning.
2259
2260 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2261
2262 PR target/68088
2263 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2264 subregs from accumulator and make sure it's a register.
2265
2266 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
2267
2268 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2269 low part to scalar.
2270 (reduc_uplus_<mode>): Remove.
2271 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2272 loongson_extract_lo_<mode>.
2273 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2274 reduc_smax_<mode>, reduc_smax_<mode>, use vec
2275 loongson_extract_lo_<mode>.
2276 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2277
2278 2015-11-06 Richard Biener <rguenther@suse.de>
2279
2280 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2281 members.
2282 (vect_stmt_in_region_p): Declare.
2283 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2284 (destroy_bb_vec_info): Likewise.
2285 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2286 (vect_get_and_check_slp_defs): Likewise.
2287 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2288 (vect_slp_bb): Likewise.
2289 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2290 in terms of vect_stmt_in_region_p.
2291 (vect_pattern_recog): Iterate over the BB region.
2292 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2293 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2294 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2295 * config/i386/i386.c: Include gimple-iterator.h.
2296 * config/aarch64/aarch64.c: Likewise.
2297
2298 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
2299
2300 PR rtl-optimization/67753
2301 PR rtl-optimization/64164
2302 * function.c (assign_parm_setup_block): Avoid allocating a
2303 stack slot if we don't have an ABI-reserved one. Emit the
2304 copy to target_reg in the conversion seq if the copy from
2305 entry_parm is in it too. Don't use the conversion seq to copy
2306 a PARALLEL to a REG or a CONCAT.
2307
2308 2015-11-06 Richard Biener <rguenther@suse.de>
2309
2310 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2311 equal_keys.
2312
2313 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2314 Thomas Schwinge <thomas@codesourcery.com>
2315 James Norris <jnorris@codesourcery.com>
2316
2317
2318 * gimplify.c (gimplify_scan_omp_clauses): Add support for
2319 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
2320 (gimplify_adjust_omp_clauses): Likewise.
2321 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2322 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2323 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2324 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2325 (omp_clause_code_name): Likewise.
2326 (walk_tree_1): Handle OMP_CLAUSE_TILE.
2327 * tree.h (OMP_TILE_LIST): New macro.
2328
2329 2015-11-05 Martin Sebor <msebor@redhat.com>
2330
2331 PR c++/67942
2332 * doc/invoke.texi (-Wplacement-new): Document new option.
2333
2334 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
2335
2336 PR tree-optimization/65963
2337 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2338 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2339
2340 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
2341
2342 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2343 (noce_convert_multiple_sets): Likewise.
2344 (noce_process_if_block): Call them.
2345
2346 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2347
2348 * gimple-fold.c: Include omp-low.h.
2349 (fold_internal_goacc_dim): New.
2350 (gimple_fold_call): Call it.
2351
2352 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2353 Ilya Verbin <ilya.verbin@intel.com>
2354
2355 * builtin-types.def
2356 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2357 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2358 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2359 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2360 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2361 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2362 (struct cgraph_simd_clone_arg): Adjust comment.
2363 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2364 to GOMP_target_ext. Add num_teams and thread_limit arguments.
2365 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2366 to GOMP_target_data_ext.
2367 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2368 to GOMP_target_update_ext.
2369 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2370 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2371 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2372 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2373 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2374 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2375 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2376 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2377 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2378 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2379 * tree-core.h (enum omp_clause_schedule_kind): Add
2380 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2381 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2382 OMP_CLAUSE_SCHEDULE_LAST value.
2383 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2384 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2385 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2386 OMP_FOR_CHECK. Remove comment.
2387 * tree-pretty-print.c (dump_omp_clause): Handle
2388 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2389 Simplify. Print schedule clause modifiers.
2390 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2391 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2392 cases.
2393 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2394 (omp_default_clause): Tweak for
2395 private/firstprivate/is_device_ptr variables on target
2396 construct and use_device_ptr on target data.
2397 (omp_check_private): Likewise.
2398 (omp_notice_variable): For references check whether what it refers
2399 to has mappable type, rather than the reference itself.
2400 (omp_is_private): Diagnose linear iteration variables on non-simd
2401 constructs.
2402 (omp_no_lastprivate): Return true only for Fortran.
2403 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2404 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2405 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2406 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2407 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
2408 lastprivate and linear when combined with distribute. Gimplify
2409 variable low-bound for array reduction. Look through
2410 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2411 reductions.
2412 (gimplify_adjust_omp_clauses_1): For implicit references to
2413 variables with reference type and when not ref to scalar or
2414 ref to pointer, map what they refer to using tofrom and
2415 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2416 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2417 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2418 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
2419 Diagnose the same var on both firstprivate and lastprivate on
2420 distribute construct.
2421 (gimplify_omp_for): Fix up handling of predetermined
2422 lastprivate or linear iter vars when combined with distribute.
2423 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2424 functions.
2425 (gimplify_omp_workshare): Call optimize_target_teams.
2426 * omp-low.c (struct omp_region): Add sched_modifiers field.
2427 (struct omp_for_data): Likewise.
2428 (omp_any_child_fn_dumped): New variable.
2429 (extract_omp_for_data): Fill in sched_modifiers, and mask out
2430 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2431 from sched_kind.
2432 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2433 bits of OMP_CLAUSE_SCHED_KIND.
2434 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2435 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
2436 for array section reductions.
2437 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2438 for distribute parallel for, if there are lastprivate clauses on the
2439 for.
2440 (lower_rec_input_clauses): Handle non-zero low-bound on array
2441 section reductions.
2442 (lower_reduction_clauses): Likewise.
2443 (lower_send_clauses): Look through POINTER_PLUS_EXPR
2444 for array section reductions.
2445 (expand_parallel_call): Use nonmonotonic entrypoints for
2446 nonmonotonic: dynamic/guided.
2447 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2448 child_fn if current_function_decl has assembler name set, but child_fn
2449 does not. Dump the header and IL of the child function when not in SSA
2450 form.
2451 (expand_omp_target): Likewise. Pass num_teams and thread_limit
2452 arguments to BUILT_IN_GOMP_TARGET.
2453 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2454 Initialize the extra _looptemp_ clause to fd->loop.n2.
2455 (expand_omp_for): Use nonmonotonic entrypoints for
2456 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
2457 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
2458 again if we have dumped any child functions.
2459 (lower_omp_for_lastprivate): Determine the right count variable
2460 for distribute simd, or distribute parallel for{, simd}.
2461 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2462 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
2463 support.
2464 (simd_clone_clauses_extract): Handle variable step
2465 for references and arguments passed by reference.
2466 (simd_clone_mangle): Mangle ref/uval/val variable steps.
2467 (simd_clone_adjust_argument_types): Handle
2468 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2469 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2470 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2471 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2472 (simd_clone_linear_addend): New function.
2473 (simd_clone_adjust): Handle variable step like similarly
2474 to constant step, use simd_clone_linear_addend to determine
2475 the actual step at runtime.
2476
2477 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2478
2479 * target.def (goacc.dim_limit): New hook.
2480 * targhooks.h (default_goacc_dim_limit): Declare.
2481 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2482 * doc/tm.texi: Rebuilt.
2483 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2484 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2485 (default_goacc_dim_limit): New.
2486 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2487 (nvptx_goacc_dim_limit) New.
2488 (TARGET_GOACC_DIM_LIMIT): Override.
2489 * tree-vrp.c: Include omp-low.h, target.h.
2490 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2491 IFN_GOACC_DIM_POS.
2492
2493 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2494
2495 * tree-vect-generic.c (do_compare): Use -1 for true
2496 result instead of 1.
2497
2498 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2499
2500 * config/aarch64/aarch64.c
2501 (aarch64_can_use_per_function_literal_pools_p): New.
2502 (aarch64_use_blocks_for_constant_p): Adjust declaration
2503 and use aarch64_can_use_function_literal_pools_p.
2504 (aarch64_select_rtx_section): Update.
2505
2506 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2507
2508 * targhooks.c (default_get_mask_mode): Use BLKmode in
2509 case target doesn't support required vector mode.
2510 * stor-layout.c (layout_type); Check for BLKmode.
2511
2512 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2513 Sebastian Pop <s.pop@samsung.com>
2514
2515 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2516 Remove use of parameter_rename_map.
2517 (copy_def): Remove.
2518 (copy_internal_parameters): Remove.
2519 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2520 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2521 (free_sese_info): Do not free parameter_rename_map.
2522 (set_rename): Do not use parameter_rename_map.
2523 (rename_uses): Update call to set_rename.
2524 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2525 * sese.h (parameter_rename_map_t): Remove.
2526 (struct sese_info_t): Remove field parameter_rename_map.
2527
2528 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2529 Sebastian Pop <s.pop@samsung.com>
2530
2531 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2532 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2533 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2534 anonymous namespace.
2535 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2536 (isl_id_for_pbb): Use a buffer of size 10.
2537 (isl_id_for_ssa_name): Same.
2538 * sese.c (set_rename): Add more dumps.
2539
2540 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2541
2542 * omp-low.c (struct omp_context): Remove reduction_map field.
2543 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2544 (new_omp_context, delete_omp_context, scan_omp_target): Remove
2545 reduction_map handling.
2546 (lower_omp_target): Remove obsolete openacc reduction handling.
2547
2548 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2549
2550 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2551
2552 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2553 Cesar Philippidis <cesar@codesourcery.com>
2554
2555 * config/nvptx/nvptx.c: Include gimple headers.
2556 (worker_red_size, worker_red_align, worker_red_name,
2557 worker_red_sym): New.
2558 (nvptx_option_override): Initialize worker reduction buffer.
2559 (nvptx_file_end): Write out worker reduction buffer var.
2560 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2561 nvptx_expand_cmp_swap): New builtin expanders.
2562 (enum nvptx_builtins): New.
2563 (nvptx_builtin_decls): New.
2564 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2565 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2566 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2567 nvptx_lockless_update): New helpers.
2568 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2569 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2570 (nvptx_goacc_reduction): New.
2571 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2572 TARGET_BUILTIN_DECL): Override.
2573 (TARGET_GOACC_REDUCTION): Override.
2574
2575 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2576 Cesar Philippidis <cesar@codesourcery.com>
2577
2578 * internal-fn.def (GOACC_REDUCTION): New.
2579 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2580 * internal-fn.c (expand_GOACC_REDUCTION): New.
2581 * target.def (goacc.reduction): New OpenACC hook.
2582 * targhooks.h (default_goacc_reduction): Declare.
2583 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2584 * doc/tm.texi: Rebuilt.
2585 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2586 scan_sharing_clauses): Remove oacc reduction handling here.
2587 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2588 (oacc_lower_reduction_var_helper): Delete.
2589 (lower_oacc_reductions): New.
2590 (lower_reduction_clauses): Don't handle OpenACC reductions here.
2591 (lower_oacc_head_tail): Call lower_oacc_reductions.
2592 (oacc_gimple_assign, oacc_init_reduction_array,
2593 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2594 oacc_process_reduction_data): Delete.
2595 (lower_omp_target): Remove old OpenACC reduction handling. Insert
2596 dummy OpenACC gang reduction for reductions at outer level.
2597 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2598 (default_goacc_reduction): New.
2599 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2600
2601 2015-11-04 Martin Liska <mliska@suse.cz>
2602
2603 * cgraphunit.c (cgraph_node::expand_thunk): Call
2604 allocate_struct_function before init_function_start.
2605 (cgraph_node::expand): Use push_cfun and pop_cfun.
2606 * config/i386/i386.c (ix86_code_end): Call
2607 allocate_struct_function before init_function_start.
2608 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2609 * function.c (init_function_start): Move preamble to all
2610 callers.
2611 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2612 (execute_one_pass): Handle newly added TODO_discard_function.
2613 (execute_pass_list_1): Terminate if cfun equals to NULL.
2614 (execute_pass_list): Do not push and pop cfun, expect that
2615 cfun is set.
2616 * tree-pass.h (TODO_discard_function): Define.
2617
2618 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2619
2620 * cfganal.c (inverted_post_order_compute): Remove conditional
2621 compilation, use flag_checking.
2622 * config.in: Regenerate.
2623 * configure: Regenerate.
2624 * configure.ac: Remove ENABLE_CHECKING.
2625 * genconditions.c: Do not #undef ENABLE_CHECKING.
2626 * sese.h (bb_in_region): Comment out broken check.
2627 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2628 conditional compilation, use flag_checking.
2629
2630 2015-11-04 Tom de Vries <tom@codesourcery.com>
2631
2632 PR tree-optimization/67742
2633 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2634 field.
2635 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2636 (create_variable_info_for_1): Add and handle handle_param parameter.
2637 Add restrict handling.
2638 (create_variable_info_for): Call create_variable_info_for_1 with extra
2639 arg.
2640 (make_param_constraints): Drop restrict_name parameter. Ignore
2641 vi->only_restrict_pointers.
2642 (intra_create_variable_infos): Call create_variable_info_for_1 with
2643 extra arg. Remove restrict handling. Call make_param_constraints with
2644 one fewer arg.
2645
2646 2015-11-04 Tom de Vries <tom@codesourcery.com>
2647
2648 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2649 variable.
2650
2651 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2652
2653 * config/arm/coff.h: Remove.
2654
2655 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2656
2657 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2658 check for aggregate types and beef up comment for mode check.
2659
2660 2015-11-03 Richard Biener <rguenther@suse.de>
2661
2662 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2663 data references here.
2664 * tree-vect-loop.c: Include cgraph.h.
2665 (vect_analyze_loop_2): Collect data references here.
2666 * tree-vect-slp.c (find_bb_location): Inline ...
2667 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
2668 Factor in vect_slp_transform_bb.
2669 (vect_slp_transform_bb): Removed.
2670 (vect_slp_analyze_bb_1): Collect data references here.
2671 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2672 vect_slp_bb.
2673 * tree-vectorizer.h (vect_slp_bb): Declare.
2674 (vect_slp_analyze_bb): Remove.
2675 (vect_slp_transform_bb): Remove.
2676 (find_bb_location): Remove.
2677 (vect_analyze_data_refs): Remove stmt count reference parameter.
2678
2679 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
2680
2681 * multiple_target.c (create_dispatcher_calls): Add target check
2682 on ifunc.
2683 (create_target_clone): Change assembler name for versioned declarations.
2684
2685 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2686 Chung-Lin Tang <cltang@codesourcery.com>
2687
2688 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2689 * omp-low.c (check_omp_nesting_restrictions): Allow
2690 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2691 contexts.
2692
2693 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
2694
2695 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2696 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2697 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2698 builtin.
2699 (vmulxq_f32): Likewise.
2700 (vmulx_f64): New.
2701 (vmulxq_f64): Rewrite to call fmulx builtin.
2702 (vmulxs_f32): Likewise.
2703 (vmulxd_f64): Likewise.
2704 (vmulx_lane_f32): Remove.
2705 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2706
2707 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
2708
2709 * config/aarch64/aarch64.md (*movhf_aarch64): Use
2710 aarch64_reg_or_fp_zero for second operand.
2711
2712 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
2713
2714 * gimple-expr.c: Include hash-set.h and rtl.h.
2715 (mark_addressable_queue): New var.
2716 (mark_addressable): Factor actual marking into...
2717 (mark_addressable_1): ... this. Queue it up during expand.
2718 (mark_addressable_2): New.
2719 (flush_mark_addressable_queue): New.
2720 * gimple-expr.h (flush_mark_addressable_queue): Declare.
2721 * cfgexpand.c: Include gimple-expr.h.
2722 (pass_expand::execute): Flush mark_addressable queue.
2723
2724 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
2725
2726 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2727 bb_no_side_effects_p tests...
2728 (tree_ssa_ifcombine_bb): ... here.
2729
2730 PR tree-optimization/68083
2731 * tree-ssa-ifcombine.c: Include tree-ssa.h.
2732 (bb_no_side_effects_p): Test for undefined uses too.
2733 * tree-ssa.c (gimple_uses_undefined_value_p): New.
2734 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
2735
2736 2015-11-02 Jeff Law <law@redhat.com>
2737
2738 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
2739 cases where the loop latch edge is in the middle of an FSM path.
2740
2741 2015-11-03 Tom de Vries <tom@codesourcery.com>
2742
2743 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
2744 (make_param_constraints): ... this. Add and handle restrict_name
2745 parameter. Handle is_full_var case.
2746 (intra_create_variable_infos): Use make_param_constraints.
2747
2748 2015-11-03 Tom de Vries <tom@codesourcery.com>
2749
2750 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
2751 make_copy_constraint call with make_constraint_from call.
2752
2753 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
2754
2755 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
2756 PIE executables.
2757
2758 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
2759
2760 * builtins.h (fold_fma): Move to fold-const-call.h.
2761 * builtins.c: Include fold-const-call.h.
2762 (mathfn_built_in_2): New function, split out from...
2763 (mathfn_built_in_1): ...here.
2764 (do_real_to_int_conversion, fold_const_builtin_pow)
2765 (fold_const_builtin_logb, fold_const_builtin_significand)
2766 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
2767 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
2768 (fold_builtin_sincos): Use fold_const_call to handle constants.
2769 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
2770 checks for ERROR_MARK. Use fold_const_call to handle constant
2771 folds for math functions.
2772 (fold_fma): Move to fold-const-call.c.
2773 * fold-const.c: Include fold-const-call.h.
2774 * Makefile.in (OBJS): Add fold-const-call.o.
2775 (PLUGIN_HEADERS): Add fold-const-call.h.
2776 * realmpfr.h (real_from_mpfr): Allow the format to be specified
2777 directly.
2778 * realmpfr.c (real_from_mpfr): Likewise.
2779 * fold-const-call.h, fold-const-call.c: New files.
2780
2781 2015-11-02 Julian Brown <julian@codesourcery.com>
2782
2783 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
2784 brackets and semicolon.
2785
2786 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
2787
2788 Revert:
2789 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
2790
2791 PR tree-optimization/65963
2792 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
2793 LSHIFT_EXPRs as equivalent MULT_EXPRs.
2794
2795 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
2796
2797 PR middle-end/68166
2798 * fold-const.c: Include "md5.h".
2799
2800 2015-11-01 Jeff Law <law@redhat.com>
2801
2802 * vmsdbgout.c: Revert unused header file reduction patch.
2803
2804 * config/mcore/mcore.c: Include regs.h.
2805
2806 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2807
2808 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
2809
2810 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
2811
2812 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
2813 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
2814 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
2815
2816 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
2817
2818 * ggc-common.c: Restore needed header for checking=release.
2819
2820 2015-10-31 Tom de Vries <tom@codesourcery.com>
2821
2822 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
2823
2824 2015-10-31 Tom de Vries <tom@codesourcery.com>
2825
2826 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
2827 existing varinfo for arguments.
2828
2829 2015-10-31 Tom de Vries <tom@codesourcery.com>
2830
2831 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
2832 create_function_info_for. Dump constraints generated during
2833 create_function_info_for. Move intra_create_variable_infos call and
2834 function-return-values-escape bit to ...
2835 (create_function_info_for): ... here, and merge
2836 intra_create_variable_infos call with argument loop. Add and handle
2837 nonlocal_p parameter.
2838
2839 2015-10-31 Tom de Vries <tom@codesourcery.com>
2840
2841 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
2842 updating is alap, and seperated from preceding code. Make sure
2843 insert_vi_for_tree is seperated from surrounding code.
2844
2845 2015-10-31 Tom de Vries <tom@codesourcery.com>
2846
2847 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
2848
2849 2015-10-30 Jeff Law <law@redhat.com>
2850 Nathan Sidwell <nathan@acm.org>
2851
2852 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
2853 args.
2854 (MOVE_MAX): Set to 8.
2855
2856 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
2857
2858 * cgraph.c: Include context.h for offloading.
2859 * varpool.c: Include context.h and omp-low.h.
2860
2861 2015-10-30 Anatoly Sokolov <aesok@post.ru>
2862
2863 * rtl.h (contains_symbol_ref_p): Declare.
2864 (SYMBOL_REF_P): Define.
2865 * rtlanal.c (contains_symbol_ref_p: New function.
2866 * lra-constraints.c (contains_symbol_ref_p): Remove.
2867 * var-tracking.c (contains_symbol_ref): Remove.
2868 (track_expr_p): Use contains_symbol_ref_p instead of
2869 contains_symbol_ref.
2870
2871 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2872
2873 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
2874 * fold-const.c (get_array_ctor_element_at_index): New.
2875 (fold): Remove binary-search through CONSTRUCTOR, call previous.
2876
2877 * fold-const.h (get_array_ctor_element_at_index): New.
2878
2879 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
2880
2881 * Makefile.in (OBJS): Add multiple_target.o.
2882 * attrib.c (make_attribute): Moved from config/i386/i386.c
2883 * config/i386/i386.c (make_attribute): Deleted.
2884 * multiple_target.c (create_dispatcher_calls): New.
2885 (get_attr_len): Ditto.
2886 (get_attr_str): Ditto.
2887 (separate_attrs): Ditto.
2888 (is_valid_asm_symbol): Ditto.
2889 (create_new_asm_name): Ditto.
2890 (create_target_clone): Ditto.
2891 (expand_target_clones): Ditto.
2892 (ipa_target_clone): Ditto.
2893 (ipa_dispatcher_calls): Ditto.
2894 * passes.def (pass_target_clone): Two new ipa passes.
2895 * tree-pass.h (make_pass_target_clone): Ditto.
2896 * doc/extend.texi (target_clones): New attribute description.
2897
2898 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
2899
2900 PR rtl-optimization/68106
2901 * lra-remat.c (input_regno_present_p): Process hard regs
2902 explicitly present in machine description insns.
2903 (call_used_input_regno_present_p): Ditto.
2904 (calculate_gen_cands): Ditto.
2905 (do_remat): Ditto.
2906
2907 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
2908
2909 * config/arm/neon-testgen.ml: Fix comment typo.
2910
2911 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2912
2913 * rtlanal.c (reg_set_p): Expand function comment.
2914
2915 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
2916
2917 * alias.c: Remove unused headers.
2918 * asan.c: Likewise.
2919 * attribs.c: Likewise.
2920 * auto-inc-dec.c: Likewise.
2921 * auto-profile.c: Likewise.
2922 * bb-reorder.c: Likewise.
2923 * bitmap.c: Likewise.
2924 * bt-load.c: Likewise.
2925 * builtins.c: Likewise.
2926 * caller-save.c: Likewise.
2927 * calls.c: Likewise.
2928 * ccmp.c: Likewise.
2929 * cfg.c: Likewise.
2930 * cfganal.c: Likewise.
2931 * cfgbuild.c: Likewise.
2932 * cfgcleanup.c: Likewise.
2933 * cfgexpand.c: Likewise.
2934 * cfghooks.c: Likewise.
2935 * cfgloop.c: Likewise.
2936 * cfgloopanal.c: Likewise.
2937 * cfgloopmanip.c: Likewise.
2938 * cfgrtl.c: Likewise.
2939 * cgraph.c: Likewise.
2940 * cgraphbuild.c: Likewise.
2941 * cgraphclones.c: Likewise.
2942 * cgraphunit.c: Likewise.
2943 * cilk-common.c: Likewise.
2944 * combine-stack-adj.c: Likewise.
2945 * combine.c: Likewise.
2946 * compare-elim.c: Likewise.
2947 * convert.c: Likewise.
2948 * coverage.c: Likewise.
2949 * cppbuiltin.c: Likewise.
2950 * cprop.c: Likewise.
2951 * cse.c: Likewise.
2952 * cselib.c: Likewise.
2953 * data-streamer-in.c: Likewise.
2954 * data-streamer-out.c: Likewise.
2955 * data-streamer.c: Likewise.
2956 * dbxout.c: Likewise.
2957 * dce.c: Likewise.
2958 * ddg.c: Likewise.
2959 * debug.c: Likewise.
2960 * df-core.c: Likewise.
2961 * df-problems.c: Likewise.
2962 * df-scan.c: Likewise.
2963 * dfp.c: Likewise.
2964 * dojump.c: Likewise.
2965 * dominance.c: Likewise.
2966 * domwalk.c: Likewise.
2967 * double-int.c: Likewise.
2968 * dse.c: Likewise.
2969 * dumpfile.c: Likewise.
2970 * dwarf2asm.c: Likewise.
2971 * dwarf2cfi.c: Likewise.
2972 * dwarf2out.c: Likewise.
2973 * emit-rtl.c: Likewise.
2974 * except.c: Likewise.
2975 * explow.c: Likewise.
2976 * expmed.c: Likewise.
2977 * expr.c: Likewise.
2978 * final.c: Likewise.
2979 * fixed-value.c: Likewise.
2980 * fold-const.c: Likewise.
2981 * function.c: Likewise.
2982 * fwprop.c: Likewise.
2983 * gcse.c: Likewise.
2984 * generic-match-head.c: Likewise.
2985 * ggc-common.c: Likewise.
2986 * gimple-builder.c: Likewise.
2987 * gimple-expr.c: Likewise.
2988 * gimple-fold.c: Likewise.
2989 * gimple-iterator.c: Likewise.
2990 * gimple-low.c: Likewise.
2991 * gimple-match-head.c: Likewise.
2992 * gimple-pretty-print.c: Likewise.
2993 * gimple-ssa-isolate-paths.c: Likewise.
2994 * gimple-ssa-strength-reduction.c: Likewise.
2995 * gimple-streamer-in.c: Likewise.
2996 * gimple-streamer-out.c: Likewise.
2997 * gimple-walk.c: Likewise.
2998 * gimple.c: Likewise.
2999 * gimplify-me.c: Likewise.
3000 * gimplify.c: Likewise.
3001 * godump.c: Likewise.
3002 * graph.c: Likewise.
3003 * graphds.c: Likewise.
3004 * haifa-sched.c: Likewise.
3005 * hw-doloop.c: Likewise.
3006 * ifcvt.c: Likewise.
3007 * init-regs.c: Likewise.
3008 * internal-fn.c: Likewise.
3009 * ipa-chkp.c: Likewise.
3010 * ipa-comdats.c: Likewise.
3011 * ipa-cp.c: Likewise.
3012 * ipa-devirt.c: Likewise.
3013 * ipa-icf-gimple.c: Likewise.
3014 * ipa-icf.c: Likewise.
3015 * ipa-inline-analysis.c: Likewise.
3016 * ipa-inline-transform.c: Likewise.
3017 * ipa-inline.c: Likewise.
3018 * ipa-polymorphic-call.c: Likewise.
3019 * ipa-profile.c: Likewise.
3020 * ipa-prop.c: Likewise.
3021 * ipa-pure-const.c: Likewise.
3022 * ipa-ref.c: Likewise.
3023 * ipa-reference.c: Likewise.
3024 * ipa-split.c: Likewise.
3025 * ipa-utils.c: Likewise.
3026 * ipa-visibility.c: Likewise.
3027 * ipa.c: Likewise.
3028 * ira-build.c: Likewise.
3029 * ira-color.c: Likewise.
3030 * ira-conflicts.c: Likewise.
3031 * ira-costs.c: Likewise.
3032 * ira-emit.c: Likewise.
3033 * ira-lives.c: Likewise.
3034 * ira.c: Likewise.
3035 * jump.c: Likewise.
3036 * langhooks.c: Likewise.
3037 * lcm.c: Likewise.
3038 * lists.c: Likewise.
3039 * loop-doloop.c: Likewise.
3040 * loop-init.c: Likewise.
3041 * loop-invariant.c: Likewise.
3042 * loop-iv.c: Likewise.
3043 * loop-unroll.c: Likewise.
3044 * lower-subreg.c: Likewise.
3045 * lra-assigns.c: Likewise.
3046 * lra-coalesce.c: Likewise.
3047 * lra-constraints.c: Likewise.
3048 * lra-eliminations.c: Likewise.
3049 * lra-lives.c: Likewise.
3050 * lra-remat.c: Likewise.
3051 * lra-spills.c: Likewise.
3052 * lra.c: Likewise.
3053 * lto-cgraph.c: Likewise.
3054 * lto-compress.c: Likewise.
3055 * lto-opts.c: Likewise.
3056 * lto-section-in.c: Likewise.
3057 * lto-section-out.c: Likewise.
3058 * lto-streamer-in.c: Likewise.
3059 * lto-streamer-out.c: Likewise.
3060 * lto-streamer.c: Likewise.
3061 * mcf.c: Likewise.
3062 * mode-switching.c: Likewise.
3063 * modulo-sched.c: Likewise.
3064 * optabs.c: Likewise.
3065 * opts-global.c: Likewise.
3066 * passes.c: Likewise.
3067 * plugin.c: Likewise.
3068 * postreload-gcse.c: Likewise.
3069 * postreload.c: Likewise.
3070 * predict.c: Likewise.
3071 * print-tree.c: Likewise.
3072 * profile.c: Likewise.
3073 * real.c: Likewise.
3074 * realmpfr.c: Likewise.
3075 * recog.c: Likewise.
3076 * ree.c: Likewise.
3077 * reg-stack.c: Likewise.
3078 * regcprop.c: Likewise.
3079 * reginfo.c: Likewise.
3080 * regrename.c: Likewise.
3081 * regstat.c: Likewise.
3082 * reload.c: Likewise.
3083 * reload1.c: Likewise.
3084 * reorg.c: Likewise.
3085 * resource.c: Likewise.
3086 * rtl-chkp.c: Likewise.
3087 * rtl-error.c: Likewise.
3088 * rtlanal.c: Likewise.
3089 * rtlhooks.c: Likewise.
3090 * sanopt.c: Likewise.
3091 * sched-deps.c: Likewise.
3092 * sched-ebb.c: Likewise.
3093 * sched-rgn.c: Likewise.
3094 * sdbout.c: Likewise.
3095 * sel-sched-dump.c: Likewise.
3096 * sel-sched-ir.c: Likewise.
3097 * sel-sched.c: Likewise.
3098 * sese.c: Likewise.
3099 * shrink-wrap.c: Likewise.
3100 * simplify-rtx.c: Likewise.
3101 * stack-ptr-mod.c: Likewise.
3102 * statistics.c: Likewise.
3103 * stmt.c: Likewise.
3104 * stor-layout.c: Likewise.
3105 * store-motion.c: Likewise.
3106 * stringpool.c: Likewise.
3107 * symtab.c: Likewise.
3108 * target-globals.c: Likewise.
3109 * targhooks.c: Likewise.
3110 * toplev.c: Likewise.
3111 * tracer.c: Likewise.
3112 * trans-mem.c: Likewise.
3113 * tree-affine.c: Likewise.
3114 * tree-call-cdce.c: Likewise.
3115 * tree-cfg.c: Likewise.
3116 * tree-cfgcleanup.c: Likewise.
3117 * tree-chkp-opt.c: Likewise.
3118 * tree-chkp.c: Likewise.
3119 * tree-chrec.c: Likewise.
3120 * tree-complex.c: Likewise.
3121 * tree-data-ref.c: Likewise.
3122 * tree-dfa.c: Likewise.
3123 * tree-diagnostic.c: Likewise.
3124 * tree-dump.c: Likewise.
3125 * tree-eh.c: Likewise.
3126 * tree-emutls.c: Likewise.
3127 * tree-if-conv.c: Likewise.
3128 * tree-inline.c: Likewise.
3129 * tree-into-ssa.c: Likewise.
3130 * tree-iterator.c: Likewise.
3131 * tree-loop-distribution.c: Likewise.
3132 * tree-nested.c: Likewise.
3133 * tree-nrv.c: Likewise.
3134 * tree-object-size.c: Likewise.
3135 * tree-outof-ssa.c: Likewise.
3136 * tree-parloops.c: Likewise.
3137 * tree-phinodes.c: Likewise.
3138 * tree-predcom.c: Likewise.
3139 * tree-pretty-print.c: Likewise.
3140 * tree-profile.c: Likewise.
3141 * tree-scalar-evolution.c: Likewise.
3142 * tree-sra.c: Likewise.
3143 * tree-ssa-address.c: Likewise.
3144 * tree-ssa-alias.c: Likewise.
3145 * tree-ssa-ccp.c: Likewise.
3146 * tree-ssa-coalesce.c: Likewise.
3147 * tree-ssa-copy.c: Likewise.
3148 * tree-ssa-dce.c: Likewise.
3149 * tree-ssa-dse.c: Likewise.
3150 * tree-ssa-forwprop.c: Likewise.
3151 * tree-ssa-ifcombine.c: Likewise.
3152 * tree-ssa-live.c: Likewise.
3153 * tree-ssa-loop-ch.c: Likewise.
3154 * tree-ssa-loop-im.c: Likewise.
3155 * tree-ssa-loop-ivcanon.c: Likewise.
3156 * tree-ssa-loop-ivopts.c: Likewise.
3157 * tree-ssa-loop-manip.c: Likewise.
3158 * tree-ssa-loop-niter.c: Likewise.
3159 * tree-ssa-loop-prefetch.c: Likewise.
3160 * tree-ssa-loop-unswitch.c: Likewise.
3161 * tree-ssa-loop.c: Likewise.
3162 * tree-ssa-math-opts.c: Likewise.
3163 * tree-ssa-operands.c: Likewise.
3164 * tree-ssa-phiopt.c: Likewise.
3165 * tree-ssa-phiprop.c: Likewise.
3166 * tree-ssa-pre.c: Likewise.
3167 * tree-ssa-propagate.c: Likewise.
3168 * tree-ssa-reassoc.c: Likewise.
3169 * tree-ssa-scopedtables.c: Likewise.
3170 * tree-ssa-sink.c: Likewise.
3171 * tree-ssa-strlen.c: Likewise.
3172 * tree-ssa-structalias.c: Likewise.
3173 * tree-ssa-tail-merge.c: Likewise.
3174 * tree-ssa-ter.c: Likewise.
3175 * tree-ssa-threadupdate.c: Likewise.
3176 * tree-ssa-uncprop.c: Likewise.
3177 * tree-ssa-uninit.c: Likewise.
3178 * tree-ssa.c: Likewise.
3179 * tree-ssanames.c: Likewise.
3180 * tree-stdarg.c: Likewise.
3181 * tree-streamer-in.c: Likewise.
3182 * tree-streamer-out.c: Likewise.
3183 * tree-streamer.c: Likewise.
3184 * tree-switch-conversion.c: Likewise.
3185 * tree-tailcall.c: Likewise.
3186 * tree-vect-data-refs.c: Likewise.
3187 * tree-vect-generic.c: Likewise.
3188 * tree-vect-loop-manip.c: Likewise.
3189 * tree-vect-loop.c: Likewise.
3190 * tree-vect-patterns.c: Likewise.
3191 * tree-vect-slp.c: Likewise.
3192 * tree-vect-stmts.c: Likewise.
3193 * tree-vectorizer.c: Likewise.
3194 * tree-vrp.c: Likewise.
3195 * tree.c: Likewise.
3196 * tsan.c: Likewise.
3197 * ubsan.c: Likewise.
3198 * value-prof.c: Likewise.
3199 * var-tracking.c: Likewise.
3200 * varasm.c: Likewise.
3201 * varpool.c: Likewise.
3202 * vmsdbgout.c: Likewise.
3203 * vtable-verify.c: Likewise.
3204 * web.c: Likewise.
3205 * wide-int-print.cc: Likewise.
3206 * wide-int.cc: Likewise.
3207 * xcoffout.c: Likewise.
3208
3209 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
3210
3211 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3212 between pass numbering and execution order.
3213
3214 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3215
3216 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3217 check for dependencies.
3218
3219 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3220
3221 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3222 CDI_DOMINATORS.
3223
3224 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3225
3226 * real.h (format_helper): New.
3227 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3228 (real_from_target, real_nan, real_2expN, real_value_truncate)
3229 (significand_size, real_from_string2, exact_real_inverse)
3230 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3231 (real_round, real_isinteger, real_from_integer): Replace
3232 machine_mode arguments with format_helper arguments.
3233 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3234 (real_from_integer, real_nan, real_2expN, real_convert)
3235 (real_value_truncate, exact_real_truncate, real_to_target)
3236 (real_from_target, significand_size, real_powi, real_trunc)
3237 (real_floor, real_ceil, real_round, real_isinteger): Replace
3238 machine_mode arguments with format_helper arguments.
3239 (real_to_target_fmt, real_from_target_fmt): Delete.
3240 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3241 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3242 argument with real_format.
3243 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3244
3245 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3248 (fixed_to_decimal, fixed_convert_from_real)
3249 (real_convert_from_fixed): Fix mode arguments to real_2expN.
3250
3251 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3252
3253 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3254 SCALAR_FLOAT_MODE_P.
3255
3256 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3257
3258 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3259 (completely_scalarize): Comment zero-length arrays.
3260 (get_access_replacement): Correct comment re. precondition.
3261
3262 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3263
3264 * config/i386/i386.c (get_builtin_code_for_version): Set priority
3265 for PROCESSOR_ZNVER1.
3266 (enum processor_model): Add M_AMDFAM17H_znver1.
3267 (struct arch_names_table): Likewise.
3268 * doc/extend.texi: ADD znver1.
3269
3270 2015-10-30 Richard Biener <rguenther@suse.de>
3271
3272 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3273 fold () on single RHSs. Allow CONSTRUCTORS with trailing
3274 zeros to be folded to VECTOR_CSTs.
3275 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3276 * fold-const.c (fold): Use build_vector_from_ctor.
3277
3278 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
3279
3280 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3281 "mov %0.h[0], %1.h[0] to "neon_move".
3282 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3283 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3284 "mov_imm".
3285 (*cmovsi_insn_uxtw): Likewise.
3286
3287 2015-10-30 Tom de Vries <tom@codesourcery.com>
3288
3289 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3290 unsigned, and initialize, and use initial value instead of hardcoded
3291 constant. Add generic constraints dumping section. Don't dump global
3292 initializers constraints dumping section if empty. Don't update
3293 variable from if unused.
3294
3295 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3296
3297 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3298 flag_checking and/or CHECKING_P to eliminate conditional compilation
3299 on ENABLE_CHECKING.
3300 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3301 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3302 * config/i386/i386.c (ix86_print_operand_address): Likewise.
3303 (output_387_binary_op): Likewise.
3304 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3305 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3306 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3307 Likewise.
3308 * config/rs6000/rs6000.h: Likewise.
3309 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3310
3311 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
3312
3313 * config/sh/sh.opt (mfdpic): Add missing period.
3314
3315 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3316
3317 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3318 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3319 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3320 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3321 mcore_base_register_rtx_p, mcore_legitimate_index_p,
3322 mcore_legitimate_address_p): New functions.
3323 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3324
3325 2015-10-29 Jeff Law <law@redhat.com>
3326
3327 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3328 method.
3329 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3330 * tree-ssa-threadedge.c
3331 (record_temporary_equivalences_from_stmts_at_dest): Remove
3332 backedge_seen argument and associated code which invalidated
3333 equivalences based on the value of that argument.
3334 (thread_through_normal_block): Corresponding changes.
3335
3336 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3337
3338 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3339 function earlier in the file.
3340 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3341 df_regs_ever_live_p.
3342
3343 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3344
3345 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3346 by ignoring it.
3347
3348 2015-10-29 Richard Henderson <rth@redhat.com>
3349
3350 PR target/68124
3351 PR rtl-opt/67609
3352 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3353 sse check to the exact conditions of PR 67609.
3354
3355 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3356
3357 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3358 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3359 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3360 of the traditional names that TFmode uses for handling IEEE
3361 extended double. If -mfloat128, add KFmode functions for all of
3362 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3363 make TFmode use the same emulation functions as KFmode.
3364 (init_float128_ibm): Likewise.
3365 (init_float128_ieee): Likewise.
3366 (rs6000_generate_compare): For IEEE 128-bit floating point
3367 comparisons, call the unordered comparison function instead of the
3368 ordered comparison function.
3369 (rs6000_expand_float128_convert): Deal with operands that are
3370 memory operands. Restructure the code to use a switch statement on
3371 the mode. Add support for TFmode defaulting to either IBM extended
3372 double or IEEE 128-bit floating point. If the underlying types are
3373 the same, use a move instead of a conversion function.
3374 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3375 use for IEEE 128-bit floating point constants with -mfloat128.
3376 (rs6000_c_mode_for_suffix): Likewise.
3377 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3378 128-bit floating point with IBM extended double floating point.
3379 (rs6000_invalid_binary_op): Likewise.
3380 (rs6000_gen_le_vsx_permute): On little endian systems generate a
3381 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3382 types that can go in vector registers.
3383 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3384 point types that can go in vector registers on little endian
3385 PowerPC systems.
3386 (mark_swaps_for_removal): Likewise.
3387 (rs6000_analyze_swaps): Likewise.
3388 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3389
3390 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3391 rework IEEE 128-bit floating point insns to deal with TFmode being
3392 either IBM extended double or IEEE 128-bit floating point.
3393 (IFKF): Likewise.
3394 (IBM128): Update iterator to add condition that the mode is IBM
3395 extended double.
3396 (IEEE128): New iterator for IEEE 128-bit floating point.
3397 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3398 (FLOAT128): Likewise.
3399 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3400 iterator.
3401 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3402 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3403 instead of hard coding TFmode or KFmode.
3404 (negtf2_internal): Likewise.
3405 (neg<mode>2_internal): Likewise.
3406 (abs<mode>2): Likewise.
3407 (abstf2_internal): Likewise.
3408 (abs<mode>2_internal): Likewise.
3409 (ieee_128bit_neg<mode>2): Likewise.
3410 (ieee_128bit_neg<mode>2_internal): Likewise.
3411 (ieee_128bit_abs<mode>2): Likewise.
3412 (ieee_128bit_abs<mode>2_internal): Likewise.
3413 (ieee_128bit_nabs<mode>2): Likewise.
3414 (ieee_128bit_nabs<mode>2_internal): Likewise.
3415 (extendiftf2): Add explicit conversions between 128-bit floating
3416 point types. Drop the old conversions that had become unwieldy.
3417 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3418 (extendifkf2): Likewise.
3419 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3420 (extendtfkf2): Likewise.
3421 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3422 (trunciftf2): Likewise.
3423 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3424 (truncifkf2): Likewise.
3425 (float<SDI:mode><IFKF:mode>2): Likewise.
3426 (trunckftf2): Likewise.
3427 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3428 (trunctfif2): Likewise.
3429 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3430 (extenddftf2): Rework 128-bit floating point conversions to
3431 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3432 KFmode expanders into one function.
3433 (extenddf<mode>2): Likewise.
3434 (extenddftf2_fprs): Likewise.
3435 (extenddf<mode>2_fprs): Likewise.
3436 (extenddftf2_vsx): Likewise.
3437 (extenddf<mode>2_vsx): Likewise.
3438 (extendsftf2): Likewise.
3439 (extendsf<mode>2): Likewise.
3440 (trunctfdf2): Likewise.
3441 (trunc<mode>df2): Likewise.
3442 (trunctfdf2_internal1): Likewise.
3443 (trunc<mode>df2_internal1): Likewise.
3444 (trunctfdf2_internal2): Likewise.
3445 (trunc<mode>df2_internal2): Likewise.
3446 (trunctfsf2): Likewise.
3447 (trunc<mode>sf2): Likewise.
3448 (trunctfsf2_fprs): Likewise.
3449 (trunc<mode>sf2_fprs): Likewise.
3450 (floatsit2f): Likewise.
3451 (floatsi<mode>2): Likewise.
3452 (fix_trunc_helper): Likewise.
3453 (fix_trunc_helper<mode>): Likewise.
3454 (fix_trunctfsi2): Likewise.
3455 (fix_trunc<mode>si2): Likewise.
3456 (fix_trunctfsi2_fprs): Likewise.
3457 (fix_trunc<mode>si2_fprs): Likewise.
3458 (fix_trunctfsi2_internal): Likewise.
3459 (fix_trunc<mode>si2_internal): Likewise.
3460 (fix_trunctfdi2): Likewise.
3461 (fix_trunc<mode>di2): Likewise.
3462 (fixuns_trunctf<mode>2): Likewise.
3463 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3464 (floatditf2): Likewise.
3465 (floatdi<mode>2): Likewise.
3466 (floatuns<mode>tf2): Likewise.
3467 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3468 (cmptf_internal1): Use a mode iterator to add support for both
3469 types (IFmode, TFmode) that support IBM extended double.
3470 (cmp<mode>_internal1): Likewise.
3471 (cmptf_internal2): Likewise.
3472 (cmp<mode>_internal2): Likewise.
3473
3474 * doc/extend.texi (Floating Types): Document __ibm128 and
3475 __float128 on PowerPC.
3476
3477 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3478 -mfloat128 and -mno-float128.
3479
3480 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3481
3482 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3483 floating point modes that can go in vector registers.
3484 (MODES_TIEABLE_P): Move tests for vector modes before tests for
3485 scalar floating point, so that IEEE 128-bit floating point that
3486 can go in vector registers bind with vectors and not FP.
3487 (struct rs6000_args): Add libcall field.
3488
3489 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3490 and -mfloat128-software switches. Replace them with a binary
3491 -mfloat128 switch.
3492 (-mfloat128): Likewise.
3493
3494 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3495 128-bit floating point types in GPRs, even if the appropriate
3496 option enabling the type was not used.
3497 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3498 debugging.
3499 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3500 pre-decrement on IEEE 128-bit floating point values.
3501 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3502 is IEEE 128-bit floating point.
3503 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3504 128-bit floating point types that can go in vector registers.
3505 (rs6000_option_override_internal): Change -mfloat128-none and
3506 -mfloat128-software to -mfloat128, and move code to be near other
3507 VSX option handling.
3508 (rs6000_option_override_internal): Disable -mfloat128 if we don't
3509 have the Altivec ABI.
3510 (rs6000_init_builtins): Don't make TFmode use either IFmode or
3511 KFmode floating point nodes. Instead, have three separate nodes.
3512 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3513 eventually moving the long double default to IEEE 128-bit floating
3514 point.
3515 (rs6000_opt_masks): Add -mfloat128.
3516 (struct rs6000_opt_var): Fix typo in comment.
3517 (init_cumulative_args): Initialize libcall field in
3518 CUMULATIVE_ARGS.
3519 (rs6000_function_arg): Treat library functions as if they had
3520 prototypes to prevent IEEE 128-bit support functions from passing
3521 arguments in both GPRs and vector registers.
3522 (rs6000_arg_partial_bytes): Likewise.
3523
3524 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3525 an option that can be turned on via -mcpu=<xxx>.
3526
3527 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3528 longer used.
3529
3530 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3531 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3532 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3533 double is IBM extended double.
3534
3535 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3536 SUBREGs.
3537
3538 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3539
3540 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3541 * genconditions.c: Define CHECKING_P in the generated code.
3542 * genextract.c: Use flag_checking in insn_extract.
3543 * gengtype.c (main): Remove conditional compilation.
3544 * gengtype.h: Likewise.
3545
3546 2015-10-29 Jeff Law <law@redhat.com>
3547
3548 PR tree-optimization/67892
3549 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3550 in comment.
3551 (thread_through_normal_block): If we have seen a backedge, then
3552 do nothing. No longer call find_jump_threads_backwards here.
3553 (thread_across_edge): Use find_jump_threads_backwards to find
3554 jump threads if the old style threader was not successful.
3555 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3556 gsi_last_nondebug_bb. Return NULL if the block does not end
3557 with a control statement.
3558 (find_jump_threads_backwards): Setup code moved here from
3559 tree-ssa-threadedge.c::thread_through_normal_block. Accept
3560 single edge argument instead of name & block.
3561 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3562 prototype.
3563
3564 2015-10-29 Tom de Vries <tom@codesourcery.com>
3565
3566 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3567 types.
3568
3569 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3570
3571 * omp-low.c (lower_omp_target): Remove unreachable code & merge
3572 ifs.
3573
3574 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
3575
3576 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3577
3578 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3579
3580 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3581 guard_bb0 and use guard_bb throughout.
3582
3583 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3584
3585 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3586 unnecessary label.
3587
3588 2015-10-29 Richard Biener <rguenther@suse.de>
3589
3590 PR middle-end/68142
3591 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3592 overflow.
3593
3594 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3595
3596 * alias.c: Reorder #include statements and remove duplicates.
3597 * asan.c: Likewise.
3598 * attribs.c: Likewise.
3599 * auto-inc-dec.c: Likewise.
3600 * auto-profile.c: Likewise.
3601 * bb-reorder.c: Likewise.
3602 * bt-load.c: Likewise.
3603 * builtins.c: Likewise.
3604 * caller-save.c: Likewise.
3605 * calls.c: Likewise.
3606 * ccmp.c: Likewise.
3607 * cfg.c: Likewise.
3608 * cfganal.c: Likewise.
3609 * cfgbuild.c: Likewise.
3610 * cfgcleanup.c: Likewise.
3611 * cfgexpand.c: Likewise.
3612 * cfghooks.c: Likewise.
3613 * cfgloop.c: Likewise.
3614 * cfgloopanal.c: Likewise.
3615 * cfgloopmanip.c: Likewise.
3616 * cfgrtl.c: Likewise.
3617 * cgraph.c: Likewise.
3618 * cgraphbuild.c: Likewise.
3619 * cgraphclones.c: Likewise.
3620 * cgraphunit.c: Likewise.
3621 * cilk-common.c: Likewise.
3622 * combine-stack-adj.c: Likewise.
3623 * combine.c: Likewise.
3624 * compare-elim.c: Likewise.
3625 * convert.c: Likewise.
3626 * coverage.c: Likewise.
3627 * cppbuiltin.c: Likewise.
3628 * cprop.c: Likewise.
3629 * cse.c: Likewise.
3630 * cselib.c: Likewise.
3631 * data-streamer-in.c: Likewise.
3632 * data-streamer-out.c: Likewise.
3633 * data-streamer.c: Likewise.
3634 * dbxout.c: Likewise.
3635 * dce.c: Likewise.
3636 * ddg.c: Likewise.
3637 * debug.c: Likewise.
3638 * df-core.c: Likewise.
3639 * df-problems.c: Likewise.
3640 * df-scan.c: Likewise.
3641 * dfp.c: Likewise.
3642 * dojump.c: Likewise.
3643 * dominance.c: Likewise.
3644 * double-int.c: Likewise.
3645 * dse.c: Likewise.
3646 * dumpfile.c: Likewise.
3647 * dwarf2asm.c: Likewise.
3648 * dwarf2cfi.c: Likewise.
3649 * dwarf2out.c: Likewise.
3650 * emit-rtl.c: Likewise.
3651 * except.c: Likewise.
3652 * explow.c: Likewise.
3653 * expmed.c: Likewise.
3654 * expr.c: Likewise.
3655 * final.c: Likewise.
3656 * fixed-value.c: Likewise.
3657 * fold-const.c: Likewise.
3658 * function.c: Likewise.
3659 * fwprop.c: Likewise.
3660 * gcse.c: Likewise.
3661 * generic-match-head.c: Likewise.
3662 * ggc-common.c: Likewise.
3663 * gimple-builder.c: Likewise.
3664 * gimple-expr.c: Likewise.
3665 * gimple-fold.c: Likewise.
3666 * gimple-iterator.c: Likewise.
3667 * gimple-low.c: Likewise.
3668 * gimple-match-head.c: Likewise.
3669 * gimple-pretty-print.c: Likewise.
3670 * gimple-ssa-isolate-paths.c: Likewise.
3671 * gimple-ssa-strength-reduction.c: Likewise.
3672 * gimple-streamer-in.c: Likewise.
3673 * gimple-streamer-out.c: Likewise.
3674 * gimple-walk.c: Likewise.
3675 * gimple.c: Likewise.
3676 * gimplify-me.c: Likewise.
3677 * gimplify.c: Likewise.
3678 * godump.c: Likewise.
3679 * graph.c: Likewise.
3680 * graphite-poly.c: Likewise.
3681 * haifa-sched.c: Likewise.
3682 * hw-doloop.c: Likewise.
3683 * ifcvt.c: Likewise.
3684 * incpath.c: Likewise.
3685 * init-regs.c: Likewise.
3686 * internal-fn.c: Likewise.
3687 * ipa-chkp.c: Likewise.
3688 * ipa-comdats.c: Likewise.
3689 * ipa-cp.c: Likewise.
3690 * ipa-devirt.c: Likewise.
3691 * ipa-icf-gimple.c: Likewise.
3692 * ipa-icf.c: Likewise.
3693 * ipa-inline-analysis.c: Likewise.
3694 * ipa-inline-transform.c: Likewise.
3695 * ipa-inline.c: Likewise.
3696 * ipa-polymorphic-call.c: Likewise.
3697 * ipa-profile.c: Likewise.
3698 * ipa-prop.c: Likewise.
3699 * ipa-pure-const.c: Likewise.
3700 * ipa-ref.c: Likewise.
3701 * ipa-reference.c: Likewise.
3702 * ipa-split.c: Likewise.
3703 * ipa-utils.c: Likewise.
3704 * ipa-visibility.c: Likewise.
3705 * ipa.c: Likewise.
3706 * ira-build.c: Likewise.
3707 * ira-color.c: Likewise.
3708 * ira-conflicts.c: Likewise.
3709 * ira-costs.c: Likewise.
3710 * ira-emit.c: Likewise.
3711 * ira-lives.c: Likewise.
3712 * ira.c: Likewise.
3713 * jump.c: Likewise.
3714 * langhooks.c: Likewise.
3715 * lcm.c: Likewise.
3716 * lists.c: Likewise.
3717 * loop-doloop.c: Likewise.
3718 * loop-init.c: Likewise.
3719 * loop-invariant.c: Likewise.
3720 * loop-iv.c: Likewise.
3721 * loop-unroll.c: Likewise.
3722 * lower-subreg.c: Likewise.
3723 * lra-assigns.c: Likewise.
3724 * lra-coalesce.c: Likewise.
3725 * lra-constraints.c: Likewise.
3726 * lra-eliminations.c: Likewise.
3727 * lra-lives.c: Likewise.
3728 * lra-remat.c: Likewise.
3729 * lra-spills.c: Likewise.
3730 * lra.c: Likewise.
3731 * lto-cgraph.c: Likewise.
3732 * lto-compress.c: Likewise.
3733 * lto-opts.c: Likewise.
3734 * lto-section-in.c: Likewise.
3735 * lto-section-out.c: Likewise.
3736 * lto-streamer-in.c: Likewise.
3737 * lto-streamer-out.c: Likewise.
3738 * lto-streamer.c: Likewise.
3739 * mode-switching.c: Likewise.
3740 * modulo-sched.c: Likewise.
3741 * omp-low.c: Likewise.
3742 * optabs.c: Likewise.
3743 * opts-global.c: Likewise.
3744 * passes.c: Likewise.
3745 * plugin.c: Likewise.
3746 * postreload-gcse.c: Likewise.
3747 * postreload.c: Likewise.
3748 * predict.c: Likewise.
3749 * print-tree.c: Likewise.
3750 * profile.c: Likewise.
3751 * real.c: Likewise.
3752 * realmpfr.c: Likewise.
3753 * recog.c: Likewise.
3754 * ree.c: Likewise.
3755 * reg-stack.c: Likewise.
3756 * regcprop.c: Likewise.
3757 * reginfo.c: Likewise.
3758 * regrename.c: Likewise.
3759 * regstat.c: Likewise.
3760 * reload.c: Likewise.
3761 * reload1.c: Likewise.
3762 * reorg.c: Likewise.
3763 * resource.c: Likewise.
3764 * rtl-chkp.c: Likewise.
3765 * rtl-error.c: Likewise.
3766 * rtlanal.c: Likewise.
3767 * rtlhooks.c: Likewise.
3768 * sanopt.c: Likewise.
3769 * sched-deps.c: Likewise.
3770 * sched-ebb.c: Likewise.
3771 * sched-rgn.c: Likewise.
3772 * sese.c: Likewise.
3773 * shrink-wrap.c: Likewise.
3774 * simplify-rtx.c: Likewise.
3775 * stack-ptr-mod.c: Likewise.
3776 * statistics.c: Likewise.
3777 * stmt.c: Likewise.
3778 * stor-layout.c: Likewise.
3779 * store-motion.c: Likewise.
3780 * stringpool.c: Likewise.
3781 * symtab.c: Likewise.
3782 * target-globals.c: Likewise.
3783 * targhooks.c: Likewise.
3784 * toplev.c: Likewise.
3785 * tracer.c: Likewise.
3786 * trans-mem.c: Likewise.
3787 * tree-affine.c: Likewise.
3788 * tree-call-cdce.c: Likewise.
3789 * tree-cfg.c: Likewise.
3790 * tree-cfgcleanup.c: Likewise.
3791 * tree-chkp-opt.c: Likewise.
3792 * tree-chkp.c: Likewise.
3793 * tree-chrec.c: Likewise.
3794 * tree-complex.c: Likewise.
3795 * tree-data-ref.c: Likewise.
3796 * tree-dfa.c: Likewise.
3797 * tree-diagnostic.c: Likewise.
3798 * tree-dump.c: Likewise.
3799 * tree-eh.c: Likewise.
3800 * tree-emutls.c: Likewise.
3801 * tree-if-conv.c: Likewise.
3802 * tree-inline.c: Likewise.
3803 * tree-into-ssa.c: Likewise.
3804 * tree-iterator.c: Likewise.
3805 * tree-loop-distribution.c: Likewise.
3806 * tree-nested.c: Likewise.
3807 * tree-nrv.c: Likewise.
3808 * tree-object-size.c: Likewise.
3809 * tree-outof-ssa.c: Likewise.
3810 * tree-parloops.c: Likewise.
3811 * tree-phinodes.c: Likewise.
3812 * tree-predcom.c: Likewise.
3813 * tree-pretty-print.c: Likewise.
3814 * tree-profile.c: Likewise.
3815 * tree-scalar-evolution.c: Likewise.
3816 * tree-sra.c: Likewise.
3817 * tree-ssa-address.c: Likewise.
3818 * tree-ssa-alias.c: Likewise.
3819 * tree-ssa-ccp.c: Likewise.
3820 * tree-ssa-coalesce.c: Likewise.
3821 * tree-ssa-copy.c: Likewise.
3822 * tree-ssa-dce.c: Likewise.
3823 * tree-ssa-dom.c: Likewise.
3824 * tree-ssa-dse.c: Likewise.
3825 * tree-ssa-forwprop.c: Likewise.
3826 * tree-ssa-ifcombine.c: Likewise.
3827 * tree-ssa-live.c: Likewise.
3828 * tree-ssa-loop-ch.c: Likewise.
3829 * tree-ssa-loop-im.c: Likewise.
3830 * tree-ssa-loop-ivcanon.c: Likewise.
3831 * tree-ssa-loop-ivopts.c: Likewise.
3832 * tree-ssa-loop-manip.c: Likewise.
3833 * tree-ssa-loop-niter.c: Likewise.
3834 * tree-ssa-loop-prefetch.c: Likewise.
3835 * tree-ssa-loop-unswitch.c: Likewise.
3836 * tree-ssa-loop.c: Likewise.
3837 * tree-ssa-math-opts.c: Likewise.
3838 * tree-ssa-operands.c: Likewise.
3839 * tree-ssa-phiopt.c: Likewise.
3840 * tree-ssa-phiprop.c: Likewise.
3841 * tree-ssa-pre.c: Likewise.
3842 * tree-ssa-propagate.c: Likewise.
3843 * tree-ssa-reassoc.c: Likewise.
3844 * tree-ssa-sccvn.c: Likewise.
3845 * tree-ssa-scopedtables.c: Likewise.
3846 * tree-ssa-sink.c: Likewise.
3847 * tree-ssa-strlen.c: Likewise.
3848 * tree-ssa-structalias.c: Likewise.
3849 * tree-ssa-tail-merge.c: Likewise.
3850 * tree-ssa-ter.c: Likewise.
3851 * tree-ssa-threadedge.c: Likewise.
3852 * tree-ssa-threadupdate.c: Likewise.
3853 * tree-ssa-uncprop.c: Likewise.
3854 * tree-ssa-uninit.c: Likewise.
3855 * tree-ssa.c: Likewise.
3856 * tree-ssanames.c: Likewise.
3857 * tree-stdarg.c: Likewise.
3858 * tree-streamer-in.c: Likewise.
3859 * tree-streamer-out.c: Likewise.
3860 * tree-streamer.c: Likewise.
3861 * tree-switch-conversion.c: Likewise.
3862 * tree-tailcall.c: Likewise.
3863 * tree-vect-data-refs.c: Likewise.
3864 * tree-vect-generic.c: Likewise.
3865 * tree-vect-loop-manip.c: Likewise.
3866 * tree-vect-loop.c: Likewise.
3867 * tree-vect-patterns.c: Likewise.
3868 * tree-vect-slp.c: Likewise.
3869 * tree-vect-stmts.c: Likewise.
3870 * tree-vectorizer.c: Likewise.
3871 * tree-vrp.c: Likewise.
3872 * tree.c: Likewise.
3873 * tsan.c: Likewise.
3874 * ubsan.c: Likewise.
3875 * value-prof.c: Likewise.
3876 * var-tracking.c: Likewise.
3877 * varasm.c: Likewise.
3878 * varpool.c: Likewise.
3879 * vtable-verify.c: Likewise.
3880 * web.c: Likewise.
3881 * wide-int-print.cc: Likewise.
3882 * wide-int.cc: Likewise.
3883 * xcoffout.c: Likewise.
3884
3885 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
3886
3887 * Makefile.in (NO_PIE_CFLAGS): New.
3888 (NO_PIE_FLAG): Likewise.
3889 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3890 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3891 (BUILD_NO_PIE_CFLAGS): Likewise.
3892 (BUILD_NO_PIE_FLAG): Likewise.
3893 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
3894 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
3895 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
3896 $(BUILD_NO_PIE_CFLAGS).
3897 (BUILD_CXXFLAGS): Likewise.
3898 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
3899 $(BUILD_NO_PIE_FLAG).
3900 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
3901 (BUILD_NO_PIE_FLAG): Likewise.
3902 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
3903 (NO_PIE_FLAG_FOR_BUILD): Likewise.
3904 * configure: Regenerated.
3905
3906 2015-10-29 Richard Biener <rguenther@suse.de>
3907
3908 PR middle-end/56956
3909 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
3910 unsigned conditonal negation to ABS_EXPR.
3911
3912 2015-10-29 Richard Biener <rguenther@suse.de>
3913
3914 * gimple-match-head.c (gimple_simplify): Remove premature checking
3915 of builtin_decl_implicit of function calls we simplify.
3916
3917 2015-10-29 Bin Cheng <bin.cheng@arm.com>
3918
3919 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
3920 (get_computation_cost_at): Ditto.
3921 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
3922 and inv_expr_id.
3923
3924 2015-10-28 Tom de Vries <tom@codesourcery.com>
3925
3926 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
3927 superfluous code.
3928
3929 2015-10-28 Jason Merrill <jason@redhat.com>
3930
3931 * Makefile.in (TAGS): Include libcpp and libiberty.
3932
3933 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3934
3935 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
3936 (extract_omp_for_data): Remove OpenACC special handling of
3937 chunking.
3938
3939 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
3940 (struct parallel): Update comment.
3941 (nvptx_reorg): Likewise.
3942 (nvptx_neuter): Cleanup whitespace.
3943
3944 2015-10-28 Richard Henderson <rth@redhat.com>
3945
3946 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
3947
3948 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3949
3950 PR target/67839
3951 * config/avr/predicates.md (low_io_address_operand): Don't
3952 consider MODE when computing upper bound.
3953 (io_address_operand): Likewise.
3954
3955 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
3956
3957 * fold-const.c (operand_equal_p): Do not verify that types are
3958 compatible for MEM_REFs.
3959
3960 2015-10-28 Richard Biener <rguenther@suse.de>
3961
3962 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
3963 in simplifying VEC_COND_EXPR conditions.
3964
3965 2015-10-28 Tom de Vries <tom@codesourcery.com>
3966
3967 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
3968 into vi_next of a full_var.
3969
3970 2015-10-28 Tom de Vries <tom@codesourcery.com>
3971
3972 * tree-ssa-structalias.c (new_var_info, make_heapvar)
3973 (make_constraint_from_restrict, make_constraint_from_global_restrict)
3974 (create_function_info_for, create_variable_info_for_1)
3975 (create_variable_info_for): Add and handle add_id parameter.
3976 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
3977 (init_base_vars): Add extra argument to calls to new_var_info.
3978 (get_vi_for_tree): Add extra argument to call to
3979 create_variable_info_for.
3980 (process_constraint, do_deref, process_all_all_constraints): Add extra
3981 argument to calls to new_scalar_tmp_constraint_exp.
3982 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
3983 argument to calls to make_heapvar.
3984 (make_restrict_var_constraints): Add extra argument to call to
3985 make_constraint_from_global_restrict.
3986 (intra_create_variable_infos): Add extra argument to call to
3987 create_variable_info_for_1.
3988 (ipa_pta_execute): Add extra argument to call to
3989 create_function_info_for.
3990
3991 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3992
3993 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
3994 (sibcall_value): Likewise.
3995
3996 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3997
3998 * config/nvptx/nvptx.h (struct machine_function): Add
3999 axis_predicate.
4000 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
4001 nvptx_expand_oacc_join): Declare.
4002 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
4003 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
4004 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
4005 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
4006 UNSPECV_JOINING, UNSPECV_JOIN): New.
4007 (BITS, BITD): New mode iterators.
4008 (br_true_uni, br_false_uni): New.
4009 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
4010 (oacc_dim_size, oacc_dim_pos): New.
4011 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
4012 (oacc_fork, oacc_join): New.
4013 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
4014 (worker_load<mode>, worker_store<mode>): New.
4015 (nvptx_barsync): New.
4016 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
4017 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
4018 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
4019 worker_bcast_sym): New.
4020 (nvptx_option_override): Initialize worker broadcast buffer.
4021 (nvptx_emit_forking, nvptx_emit_joining): New.
4022 (nvptx_init_axis_predicate): New.
4023 (nvptx_declare_function_name): Init axis predicates.
4024 (nvptx_expand_call): Add fork/join markers around routine call.
4025 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
4026 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
4027 (nvptx_gen_vcast): New.
4028 (struct wcast_data_t): New.
4029 (enum propagate_mask): New.
4030 (nvptx_gen_wcast): New.
4031 (nvptx_print_operand): Add 'S' case.
4032 (struct parallel): New.
4033 (parallel::parallel, parallel::~parallel): New.
4034 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
4035 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
4036 nvptx_find_par, nvptx_discover_pars): New.
4037 (nvptx_propagate): New.
4038 (vprop_gen, nvptx_vpropagate): New.
4039 (wprop_gen, nvptx_wpropagate): New.
4040 (nvptx_wsync): New.
4041 (nvptx_single, nvptx_skip_par): New.
4042 (nvptx_process_pars, nvptx_neuter_pars): New.
4043 (ntptx_reorg): Split blocks, generate parallel structure, apply
4044 neutering.
4045 (nvptx_cannot_copy_insn_p): New.
4046 (nvptx_file_end): Emit worker broadcast decl.
4047 (nvptx_goacc_fork_join): New.
4048 (TARGET_CANNOT_COPY_INSN_P): Override.
4049 (TARGET_GOACC_FORK_JOIN): Override.
4050
4051 2015-10-28 Richard Biener <rguenther@suse.de>
4052
4053 * fold-const.c (negate_expr_p): Adjust the division case to
4054 properly avoid introducing undefined overflow.
4055 (fold_negate_expr): Likewise.
4056
4057 2015-10-28 Richard Biener <rguenther@suse.de>
4058
4059 PR tree-optimization/65962
4060 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4061 Avoid creating loop carried dependences also for outer loops
4062 of the loop a use to replace is in.
4063
4064 2015-10-28 Richard Biener <rguenther@suse.de>
4065
4066 * common.opt (fchecking): New flag controlling flag_checking.
4067 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
4068 * timevar.c (timer::print): Adjust output.
4069 * doc/invoke.texi (fchecking): Document.
4070
4071 2015-10-28 Richard Biener <rguenther@suse.de>
4072
4073 PR middle-end/68067
4074 * fold-const.c (negate_expr_p): We cannot negate plus or minus
4075 if overflow is not wrapping. Likewise multiplication unless
4076 one operand is constant and not power of two.
4077 (fold_negate_expr): Adjust accordingly.
4078
4079 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4080
4081 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
4082 fields.
4083 (is_oacc_parallel, is_oacc_kernels): New.
4084 (enclosing_target_ctx): May return NULL.
4085 (ctx_in_oacc_kernels_region): New.
4086 (check_oacc_kernel_gwv): New.
4087 (oacc_loop_or_target_p): Delete.
4088 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
4089 operands. Strip reductions fro kernels.
4090 (scan_omp_target): Don't calculate gwv mask.
4091 (lower_oacc_head_mark, lower_oacc_loop_marker,
4092 lower_oacc_head_tail): New.
4093 (struct oacc_collapse): New.
4094 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
4095 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4096 Remove OpenACC handling.
4097 (expand_oacc_for): New.
4098 (expand_omp_for): Call expand_oacc_for.
4099 (lower_omp_for): Call lower_oacc_head_tail.
4100
4101 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
4102
4103 * attribs.c (check_attribute_tables): New function, broken out from...
4104 (init_attributes): Use it.
4105 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
4106 gcc_checking_assert and checking_* functions to eliminate
4107 ENABLE_CHECKING conditionals.
4108 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
4109 (pass_expand::execute): Likewise.
4110 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
4111 * cgraphunit.c (mark_functions_to_output): Likewise.
4112 (cgraph_node::expand_thunk): Likewise.
4113 (symbol_table::compile): Likewise.
4114 * ddg.c (add_cross_iteration_register_deps): Likewise.
4115 (create_ddg_all_sccs): Likewise.
4116 * df-core.c (df_finish_pass, df_analyze): Likewise.
4117 * diagnostic-core.h: Likewise.
4118 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
4119 * dominance.c (calculate_dominance_info): Likewise.
4120 * dwarf2out.c (add_AT_die_ref): Likewise.
4121 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
4122 (loc_list_from_tree, gen_lexical_block_die): Likewise.
4123 gen_type_die_with_usage, gen_type_die): Likewise.
4124 (dwarf2out_decl): Likewise.
4125 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
4126 * except.c (duplicate_eh_regions): Likewise.
4127 * fwprop.c (register_active_defs, update_df_init): Likewise.
4128 (fwprop_init, fwprop_done): Likewise.
4129 (update_uses): Likewise.
4130 * ggc-page.c (ggc_grow): Likewise.
4131 * gimplify.c (gimplify_body): Likewise.
4132 (gimplify_hasher::equal): Likewise.
4133 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
4134 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4135 Likewise.
4136 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4137 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4138 * hash-table.h (::find_empty_slot_for_expand): Likewise.
4139 * ifcvt.c (if_convert): Likewise.
4140 * ipa-cp.c (ipcp_propagate_stage): Likewise.
4141 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4142 (odr_type_p, odr_types_equivalent_p): Likewise.
4143 (add_type_duplicate, get_odr_type): Likewise.
4144 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4145 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4146 (sem_item_optimizer::verify_classes): Likewise.
4147 (sem_item_optimizer::traverse_congruence_split): Likewise.
4148 (sem_item_optimizer::checking_verify_classes): New.
4149 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4150 method.
4151 * cfgrtl.c (commit_edge_insertions): Likewise.
4152 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4153 (rtl_flow_call_edges_add): Likewise.
4154 * cgraph.c (symbol_table::create_edge): Likewise.
4155 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4156 * cgraph.h (symtab_node): Likewise.
4157 (symtab_node::checking_verify_symtab_nodes): Define.
4158 (cgraph_node::checking_verify_cgraph_nodes): Define.
4159 * cfghooks.h (checking_verify_flow_info): Define.
4160 * cfgloop.h (checking_verify_loop_structure): Define.
4161 * dominance.h (checking_verify_dominators): Define.
4162 * et-forest.c: Fix comment.
4163 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4164 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4165 ENABLE_CHECKING conditionals.
4166 * ipa-inline-transform.c (save_inline_function_body): Likewise.
4167 * ipa-inline.c (inline_small_functions): Likewise.
4168 (early_inliner): Likewise.
4169 * ipa-inline.h (estimate_edge_growth): Likewise.
4170 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4171 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4172 (ipa_single_use): Likewise.
4173 * ira-int.h: Likewise.
4174 * ira.c (ira): Likewise.
4175 * loop-doloop.c (doloop_optimize_loops): Likewise.
4176 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4177 * loop-invariant.c (move_loop_invariants): Likewise.
4178 * lra-assigns.c (lra_assign): Likewise.
4179 * lra-constraints.c (lra_constraints): Likewise.
4180 * lra-eliminations.c (lra_eliminate): Likewise.
4181 * lra-int.h (struct lra_reg): Likewise.
4182 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4183 (lra_create_live_ranges_1): Likewise.
4184 * lra-remat.c (create_remat_bb_data): Likewise.
4185 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4186 (lra): Likewise.
4187 (check_rtl): Always define. Remove incorrect guard around
4188 extract_constrain_insn call.
4189 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4190 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4191 ENABLE_CHECKING conditionals.
4192 * lto-streamer-out.c (DFS::DFS): Likewise.
4193 (lto_output): Likewise.
4194 * lto-streamer.c (lto_streamer_init): Likewise.
4195 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4196 expand_omp_target, execute_expand_omp): Likewise.
4197 (lower_omp_target): Likewise.
4198 * passes.c (execute_function_todo): Likewise.
4199 (execute_todo, execute_one_pass): Likewise.
4200 (verify_curr_properties): Always define.
4201 * predict.c (tree_estimate_probability: Use flag_checking,
4202 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4203 ENABLE_CHECKING conditionals.
4204 (propagate_freq): Likewise.
4205 * pretty-print.c (pp_format): Likewise.
4206 * real.c (real_to_decimal_for_mode): Likewise.
4207 * recog.c (split_all_insns): Likewise.
4208 * regcprop.c (kill_value_one_regno): Likewise.
4209 (copy_value): Likewise.
4210 (validate_value_data): Define unconditionally.
4211 * reload.c: Fix comment.
4212 * timevar.c: Include options.h
4213 * tree-ssa.h (checking_verify_ssa): Define.
4214 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4215 * sched-deps.c (CHECK): Remove unused macro.
4216 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4217 gcc_checking_assert and checking_* functions to eliminate
4218 ENABLE_CHECKING conditionals.
4219 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4220 * sel-sched.c (struct moveop_static_params): Likewise.
4221 (find_best_reg_for_expr, move_cond_jump): Likewise.
4222 (move_op_orig_expr_not_found): Likewise.
4223 (code_motion_process_successors, move_op): Likewise.
4224 * ssa-iterators.h (first_readonly_imm_use): Likewise.
4225 (next_readonly_imm_use): Likewise.
4226 * store-motion.c (compute_store_table): Likewise.
4227 * symbol-summary.h (function_summary::function_summary): Likewise.
4228 * target.h (cumulative_args_t): Likewise.
4229 (get_cumulative_args, pack_cumulative_args): Likewise.
4230 * timevar.c: (timer::print): Likewise.
4231 * trans-mem.c (ipa_tm_execute): Likewise.
4232 * tree-cfg.c (move_stmt_op): Likewise.
4233 (move_sese_region_to_fn): Likewise.
4234 (gimple_flow_call_edges_add): Likewise.
4235 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4236 Likewise.
4237 * tree-eh.c (remove_unreachable_handlers): Likewise.
4238 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4239 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4240 * tree-into-ssa.c (update_ssa): Likewise.
4241 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4242 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4243 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4244 * tree-predcom.c (suitable_component_p): Likewise.
4245 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4246 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4247 * tree-ssa-live.c (verify_live_on_entry): Likewise.
4248 * tree-ssa-live.h (register_ssa_partition): Likewise.
4249 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4250 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4251 (tree_transform_and_unroll_loop): Likewise.
4252 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4253 * tree-ssa-operands.c (get_expr_operands): Likewise.
4254 * tree-ssa-propagate.c (replace_exp_1): Likewise.
4255 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4256 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4257 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4258 * tree-ssanames.c (release_ssa_name_fn): Likewise.
4259 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4260 * tree-vect-loop-manip.c
4261 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4262 (slpeel_checking_verify_cfg_after_peeling): Likewise.
4263 (vect_do_peeling_for_loop_bound): Likewise.
4264 (vect_do_peeling_for_alignment): Likewise.
4265 * tree-vrp.c (supports_overflow_infinity): Likewise.
4266 (set_value_range): Likewise.
4267 * tree.c (free_lang_data_in_cgraph): Likewise.
4268 * value-prof.c (gimple_remove_histogram_value): Likewise.
4269 (free_hist): Likewise.
4270 * var-tracking.c (canonicalize_values_star): Likewise.
4271 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4272
4273 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4274
4275 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4276 IFN_GOACC_LOOP): New.
4277 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4278 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4279 IFN_UNIQUE_OACC_TAIL_MARK.
4280 (enum ifn_goacc_loop_kind): New.
4281 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4282 IFN_UNIQUE_OACC_JOIN cases.
4283 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4284 (expand_GOACC_LOOP): New.
4285 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4286 * omp-low.c: Include gimple-pretty-print.h.
4287 (struct oacc_loop): New.
4288 (enum oacc_loop_flags): New.
4289 (oacc_thread_numbers): New.
4290 (oacc_xform_loop): New.
4291 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4292 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4293 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4294 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4295 oacc_loop_discovery): New.
4296 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4297 oacc_loop_process): New.
4298 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4299 (execute_oacc_device_lower): Discover & process loops. Process
4300 internal fns.
4301 * target.def (goacc.fork_join): Change sense of hook, clarify
4302 documentation.
4303 * doc/tm.texi: Regenerated.
4304
4305 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4306
4307 * target-insns.def (oacc_fork, oacc_join): Define.
4308 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4309 (goacc.fork_join): New GOACC hook.
4310 * targhooks.h (default_goacc_fork_join): Declare.
4311 * omp-low.c (default_goacc_forkjoin): New.
4312 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4313 * doc/tm.texi: Regenerate.
4314
4315 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4316
4317 * omp-low.c (oacc_init_rediction_array): New.
4318 (oacc_initialize_reduction_data): Initialize array.
4319
4320 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4321
4322 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4323
4324 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4325
4326 * internal-fn.c (expand_UNIQUE): New.
4327 * internal-fn.h (enum ifn_unique_kind): New.
4328 * internal-fn.def (IFN_UNIQUE): New.
4329 * target-insns.def (unique): Define.
4330 * gimple.h (gimple_call_internal_unique_p): New.
4331 * gimple.c (gimple_call_same_target_p): Check internal fn
4332 uniqueness.
4333 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4334 * tree-ssa-threadedge.c
4335 (record_temporary_equivalences_from_stmts): Likewise.
4336 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4337
4338 2015-10-27 Richard Henderson <rth@redhat.com>
4339
4340 PR rtl-opt/67609
4341 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4342 narrowing subregs on SSE and MMX registers.
4343 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4344 appear to be sub-words of multi-register pseudos must be rejected.
4345 * doc/tm.texi: Regenerate.
4346
4347 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4348
4349 PR target/68102
4350 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4351 operands[0] is a reg before taking its REGNO in split condition.
4352 (*movdi_aarch64): Likewise.
4353
4354 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4355
4356 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4357 Handle floating point inner modes properly.
4358
4359 2015-10-27 Alan Hayward <alan.hayward@arm.com>
4360
4361 * tree-vect-looop.c
4362 (vectorizable_live_operation): Change iterator.
4363
4364 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4365 Aditya Kumar <aditya.k7@samsung.com>
4366
4367 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4368 function to schedule based on isl_schedule_node.
4369 (get_schedule_map_st): New schedule optimizer based on
4370 isl_schedule_node.
4371 (scop_get_domains): New. Return the isl_union_set containing the
4372 domains of all the pbbs.
4373 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4374
4375 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
4376
4377 PR target/67215
4378 * calls.c (prepare_call_address): Don't handle -fno-plt here.
4379 * config/i386/i386.c (ix86_expand_call): Generate indirect call
4380 via GOT for -fno-plt. Support indirect call via GOT for x32.
4381 * config/i386/predicates.md (sibcall_memory_operand): Allow
4382 GOT memory operand.
4383
4384 2015-10-27 Richard Biener <rguenther@suse.de>
4385
4386 PR tree-optimization/68104
4387 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4388 strided access check ...
4389 (vect_compute_data_refs_alignment): ... here.
4390
4391 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
4392 Joseph Myers <joseph@codesourcery.com>
4393 Mark Shinwell <shinwell@codesourcery.com>
4394 Andrew Stubbs <ams@codesourcery.com>
4395 Rich Felker <dalias@libc.org>
4396
4397 * config.gcc: Handle --enable-fdpic.
4398 * config/sh/constraints.md (Ccl): New constraint.
4399 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4400 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4401 __SH_FDPIC__.
4402 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4403 library functions.
4404 * config/sh/sh-protos.h (function_symbol_result): New struct.
4405 (function_symbol): Return function_symbol_result.
4406 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4407 declarations.
4408 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4409 target hook.
4410 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4411 (sh_option_override): Force -fPIC if FDPIC is in effect.
4412 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4413 UNSPEC_GOTOFFFUNCDESC cases.
4414 (prepare_move_operands): Use FDPIC initial GOT register for
4415 TLS-related GOT access; inhibit cross-section address offset constants
4416 for FDPIC.
4417 (sh_assemble_integer): New function.
4418 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4419 PC-relative call sites.
4420 (expand_ashiftrt): Adapt invocation of function_symbol.
4421 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4422 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4423 UNSPEC_GOTOFFFUNCDESC.
4424 (legitimize_pic_address): Resolve function symbols to function
4425 descriptors for FDPIC. Do not use GOT-relative addressing for local
4426 data that may be read-only on FDPIC.
4427 (sh_emit_storesi, sh_emit_storehi): New functions.
4428 (sh_trampoline_init): Generate FDPIC trampolines.
4429 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4430 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4431 (sh_output_mi_thunk): Generate FDPIC call.
4432 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
4433 FDPIC, generate call site labels to use PC-relative addressing rather
4434 than GOT-relative addressing.
4435 (sh_conditional_register_usage): Make PIC register fixed and call used
4436 when FDPIC is in effect.
4437 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4438 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4439 sh_get_fdpic_reg_initial_val): New functions.
4440 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4441 Handle -mfdpic.
4442 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4443 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4444 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4445 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4446 FDPIC_SELF_SPECS.
4447 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4448 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4449 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4450 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4451 constants.
4452 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4453 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4454 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4455 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4456 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4457 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4458 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4459 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4460 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4461 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4462 block_move_real, block_lump_real, block_move_real_i4,
4463 block_lump_real_i4): Add support for FDPIC calls.
4464 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4465 call_value_pop): Adjust for new function_symbol signature.
4466 * config/sh/sh.opt (-mfdpic): New option.
4467 * doc/install.texi (Options specification): Document --enable-fdpic.
4468 * doc/invoke.texi (SH Options): Document -mfdpic.
4469
4470
4471 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4472
4473 PR tree-optimization/65963
4474 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4475 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4476
4477 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4478
4479 PR target/67929
4480 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4481 * config/arm/constraints.md (Dp): Update callsite.
4482 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4483
4484 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4485
4486 * builtins.c (fold_builtin_load_exponent): Rename to...
4487 (fold_const_builtin_load_exponent): ...this and only handle
4488 constant arguments.
4489 (fold_builtin_2): Update accordingly.
4490 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4491
4492 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4493
4494 * builtins.c (fold_builtin_logb): Rename to...
4495 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4496 (fold_builtin_significand): Rename to...
4497 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4498 (fold_builtin_1): Update accordingly.
4499
4500 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4501
4502 * builtins.c (fold_builtin_fmin_fmax): Delete.
4503 (fold_builtin_2): Handle constant fmin and fmax arguments here.
4504 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4505
4506 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
4507
4508 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4509 for register extension into sign and zero register extension.
4510 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4511 for sign and zero register extension.
4512 (cortexa57_addrcost_table): Likewise.
4513 (xgene1_addrcost_table): Likewise.
4514
4515 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4516
4517 * fold-const.c (fold_minmax): Delete.
4518 (fold_binary_loc): Don't call it.
4519 * match.pd: Add rules previously handled by fold_minmax.
4520
4521 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4522
4523 * builtins.c (fold_builtin_fma): Remove constant handling.
4524 (fold_builtin_3): Handle constant fma arguments here.
4525
4526 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4527
4528 * builtins.c (fold_builtin_fabs): Remove constant handling.
4529 (fold_builtin_abs): Likewise.
4530
4531 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4532
4533 * builtins.c (fold_builtin_copysign): Delete.
4534 (fold_builtin_2): Handle constant copysign arguments here.
4535 * match.pd: Add rules previously handled by fold_builtin_copysign.
4536
4537 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4538
4539 * builtins.c (fold_builtin_signbit): Delete.
4540 (fold_builtin_2): Handle constant signbit arguments here.
4541 * match.pd: Add rules previously handled by fold_builtin_signbit.
4542
4543 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4544
4545 * match.pd: Handle sqrt(x) cmp 0 specially.
4546
4547 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
4548
4549 * tree-vect-generic.c (expand_vector_operations_1): Check
4550 optab type before using it.
4551
4552 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4553
4554 * config/aarch64/aarch64-protos.h
4555 (struct tune_params): Add autoprefetcher_model field.
4556 * config/aarch64/aarch64.c: Include params.h
4557 (generic_tunings): Specify autoprefetcher_model value.
4558 (cortexa53_tunings): Likewise.
4559 (cortexa57_tunings): Likewise.
4560 (cortexa72_tunings): Likewise.
4561 (thunderx_tunings): Likewise.
4562 (xgene1_tunings): Likewise.
4563 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4564 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4565 (aarch64_override_options_internal): Set
4566 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4567
4568 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4569
4570 * builtins.c (fold_builtin_exponent): Delete.
4571 (fold_builtin_2): Handle constant expN arguments here.
4572 * match.pd: Fold expN(logN(x)) -> x.
4573
4574 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4575
4576 * builtins.c (fold_builtin_powi): Delete.
4577 (fold_builtin_2): Handle constant powi arguments here.
4578 * match.pd: Add rules previously handled by fold_builtin_powi.
4579
4580 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4581
4582 * builtins.c (fold_builtin_pow): Delete in favor of...
4583 (fold_const_builtin_pow): ...this new function. Only handle constant
4584 arguments.
4585 (fold_builtin_2): Update accordingly.
4586 * match.pd: Add rules previously handled by fold_builtin_pow.
4587
4588 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4589
4590 * builtins.c (fold_builtin_hypot): Delete.
4591 (fold_builtin_2): Handle constant hypot arguments here.
4592 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
4593 hypot(x, x) to fabs(x)*sqrt(2).
4594
4595 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4596
4597 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4598 instead of make_ssa_name if not yet in SSA form.
4599
4600 2015-10-27 Richard Biener <rguenther@suse.de>
4601
4602 * cfg.c (free_edge): Add function argument and use it instead of cfun.
4603 (clear_edges): Likewise.
4604 * cfg.h (clear_edges): Adjust prototype.
4605 * cfgexpand.c (pass_expand::execute): Adjust.
4606 * cfgloop.c (release_recorded_exits): Add function argument and use
4607 it instead of cfun.
4608 * cfgloop.h (release_recorded_exits): Adjust prototype.
4609 (loops_state_satisfies_p): Add overload with function argument.
4610 (loops_state_set): Likewise.
4611 (loops_state_clear): Likewise.
4612 (struct loop_iterator): Add function argument to constructor
4613 and iterator and use it instead of cfun.
4614 (FOR_EACH_LOOP_FN): New macro.
4615 (loop_optimizer_finalize): Add overload with function argument.
4616 * loop-init.c (loop_optimizer_init): Adjust.
4617 (fix_loop_structure): Likewise.
4618 (loop_optimizer_finaliz): Add function argument and use it
4619 instead of cfun.
4620 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4621 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4622 * cgraph.c (release_function_body): Do not push/pop cfun.
4623 * final.c (rest_of_clean_state): Adjust.
4624 * graphite.c (graphite_finalize): Likewise.
4625 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4626 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4627 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4628 (tree_unroll_loops_completely): Likewise.
4629 (pass_complete_unrolli::execute): Likewise.
4630 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4631 Add function argument and use it instead of cfun.
4632 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4633 Adjust prototype.
4634 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4635 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4636 instead of cfun.
4637 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4638 * tree-ssanames.c (fini_ssanames): Add function argument and use it
4639 instead of cfun.
4640 * tree-ssanames.c (fini_ssanames): Adjust prototype.
4641 * tree-vrp.c (execute_vrp): Adjust.
4642 * value-prof.c (free_histograms): Add function argument and use it
4643 instead of cfun.
4644 * value-prof.h (free_histograms): Adjust prototype.
4645
4646 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4647
4648 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4649 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4650 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
4651
4652 2015-10-27 Tom de Vries <tom@codesourcery.com>
4653
4654 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4655 field_type.
4656
4657 2015-10-27 Bin Cheng <bin.cheng@arm.com>
4658
4659 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4660 (inv_can_prop_to_addr_use): New function.
4661 (record_use): Call can_prop_to_addr_uses, set the new field.
4662 (get_inv_cost): Count cost if inv can't be propagated into its
4663 address uses.
4664
4665 2015-10-26 Doug Evans <dje@google.com>
4666
4667 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4668
4669 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
4670
4671 * match.pd (fold_widened_comparison): Apply simplifications to all
4672 integral types.
4673
4674 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
4675
4676 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4677 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4678 * doc/tm.texi: Regenerated.
4679 * reorg.c (dbr_schedule): Use new hook.
4680 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4681
4682 2015-10-26 Jeff Law <law@redhat.com>
4683
4684 PR tree-optimization/68013
4685 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4686 Make sure the first block in the path is in VISITED_BBs.
4687
4688 2015-10-26 Richard Biener <rguenther@suse.de>
4689 Dominik Vogt <vogt@linux.vnet.ibm.com>
4690
4691 PR middle-end/67443
4692 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4693 Properly prune ref->ref for accesses outside of ref.
4694
4695 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4696
4697 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4698 new statements to be inserted if inplace. Allow calls to have
4699 nonempty sequences.
4700
4701 2015-10-26 Richard Biener <rguenther@suse.de>
4702
4703 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4704 (do_valueize): New function.
4705 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4706 replace_uses_by.
4707 * tree-ssa-threadedge.c: Remove builtins.h include, include
4708 gimple-fold.h
4709 (fold_assignment_stmt): Remove.
4710 (threadedge_valueize): New function.
4711 (record_temporary_equivalences_from_stmts): Use
4712 gimple_fold_stmt_to_constant_1, note additional cleanup
4713 opportunities.
4714
4715 2015-10-26 Richard Biener <rguenther@suse.de>
4716
4717 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4718 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4719
4720 2015-10-26 Alan Hayward <alan.hayward@arm.com>
4721
4722 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4723 VEC_COND_EXPR types.
4724
4725 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4726
4727 * auto-inc-dec.c (insert_move_insn_before): Delete.
4728 (attempt_change): Remember to cost the simple move in the
4729 FORM_PRE_ADD and FORM_POST_ADD cases.
4730
4731 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
4732
4733 PR target/68091
4734 * config/sh/sh.c (sh_vector_mode_supported_p): Use
4735 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
4736
4737 2015-10-26 Tom de Vries <tom@codesourcery.com>
4738
4739 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
4740 factored out of ...
4741 (intra_create_variable_infos): ... here.
4742
4743 2015-10-26 Tom de Vries <tom@codesourcery.com>
4744
4745 * tree-ssa-structalias.c (intra_create_variable_infos): Add
4746 restrict_pointer_p and recursive_restrict_p variables.
4747
4748 2015-10-26 Tom de Vries <tom@codesourcery.com>
4749
4750 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
4751 get_vi_for_tree call.
4752
4753 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4754
4755 PR middle-end/67989
4756 * optabs.c (expand_atomic_compare_and_swap): Handle case when
4757 ptarget_oval or ptarget_bool are const0_rtx.
4758
4759 2015-10-26 Christian Bruel <christian.bruel@st.com>
4760
4761 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
4762 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
4763 * cp/method.c (implicitly_declare_fn): Likewise.
4764 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
4765 * java/class.c (add_method_1): Likewise.
4766
4767 2015-10-26 Richard Biener <rguenther@suse.de>
4768
4769 * alloc-pool.h (base_pool_allocator): Use placement new.
4770 (base_pool_allocator::remove): Likewise. Compute size outside of
4771 flag_checking.
4772
4773 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4774
4775 * builtins.c (do_real_to_int_conversion): New function.
4776 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
4777 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
4778 arguments here.
4779 * match.pd: Add rules previously handled by fold_fixed_mathfn
4780 and fold_builtin_int_roundingfn.
4781
4782 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4783
4784 * match.pd: Use macros to define built-in operator lists.
4785
4786 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
4787 Richard Biener <rguenther@suse.de>
4788
4789 * genmatch.c (dt_simplify::gen): Skip captures that are
4790 part of the result.
4791 (parser::parse_expr): Allow captures in results too.
4792 * builtins.c (fold_builtin_cexp): Delete.
4793 (fold_builtin_1): Handle constant cexp arguments here.
4794 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
4795
4796 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
4797
4798 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
4799 conditional compilation.
4800 (base_pool_allocator::remove): Use flag_checking.
4801
4802 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
4803
4804 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
4805
4806 PR middle-end/68079
4807 * dojump.c (do_compare_and_jump): Canonicalize both function and
4808 method types.
4809
4810 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
4811
4812 PR target/68084
4813 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
4814 for =@ccae.
4815
4816 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4817
4818 PR ipa/pr67600
4819 * ipa-polymorphic-call.c
4820 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
4821 instance offset with offset of outer type.
4822
4823 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4824
4825 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
4826
4827 2015-10-23 Caroline Tice <cmtice@google.com>
4828
4829 (from Richard Biener
4830 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
4831 call to iterative_hash_host_wide_int.
4832
4833 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4834
4835 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
4836 Define as yes.
4837
4838 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4839
4840 * tree-vect-generic.c (expand_vector_operations_1): Check
4841 optab exists before use it.
4842
4843 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4844
4845 * tree-vect-generic.c (expand_vector_condition): Avoid
4846 uninitialized variable warning.
4847
4848 2015-10-23 Jeff Law <law@redhat.com>
4849
4850 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
4851 here. Instead...
4852 (execute_todo): Call it here.
4853 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
4854 statistics
4855 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
4856
4857 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4858 Szabolcs Nagy <szabolcs.nagy@arm.com>
4859
4860 * config.gcc (enable_secureplt): Add *-linux*-musl*.
4861
4862 2015-10-23 Jeff Law <law@redhat.com>
4863
4864 PR tree-optimization/67830
4865 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
4866 Explicitly verify the mask has no bits outside the type of
4867 the innermost operands.
4868
4869 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
4870 Szabolcs Nagy <szabolcs.nagy@arm.com>
4871
4872 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4873 (MUSL_DYNAMIC_LINKER64): Define.
4874 (GNU_USER_DYNAMIC_LINKER32): Update.
4875 (GNU_USER_DYNAMIC_LINKER64): Update.
4876 (CHOOSE_DYNAMIC_LINKER): Update.
4877
4878 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
4879 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
4880 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4881 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4882 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4883 (CHOOSE_DYNAMIC_LINKER): Update.
4884 (INCLUDE_DEFAULTS): Redefine.
4885
4886 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
4887
4888 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4889
4890 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
4891 comparing addresses.
4892
4893 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
4894
4895 * fold-const.c (operand_equal_p): Handle matching of vector
4896 constructors.
4897
4898 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
4899
4900 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
4901
4902 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
4903 Andrew Pinski <apinski@cavium.com>
4904
4905 PR rtl-optimization/67736
4906 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
4907 of gen_lowpart.
4908
4909 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4910
4911 PR middle-end/68066
4912 * tree.c (build_truth_vector_type): Support BLK mode
4913 returned for boolean vector.
4914
4915 2015-10-23 Alan Hayward <alan.hayward@arm.com>
4916
4917 PR tree-optimization/65947
4918 * tree-vect-loop.c
4919 (vect_is_simple_reduction_1): Find condition reductions.
4920 (vect_model_reduction_cost): Add condition reduction costs.
4921 (get_initial_def_for_reduction): Add condition reduction initial var.
4922 (vect_create_epilog_for_reduction): Add condition reduction epilog.
4923 (vectorizable_reduction): Condition reduction support.
4924 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
4925 * doc/sourcebuild.texi (Vector-specific attributes): Document
4926 vect_max_reduc
4927
4928 2015-10-23 Richard Biener <rguenther@suse.de>
4929
4930 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
4931 and builtins.def.
4932
4933 2015-10-23 Richard Biener <rguenther@suse.de>
4934 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4935
4936 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
4937 into (A ^ B) - B to match.pd
4938 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
4939
4940 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
4941 New simplifier.
4942 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
4943 New simplifier.
4944 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
4945 New simplifier.
4946 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
4947 New simplifier.
4948 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
4949 INTEGER_CST@1)): New simplifier.
4950
4951 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
4952
4953 * builtins.c (integer_valued_real_p): Move to fold-const.c.
4954 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
4955 (fold_builtin_ceil, fold_builtin_round): Delete.
4956 (fold_builtin_1): Handle constant trunc, floor, ceil and round
4957 arguments here.
4958 * convert.c (convert_to_real): Remove narrowing of rounding
4959 functions.
4960 * fold-const.h (integer_valued_real_unary_p)
4961 (integer_valued_real_binary_p, integer_valued_real_call_p)
4962 (integer_valued_real_single_p, integer_valued_real_p): Declare.
4963 * fold-const.c (tree_single_nonnegative_warnv_p): Move
4964 name_registered_for_update_p check to SSA_NAME case statement.
4965 Don't call tree_simple_nonnegative_warnv_p for SSA names.
4966 (integer_valued_real_unary_p, integer_valued_real_binary_p)
4967 (integer_valued_real_call_p, integer_valued_real_single_p)
4968 (integer_valued_real_invalid_p): New functions.
4969 (integer_valued_real_p): Move from fold-const.c and rework
4970 to call the functions above. Handle SSA names.
4971 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
4972 * gimple-fold.c (gimple_assign_integer_valued_real_p)
4973 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
4974 (gimple_stmt_integer_valued_real_p): New functions.
4975 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
4976 Fold f(x)->x for the same f if x is known to be integer-valued.
4977 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
4978 the result. Canonicalize floor(x) as trunc(x) if x is
4979 nonnegative.
4980
4981 2015-10-23 Tom de Vries <tom@codesourcery.com>
4982
4983 * tree-ssa-structalias.c (intra_create_variable_infos): Use
4984 make_constraint_from.
4985
4986 2015-10-23 Tom de Vries <tom@codesourcery.com>
4987
4988 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
4989 setting of is_full_var in case of a single field.
4990
4991 2015-10-22 Martin Sebor <msebor@redhat.com>
4992
4993 PR driver/68043
4994 * config/i386/i386.opt: Add missing periods to the ends of sentences.
4995 * config/msp430/msp430.opt: Same.
4996
4997 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4998
4999 * doc/extend.exp (Global Register Variables): Rewrite.
5000
5001 2015-10-22 Jeff Law <law@redhat.com>
5002
5003 * genattrtab.c (main): If we do not have any annul-true or annul-false
5004 slots, then write out a dummy eligible_for_annul_true or
5005 eligible_for_annul_false as needed.
5006
5007 2015-10-22 Nick Clifton <nickc@redhat.com>
5008
5009 * config/msp430/msp430.opt: Add -msilicon-errata and
5010 -msilicon-errata-warn.
5011 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
5012 assembler.
5013 * doc/invoke.texi: Document new options.
5014
5015 2015-10-22 Richard Biener <rguenther@suse.de>
5016
5017 PR tree-optimization/58497
5018 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5019 (expand_vector_operations_1): Use it. Lower operations on
5020 all uniform vectors to scalar operations if the HW supports it.
5021
5022 2015-10-22 Richard Biener <rguenther@suse.de>
5023
5024 PR tree-optimization/19049
5025 PR tree-optimization/65962
5026 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
5027 to strided accesses if single-element interleaving doesn't work.
5028
5029 2015-10-22 Richard Biener <rguenther@suse.de>
5030
5031 PR middle-end/68046
5032 PR middle-end/61893
5033 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
5034 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
5035 (expand_unop): Likewise.
5036
5037 2015-10-22 Richard Biener <rguenther@suse.de>
5038
5039 * fold-const.c (fold_addr_of_array_ref_difference): Properly
5040 convert operands before folding a MINUS_EXPR.
5041 (fold_binary_loc): Move simplification of MINUS_EXPR on
5042 converted POINTER_PLUS_EXPRs ...
5043 * match.pd: ... here.
5044
5045 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
5046
5047 * builtins.c (fold_builtin_tan): Delete.
5048 (fold_builtin_1): Handle constant tan arguments here.
5049 * match.pd: Simplify (tan (atan x)) to x.
5050
5051 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
5052
5053 * builtins.c (fold_builtin_cproj): Delete.
5054 (fold_builtin_1): Handle constant arguments here.
5055 (build_complex_cproj): Move and rename to...
5056 * tree.c: (build_complex_inf): ...this.
5057 * tree.h (build_complex_inf): Declare.
5058 * match.pd: Fold cproj(x)->x if x has no infinity.
5059 Use build_complex_inf for existing cproj rules.
5060
5061 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5062
5063 PR target/68015
5064 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
5065 already have a comparison result.
5066
5067 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5068
5069 PR target/63304
5070 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
5071 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
5072 (aarch64_classify_address): Likewise.
5073 (aarch64_secondary_reload): Likewise.
5074 (aarch64_override_options_after_change_1): Adjust.
5075 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5076 Use aarch64_nopcrelative_literal_loads.
5077 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5078 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5079 Declare.
5080
5081 2015-10-21 Martin Sebor <msebor@redhat.com>
5082
5083 PR driver/68043
5084 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
5085 (print_filtered_help): Reference aliased option's name and encourage
5086 readers to use it in preference to the alias if the former is not
5087 documented. Mention when using an option is diagnosed.
5088 * gcc.c (display_help): End each sentence with a period.
5089
5090 * common.opt: End each sentence that describes an option with
5091 a period.
5092 * config/aarch64/aarch64.opt: Same.
5093 * config/alpha/alpha.opt: Same.
5094 * config/arc/arc.opt: Same.
5095 * config/arm/arm.opt: Same.
5096 * config/avr/avr.opt: Same.
5097 * config/bfin/bfin.opt: Same.
5098 * config/c6x/c6x.opt: Same.
5099 * config/cr16/cr16.opt: Same.
5100 * config/cris/cris.opt: Same.
5101 * config/cris/linux.opt: Same.
5102 * config/darwin.opt: Same.
5103 * config/epiphany/epiphany.opt: Same.
5104 * config/fr30/fr30.opt: Same.
5105 * config/frv/frv.opt: Same.
5106 * config/ft32/ft32.opt: Same.
5107 * config/g.opt: Same.
5108 * config/h8300/h8300.opt: Same.
5109 * config/i386/cygming.opt: Same.
5110 * config/i386/djgpp.opt: Same.
5111 * config/i386/i386.opt: Same.
5112 * config/i386/interix.opt: Same.
5113 * config/i386/mingw-w64.opt: Same.
5114 * config/i386/mingw.opt: Same.
5115 * config/ia64/ia64.opt: Same.
5116 * config/ia64/ilp32.opt: Same.
5117 * config/iq2000/iq2000.opt: Same.
5118 * config/linux.opt: Same.
5119 * config/lm32/lm32.opt: Same.
5120 * config/lynx.opt: Same.
5121 * config/m32c/m32c.opt: Same.
5122 * config/m32r/m32r.opt: Same.
5123 * config/m68k/ieee.opt: Same.
5124 * config/m68k/m68k.opt: Same.
5125 * config/mcore/mcore.opt: Same.
5126 * config/mep/mep.opt: Same.
5127 * config/microblaze/microblaze.opt: Same.
5128 * config/mips/mips.opt: Same.
5129 * config/mmix/mmix.opt: Same.
5130 * config/mn10300/mn10300.opt: Same.
5131 * config/moxie/moxie.opt: Same.
5132 * config/msp430/msp430.opt: Same.
5133 * config/nios2/elf.opt: Same.
5134 * config/nios2/nios2.opt: Same.
5135 * config/nvptx/nvptx.opt: Same.
5136 * config/pa/pa-hpux.opt: Same.
5137 * config/pa/pa-hpux1010.opt: Same.
5138 * config/pa/pa-hpux1111.opt: Same.
5139 * config/pa/pa-hpux1131.opt: Same.
5140 * config/pa/pa.opt: Same.
5141 * config/pa/pa64-hpux.opt: Same.
5142 * config/pdp11/pdp11.opt: Same.
5143 * config/rl78/rl78.opt: Same.
5144 * config/rs6000/476.opt: Same.
5145 * config/rs6000/aix64.opt: Same.
5146 * config/rs6000/darwin.opt: Same.
5147 * config/rs6000/linux64.opt: Same.
5148 * config/rs6000/rs6000.opt: Same.
5149 * config/rs6000/sysv4.opt: Same.
5150 * config/s390/s390.opt: Same.
5151 * config/s390/tpf.opt: Same.
5152 * config/sh/sh.opt: Same.
5153 * config/sol2.opt: Same.
5154 * config/sparc/long-double-switch.opt: Same.
5155 * config/sparc/sparc.opt: Same.
5156 * config/spu/spu.opt: Same.
5157 * config/stormy16/stormy16.opt: Same.
5158 * config/tilegx/tilegx.opt: Same.
5159 * config/tilepro/tilepro.opt: Same.
5160 * config/v850/v850.opt: Same.
5161 * config/vax/vax.opt: Same.
5162 * config/visium/visium.opt: Same.
5163 * config/vms/vms.opt: Same.
5164 * config/vxworks.opt: Same.
5165 * config/xtensa/xtensa.opt: Same.
5166
5167 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5168 Sebastian Pop <s.pop@samsung.com>
5169
5170 * graphite-scop-detection.c (parameter_index_in_region): Update call to
5171 invariant_in_sese_p_rec.
5172 * graphite-sese-to-poly.c (extract_affine): Same.
5173 * sese.c (invariant_in_sese_p_rec): Pass in an extra
5174 parameter has_vdefs.
5175 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5176 variable depends on virtual definitions in the current region.
5177 * sese.h (invariant_in_sese_p_rec): Update declaration.
5178
5179 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5180 Sebastian Pop <s.pop@samsung.com>
5181
5182 * graphite-scop-detection.c (build_scops): Do not handle scops
5183 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5184 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5185
5186 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
5187
5188 * config.in: Regenerate.
5189 * configure: Regenerate.
5190 * configure.ac (CHECKING_P): Define.
5191 * system.h: Use CHECKING_P.
5192
5193 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5194
5195 PR ipa/67056
5196 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5197 is negative we don't know the type.
5198 (check_stmt_for_type_change): Skip constructors of non-polymorphic
5199 types as those won't help devirutalization.
5200
5201 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5202
5203 * fold-const.c (operand_equal_p): Add code matching empty constructors.
5204
5205 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
5206
5207 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5208 comments.
5209 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5210 Add comments on sign of the result.
5211 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5212 Recurse on operand #1 instead of operand #0.
5213 <CEIL_MOD_EXPR>: Do not recurse.
5214 <ROUND_MOD_EXPR>: Likewise.
5215
5216 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5217
5218 * cfgrtl.c (pass_free_cfg::execute): Adjust.
5219 * final.c (dbr_sequence_length): Always define.
5220 (shorten_branches): Adjust.
5221 * genattr-common.c (main): Always define DELAY_SLOTS.
5222 * genattr.c (main): Unconditionally declare functions and define
5223 macros related to delay slots.
5224 * genattrtab.c (write_eligible_delay): Adjust.
5225 (main): Always write out delay slot functions.
5226 * opts.c (default_options_table): Adjust.
5227 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5228 (redirect_with_delay_list_safe_p): Likewise.
5229 (fill_simple_delay_slots): Likewise.
5230 (fill_slots_from_thread): Likewise.
5231 (make_return_insns): Likewise.
5232 (dbr_schedule): Likewise.
5233 (rest_of_handle_delay_slots): Likewise.
5234 (pass_delay_slots::gate): Likewise.
5235 * toplev.c (process_options): Likewise.
5236
5237 2015-10-21 Richard Henderson <rth@redhat.com>
5238
5239 * targhooks.c (default_addr_space_pointer_mode): Remove check
5240 for generic address space.
5241 (default_addr_space_address_mode): Likewise.
5242 (default_addr_space_valid_pointer_mode): Likewise.
5243 (default_addr_space_legitimate_address_p): Likewise.
5244 (default_addr_space_legitimize_address): Likewise.
5245 * target.def (addr_space.pointer_mode): Update documentation
5246 of default behavior.
5247 (addr_space.address_mode): Likewise.
5248 * tm.texi: Update.
5249
5250 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5251 address spaces.
5252
5253 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5254
5255 * builtins.c (fold_builtin_cabs): Delete.
5256 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5257 * match.pd: Add rules previously handled by fold_builtin_cabs.
5258
5259 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5260
5261 * fold-const.h (fold_strip_sign_ops): Delete.
5262 * fold-const.c (fold_strip_sign_ops): Likewise.
5263 (fold_unary_loc, fold_binary_loc): Remove calls to it.
5264 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5265 (fold_builtin_ccos): Delete.
5266 (fold_builtin_pow): Don't call fold_strip_sign_ops.
5267 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5268 Remove fndecl argument.
5269 (fold_builtin_1): Update calls accordingly. Handle constant
5270 cos, cosh, ccos and ccosh here.
5271
5272 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5273
5274 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5275 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5276 * common.opt (fssa-backprop): New option.
5277 * fold-const.h (negate_mathfn_p): Declare.
5278 * fold-const.c (negate_mathfn_p): Make public.
5279 * timevar.def (TV_TREE_BACKPROP): New.
5280 * tree-pass.h (make_pass_backprop): Declare.
5281 * passes.def (pass_backprop): Add.
5282 * gimple-ssa-backprop.c: New file.
5283
5284 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5285 Sebastian Pop <s.pop@samsung.com>
5286
5287 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5288 Do not call create_empty_if_region_on_edge when cond_expr is true.
5289 (translate_isl_ast_node_for): Check whether a guard has been generated.
5290
5291 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5292
5293 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5294 (operator=): Removed.
5295 (dr_info): Make alias_set number the last argument with default
5296 value of invalid_alias_set.
5297 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5298 of dr_info.
5299 (rewrite_reductions_out_of_ssa): Iterate only through the
5300 basic blocks which are inside region.
5301 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5302 * sese.h (struct sese_l): Removed assignment operator.
5303 (split_region_for_bb): Removed dead code.
5304
5305 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5306
5307 * graphite-poly.h (struct dr_info): Removed conversion constructor.
5308 (struct scop): Renamed scop::region to scop::scop_info
5309 (scop_set_region): Same.
5310 (SCOP_REGION): Removed
5311 (SCOP_CONTEXT): Removed.
5312 (POLY_SCOP_P): Removed.
5313 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5314 Rename scop->region to scop->scop_info.
5315 (add_parameters_to_ivs_params): Same.
5316 (graphite_regenerate_ast_isl): Same.
5317 * graphite-poly.c (new_scop): Same.
5318 (free_scop): Same.
5319 (print_scop_params): Same.
5320 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5321 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5322 (dot_all_scops_1): Rename scop->region to scop->scop_info.
5323 (scop_detection::nb_pbbs_in_loops): Same.
5324 (find_scop_parameters): Same.
5325 (try_generate_gimple_bb): Same.
5326 (gather_bbs::before_dom_children): Same.
5327 (gather_bbs::after_dom_children): Same.
5328 (build_scops): Same.
5329 * graphite-sese-to-poly.c (build_scop_scattering): Same.
5330 (extract_affine_chrec): Same.
5331 (extract_affine): Same.
5332 (set_scop_parameter_dim): Same.
5333 (build_loop_iteration_domains): Same.
5334 (create_pw_aff_from_tree): Same.
5335 (add_param_constraints): Same.
5336 (build_scop_iteration_domain): Same.
5337 (build_scop_drs): Same.
5338 (analyze_drs_in_stmts): Same.
5339 (insert_out_of_ssa_copy_on_edge): Same.
5340 (rewrite_close_phi_out_of_ssa):Same.
5341 (rewrite_reductions_out_of_ssa):Same.
5342 (handle_scalar_deps_crossing_scop_limits):Same.
5343 (rewrite_cross_bb_scalar_deps):Same.
5344 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5345 (build_poly_scop):Same.
5346 (build_alias_set): Use pointer to dr_info.
5347 * graphite.c (print_graphite_scop_statistics):
5348 (graphite_transform_loops):
5349 * sese.h (struct sese_l): Remove conversion constructor.
5350
5351 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5352
5353 PR middle-end/67966
5354 * tree.c (verify_type): Verify that TYPE_MODE match
5355 between TYPE_CANONICAL and type.
5356 * expr.c (store_expr_with_bounds): Revert my previous change.
5357 * expmed.c (store_bit_field_1): Revert prevoius change.
5358 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5359 to match for all types.
5360
5361 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
5362
5363 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5364 nesting.
5365
5366 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5367
5368 * doc/tm.texi: Regenerated.
5369 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5370 * stor-layout.c (layout_type): Use mode to get vector mask size.
5371 * target.def (get_mask_mode): New.
5372 * targhooks.c (default_get_mask_mode): New.
5373 * targhooks.h (default_get_mask_mode): New.
5374 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5375 for boolean vector.
5376 * tree.c (MAX_BOOL_CACHED_PREC): New.
5377 (nonstandard_boolean_type_cache): New.
5378 (build_nonstandard_boolean_type): New.
5379 (make_vector_type): Vector mask has no canonical type.
5380 (build_truth_vector_type): New.
5381 (build_same_sized_truth_vector_type): New.
5382 (truth_type_for): Support vector masks.
5383 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5384 (build_truth_vector_type): New.
5385 (build_same_sized_truth_vector_type): New.
5386 (build_nonstandard_boolean_type): New.
5387 * tree-cfg.c (verify_gimple_comparison) Require boolean
5388 vector type for vector comparison.
5389 (verify_gimple_assign_ternary): Likewise.
5390 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5391 condition operand.
5392 * tree-vect-stmts.c (vectorizable_condition): Use boolean
5393 vector type for vector comparison.
5394 * tree-vect-generic.c (elem_op_func): Add new operand to hold
5395 vector type.
5396 (do_unop): Adjust to modified function type.
5397 (do_binop): Likewise.
5398 (do_plus_minus): Likewise.
5399 (do_negate); Likewise.
5400 (expand_vector_piecewise): Likewise.
5401 (do_cond): Likewise.
5402 (do_compare): Use comparison instead of condition.
5403 (expand_vector_divmod): Use boolean vector type for comparison.
5404 (expand_vector_operations_1): Skip scalar mask operations.
5405
5406 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5407
5408 * omp-low.c (simd_clone_create): Set in_other_partition
5409 for created clones.
5410
5411 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5412
5413 * doc/extend.exp (Local Register Variables): Rewrite.
5414
5415 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5416
5417 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5418 and x*x in cases where the operands are sign ops. Extend these
5419 rules to handle copysign as a sign op (including for cos, cosh
5420 and pow, which already treated negate and abs as sign ops).
5421
5422 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
5423
5424 PR target/68018
5425 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5426 for 64-bit MS_ABI targets also when default incoming stack boundary
5427 is overriden.
5428
5429 2015-10-21 Richard Biener <rguenther@suse.de>
5430
5431 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5432 cond stmts, enhanced and split out from ...
5433 (vn_phi_eq): ... here.
5434
5435 2015-10-21 Richard Biener <rguenther@suse.de>
5436
5437 PR middle-end/68031
5438 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5439 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5440 (tree_single_nonnegative_warnv_p): ... here. For SSA names
5441 make sure they are not registered for update.
5442
5443 2015-10-21 Richard Biener <rguenther@suse.de>
5444
5445 PR tree-optimization/68026
5446 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5447 unsigned VARYING values.
5448
5449 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
5450
5451 * asan.c (asan_emit_stack_protection): Don't pass local stack to
5452 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5453 NULL and use local stack than.
5454 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5455 in addition to __asan_init.
5456 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5457 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5458 * asan.h (asan_intercepted_p): Handle new string builtins.
5459 * ubsan.c (ubsan_use_new_style_p): New function.
5460 (ubsan_instrument_float_cast): If location is unknown, assign
5461 input_location to loc. Propagate loc to ubsan_create_data if
5462 ubsan_use_new_style_p returned true.
5463
5464 2015-10-21 Jeff Law <law@redhat.com>
5465
5466 * Makefile.in (OBJS): Remove sched-vis.c
5467 * sched-vis.c: Removed. Code moved into...
5468 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
5469 * rtl.h: Remove prototypes for functions now living in print-rtl.c
5470 * print-rtl.h Add prototypes for new functions in print-rtl.c.
5471 * auto-inc-dec.c: Include print-rtl.h
5472 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5473 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5474
5475 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5476 ATTRIBUTE_UNUSED.
5477
5478 2015-10-21 Richard Biener <rguenther@suse.de>
5479 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5480
5481 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5482 to match.pd.
5483 Move (a * (1 << b)) is (a << b) to match.pd.
5484 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5485 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5486 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5487
5488 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5489 New simplifier.
5490 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5491 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5492 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5493 : New simplifier.
5494 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5495 New simplifier.
5496 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5497
5498 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
5499 Szabolcs Nagy <szabolcs.nagy@arm.com>
5500 Alan Modra <amodra@gmail.com>
5501
5502 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5503 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5504 (LINK_SPEC): Add %(link_secure_plt).
5505 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5506 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5507
5508 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
5509 Szabolcs Nagy <szabolcs.nagy@arm.com>
5510
5511 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5512 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5513
5514 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5515
5516 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5517 New function.
5518 (fusion_load_store): Use it.
5519 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5520 ldp and stp in VD modes.
5521 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5522 (store_pair<mode>, VD): Likewise.
5523
5524 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
5525
5526 PR rtl-optimization/67609
5527 * lra-splill.c (lra_final_code_change): Don't remove all
5528 sub-registers.
5529
5530 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5531
5532 * simplify-rtx.c (simplify_binary_operation): If either operand was
5533 a constant pool reference use them if all other simplifications failed.
5534
5535 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5536
5537 * config/aarch64/aarch64.md
5538 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5539 * config/aarch64/aarch64-simd.md
5540 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5541 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5542 (aarch64_fpconst_pow_of_2): New function.
5543 (aarch64_vec_fpconst_pow_of_2): Likewise.
5544 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5545 prototype.
5546 (aarch64_vec_fpconst_pow_of_2): Likewise.
5547 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5548 (aarch64_fp_vec_pow2): Likewise.
5549
5550 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
5551
5552 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5553 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
5554 * config/alpha/alpha.c (alpha_function_arg_advance): Update
5555 ALPHA_ARG_SIZE usage.
5556 (alpha_arg_partial_bytes): Ditto.
5557
5558 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5559
5560 PR target/66810
5561 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5562 error_mark_node decls.
5563
5564 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5565
5566 PR target/67963
5567 PR target/67985
5568 * common/config/i386/i386-common.c (ix86_handle_option): Remove
5569 OPT_miamcu handling.
5570 * config/i386/i386.c (PTA_NO_80387): New macro.
5571 (processor_alias_table): Add PTA_NO_80387 to lakemont.
5572 (ix86_option_override_internal): Update MASK_80387 from
5573 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
5574 SSE math only if 80387 is supported. Don't change
5575 MASK_FLOAT_RETURNS.
5576 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5577 80387 is supported.
5578 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5579 if TARGET_80387 is true and TARGET_IAMCU is false.
5580 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5581 is true and TARGET_IAMCU_P is false.
5582
5583 2015-10-20 Richard Biener <rguenther@suse.de>
5584
5585 PR tree-optimization/68017
5586 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5587
5588 2015-10-20 Martin Liska <mliska@suse.cz>
5589
5590 * cgraphclones.c (cgraph_node::create_virtual_clone):
5591 Verify cgraph_node.local.versionable instead of calling
5592 tree_versionable_function_p.
5593 * ipa-cp.c (determine_versionability): Save the information
5594 to ipa_node_params summary.
5595 (ipcp_versionable_function_p): Use it.
5596 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5597 (ipcp_generate_summary): Do not compute cgraph_node
5598 versionability.
5599 * ipa-inline-analysis.c (inline_generate_summary): Compute
5600 versionability for all cgraph nodes.
5601 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5602 ipa_node_params::versionability.
5603 * ipa-prop.h (struct ipa_node_params): Declare it.
5604
5605 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5606
5607 PR other/67868
5608 * varasm.c (assemble_variable): Move special vtv handling to..
5609 (handle_vtv_comdat_sections): .. here. New function.
5610 (output_object_block): Handle vtv sections.
5611
5612 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
5613
5614 PR target/66912
5615 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5616
5617 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
5618
5619 * doc/extend.texi: Update documentation WRT inline functions.
5620
5621 2015-10-20 Alan Modra <amodra@gmail.com>
5622
5623 PR go/66870
5624 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5625 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5626 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5627
5628 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
5629
5630 PR rtl-optimization/66790
5631 * df.h (DF_MIR): New macro.
5632 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5633 (DF_MIR_INFO_BB): New macro.
5634 (DF_MIR_IN, DF_MIR_OUT): New macros.
5635 (struct df_mir_bb_info): New.
5636 (df_mir): New macro.
5637 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5638 declarations.
5639 (df_mir_get_bb_info): New.
5640 * df-problems.c (struct df_mir_problem_data): New.
5641 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5642 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5643 df_mir_confluence_0, df_mir_confluence_n,
5644 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5645 df_mir_bottom_dump, df_mir_verify_solution_start,
5646 df_mir_verify_solution_end): New.
5647 (problem_MIR): New.
5648 (df_mir_add_problem, df_mir_simulate_one_insn): New.
5649 * timevar.def (TV_DF_MIR): New.
5650 * ree.c: Include bitmap.h
5651 (add_removable_extension): Add an INIT_REGS parameter. Use it
5652 to skip zero-extensions that may get an uninitialized register.
5653 (find_removable_extensions): Compute must-initialized registers
5654 using the MIR dataflow problem. Update the call to
5655 add_removable_extension.
5656 (find_and_remove_re): Call df_mir_add_problem.
5657
5658 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
5659
5660 * common/config/mn10300/mn10300-common.c
5661 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5662 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5663
5664 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
5665
5666 * doc/extend.texi (Explicit Register Variables): Simplify and
5667 avoid unnecessary and confusion abbreviations. Update cross
5668 references.
5669 doc/implement-c.tex: Update cross reference.
5670
5671 2015-10-19 Jeff Law <law@redhat.com>
5672
5673 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5674 that create irreducible loops unless the path elimiantes a multiway
5675 branch.
5676
5677 2015-10-19 Richard Biener <rguenther@suse.de>
5678
5679 PR tree-optimization/67975
5680 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5681 * tree-cfg.c (extract_true_false_controlled_edges): Split out
5682 core worker from ...
5683 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5684 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5685 instead of block number for PHIs with two or one args.
5686 (vn_phi_eq): Compare edge predicates of PHIs that are in different
5687 blocks.
5688
5689 2015-10-19 Richard Biener <rguenther@suse.de>
5690
5691 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5692 (gimple_stmt_nonnegative_warnv_p): Use it.
5693 * match.pd (CPROJ): New operator list.
5694 (cproj (complex ...)): Move simplifications from ...
5695 * builtins.c (fold_builtin_cproj): ... here.
5696
5697 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5698
5699 * config/i386/i386.c (ix86_expand_vector_move): Use
5700 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5701 alignment.
5702
5703 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5704
5705 * doc/invoke.texi: Replace @optindex with @opindex.
5706
5707 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5708
5709 PR target/67995
5710 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5711 arch= is set, clear all bits in x_ix86_isa_flags, except for
5712 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5713
5714 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
5715
5716 PR middle-end/68002
5717 * common.opt (fkeep-static-functions): New option.
5718 * doc/invoke.texi: Document it.
5719 * cgraphunit.c (cgraph_node::finalize_function): Use it.
5720
5721 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5722
5723 * sched-int.h (struct autopref_multipass_data_): Remove offset
5724 field. Add min_offset, max_offset, multi_mem_insn_p fields.
5725 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5726 (autopref_multipass_init): Use it. Handle PARALLEL sets.
5727 (autopref_rank_data): New function.
5728 (autopref_rank_for_schedule): Use it.
5729 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
5730
5731 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
5732
5733 PR other/65800
5734 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
5735
5736 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5737
5738 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
5739 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
5740 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
5741 (STANDARD_STARTFILE_PREFIX_1): New.
5742 (STANDARD_STARTFILE_PREFIX_2): New.
5743
5744 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5745
5746 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
5747 (darwin_driver_init): Note a version-min when provided on the c/l.
5748 * config/darwin.h (%darwin_minversion): Remove.
5749 * config/i386/darwin.h: Likewise.
5750 * config/rs6000/darwin.h: Likewise.
5751 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
5752 rather than an arbitrary constant.
5753
5754 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5755
5756 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
5757 PPC, detect conflicts between -arch and multilib settings. Detect
5758 and warn about conflicts between multiple -arch definitions.
5759
5760 2015-10-18 Iain Sandoe <iain@codesourcery.com>
5761
5762 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
5763
5764 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5765
5766 * lra-constraints.c (add_next_usage_insn): Change argument type
5767 from rtx to rtx_insn *.
5768
5769 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
5770
5771 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
5772 for Lakemont.
5773
5774 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
5775
5776 * config/tilepro/gen-mul-tables.cc: Adjust include files.
5777 * config/tilegx/mul-tables.c: Regenerate.
5778 * config/tilepro/mul-tables.c: Regenerate.
5779
5780 * config/tilegx/tilegx-c.c: Adjust include files.
5781 * config/tilegx/tilegx.c: Likewise.
5782 * config/tilepro/tilepro-c.c: Likewise.
5783 * config/tilepro/tilepro.c: Likewise.
5784 * config/aarch64/aarch64-builtins.c: Likewise.
5785 * config/aarch64/aarch64.c: Likewise.
5786 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5787 * config/alpha/alpha.c: Likewise.
5788 * config/arc/arc.c: Likewise.
5789 * config/arm/aarch-common.c: Likewise.
5790 * config/arm/arm-builtins.c: Likewise.
5791 * config/arm/arm-c.c: Likewise.
5792 * config/arm/arm.c: Likewise.
5793 * config/avr/avr-c.c: Likewise.
5794 * config/avr/avr-devices.c: Likewise.
5795 * config/avr/avr-log.c: Likewise.
5796 * config/avr/avr.c: Likewise.
5797 * config/bfin/bfin.c: Likewise.
5798 * config/c6x/c6x.c: Likewise.
5799 * config/cr16/cr16.c: Likewise.
5800 * config/cris/cris.c: Likewise.
5801 * config/darwin-c.c: Likewise.
5802 * config/darwin-driver.c: Likewise.
5803 * config/darwin.c: Likewise.
5804 * config/default-c.c: Likewise.
5805 * config/epiphany/epiphany.c: Likewise.
5806 * config/epiphany/mode-switch-use.c: Likewise.
5807 * config/epiphany/resolve-sw-modes.c: Likewise.
5808 * config/fr30/fr30.c: Likewise.
5809 * config/frv/frv.c: Likewise.
5810 * config/ft32/ft32.c: Likewise.
5811 * config/glibc-c.c: Likewise.
5812 * config/h8300/h8300.c: Likewise.
5813 * config/i386/host-cygwin.c: Likewise.
5814 * config/i386/host-mingw32.c: Likewise.
5815 * config/i386/i386-c.c: Likewise.
5816 * config/i386/i386.c: Likewise.
5817 * config/i386/msformat-c.c: Likewise.
5818 * config/i386/winnt-cxx.c: Likewise.
5819 * config/i386/winnt-stubs.c: Likewise.
5820 * config/i386/winnt.c: Likewise.
5821 * config/ia64/ia64-c.c: Likewise.
5822 * config/ia64/ia64.c: Likewise.
5823 * config/iq2000/iq2000.c: Likewise.
5824 * config/lm32/lm32.c: Likewise.
5825 * config/m32c/m32c-pragma.c: Likewise.
5826 * config/m32c/m32c.c: Likewise.
5827 * config/m32r/m32r.c: Likewise.
5828 * config/mcore/mcore.c: Likewise.
5829 * config/mep/mep-pragma.c: Likewise.
5830 * config/mep/mep.c: Likewise.
5831 * config/microblaze/microblaze-c.c: Likewise.
5832 * config/microblaze/microblaze.c: Likewise.
5833 * config/mips/mips-tables.opt
5834 * config/mips/mips.c: Likewise.
5835 * config/mmix/mmix.c: Likewise.
5836 * config/mn10300/mn10300.c: Likewise.
5837 * config/moxie/moxie.c: Likewise.
5838 * config/msp430/msp430-c.c: Likewise.
5839 * config/msp430/msp430.c: Likewise.
5840 * config/nds32/nds32-cost.c: Likewise.
5841 * config/nds32/nds32-fp-as-gp.c: Likewise.
5842 * config/nds32/nds32-intrinsic.c: Likewise.
5843 * config/nds32/nds32-isr.c: Likewise.
5844 * config/nds32/nds32-md-auxiliary.c: Likewise.
5845 * config/nds32/nds32-memory-manipulation.c: Likewise.
5846 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5847 * config/nds32/nds32-predicates.c: Likewise.
5848 * config/nds32/nds32.c: Likewise.
5849 * config/nios2/nios2.c: Likewise.
5850 * config/nvptx/mkoffload.c: Likewise.
5851 * config/nvptx/nvptx.c: Likewise.
5852 * config/pa/pa.c: Likewise.
5853 * config/pdp11/pdp11.c: Likewise.
5854 * config/rl78/rl78-c.c: Likewise.
5855 * config/rl78/rl78.c: Likewise.
5856 * config/rs6000/host-darwin.c: Likewise.
5857 * config/rs6000/rs6000-c.c: Likewise.
5858 * config/rs6000/rs6000-linux.c: Likewise.
5859 * config/rs6000/rs6000.c: Likewise.
5860 * config/rx/rx.c: Likewise.
5861 * config/s390/s390-c.c: Likewise.
5862 * config/s390/s390.c: Likewise.
5863 * config/sh/sh-c.c: Likewise.
5864 * config/sh/sh-mem.cc: Likewise.
5865 * config/sh/sh.c: Likewise.
5866 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5867 * config/sh/sh_treg_combine.cc: Likewise.
5868 * config/sol2-c.c: Likewise.
5869 * config/sol2-cxx.c: Likewise.
5870 * config/sol2-stubs.c: Likewise.
5871 * config/sol2.c: Likewise.
5872 * config/sparc/sparc-c.c: Likewise.
5873 * config/sparc/sparc.c: Likewise.
5874 * config/spu/spu-c.c: Likewise.
5875 * config/spu/spu.c: Likewise.
5876 * config/stormy16/stormy16.c: Likewise.
5877 * config/v850/v850-c.c: Likewise.
5878 * config/v850/v850.c: Likewise.
5879 * config/vax/vax.c: Likewise.
5880 * config/visium/visium.c: Likewise.
5881 * config/vms/vms-c.c: Likewise.
5882 * config/vms/vms.c: Likewise.
5883 * config/vxworks.c: Likewise.
5884 * config/winnt-c.c: Likewise.
5885 * config/xtensa/xtensa.c: Likewise.
5886
5887 2015-10-16 Christian Bruel <christian.bruel@st.com>
5888
5889 PR target/67745
5890 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
5891 (FUNCTION_BOUNDARY_P): New macro:
5892 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
5893 New hook.
5894 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
5895 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
5896 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
5897 * function.c (allocate_struct_function): Call
5898 relayout_function hook.
5899 * passes.c (rest_of_decl_compilation): Likewise.
5900
5901 2015-10-16 Christian Bruel <christian.bruel@st.com>
5902
5903 PR target/67745
5904 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
5905 * config/arm/arm.c (arm_option_override_internal): Call
5906 arm_override_options_after_change_1.
5907 (arm_override_options_after_change): New function.
5908 (arm_override_options_after_change_1): Likewise.
5909 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
5910
5911 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5912
5913 Revert:
5914 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5915 empty constructors.
5916
5917 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
5918
5919 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
5920 argument is an ADDR_EXPR.
5921
5922 2015-10-16 Richard Biener <rguenther@suse.de>
5923
5924 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
5925 and get rid of force_gimple_operand_gsi.
5926 (gimple_fold_builtin_memory_chk): Likewise.
5927 (gimple_fold_builtin_stxcpy_chk): Likewise.
5928 (rewrite_to_defined_overflow): Likewise.
5929 (gimple_convert_to_ptrofftype): New function.
5930 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
5931
5932 2015-10-16 Richard Biener <rguenther@suse.de>
5933
5934 * tree-nested.h (build_addr): Adjust prototype.
5935 * tree-nested.c (build_addr): Remove context argument and use
5936 mark_addressable.
5937 (get_static_chain): Adjust calls to build_addr.
5938 (convert_nl_goto_reference): Likewise.
5939 (convert_tramp_reference_op): Likewise.
5940 (finalize_nesting_tree_1): Likewise.
5941 * value-prof.c (gimple_ic): Likewise.
5942 * gimple-low.c (lower_builtin_setjmp): Likewise.
5943 * tree-parloops.c (take_address_of): Likewise.
5944 (create_call_for_reduction_1): Likewise.
5945 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
5946 (gimple_gen_ic_func_profiler): Likewise.
5947
5948 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5949
5950 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
5951 empty constructors.
5952
5953 2015-10-16 Michael Collison <michael.collison@linaro.org>
5954 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5955
5956 * match.pd ((x < y) && (x < z) -> x < min (y,z),
5957 (x > y) and (x > z) -> x > max (y,z))
5958
5959 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
5960 Szabolcs Nagy <szabolcs.nagy@arm.com>
5961
5962 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
5963 (DYNAMIC_LINKER): Renamed to ...
5964 (GLIBC_DYNAMIC_LINKER): This.
5965 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
5966
5967 2015-10-15 Marek Polacek <polacek@redhat.com>
5968
5969 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
5970 gimple_call_builtin instead of is_gimple_call.
5971
5972 2015-10-15 Richard Biener <rguenther@suse.de>
5973
5974 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
5975
5976 2015-10-15 Richard Biener <rguenther@suse.de>
5977
5978 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
5979 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
5980 * tree-vect-loop.c (get_initial_def_for_induction): Drop
5981 use of force_gimple_operand in favor of gimple_build.
5982 Use vect_get_new_ssa_name.
5983 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
5984 (vectorizable_mask_load_store): Likewise.
5985 (vectorizable_call): Likewise.
5986 (vectorizable_store): Likewise.
5987 (vectorizable_load): Likewise.
5988 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
5989
5990 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
5991
5992 PR tree-optimization/67945
5993 * tree-pass.h (PROP_gimple_opt_math): New property flag.
5994 * generic-match-head.c (canonicalize_math_p): New function.
5995 * gimple-match-head.c: Include tree-pass.h.
5996 (canonicalize_math_p): New function.
5997 * match.pd: Group math built-in rules into simplifications
5998 and canonicalizations. Guard the latter with canonicalize_math_p.
5999 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
6000 PROP_gimple_opt_math property.
6001
6002 2015-10-15 Marek Polacek <polacek@redhat.com>
6003
6004 PR tree-optimization/67953
6005 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
6006
6007 2015-10-15 Jiong Wang <jiong.wang@arm.com>
6008
6009 * config.gcc: Recognize "." in architecture base name for AArch64.
6010
6011 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
6012
6013 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
6014 ROUND_UP macro.
6015 * config/mips/mips.c (mips_setup_incoming_varargs): Use
6016 ROUND_DOWN to calculate off.
6017 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
6018 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
6019 rounded_size.
6020
6021 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
6022
6023 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
6024
6025 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
6026 Torvald Riegel <triegel@redhat.com>
6027
6028 PR target/67281
6029 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
6030 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6031 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
6032 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
6033 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
6034 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6035 trechkpt, treclaim, tsr, ttest): New define_expands.
6036 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6037 __TM_FENCE__ for htm.
6038 * doc/extend.texi: Update documentation for htm builtins.
6039
6040 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
6041
6042 PR target/67967
6043 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
6044 REG_CFA_EXPRESSION to aligned SSE stores.
6045
6046 2015-10-14 Jeff Law <law@redhat.com>
6047
6048 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
6049 num_threaded_edges for successful FSM threads too.
6050
6051 2015-10-14 Richard Biener <rguenther@suse.de>
6052
6053 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
6054 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
6055 (vect_get_vec_def_for_operand): Remove unused parameter.
6056 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
6057 (vect_create_epilog_for_reduction): Likewise.
6058 (vectorizable_reduction): Likewise.
6059 (vectorizable_live_operation): Likewise.
6060 * tree-vect-patterns.c (type_conversion_p): Likewise.
6061 (vect_recog_vector_vector_shift_pattern): Likewise.
6062 (check_bool_pattern): Likewise.
6063 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6064 (vect_analyze_slp_cost_1): Likewise.
6065 * tree-vect-stmts.c (process_use): Likewise.
6066 (vect_get_vec_def_for_operand): Do not handle reductions.
6067 (vect_get_vec_defs): Adjust.
6068 (vectorizable_mask_load_store): Likewise.
6069 (vectorizable_call): Likewise.
6070 (vectorizable_simd_clone_call): Likewise.
6071 (vect_get_loop_based_defs): Likewise.
6072 (vectorizable_conversion): Likewise.
6073 (vectorizable_assignment): Likewise.
6074 (vectorizable_shift): Likewise.
6075 (vectorizable_operation): Likewise.
6076 (vectorizable_store): Likewise.
6077 (vectorizable_load): Likewise.
6078 (vect_is_simple_cond): Likewise.
6079 (vectorizable_condition): Likewise.
6080 (vect_is_simple_use): Remove unused parameters.
6081 (vect_is_simple_use_1): Adjust and rename.
6082
6083 2015-10-14 Richard Biener <rguenther@suse.de>
6084
6085 PR tree-optimization/67915
6086 * match.pd: Handle comparisons of addresses of STRING_CSTs.
6087 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
6088 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
6089 stmt folding in favor of GIMPLE one.
6090
6091 2015-10-14 Marek Polacek <polacek@redhat.com>
6092
6093 PR tree-optimization/67815
6094 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
6095 (reassociate_bb): Call it.
6096
6097 2015-10-14 Richard Biener <rguenther@suse.de>
6098
6099 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6100 Reset info at start.
6101 (vect_analyze_group_access_1): Add debug print.
6102 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
6103 (vect_compute_single_scalar_iteration_cost): ... to this.
6104 (vect_analyze_loop_2): Adjust.
6105 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
6106 * tree-vectorizer.h: ... here.
6107 (add_stmt_info_to_vec): Remove.
6108 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
6109
6110 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
6111
6112 * targhooks.c (default_target_option_pragma_parse): Do not warn if
6113 called on behalf of "#pragma GCC pop_options".
6114
6115 2015-10-14 Tom de Vries <tom@codesourcery.com>
6116
6117 * cfganal.c (verify_no_unreachable_blocks): New function.
6118 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
6119 verify_no_unreachable_blocks.
6120 cfganal.h (verify_no_unreachable_blocks): Declare.
6121
6122 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
6123
6124 * common.opt: Add flag_checking.
6125 * system.h (CHECKING_P): Define.
6126
6127 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6128 Aldy Hernandez <aldyh@redhat.com>
6129 Ilya Verbin <ilya.verbin@intel.com>
6130
6131 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
6132 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
6133 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
6134 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6135 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6136 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6137 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6138 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6139 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6140 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6141 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6142 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6143 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6144 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6145 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6146 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6147 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6148 (struct cgraph_simd_clone_arg): Adjust comment.
6149 * coretypes.h (struct gomp_ordered): New forward decl.
6150 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6151 set critical clauses to it.
6152 (gimple_build_omp_ordered): Return gomp_ordered * instead of
6153 gimple *. Add CLAUSES argument, set ordered clauses to it.
6154 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6155 GIMPLE_OMP_ORDERED.
6156 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6157 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6158 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
6159 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6160 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
6161 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6162 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
6163 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6164 renumber
6165 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6166 (gomp_critical): Add clauses field.
6167 (gomp_ordered): New struct.
6168 (is_a_helper <gomp_ordered *>::test): New inline.
6169 (gimple_build_omp_critical): Add CLAUSES argument.
6170 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
6171 instead of gimple *.
6172 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6173 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6174 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6175 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6176 inline functions.
6177 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6178 (dump_gimple_omp_target): Handle enter data and exit data.
6179 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6180 (dump_gimple_omp_critical): Print clauses.
6181 (dump_gimple_omp_ordered): New function.
6182 (dump_gimple_omp_task): Handle taskloop.
6183 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6184 GIMPLE_OMP_ORDERED.
6185 * gimple-walk.c (walk_gimple_op): Walk clauses on
6186 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6187 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6188 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6189 (struct gimplify_omp_ctx): Add loop_iter_var,
6190 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6191 and target_firstprivatize_array_bases fields.
6192 (delete_omp_context): Release loop_iter_var.
6193 (gimplify_bind_expr): Handle ORT_NONE.
6194 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6195 ORT_COMBINED_TARGET.
6196 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6197 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6198 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
6199 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
6200 ctx->target_map_scalars_firstprivate.
6201 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
6202 data sharing clauses. For data sharing clause with VLA decl
6203 on omp target/target data don't add firstprivate for the pointer.
6204 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6205 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6206 the addition of ORT_COMBINED_TARGET.
6207 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
6208 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
6209 pointers as zero length array sections and
6210 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6211 data sharing.
6212 (omp_check_private): Handle omp_member_access_dummy_var vars.
6213 (find_decl_expr): New function.
6214 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
6215 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6216 Handle OMP_CLAUSE_GANG separately. Handle
6217 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6218 clauses. Diagnose linear clause on combined
6219 distribute {, parallel for} simd construct, unless it is the loop
6220 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6221 Handle map clauses with COMPONENT_REF. Initialize
6222 ctx->target_map_scalars_firstprivate,
6223 ctx->target_firstprivatize_array_bases and
6224 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
6225 linear clause even to target region if combined. Remove
6226 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6227 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
6228 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6229 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
6230 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6231 For linear clause on worksharing loop combined with parallel add
6232 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
6233 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
6234 omp_member_access_dummy_var vars. Add lastprivate clause to outer
6235 taskloop if needed.
6236 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6237 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6238 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6239 GOMP_MAP_POINTER.
6240 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
6241 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6242 in target body. Handle removal of struct mapping if struct is not
6243 seen in target body. Remove GOMP_MAP_STRUCT map clause on
6244 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
6245 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
6246 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6247 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6248 clause appear together. Handle
6249 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
6250 clause if it has map-type-modifier always. Handle
6251 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6252 clauses.
6253 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6254 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6255 callers.
6256 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
6257 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
6258 iterators in doacross loops.
6259 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6260 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
6261 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
6262 for the addition of ORT_COMBINED_TARGET.
6263 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6264 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
6265 and OMP_TARGET_EXIT_DATA.
6266 (gimplify_omp_ordered): New function.
6267 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6268 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
6269 Gimplify clauses on OMP_CRITICAL.
6270 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6271 expand_GOMP_SIMD_ORDERED_END): New functions.
6272 * internal-fn.def (GOMP_SIMD_ORDERED_START,
6273 GOMP_SIMD_ORDERED_END): New internal functions.
6274 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6275 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6276 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6277 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6278 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6279 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6280 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6281 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6282 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6283 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6284 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6285 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6286 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6287 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6288 adjust type.
6289 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6290 GOMP_target_data_41, adjust type.
6291 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6292 GOMP_target_update_41, adjust type.
6293 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6294 field.
6295 (struct omp_for_data): Add ordered and simd_schedule fields.
6296 (omp_member_access_dummy_var, unshare_and_remap_1,
6297 unshare_and_remap, is_taskloop_ctx): New functions.
6298 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6299 (extract_omp_for_data): Handle taskloops and doacross loops
6300 and simd schedule modifier.
6301 (omp_adjust_chunk_size): New function.
6302 (get_ws_args_for): Use it.
6303 (lookup_sfield): Change first argument to splay_tree_key,
6304 add overload with first argument tree.
6305 (maybe_lookup_field): Likewise.
6306 (use_pointer_for_field): Handle omp_member_access_dummy_var.
6307 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6308 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6309 (build_outer_var_ref): Add LASTPRIVATE argument, handle
6310 taskloops and omp_member_access_dummy_var vars.
6311 (build_sender_ref): Change first argument to splay_tree_key,
6312 add overload with first argument tree.
6313 (install_var_field): For mask & 8 use &DECL_UID as key instead
6314 of the tree itself.
6315 (fixup_child_record_type): Const qualify *.omp_data_i.
6316 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6317 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6318 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6319 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6320 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6321 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6322 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6323 kinds.
6324 (add_taskreg_looptemp_clauses): New function.
6325 (scan_omp_parallel): Use it.
6326 (scan_omp_task): Likewise.
6327 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6328 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6329 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6330 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
6331 sandwiched taskloop constructs. Type check
6332 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
6333 region. Diagnose depend(source) or depend(sink:...) on
6334 target constructs or task/taskloop.
6335 (handle_simd_reference): Use get_name.
6336 (lower_rec_input_clauses): Likewise. Ignore all
6337 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6338 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
6339 before passing it to omp_clause_{default,copy}_ctor. Handle
6340 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
6341 lastprivate_firstprivate flag for linear that needs copyin and
6342 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6343 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6344 on taskloop lookup decl in outer context. Pass true to
6345 build_outer_var_ref lastprivate argument. Handle
6346 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6347 outside of outer taskloop for.
6348 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6349 OMP_CLAUSE_DECL.
6350 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6351 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
6352 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
6353 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
6354 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6355 abstract origin. Handle omp_member_access_dummy_var vars.
6356 (expand_parallel_call): Use expand_omp_build_assign.
6357 (expand_task_call): Handle taskloop construct expansion. Add
6358 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
6359 integers. Add priority argument to GOMP_task* calls. Or in
6360 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6361 GOMP_task call.
6362 (expand_omp_build_assign): Add prototype. Add AFTER
6363 argument, if true emit statements after *GSI_P and continue linking.
6364 (expand_omp_taskreg): Adjust expand_task_call caller.
6365 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6366 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6367 zero_iter2_bb and first_zero_iter2 arguments, handle computation
6368 of counts even for ordered loops.
6369 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6370 (expand_omp_ordered_source, expand_omp_ordered_sink,
6371 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6372 functions.
6373 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
6374 clauses on worksharing loop. Handle DOACROSS loop expansion.
6375 (expand_omp_for_static_nochunk): Handle linear clauses on
6376 worksharing loop. Adjust expand_omp_for_init_counts
6377 callers.
6378 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
6379 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
6380 expand_omp_for_init_counts callers.
6381 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6382 functions.
6383 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6384 Handle doacross loops.
6385 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6386 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
6387 GOMP_target_{41,update_41,enter_exit_data} libcalls.
6388 (expand_omp): Don't expand ordered depend constructs here, record
6389 ord_stmt instead for later expand_omp_for_generic.
6390 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6391 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6392 clause as stand-alone directive.
6393 (lower_omp_ordered_clauses): New function.
6394 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6395 don't lower anything.
6396 (lower_omp_for_lastprivate): Use last _looptemp_ clause
6397 on taskloop for comparison.
6398 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
6399 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6400 expansion for linear adjustments.
6401 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6402 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6403 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
6404 to tree * pointing to the stmt's clauses.
6405 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6406 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6407 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6408 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6409 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6410 clauses. Always use short kind and 8-bit align shift.
6411 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6412 (struct lower_omp_regimplify_operands_data): New type.
6413 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6414 New functions.
6415 (lower_omp_1): Use lower_omp_regimplify_operands instead of
6416 gimple_regimplify_operands.
6417 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6418 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6419 clause as stand-alone directive.
6420 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6421 (simd_clone_mangle): Mangle the various linear kinds
6422 per the new ABI.
6423 (simd_clone_adjust_argument_types): Handle
6424 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6425 (simd_clone_init_simd_arrays): Don't do anything for uval.
6426 (simd_clone_adjust): Handle
6427 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6428 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6429 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6430 * omp-low.h (omp_member_access_dummy_var): New prototype.
6431 * passes.def (pass_simduid_cleanup): Schedule another copy of the
6432 pass after all optimizations.
6433 * tree.c (omp_clause_code_name): Add entries for
6434 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6435 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6436 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
6437 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6438 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6439 OMP_CLAUSE_REDUCTION 5 arguments. Handle
6440 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6441 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6442 clauses.
6443 * tree-core.h (enum omp_clause_linear_kind): New.
6444 (struct tree_omp_clause): Change type of map_kind
6445 from unsigned char to unsigned int. Add subcode.if_modifier
6446 and subcode.linear_kind fields.
6447 (enum omp_clause_code): Add
6448 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6449 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6450 (OMP_CLAUSE_REDUCTION): Document
6451 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6452 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6453 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6454 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
6455 operand.
6456 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
6457 operand.
6458 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6459 codes.
6460 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6461 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6462 char.
6463 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6464 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6465 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6466 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6467 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6468 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6469 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6470 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6471 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6472 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6473 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6474 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6475 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6476 * tree-inline.c (remap_gimple_stmt): Handle clauses on
6477 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
6478 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6479 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6480 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6481 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6482 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6483 (convert_local_omp_clauses): Likewise.
6484 * tree-pretty-print.c (dump_omp_clause): Handle
6485 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6486 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6487 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6488 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6489 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
6490 GOMP_MAP_FORCE_DEALLOC. Handle
6491 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6492 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6493 and clauses on OMP_ORDERED and OMP_CRITICAL.
6494 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6495 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6496 (vectorize_loops): Adjust comments.
6497 (pass_simduid_cleanup::execute): Likewise.
6498 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6499 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6500 * wide-int.h (wi::gcd): New.
6501
6502 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6503
6504 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6505 (ix86_function_arg_advance): Ditto.
6506 (ix86_function_arg): Ditto.
6507 (ix86_gimplify_va_arg): Ditto.
6508 (ix86_class_max_nregs): Ditto.
6509 (inline_memory_move_cost): Ditto.
6510 (ix86_set_reg_reg_cost): Ditto.
6511 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6512
6513 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
6514
6515 PR middle-end/67912
6516 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6517
6518 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6519
6520 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6521 ROUND_UP macro and UNITS_PER_WORD * 2.
6522 * config/sparc/sparc.c (sparc_compute_frame_size):
6523 Use ROUND_UP and ROUND_DOWN macros where applicable.
6524 (function_arg_record_value, function_arg_record_value_1)
6525 (function_arg_record_value_1): Ditto.
6526 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6527 alignment to double-word.
6528 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6529 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6530 rounded_size.
6531
6532 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
6533
6534 * rtl.h (print_insn): Fix prototype.
6535
6536 2015-10-13 Tom de Vries <tom@codesourcery.com>
6537
6538 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6539 -1. Add assert that returned entry matches phi argument.
6540 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6541 free_stmt_vec_info_vec ...
6542 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
6543 with -1.
6544
6545 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
6546
6547 PR tree-optimization/67909, 67947
6548 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6549 really skip the inner loop.
6550
6551 2015-10-13 Jeff Law <law@redhat.com>
6552
6553 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6554 Allow single block jump threading paths.
6555
6556 2015-10-13 Tom de Vries <tom@codesourcery.com>
6557
6558 PR tree-optimization/67476
6559 * doc/invoke.texi (@item parloops-schedule): New item.
6560 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6561 * tree-parloops.c: Include params-enum.h.
6562 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6563
6564 2015-10-13 Tom de Vries <tom@codesourcery.com>
6565
6566 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6567 * params-enum.h: New file.
6568 * opts.c (handle_param): Handle case that param arg is a string.
6569 * params-list.h: Handle DEFPARAMENUM5 in params.def.
6570 * params.c (find_param): New function, factored out of ...
6571 (set_param_value): ... here.
6572 (param_string_value_p): New function.
6573 * params.h (struct param_info): Add value_names field.
6574 (find_param, param_string_value_p): Declare.
6575
6576 2015-10-13 Tom de Vries <tom@codesourcery.com>
6577
6578 PR tree-optimization/67476
6579 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6580
6581 2015-10-13 Richard Biener <rguenther@suse.de>
6582
6583 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6584 the data dependence vector.
6585 (vect_peeling_hash_insert): Get the peeling hash table as argument.
6586 (vect_peeling_hash_get_lowest_cost): Likewise.
6587 (vect_enhance_data_refs_alignment): Adjust.
6588 (struct _vect_peel_info, struct _vect_peel_extended_info,
6589 struct peel_info_hasher): Move from ...
6590 * tree-vectorizer.h: ... here.
6591 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6592 (LOOP_VINFO_PEELING_HTAB): Likewise.
6593 (struct _loop_vec_info): Remove min_profitable_iters and
6594 peeling_htab members.
6595 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6596 here.
6597 (destroy_loop_vec_info): Adjust.
6598 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6599 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6600 to estimate alias versioning cost.
6601 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6602
6603 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
6604
6605 * real.h (real_isinteger): Declare.
6606 * real.c (real_isinteger): New function.
6607 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6608 if y is an even integer.
6609
6610 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6611
6612 revert:
6613 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6614 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6615 counts when these are more informative.
6616
6617 2015-10-12 Jeff Law <law@redhat.com>
6618
6619 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6620 (fsm_find_control_stmt_paths): Change name of first argument to
6621 more accurately relfect what it really is. Handle simplification
6622 of GIMPLE_COND after finding a thread path for NAME.
6623 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6624 nontrivial conditions to be handled by FSM threader.
6625 (thread_through_normal_block): Extract the name to looup via
6626 FSM threader from COND_EXPR.
6627
6628 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6629 restriction that traced SSA_NAME is a user variable.
6630
6631 2015-10-12 Tom de Vries <tom@codesourcery.com>
6632
6633 PR tree-optimization/67476
6634 * omp-low.c (expand_omp_for_generic): Add missing phis.
6635
6636 2015-10-12 Tom de Vries <tom@codesourcery.com>
6637
6638 PR tree-optimization/67476
6639 * omp-low.c (expand_omp_for_generic): Handle simple latch.
6640
6641 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
6642
6643 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6644 tables: add tbl3 and tbx4.
6645 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6646 (aarch64_tbx4v8qi): New.
6647 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6648 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6649 Rewrite using builtin functions.
6650 * config/aarch64/iterators.md (UNSPEC_TBX): New.
6651
6652 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6653
6654 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6655 ROUND_UP macro.
6656 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6657 Use ROUND_UP and ROUND_DOWN macros where applicable.
6658 (rs6000_darwin64_record_arg_flush): Ditto.
6659 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6660 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6661 rounded_size.
6662
6663 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6664
6665 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6666 (AARCH64_ROUND_DOWN): Ditto.
6667 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6668
6669 2015-10-12 Richard Biener <rguenther@suse.de>
6670
6671 PR ipa/67783
6672 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6673 code that analyzes IVs on each stmt but in a cheaper way avoiding
6674 quadratic behavior.
6675
6676 2015-10-12 Nick Clifton <nickc@redhat.com>
6677
6678 * config/msp430/msp430.c (msp430_mcu_names): Rename to
6679 msp430_mcu_data, add fields for ISA and hardware multiply
6680 support. Import latest data from the devices.csv file.
6681 (msp430_override_option): Use the data from the new array.
6682 (msp430_use_f5_series_hwmult): Likewise.
6683 (use_32bit_hwmult): Likewise.
6684 (msp430_no_hwmult): Likewise.
6685 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6686 MCU names.
6687 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6688 not recognised then no hardware multiply support is assumed and
6689 that only the MSP430 ISA is allowed.
6690
6691 2015-10-12 Richard Biener <rguenther@suse.de>
6692
6693 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6694 related code ...
6695 (vect_analyze_loop_2): ... here.
6696
6697 2015-10-11 Jason Merrill <jason@redhat.com>
6698
6699 PR c++/67557
6700 * expr.c (store_field): Call store_constructor directly when
6701 storing a CONSTRUCTOR into a target smaller than its type.
6702 Guard against unsafe bitwise copy.
6703
6704 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6705
6706 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6707 counts when these are more informative.
6708
6709 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6710
6711 * tree-profile.c (tree_profiling): Do not clear
6712 pure/const when not instrumenting.
6713 (pass tree_profile): Add dump of symtab.
6714
6715 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6716
6717 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6718 addresses.
6719 (fold_addr_of_array_ref_difference): Likewise.
6720
6721 2015-10-11 Jeff Law <law@redhat.com>
6722
6723 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6724 tree-ssa-threadbackward.c.
6725 (fsm_find_control_statement_thread_paths): Likewise.
6726 (thread_through_normal_block): Break out FSM bits and move them
6727 into a new function in tree-ssa-threadbackward.c. Call new function
6728 instead.
6729 Minimize header file usage.
6730 * tree-ssa-threadbackward.h: New file.
6731 * tree-ssa-threadbackward.c: Likewise.
6732 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
6733
6734 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
6735
6736 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
6737
6738 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
6739
6740 PR rtl-optimization/67864
6741 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
6742 fallthrough edges for conditional jumps. Don't sort candidate
6743 edges if not optimizing for speed.
6744
6745 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6746
6747 * defaults.h (REVERSE_CONDITION): New default definition.
6748 * jump.c (reversed_comparison_code_parts): Adjust.
6749
6750 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6751
6752 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
6753 check HARD_FRAME_POINTER_IS_ARG_POINTER.
6754
6755 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6756
6757 * defaults.h (FRAME_ADDR_RTX): New default definition.
6758 * builtins.c (expand_builtin_return_addr): Adjust.
6759
6760 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6761
6762 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
6763 * builtins.c (expand_builtin_return_addr): Adjust.
6764
6765 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6766
6767 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
6768 * builtins.c (expand_builtin_return_addr): Adjust.
6769 * doc/tm.texi: Likewise.
6770 * doc/tm.texi.in: Likewise.
6771 * except.c (expand_builtin_unwind_init): Likewise.
6772
6773 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6774
6775 * builtins.c (expand_builtin_return_addr): Adjust.
6776 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
6777
6778 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6779
6780 * tree.c (type_with_interoperable_signedness): New.
6781 (gimple_canonical_types_compatible_p): Use it.
6782 * tree.h (type_with_interoperable_signedness): Declare
6783
6784 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
6785
6786 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
6787 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
6788 when OEP_ADDRESS_OF is se.
6789
6790 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6791 Sebastian Pop <s.pop@samsung.com>
6792
6793 * graphite-dependences.c (scop_get_dependences): Add dump of the
6794 data dependence graph.
6795 * graphite-poly.c (print_isl_union_map): New.
6796 (debug_isl_union_map): New.
6797 * graphite-poly.h (print_isl_union_map): Declare.
6798 (debug_isl_union_map): Declare.
6799
6800 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
6801 Sebastian Pop <s.pop@samsung.com>
6802
6803 * graphite-poly.c (print_iteration_domain): Remove verbosity.
6804 Remove OpenScop formatting.
6805 (print_iteration_domains): Same.
6806 (debug_iteration_domain): Same.
6807 (debug_iteration_domains): Same.
6808 (print_pdr): Same.
6809 (debug_pdr): Same.
6810 (dump_gbb_cases): Same.
6811 (dump_gbb_conditions): Same.
6812 (print_pdrs): Same.
6813 (debug_pdrs): Same.
6814 (print_pbb_body): Same.
6815 (print_pbb): Same.
6816 (print_scop_params): Same.
6817 (print_scop_context): Same.
6818 (print_scop): Same.
6819 (debug_pbb_domain): Same.
6820 (debug_pbb): Same.
6821 (debug_scop_context): Same.
6822 (debug_scop): Same.
6823 (debug_scop_params): Same.
6824 * graphite-poly.h: Same.
6825 * graphite.c (graphite_transform_loops): Same.
6826
6827 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6828
6829 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
6830 call that isn't needed.
6831
6832 2015-10-09 Jeff Law <law@redhat.com>
6833
6834 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
6835 rather than moving each name to the freelist individually.
6836
6837 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
6838
6839 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
6840 * frame-header-opt.c: New file.
6841 * config/mips/mips-proto.h (mips_register_frame_header_opt):
6842 Add prototype.
6843 * config/mips/mips.c (mips_compute_frame_info): Check
6844 optimize_call_stack flag.
6845 (mips_option_override): Register new frame_header_opt pass.
6846 (mips_frame_info, mips_int_mask, mips_shadow_set,
6847 machine_function): Move these types to...
6848 * config/mips/mips.h: here.
6849 (machine_function): Add does_not_use_frame_header and
6850 optimize_call_stack fields.
6851 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
6852 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
6853 Document new flags.
6854 * config/mips/mips.opt (mframe-header-opt): Add new option.
6855
6856 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
6857
6858 * config/i386/i386.c
6859 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
6860 ROUND_DOWN where applicable.
6861
6862 2015-10-09 Jeff Law <law@redhat.com>
6863
6864 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
6865 correct statement.
6866
6867 2015-10-09 Renlin Li <renlin.li@arm.com>
6868
6869 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
6870 operands[0] and operands[2].
6871 (neon_vtrn<mode>_insn): Likewise.
6872 (neon_vzip<mode>_insn): Likewise.
6873
6874 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
6875
6876 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
6877 ((X & C2) << C1): Expand to...
6878 (X {&,^,|} C2 << C1): ...This.
6879 ((X & C2) >> C1): Expand to...
6880 (X {&,^,|} C2 >> C1): ...This.
6881
6882 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
6883
6884 PR target/67895
6885 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
6886 Adjust embedded rounding/SAE specifier position.
6887 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
6888 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
6889 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
6890 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
6891 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6892 Likewise.
6893 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
6894
6895 2015-10-09 Martin Jambor <mjambor@suse.cz>
6896
6897 tree-optimization/67794
6898 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
6899 between types of state,ents but accept original definitions as a
6900 parameter.
6901 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
6902 iterate over definitions.
6903
6904 2015-10-09 James Norris <jnorris@codesourcery.com>
6905
6906 * config/rs6000/rs6000.c (rs6000_offload_options): New.
6907 (TARGET_OFFLOAD_OPTIONS): New.
6908
6909 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
6910
6911 PR middle-end/67891
6912 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
6913
6914 PR middle-end/67766
6915 * function.c (expand_function_end): Move return value
6916 promotion past the handling of PARALLELs and CONCATs.
6917
6918 PR rtl-optimization/67828
6919 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
6920 (tree_may_unswitch_on): Don't unswitch on expressions
6921 involving undefined values.
6922
6923 2015-10-09 Richard Biener <rguenther@suse.de>
6924
6925 * genmatch.c (print_operand): Fix formatting.
6926 (dt_node::append_simplify): Warn for multiple simplifiers
6927 that match the same pattern.
6928 * match.pd (log (exp @0)): Remove duplicates.
6929
6930 2015-10-09 Richard Biener <rguenth@suse.de>
6931
6932 PR target/67366
6933 * gimple-fold.c (optabs-query.h): Include
6934 (gimple_fold_builtin_memory_op): Allow unaligned stores
6935 when movmisalign_optabs are available.
6936
6937 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6938
6939 PR target/67366
6940 * config/arm/arm.md (movmisalign<mode>): New.
6941 * config/arm/iterators.md (HSI): New.
6942
6943 2015-10-09 Richard Biener <rguenther@suse.de>
6944
6945 PR tree-optimization/67891
6946 * gimple-match.h (gimple_simplified_result_is_gimple_val):
6947 New helper.
6948 (gimple_resimplify1): Declare.
6949 (gimple_resimplify2): Likewise.
6950 (gimple_resimplify3): Likewise.
6951 * gimple-match-head.c (gimple_resimplify1): Export.
6952 (gimple_resimplify2): Likewise.
6953 (gimple_resimplify3): Likewise.
6954 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
6955 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6956 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
6957 to avoid creating stmts without VN info.
6958
6959 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
6960
6961 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
6962 of availability.
6963
6964 2015-10-08 Jeff Law <law@redhat.com>
6965
6966 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
6967 and release_ssa_name in two places.
6968 (gimple_stringop_fixed_value): Similarly.
6969
6970 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
6971 release_defs.
6972
6973 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
6974 unlink_stmt_vdef and release_ssa_name_fn.
6975
6976 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
6977 release_defs.
6978
6979 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
6980
6981 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
6982 SSE register save area to 16 bytes only if the incoming stack
6983 boundary is no less than 16 bytes.
6984
6985 2015-10-08 Jeff Law <law@redhat.com>
6986
6987 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
6988 release_ssa_name. Fix typo in comment.
6989
6990 2015-10-08 Nathan Sidwell <nathan@acm.org>
6991
6992 * config/nvptx/nvptx.h (struct machine_function): Add comment.
6993 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
6994 may return pointer as well as in memory.
6995 (nvptx_output_return): Likewise.
6996
6997 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6998
6999 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
7000 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7001 * match.pd: Add rules previously handled by fold_builtin_sqrt
7002 and fold_builtin_cbrt.
7003
7004 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
7005
7006 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
7007 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
7008 * fold-const.h (tree_unary_nonnegative_warnv_p)
7009 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7010 (tree_expr_nonnegative_warnv_p): Add depth parameters.
7011 * fold-const.c: Include gimple-fold.h and params.h.
7012 (tree_ssa_name_nonnegative_warnv_p): New function.
7013 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
7014 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7015 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
7016 Add a depth parameter and increment it for recursive calls to
7017 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
7018 to handle SSA names.
7019 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
7020 (gimple_stmt_nonnegative_warnv_p): Declare.
7021 * tree-vrp.c (remove_range_assertions): Remove assert that condition
7022 cannot be proven false.
7023 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
7024 (gimple_stmt_nonnegative_warnv_p): Move to...
7025 * gimple-fold.c: ...here. Add depth parameters and pass them
7026 down to the tree routines. Accept statements that aren't
7027 assignments or calls but just return false for them.
7028 (gimple_val_nonnegative_real_p): Delete.
7029 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
7030 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
7031 Check HONOR_NANs first.
7032
7033 2015-10-08 Martin Jambor <mjambor@suse.cz>
7034
7035 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
7036 unnecessary MIN.
7037
7038 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7039
7040 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
7041 in the tail of outer-loop.
7042
7043 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
7044
7045 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
7046 return UI_NONE.
7047
7048 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7049
7050 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
7051 "cfghooks.h", add prototypes for introduced new functions.
7052 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
7053 checks on ability of loop unswitching to tree_unswitch_single_loop;
7054 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
7055 on innermost loop check.
7056 (tree_unswitch_single_loop): Add all required checks on ability of
7057 loop unswitching under zero recursive level guard.
7058 (tree_unswitch_outer_loop): New function.
7059 (find_loop_guard): Likewise.
7060 (empty_bb_without_guard_p): Likewise.
7061 (used_outside_loop_p): Likewise.
7062 (get_vop_from_header): Likewise.
7063 (hoist_guard): Likewise.
7064 (check_exit_phi): Likewise.
7065
7066 2015-10-08 Marek Polacek <polacek@redhat.com>
7067
7068 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
7069 ops element.
7070
7071 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7072
7073 PR c/65345
7074 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
7075 create_tmp_var_raw instead of create_tmp_var.
7076
7077 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
7078
7079 * expr.c (store_expr_with_bounds): Handle aggregate moves from
7080 BLKmode.
7081 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
7082 to define gimple type system; compare aggregates only by size.
7083
7084 2015-10-07 Jeff Law <law@redhat.com>
7085
7086 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
7087 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
7088 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
7089 unnecessarily.
7090
7091 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7092 Sebastian Pop <s.pop@samsung.com>
7093
7094 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
7095 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
7096 (generate_isl_schedule): Same.
7097 * graphite-optimize-isl.c (scop_get_domains): Same.
7098 (apply_schedule_map_to_scop): Same.
7099 * graphite-poly.c (print_iteration_domains): Same.
7100 (remove_gbbs_in_scop): Same.
7101 (new_scop): Same.
7102 (free_scop): Same.
7103 (print_scop): Same.
7104 * graphite-poly.h (struct scop): Rename bbs to pbbs.
7105 (SCOP_BBS): Remove.
7106 * graphite-scop-detection.c (compare_bb_depths): Remove.
7107 (graphite_sort_dominated_info): Remove.
7108 (try_generate_gimple_bb): Move out of scop_detection.
7109 (all_non_dominated_preds_marked_p): Remove.
7110 (build_scop_bbs_1): Remove.
7111 (build_scop_bbs): Remove.
7112 (nb_pbbs_in_loops): Do not use SCOP_BBS.
7113 (find_scop_parameters): Same.
7114 (sese_dom_walker): Rename gather_bbs.
7115 (before_dom_children): Call try_generate_gimple_bb and collect gbb
7116 and pbb.
7117 (build_scops): Call gather_bbs.
7118 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
7119 (add_conditions_to_constraints): Same.
7120 (build_scop_iteration_domain): Same.
7121 (build_scop_drs): Same.
7122 (new_pbb_from_pbb): Same.
7123 * sese.c (new_sese_info): Create bbs.
7124 * sese.h (struct sese_info_t): Add bbs.
7125
7126 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
7127
7128 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
7129 encoding in 64-bit mode.
7130
7131 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
7132
7133 PR target/66697
7134 * config/i386/i386.c (ix86_option_override_internal): Always use
7135 8-byte minimum stack boundary in 64-bit mode.
7136 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7137 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7138 Add a REG_CFA_EXPRESSION note if needed.
7139 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7140 (ix86_handle_force_align_arg_pointer_attribute): New.
7141 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7142 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7143 with ix86_handle_force_align_arg_pointer_attribute.
7144 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7145
7146 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7147 Sebastian Pop <s.pop@samsung.com>
7148
7149 * graphite-scop-detection.c (parameter_index_in_region): Remove
7150 use of SESE_ADD_PARAMS.
7151 (find_scop_parameters): Same.
7152 * sese.c (new_sese_info): Same.
7153 * sese.h (struct sese_info_t): Remove add_params.
7154 (SESE_ADD_PARAMS): Remove.
7155
7156 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7157 Sebastian Pop <s.pop@samsung.com>
7158
7159 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7160 an sese_info_p.
7161 (copy_def): Same.
7162 (copy_internal_parameters): Same.
7163 (translate_isl_ast_to_gimple): Use an sese_l.
7164 (build_iv_mapping): Same.
7165 * graphite-poly.c (new_sese): Rename new_sese_info.
7166 (free_sese): Rename free_sese_info.
7167 * graphite-poly.h (struct scop): Use an sese_info_p.
7168 (scop_set_region): Same.
7169 * graphite-scop-detection.c (struct sese_l): Moved...
7170 (get_entry_bb): Moved...
7171 (get_exit_bb): Moved...
7172 (parameter_index_in_region_1): Use an sese_info_p.
7173 (parameter_index_in_region): Same.
7174 (scan_tree_for_params): Same.
7175 (find_params_in_bb): Same.
7176 (sese_dom_walker): Use an sese_l.
7177 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7178 (reduction_phi_p): Same.
7179 (parameter_index_in_region_1): Use an sese_info_p.
7180 (propagate_expr_outside_region): Use an sese_l.
7181 * graphite.c: Replace uses of SCOP_REGION.
7182 * sese.c (sese_record_loop): Use an sese_info_p.
7183 (build_sese_loop_nests): Same.
7184 (sese_build_liveouts_use): Same.
7185 (sese_build_liveouts_bb): Same.
7186 (sese_build_liveouts_bb): Same.
7187 (sese_bad_liveouts_use): Same.
7188 (sese_reset_debug_liveouts_bb): Same.
7189 (sese_build_liveouts): Same.
7190 (new_sese): Renamed new_sese_info.
7191 (free_sese): Renamed free_sese_info.
7192 (set_rename): Use an sese_info_p.
7193 (graphite_copy_stmts_from_block): Same.
7194 (copy_bb_and_scalar_dependences): Same.
7195 (outermost_loop_in_sese_1): Use an sese_l.
7196 (outermost_loop_in_sese): Same.
7197 (if_region_set_false_region): Use an sese_info_p.
7198 (move_sese_in_condition): Same.
7199 (scalar_evolution_in_region): Use an sese_l.
7200 * sese.h (struct sese_l): ... here.
7201 (SESE_ENTRY): Remove.
7202 (SESE_ENTRY_BB): Remove.
7203 (SESE_EXIT): Remove.
7204 (SESE_EXIT_BB): Remove.
7205 (sese_contains_loop): Use an sese_info_p.
7206 (sese_nb_params): Same.
7207 (bb_in_sese_p): Use an sese_l.
7208 (stmt_in_sese_p): Same.
7209 (defined_in_sese_p): Same.
7210 (loop_in_sese_p): Same.
7211 (sese_loop_depth): Same.
7212 (struct ifsese_s): Use an sese_info_p.
7213 (gbb_loop_at_index): Use an sese_l.
7214 (nb_common_loops): Same.
7215 (scev_analyzable_p): Same.
7216
7217 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7218
7219 * config/i386/i386.c (ix86_conditional_register_usage): Use
7220 CALL_USED_REGISTERS_MASK.
7221 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7222
7223 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7224
7225 PR bootstrap/67385
7226 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7227 * configure: Regenerated.
7228
7229 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7230
7231 PR target/67850
7232 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7233 (ix86_set_current_function): This.
7234 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7235
7236 2015-10-07 Richard Biener <rguenther@suse.de>
7237
7238 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7239 (vinfo_for_stmt): Adjust.
7240 (set_vinfo_for_stmt): Likewise.
7241 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7242 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7243 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7244 of inner loop.
7245 (vect_analyze_loop_1): Remove.
7246 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7247 inner loop when vectorizing an outer loop by splitting out from ...
7248 (vect_analyze_loop_form): ... here.
7249
7250 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7251
7252 PR c/65345
7253 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7254 Use create_tmp_var_raw instead of create_tmp_var.
7255
7256 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
7257
7258 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7259 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7260 * real.c (CACHED_FRACTION): New helper macro.
7261 (dconst_third_ptr): Use it.
7262 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7263 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7264 dconst_sixth.
7265 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7266
7267 2015-10-06 Jeff Law <law@redhat.com>
7268
7269 PR tree-optimization/67816
7270 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7271 from remove_jump_threads_starting_at. Accept an edge rather than
7272 a basic block.
7273 * tree-ssa-threadupdate.c (removed_edges): New hash table.
7274 (remove_jump_threads_including): Note edges that get removed from
7275 the CFG for later pruning of jump threading paths including them.
7276 (thread_through_all_blocks): Remove paths which include edges that
7277 have been removed.
7278 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7279 on each outgoing edges when optimizing away a control statement.
7280
7281 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7282
7283 * reorg.c (emit_delay_sequence): Store list of delay slot insns
7284 in a vector instead of rtx_insn_list.
7285 (add_to_delay_list): Likewise.
7286 (delete_from_delay_slot): Likewise.
7287 (optimize_skip): Likewise.
7288 (redirect_with_delay_list_safe_p): Likewise.
7289 (check_annul_list_true_false): Likewise.
7290 (steal_delay_list_from_target): Likewise.
7291 (steal_delay_list_from_fallthrough): Likewise.
7292 (redundant_insn): Likewise.
7293 (fill_simple_delay_slots): Likewise.
7294 (fill_slots_from_thread): Likewise.
7295 (fill_eager_delay_slots): Likewise.
7296 (relax_delay_slots): Likewise.
7297
7298 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
7299
7300 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7301 For -mgpopt=local, also exclude unintialized common symbols.
7302 * doc/invoke.texi (Nios II Options): Document the change.
7303
7304 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7305
7306 * config/aarch64/iterators.md (vwcore): Add missing cases for
7307 V4HF/V8HF modes.
7308
7309 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7310 Sebastian Pop <s.pop@samsung.com>
7311
7312 * graphite-poly.c (new_scop): Initialize drs.
7313 * graphite-poly.h (struct dr_info): New.
7314 (struct scop): Add drs.
7315 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7316 (pdr_add_memory_accesses): Same.
7317 (build_poly_dr): Same.
7318 (build_alias_set): Same.
7319 (build_scop_drs): Same.
7320 (build_pbb_drs): Remove.
7321 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7322 * tree-data-ref.h (data_reference): Remove alias_set.
7323
7324 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7325 Sebastian Pop <s.pop@samsung.com>
7326
7327 * graphite-poly.c (free_data_refs_aux): Remove.
7328 (free_gimple_poly_bb): Do not call free_data_refs_aux.
7329 * graphite-poly.h (struct base_alias_pair): Remove.
7330 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7331 base_alias_pair and dr->aux.
7332 (build_alias_set): Same.
7333 * tree-data-ref.c (create_data_ref): Initialize alias_set.
7334 * tree-data-ref.h (data_reference): Add alias_set.
7335
7336 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7337 Sebastian Pop <s.pop@samsung.com>
7338
7339 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7340 Do not set PDR_BASE_OBJECT_SET.
7341 * graphite-poly.h (poly_dr): Same.
7342 (PDR_BASE_OBJECT_SET): Remove.
7343 (new_poly_dr): Update decl.
7344 * graphite-sese-to-poly.c (build_poly_dr): Update call to
7345 new_poly_dr.
7346 (write_alias_graph_to_ascii_dimacs): Remove.
7347 (write_alias_graph_to_ascii_dot): Remove.
7348 (write_alias_graph_to_ascii_ecc): Remove.
7349 (dr_same_base_object_p): Remove.
7350 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
7351 code.
7352 (build_base_obj_set_for_drs): Remove.
7353 (dump_alias_graphs): Remove.
7354 (build_scop_drs): Remove dead code.
7355
7356 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7357 Peter Bergner <bergner@vnet.ibm.com>
7358
7359 PR target/67808
7360 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7361 allow registers, but provide insns for the combiner to create for
7362 loads from memory. Separate VSX code from non-VSX code. For
7363 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7364 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7365 so that registers come before memory operations. Drop support from
7366 converting DFmode to TFmode, if the DFmode value is in a GPR
7367 register.
7368 (extenddftf2_fprs): Likewise.
7369 (extenddftf2_internal): Likewise.
7370 (extenddftf2_vsx): Likewise.
7371 (extendsftf2): In the expander, only allow registers, but provide
7372 insns for the combiner to create for stores and loads.
7373
7374 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7375
7376 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7377 from the decl parameter.
7378
7379 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
7380
7381 PR 67861
7382 * gimple-fold.c (gimple_fold_builtin): Add break after
7383 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7384
7385 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
7386
7387 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7388 to scop->isl_context.
7389
7390 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7391
7392 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7393 (output_probe_stack_range): Rotate the loop and simplify.
7394 (thumb1_expand_prologue): Tweak sorry message.
7395 * config/arm/arm.md (probe_stack): Use bare string.
7396
7397 2015-10-06 Nick Clifton <nickc@redhat.com>
7398
7399 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7400
7401 2015-10-06 Nick Clifton <nickc@redhat.com>
7402
7403 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7404 (ATTR_PERSIST): New constant.
7405 (msp430_data_attr): New function - verifies an attribute that only
7406 applies to variables.
7407 (msp430_attributes): Add noinit and persistent attributes.
7408 (noinit_section): New variable.
7409 (presis_section): New variable.
7410 (TARGET_ASM_INIT_SECTIONS): Define.
7411 (msp430_init_sections): New function - initialises the noinit and
7412 persist section variables.
7413 (msp430_select_section): Add support for noinit and persist
7414 attributes.
7415 (msp430_section_type_flags): Likewise.
7416 * doc/extend.texi: Document the reent, critical, wakeup, noinit
7417 and persistent attributes.
7418
7419 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7420 Sebastian Pop <s.pop@samsung.com>
7421
7422 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7423 (no_violations): Remove.
7424 (subtract_commutative_associative_deps): Remove.
7425 (compute_deps): Do not call subtract_commutative_associative_deps.
7426 (transform_is_safe): Remove.
7427 (graphite_legal_transform): Remove.
7428 * graphite-poly.h (graphite_legal_transform): Remove.
7429
7430 2015-10-05 Aditya Kumar <hiraditya@msn.com>
7431
7432 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7433 which are in this region are passed so gcc_assert and remove redundant
7434 computation.
7435 * sese.c (sese_build_liveouts): Pass only those bbs which are not
7436 in region.
7437 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7438 gcc_assert on that and remove unnecessary computation.
7439 (sese_build_liveouts_use): Same.
7440
7441 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7442
7443 * graphite-dependences.c (scop_get_reads): Renamed scop->context
7444 to scop->param_context.
7445 (scop_get_must_writes): Same.
7446 (scop_get_may_writes): Same.
7447 (scop_get_original_schedule): Same.
7448 (scop_get_transformed_schedule): Same.
7449 (subtract_commutative_associative_deps): Same.
7450 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7451 (generate_isl_context): Same.
7452 (generate_isl_schedule): Same.
7453 (scop_to_isl_ast): Same.
7454 (graphite_regenerate_ast_isl): Same.
7455 * graphite-optimize-isl.c (scop_get_domains): Same.
7456 (optimize_isl): Renamed scop->context to scop->param_context.
7457 * graphite-poly.c (new_poly_bb): Change the type of argument to
7458 gimple_poly_bb_p.
7459 (new_scop): Renamed scop->context to scop->param_context.
7460 (free_scop): Same.
7461 (print_scop_context): Same.
7462 * graphite-poly.h (new_poly_dr): Change the type of argument from
7463 void* to data_reference_p.
7464 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7465 (new_poly_bb): Change the type of argument from void* to
7466 gimple_poly_bb_p.
7467 (pbb_set_black_box): Same.
7468 (struct scop): Rename context to param_context, ctx to isl_context.
7469 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7470 Move declarations closer to assignment.
7471 (find_params_in_bb): Same.
7472 (find_scop_parameters): Same.
7473 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7474 Global to be used for statement IDs.
7475 (isl_id_for_pbb): Use ssa_name_version_typesize.
7476 (simple_copy_phi_p): Move declarations closer to assignment.
7477 (build_pbb_scattering_polyhedrons): Same.
7478 (build_scop_scattering): Same.
7479 (isl_id_for_ssa_name): Same.
7480 (extract_affine_name): Same.
7481 (extract_affine_int): Same.
7482 (extract_affine): Same.
7483 (set_scop_parameter_dim): Use renamed member.
7484 (build_loop_iteration_domains): Same.
7485 (add_param_constraints): Same.
7486 (build_scop_iteration_domain): Same.
7487 (pdr_add_data_dimensions): Same.
7488 (build_poly_dr): Same.
7489 (build_scop_drs): Move declarations closer to assignment.
7490 (analyze_drs_in_stmts): Same.
7491 (insert_out_of_ssa_copy): Same.
7492 (insert_out_of_ssa_copy_on_edge): Same.
7493 (propagate_expr_outside_region): Same.
7494 (rewrite_phi_out_of_ssa): Same.
7495 (rewrite_degenerate_phi): Same.
7496 (rewrite_reductions_out_of_ssa): Same.
7497 (rewrite_cross_bb_scalar_dependence): Same.
7498 (handle_scalar_deps_crossing_scop_limits): Same.
7499 (rewrite_cross_bb_scalar_deps): Same.
7500 * graphite.c (graphite_transform_loops): Use renamed member.
7501
7502 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
7503
7504 PR c/65345
7505 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7506 create_tmp_var_raw instead of create_tmp_var.
7507
7508 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7509
7510 PR c/65345
7511 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7512 Use create_tmp_var_raw instead of create_tmp_var.
7513
7514 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
7515
7516 PR target/67849
7517 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7518 split for upper-bank registers when target does not support
7519 AVX512VL.
7520 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7521 split when target does not support AVX512VL.
7522
7523 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
7524
7525 PR c/65345
7526 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7527 Adjust to use create_tmp_var_raw instead of create_tmp_var.
7528
7529 2015-10-06 Nick Clifton <nickc@redhat.com>
7530
7531 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7532 multiplication.
7533
7534 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7535
7536 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7537 (case ${target}): Add znver1.
7538 * config/i386/cpuid.h(bit_CLZERO): Define.
7539 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7540 -march=native recognize znver1 processors.
7541 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7542 znver1, clzero def_and_undef.
7543 * config/i386/i386.c (struct processor_costs znver1_cost): New.
7544 (m_znver1): New definition.
7545 (m_AMD_MULTIPLE): Includes m_znver1.
7546 (processor_target_table): Add znver1 entry.
7547 (ix86_target_string) : Add clzero entry.
7548 (static const char *const cpu_names): Add znver1 entry.
7549 (ix86_option_override_internal): Add znver1 instruction sets.
7550 (PTA_CLZERO) : New definition.
7551 (ix86_option_override_internal): Handle new clzerooption.
7552 (ix86_issue_rate): Add znver1.
7553 (ix86_adjust_cost): Add znver1.
7554 (ia32_multipass_dfa_lookahead): Add znver1.
7555 (has_dispatch): Add znver1.
7556 * config/i386/i386.h (TARGET_znver1): New definition.
7557 (TARGET_CLZERO): Define.
7558 (TARGET_CLZERO_P): Define.
7559 (struct ix86_size_cost): Add TARGET_ZNVER1.
7560 (enum processor_type): Add PROCESSOR_znver1.
7561 * config/i386/i386.md (define_attr "cpu"): Add znver1.
7562 (set_attr znver1_decode): New definitions for znver1.
7563 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7564 (mclzero): New.
7565 * config/i386/mmx.md (set_attr znver1_decode): New definitions
7566 for znver1.
7567 * config/i386/sse.md (set_attr znver1_decode): Likewise.
7568 * config/i386/x86-tune.def: Add znver1 tunings.
7569 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7570 * doc/invoke.texi: Add details about znver1
7571
7572 2015-10-06 Richard Biener <rguenther@suse.de>
7573
7574 PR tree-optimization/67859
7575 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7576 discard not inserted stmts.
7577
7578 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
7579
7580 * doc/extend.texi (Template Instantiation): Reorder options and
7581 de-emphasize -frepo.
7582 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7583 example instead of -frepo.
7584
7585 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7586
7587 PR c/65345
7588 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7589 use create_tmp_var_raw rather than create_tmp_var.
7590
7591 2015-10-06 Richard Biener <rguenther@suse.de>
7592
7593 * tree-vectorizer.h (vec_info): New base class for...
7594 (_loop_vec_info): ... this and ...
7595 (_bb_vec_info): ... this.
7596 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7597 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7598 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7599 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7600 vect_destroy_datarefs): Adjust interface to take a vec_info *
7601 rather than both a loop_vec_info and a bb_vec_info argument.
7602 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7603 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7604 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7605 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7606 accordingly.
7607 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7608 (destroy_loop_vec_info, vect_analyze_loop_2,
7609 vect_is_simple_reduction_1, get_initial_def_for_induction,
7610 vect_create_epilog_for_reduction, vectorizable_reduction,
7611 vectorizable_live_operation, vect_transform_loop): Adjust.
7612 * tree-vect-patterns.c (type_conversion_p,
7613 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7614 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7615 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7616 check_bool_pattern, vect_recog_bool_pattern,
7617 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7618 * tree-vect-slp.c (vect_get_and_check_slp_defs,
7619 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7620 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7621 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7622 (new_bb_vec_info): Initialize base classs.
7623 * tree-vect-stmts.c (record_stmt_cost, process_use,
7624 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7625 vectorizable_mask_load_store, vectorizable_call,
7626 vectorizable_simd_clone_call, vectorizable_conversion,
7627 vectorizable_assignment, vectorizable_shift,
7628 vectorizable_operation, vectorizable_store,
7629 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7630 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7631 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7632
7633 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
7634
7635 PR c/65345
7636 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7637 create_tmp_var_raw rather than create_tmp_var.
7638
7639 2015-10-05 Marek Polacek <polacek@redhat.com>
7640
7641 * tree-ssa-loop-im.c
7642 (move_computations_dom_walker::before_dom_children): Don't set
7643 SSA_NAME_ANTI_RANGE_P.
7644 * tree-ssa-phiopt.c (value_replacement): Likewise.
7645
7646 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7647 Sebastian Pop <s.pop@samsung.com>
7648
7649 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7650
7651 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7652 Sebastian Pop <s.pop@samsung.com>
7653
7654 * graphite-poly.c (new_gimple_poly_bb): ... here.
7655 (free_data_refs_aux): ... here.
7656 (free_gimple_poly_bb): ... here.
7657 (remove_gbbs_in_scop): ... here.
7658 (new_scop): Call new_sese.
7659 (free_scop): Call remove_gbbs_in_scop and free_sese.
7660 * graphite-poly.h (base_alias_pair): ... here.
7661 (new_gimple_poly_bb): Declare.
7662 (free_gimple_poly_bb): Declare.
7663 * graphite-scop-detection.c (parameter_index_in_region_1):
7664 (parameter_index_in_region): ... here.
7665 (scan_tree_for_params): ... here.
7666 (find_params_in_bb): ... here.
7667 (find_scop_parameters): ... here.
7668 (build_scops): Call find_scop_parameters.
7669 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7670 (free_scops): Move...
7671 (single_pred_cond_non_loop_exit): Move...
7672 (sese_dom_walker::before_dom_children): Move...
7673 (sese_dom_walker::after_dom_children): Move...
7674 (build_poly_scop): Move...
7675 * graphite-sese-to-poly.h (base_alias_pair): Move...
7676 * graphite.c (free_scops): ... here.
7677
7678 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7679 Sebastian Pop <s.pop@samsung.com>
7680
7681 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7682 (trivially_empty_bb_p): Move...
7683 (same_close_phi_node): Move...
7684 (new_gimple_poly_bb): Move...
7685 (compare_bb_depths): Move...
7686 (graphite_sort_dominated_info): Move...
7687 (remove_duplicate_close_phi): Move...
7688 (make_close_phi_nodes_unique): Move...
7689 (canonicalize_loop_closed_ssa): Move...
7690 (canonicalize_loop_closed_ssa_form): Move...
7691 (loop_ivs_can_be_represented): Move...
7692 (single_pred_cond_non_loop_exit): Move...
7693 (graphite_can_represent_init): Move...
7694 (graphite_can_represent_scev): Move...
7695 (stmt_has_simple_data_refs_p): Move...
7696 (stmt_has_side_effects): Move...
7697 (graphite_can_represent_stmt): Move...
7698 (scop_detection): ... here.
7699 (sese_dom_walker): ... and here.
7700 (build_scops): Call all moved functions.
7701 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7702 (all_non_dominated_preds_marked_p): Move...
7703 (build_scop_bbs_1): Move...
7704 (build_scop_bbs): Move...
7705 (set_scop_parameter_dim): Move...
7706 (nb_pbbs_in_loops): Move...
7707 (build_poly_scop): Do not call all the moved functions.
7708
7709 2015-10-05 Martin Jambor <mjambor@suse.cz>
7710 Jan Hubicka <hubicka@ucw.cz>
7711
7712 * ipa-cp.c (ipcp_alignment_lattice): New type.
7713 (ipcp_param_lattices): Use the above to represent alignment.
7714 (ipcp_alignment_lattice::print): New function.
7715 (print_all_lattices): Use it to print alignment information.
7716 (ipcp_alignment_lattice::top_p): New function.
7717 (ipcp_alignment_lattice::bottom_p): Likewise.
7718 (ipcp_alignment_lattice::set_to_bottom): Likewise.
7719 (ipcp_alignment_lattice::meet_with_1): Likewise.
7720 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7721 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7722 (initialize_node_lattices): Likewise.
7723 (propagate_alignment_accross_jump_function): Work with the new class
7724 for alignment lattices.
7725 (propagate_constants_accross_call): Pass only the alignment lattice to
7726 propagate_alignment_accross_jump_function.
7727 (ipcp_store_alignment_results): Work with the new class for alignment
7728 lattices.
7729
7730 2015-10-05 Marek Polacek <polacek@redhat.com>
7731
7732 PR tree-optimization/67821
7733 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
7734
7735 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
7736
7737 PR other/65021
7738 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
7739 function to...
7740 (mkoffload_cleanup): ... this. Adjust all users.
7741 (maybe_unlink): Look at save_temps and verbose flags instead of
7742 debug flag.
7743 (main): Parse "-save-temps" flag.
7744 (generate_target_descr_file, generate_target_offloadend_file)
7745 (generate_host_descr_file, prepare_target_image): Pass it on.
7746 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
7747 (mkoffload_cleanup): New function.
7748 (maybe_unlink): Look at save_temps and verbose flags instead of
7749 debug flag.
7750 (main): Instead of calling utils_cleanup, register atexit handler
7751 for mkoffload_cleanup.
7752 (main): Parse "-save-temps" flag.
7753 (compile_native, main): Pass it on.
7754 * lto-wrapper.c (compile_offload_image): Likewise.
7755
7756 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7757
7758 * gimple.h (gimple_op_ptr): Require a non const gimple *.
7759 (gimple_assign_lhs_ptr): Likewise.
7760 (gimple_assign_rhs1_ptr): Likewise.
7761 (gimple_assign_rhs2_ptr): Likewise.
7762 (gimple_assign_rhs3_ptr): Likewise.
7763 (gimple_call_lhs_ptr): Likewise.
7764 (gimple_call_fn_ptr): Likewise.
7765 (gimple_call_chain_ptr): Likewise.
7766 (gimple_call_arg_ptr): Likewise.
7767 (gimple_cond_lhs_ptr): Likewise.
7768 (gimple_cond_rhs_ptr): Likewise.
7769 (gimple_switch_index_ptr): Likewise.
7770 (gimple_return_retval_ptr): Likewise.
7771
7772 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7773
7774 * gimple.h (gimple_asm_input_op_ptr): Remove.
7775 (gimple_asm_output_op_ptr): Likewise.
7776
7777 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7778
7779 * gimple.h (gimple_location_ptr): Remove.
7780 * tree-vrp.c (check_all_array_refs): Adjust.
7781
7782 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7783
7784 * tree-ssa-operands.c (build_uses): store tree * instead of
7785 tree.
7786 (finalize_ssa_uses): Adjust.
7787 (append_use): Likewise.
7788 (verify_ssa_operands): Likewise.
7789
7790 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7791
7792 * real.h (build_real_truncate): Declare.
7793 * tree.c (build_real_truncate): New function.
7794 (strip_float_extensions): Use it.
7795 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
7796 (fold_builtin_hypot, fold_builtin_pow): Likewise.
7797 * match.pd: Likewise.
7798
7799 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
7800 Jiong Wang <jiong.wang@arm.com>
7801
7802 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
7803
7804 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7805
7806 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
7807 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
7808 (aarch64_print_operand, aarch64_float_const_representable_p)
7809 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
7810 instead of REAL_VALUE_FROM_CONST_DOUBLE.
7811 * config/arc/arc.c (arc_print_operand): Likewise.
7812 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
7813 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
7814 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
7815 Likewise.
7816 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
7817 (consttable_16): Likewise.
7818 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
7819 * config/avr/avr.c (avr_print_operand): Likewise.
7820 * config/bfin/bfin.md: Likewise (in a define_split).
7821 * config/c6x/c6x.md: Likewise (in a define_split).
7822 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
7823 (cr16_print_operand): Likewise.
7824 * config/cris/cris.c (cris_print_operand): Likewise.
7825 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
7826 * config/fr30/fr30.c (fr30_print_operand): Likewise.
7827 (fr30_const_double_is_zero): Likewise.
7828 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
7829 * config/frv/frv.md: Likewise (in a define_split).
7830 * config/frv/predicates.md (int_2word_operand): Likewise.
7831 * config/h8300/h8300.c (h8300_print_operand): Likewise.
7832 * config/i386/i386.c (standard_80387_constant_p): Likewise.
7833 (ix86_print_operand, ix86_split_to_parts): Likewise.
7834 * config/i386/i386.md: Likewise (in a define_split).
7835 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
7836 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
7837 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
7838 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
7839 (print_operand): Likewise.
7840 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
7841 * config/mep/mep.md: Likewise (in define_split).
7842 * config/microblaze/microblaze.c (microblaze_const_double_ok)
7843 (print_operand): Likewise.
7844 * config/mips/mips.md (consttable_float): Likewise.
7845 * config/mmix/mmix.c (mmix_intval): Likewise.
7846 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
7847 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
7848 * config/pa/pa.c (pa_singlemove_string): Likewise.
7849 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
7850 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
7851 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
7852 (output_toc): Likewise.
7853 * config/rs6000/rs6000.md: Likewise (in define_splits).
7854 * config/rx/rx.c (rx_print_operand): Likewise.
7855 * config/s390/s390.c (s390_output_pool_entry): Likewise.
7856 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7857 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
7858 (and also in define_splits).
7859 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
7860 (fp_high_losum_p): Likewise.
7861 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
7862 (*movsf_high): Likewise.
7863 * config/spu/spu.c (const_double_to_hwint): Likewise.
7864 * config/v850/v850.c (const_double_split): Likewise.
7865 * config/vax/vax.c (vax_float_literal): Likewise.
7866 * config/visium/visium.c (visium_expand_copysign): Likewise.
7867 * config/visium/visium.md: Likewise (in define_split).
7868 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7869 * config/xtensa/xtensa.c (print_operand): Likewise.
7870 (xtensa_output_literal): Likewise.
7871 * cprop.c (implicit_set_cond_p): Likewise.
7872 * dwarf2out.c (insert_float): Likewise.
7873 * expmed.c (expand_mult, make_tree): Likewise.
7874 * expr.c (compress_float_constant): Likewise.
7875 * rtlanal.c (split_double): Likewise.
7876 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7877 (simplify_const_unary_operation, simplify_binary_operation_1)
7878 (simplify_const_binary_operation): Likewise.
7879 (simplify_const_relational_operation): Likewise.
7880 * varasm.c (output_constant_pool_2): Likewise.
7881
7882 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7883
7884 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
7885 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7886 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
7887 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
7888 instead of CONST_DOUBLE_FROM_REAL_VALUE.
7889 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
7890 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
7891 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
7892 (ix86_emit_swsqrtsf): Likewise.
7893 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
7894 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
7895 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7896 * config/pa/pa.c (pa_expand_builtin): Likewise.
7897 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
7898 (rs6000_scale_v2df): Likewise.
7899 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
7900 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
7901 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
7902 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
7903 (vec_ctul): Likewise.
7904 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
7905 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
7906 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
7907 * cse.c (fold_rtx): Likewise.
7908 * emit-rtl.c (immed_double_const): Likewise (in comments).
7909 (init_emit_once): Likewise.
7910 * expr.c (compress_float_constant, expand_expr_real_1)
7911 (const_vector_from_tree): Likewise.
7912 * optabs.c (expand_float, expand_fix): Likewise.
7913 * reg-stack.c (reg_to_stack): Likewise.
7914 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
7915 (simplify_const_unary_operation, simplify_binary_operation_1)
7916 (simplify_const_binary_operation, simplify_relational_operation)
7917 (simplify_immed_subreg): Likewise.
7918
7919 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7920
7921 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
7922 * doc/tm.texi: Regenerate.
7923 * real.h (REAL_ARITHMETIC): Delete.
7924 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
7925 (ix86_expand_round_sse4): Use real_arithmetic instead of
7926 REAL_ARITHMETIC.
7927 * config/i386/sse.md (round<mode>2): Likewise.
7928 * rtl.h (rtx_to_tree_code): Likewise (in comment).
7929 * explow.c (rtx_to_tree_code): Likewise (in comment).
7930 * match.pd: Likewise.
7931 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7932 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7933 (expand_pow_as_sqrts): Likewise.
7934 * tree-pretty-print.c (dump_generic_node): Remove code that
7935 was conditional on REAL_ARITHMETIC being undefined.
7936
7937 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7938
7939 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
7940 * doc/tm.texi: Regenerate.
7941 * real.h (real_less): Declare.
7942 (REAL_VALUES_LESS): Delete.
7943 * real.c (real_less): New function.
7944 (real_compare): Use it.
7945 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
7946 of REAL_VALUES_LESS.
7947 * config/microblaze/microblaze.c (microblaze_const_double_ok):
7948 Likewise.
7949 * fold-const.c (fold_convert_const_int_from_real): Likewise.
7950 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7951 (simplify_const_relational_operation): Likewise.
7952 * tree-call-cdce.c (check_pow): Likewise.
7953 (gen_conditions_for_pow_cst_base): Likewise.
7954
7955 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7956
7957 * real.h (REAL_VALUES_IDENTICAL): Delete.
7958 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
7959 instead of REAL_VALUES_IDENTICAL.
7960 * fold-const.c (operand_equal_p): Likewise.
7961 * ipa-icf.c (sem_variable::equals): Likewise.
7962 * tree-complex.c (some_nonzerop): Likewise.
7963 (expand_complex_multiplication): Likewise.
7964 * tree.c (simple_cst_equal): Likewise.
7965 * varasm.c (compare_constant): Likewise.
7966
7967 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
7968
7969 * real.h (real_equal): Declare.
7970 (REAL_VALUES_EQUAL): Delete.
7971 * real.c (real_equal): New function.
7972 (real_compare): Use it.
7973 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
7974 * doc/tm.texi: Regenerate.
7975 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
7976 real_equal instead of REAL_VALUES_EQUAL.
7977 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
7978 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
7979 (fp_const_from_val): Likewise.
7980 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
7981 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
7982 (floating_exact_log2): Likewise.
7983 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
7984 * config/vax/vax.c (vax_float_literal): Likewise.
7985 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
7986 * cprop.c (implicit_set_cond_p): Likewise.
7987 * expmed.c (expand_mult): Likewise.
7988 * fold-const.c (const_binop): Likewise.
7989 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7990 (simplify_const_binary_operation): Likewise.
7991 (simplify_const_relational_operation): Likewise.
7992 * tree-call-cdce.c (check_pow): Likewise.
7993 (gen_conditions_for_pow_cst_base): Likewise.
7994 * tree-inline.c (estimate_num_insns): Likewise.
7995 * tree-ssa-dom.c (record_equality): Likewise.
7996 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
7997 (gimple_expand_builtin_pow): Likewise.
7998 (pass_optimize_widening_mul::execute): Likewise.
7999 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
8000 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
8001 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
8002
8003 2015-10-05 Richard Biener <rguenther@suse.de>
8004
8005 PR ipa/67783
8006 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
8007 consider loop header PHI defs as IVs.
8008
8009 2015-10-05 Richard Biener <rguenther@suse.de>
8010
8011 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
8012 call handling ...
8013 (create_expression_by_pieces): ... here and build GIMPLE
8014 calls directly. Use gimple_build API and avoid force_gimple_operand.
8015 (insert_into_preds_of_block): Simplify.
8016 (do_regular_insertion): Add comment.
8017
8018 2015-10-04 Jason Merrill <jason@redhat.com>
8019
8020 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
8021
8022 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
8023
8024 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
8025 check for general register.
8026 (ix86_emit_save_regs): Ditto.
8027 (ix86_emit_save_regs_using_mov): Ditto.
8028 (ix86_emit_restore_regs_using_pop): Ditto.
8029 (ix86_emit_restore_regs_using_mov): Ditto.
8030
8031 2015-10-03 Marek Polacek <polacek@redhat.com>
8032
8033 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
8034 (insn-dfatab.o): Likewise.
8035
8036 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
8037
8038 * config.gcc (xtensa*-*-uclinux*): New configuration.
8039 * config/xtensa/uclinux.h: New file.
8040 * config/xtensa/uclinux.opt: New file.
8041
8042 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
8043
8044 * doc/cpp.texi (Standard Predefined Macros): Document value of
8045 __cplusplus for C++14.
8046
8047 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
8048
8049 * gcc.c (process_command): Use spec_machine rather than
8050 spec_host_machine to build tooldir_prefix2.
8051
8052 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8053 Bernd Schmidt <bernds@codesourcery.com>
8054
8055 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
8056 (Token, Stmt): Remove structs.
8057 (decls, vars, fns): Remove variables.
8058 (alloc_comment, append_stmt, is_keyword): Remove macros.
8059 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
8060 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
8061 (parse_init, parse_file): Remove functions.
8062 (read_file): Accept a pointer to a length and store into it.
8063 (process): Don't try to parse the input file, just write it out as
8064 a string, but looking for maps. Also write out the length.
8065 (main): Don't use "-S" to compile PTX code.
8066
8067 2015-10-02 Jeff Law <law@redhat.com>
8068
8069 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
8070 fixups.
8071
8072 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8073
8074 PR target/67822
8075 * config/nvptx/mkoffload.c (main): Scan the argument vector for
8076 -fopenmp, and skip generating an offloading image if specified.
8077
8078 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
8079
8080 * system.h (ROUND_UP): New macro definition.
8081 (ROUND_DOWN): Ditto.
8082 * ggc-page.c (ROUND_UP): Remove local macro definition.
8083 (PAGE_ALIGN): Implement using ROUND_UP macro.
8084
8085 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
8086 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
8087 to align values.
8088 (ix86_compute_frame_layout): Ditto.
8089 (ix86_expand_prologue): Ditto.
8090 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
8091 to round down values.
8092 (expand_set_or_movmem_via_rep): Ditto.
8093
8094 2015-10-02 Marek Polacek <polacek@redhat.com>
8095
8096 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
8097
8098 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
8099
8100 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
8101 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
8102 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
8103 (free_gimple_bb): Renamed free_gimple_poly_bb.
8104 (try_generate_gimple_bb): Hoist loop invariant code.
8105 (analyze_drs_in_stmts): Same.
8106 (build_scop_drs): Call renamed functions.
8107 (new_pbb_from_pbb): Same.
8108 (scop_ivs_can_be_represented): Delete as functionality now moved to
8109 graphite-scop-detection.c
8110 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
8111
8112 2015-10-02 Aditya Kumar <hiraditya@msn.com>
8113
8114 * graphite-scop-detection.c (stmt_has_side_effects): New function
8115 outlined from stmt_simple_for_scop_p.
8116 (graphite_can_represent_stmt): Same.
8117 (stmt_simple_for_scop_p): Moved code out of this function for better
8118 readability.
8119
8120 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8121
8122 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
8123 F_AVX512IFMA.
8124 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
8125
8126 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8127
8128 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
8129
8130 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
8131
8132 PR rtl-optimization/67756
8133 * lra-constraints.c (match_reload): Add a new parameter. Use it
8134 for creating a pseudo with the same value.
8135 (curr_insn_transform): Pass a new argument to match_reload.
8136
8137 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8138
8139 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8140 (expand_vec_perm_even_odd_1): Handle V64QImode.
8141 (ix86_expand_vec_perm_const_1): Try expansion with
8142 expand_vec_perm_even_odd_trunc as well.
8143 * config/i386/sse.md (VI124_AVX512F): Rename to ...
8144 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8145 to V54QI.
8146 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8147 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8148 to V32HI and V16SI.
8149 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8150 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8151 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8152 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8153 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8154 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8155
8156 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8157
8158 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8159 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8160
8161 2015-10-02 Jason Merrill <jason@redhat.com>
8162
8163 PR c/59218
8164 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8165 (diagnose_tm_1_op): Also diagnose volatile accesses in
8166 transaction_safe function.
8167
8168 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
8169
8170 * system.h (malloc.h): Don't include obsolete header.
8171
8172 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8173
8174 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8175 (TLS_SECTION_ASM_FLAG): Delete.
8176
8177 2015-10-02 Marek Polacek <polacek@redhat.com>
8178
8179 PR c/64249
8180 * doc/invoke.texi: Document -Wduplicated-cond.
8181 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8182 (insn-dfatab.o): Likewise.
8183 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8184 warning.
8185
8186 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
8187
8188 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8189 sequences.
8190
8191 2015-10-02 Renlin Li <renlin.li@arm.com>
8192
8193 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8194
8195 2015-10-02 Renlin Li <renlin.li@arm.com>
8196
8197 PR target/66776
8198 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8199
8200 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8201
8202 PR rtl-optimization/67786
8203 PR rtl-optimization/67787
8204 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8205 it modifies a reg used in the condition calculation.
8206
8207 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
8208
8209 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8210 alternatives for reads from memory and moves from general-purpose
8211 registers.
8212 (*aarch64_combinez_be<mode>): Likewise.
8213
8214 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
8215
8216 PR target/51726
8217 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8218 selectany within this function without need to keep attribute.
8219 (i386_pe_encode_section_info): Remove selectany-code.
8220
8221 2015-10-02 Richard Biener <rguenther@suse.de>
8222
8223 * tree-ssa-sccvn.c (has_VN_INFO): New function.
8224 (free_scc_vn): Use it.
8225 (visit_use): Remove dead code and refactor to use gassign
8226 and use less indentation.
8227
8228 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8229
8230 PR target/67788
8231 PR target/67789
8232 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8233 (rs6000_cannot_copy_insn_p): New function.
8234 * config/rs6000/rs6000.md (cannot_copy): New attribute.
8235 (load_toc_v4_PIC_1_normal): Set cannot_copy.
8236 (load_toc_v4_PIC_1_476): Ditto.
8237
8238 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8239
8240 * graphite-scop-detection.c (struct sese_l): New conversion constructor
8241 so that this type can be pushed into a vec.
8242 (class scop_builder): use sese_l to collect scops.
8243 (get_scops): New getter function.
8244 (remove_intersecting_scops): Use sese_l instead of scops_p.
8245 (intersects): Same.
8246 (add_scop): Same.
8247 (subsumes): Same.
8248 (remove_subscops): Same.
8249 (build_scops): Add scops to vec<scops_p> once all the scops have been
8250 detected.
8251
8252 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8253
8254 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8255 Renamed type from gimple_bb_p to gimple_poly_bb_p.
8256 (translate_isl_ast_node_user): Same.
8257 * graphite-poly.c (new_poly_bb): Same.
8258 * graphite-poly.h (gbb_from_bb): Same.
8259 * sese.h: Same.
8260 * graphite-sese-to-poly.c (new_gimple_bb):
8261 gimple_bb_p -> gimple_poly_bb_p
8262 (build_scop_scattering): Same.
8263 (find_params_in_bb): Same.
8264 (add_conditions_to_domain): Same.
8265 (sese_dom_walker::before_dom_children): Same.
8266 (analyze_drs_in_stmts): Same.
8267 (new_pbb_from_pbb): Same.
8268 (free_data_refs_aux): New pointer to type base_alias_pair.
8269 * graphite-sese-to-poly.h: Same.
8270 * sese.c (if_region_set_false_region): Fixed Indentation.
8271 (move_sese_in_condition): Same.
8272
8273 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8274 Aditya Kumar <aditya.k7@samsung.com>
8275
8276 PR tree-optimization/66980
8277 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8278 when data reference analysis has failed.
8279
8280 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8281 Aditya Kumar <aditya.k7@samsung.com>
8282
8283 PR tree-optimization/67754
8284 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8285 scev analysis on the same loop nest as analyze_drs_in_stmts.
8286 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8287 renamed...
8288 (try_generate_gimple_bb): Call outermost_loop_in_sese.
8289 (analyze_drs_in_stmts): Same.
8290 * sese.c (outermost_loop_in_sese): ...here.
8291
8292 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8293 Aditya Kumar <aditya.k7@samsung.com>
8294
8295 PR tree-optimization/67754
8296 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8297 recursion on the inner loops.
8298
8299 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8300
8301 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8302 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8303 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8304 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8305 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8306
8307 2015-10-01 Marek Polacek <polacek@redhat.com>
8308
8309 PR c/65345
8310 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8311 create_tmp_var_raw rather than create_tmp_var.
8312
8313 2015-10-01 Marek Polacek <polacek@redhat.com>
8314
8315 PR tree-optimization/67769
8316 * tree-ssa-phiopt.c (conditional_replacement): Call
8317 reset_flow_sensitive_info_in_bb.
8318 (minmax_replacement): Likewise.
8319 (abs_replacement): Likewise.
8320
8321 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
8322
8323 * builtins.c: Don't include gomp-constants.h.
8324 (fold_builtin_1): Don't fold acc_on_device here.
8325 * gimple-fold.c: Include gomp-constants.h.
8326 (gimple_fold_builtin_acc_on_device): New.
8327 (gimple_fold_builtin): Call it.
8328
8329 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
8330
8331 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8332 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8333
8334 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
8335
8336 * config/arm/aarch-common-protos.h
8337 (aarch_accumulator_forwarding): New.
8338 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8339 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8340 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8341 * config/arm/cortex-a53.md: Rewrite.
8342
8343 2015-10-01 Richard Biener <rguenther@suse.de>
8344
8345 * gimple-match.h (mprts_hook): Declare.
8346 * gimple-match.head.c (mprts_hook): Define.
8347 (maybe_push_res_to_seq): Use new hook.
8348 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8349 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8350 (vn_ssa_aux::has_constants): Remove.
8351 * tree-ssa-sccvn.c: Include gimple-match.h.
8352 (VN_INFO_GET): Assert we don't re-use SSA names.
8353 (vn_get_expr_for): Remove.
8354 (expr_has_constants): Likewise.
8355 (stmt_has_constants): Likewise.
8356 (simplify_binary_expression): Likewise.
8357 (simplify_unary_expression): Likewise.
8358 (vn_lookup_simplify_result): New hook.
8359 (visit_copy): Adjust.
8360 (visit_reference_op_call): Likewise.
8361 (visit_phi): Likewise.
8362 (visit_use): Likewise.
8363 (process_scc): Likewise.
8364 (init_scc_vn): Likewise.
8365 (visit_reference_op_load): Likewise. Use match-and-simplify and
8366 a gimple seq for inserted expressions.
8367 (try_to_simplify): Remove GENERIC stmt combining code.
8368 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8369 * tree-ssa-pre.c (eliminate_insert): Adjust.
8370 (eliminate_dom_walker::before_dom_children): Likewise.
8371
8372 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8373
8374 * doc/invoke.texi (Optimization Options): Add
8375 -freorder-blocks-algorithm=.
8376 (Optimize Options) <-O>: Add -freorder-blocks.
8377 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
8378 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8379 <-freorder-blocks>: Also enabled at levels -O and -Os.
8380 <-freorder-blocks-algorithm=>: Document new option.
8381
8382 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8383
8384 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8385 with flag_reorder_blocks_algorithm.
8386 * common.opt (freorder-blocks-algorithm=): New flag.
8387 (reorder_blocks_algorithm): New enum.
8388 * flag-types.h (reorder_blocks_algorithm): New enum.
8389 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8390 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8391
8392 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8393
8394 * bb-reorder.c: Add intro comment.
8395 (reorder_basic_blocks_software_trace_cache): Print a header to
8396 the dump file.
8397 (edge_order): New function.
8398 (reorder_basic_blocks_simple): New function.
8399 (reorder_basic_blocks): Choose between the STC and the simple
8400 algorithms (always choose the former).
8401
8402 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8403
8404 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8405 function, factored out from ...
8406 (reorder_basic_blocks): ... here.
8407
8408 2015-10-01 Tom de Vries <tom@codesourcery.com>
8409
8410 * tree-cfg.c (dump_function_to_file): Dump function attributes using
8411 __attribute__(()) string. Move dumping of function attributes to before
8412 function name.
8413
8414 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
8415
8416 PR target/66870
8417 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8418 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8419 based on gold linker version.
8420 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8421 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8422 * configure, config.in: Regenerate.
8423
8424 2015-10-01 Alan Modra <amodra@gmail.com>
8425
8426 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8427 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8428 (rs6000_output_mi_thunk): Likewise.
8429
8430 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8431
8432 * config/nvptx/mkoffload.c (process): Change offload data format.
8433
8434 2015-09-30 Jeff Law <law@redhat.com>
8435
8436 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8437 with constant conditions.
8438 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8439 (remove_ctrl_stmt_and_useless_edges): No longer static.
8440 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8441 (remove_ctrl_stmt_and_useless_edges): Likewise.
8442
8443 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8444 Cesar Philippidis <cesar@codesourcery.com>
8445
8446 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8447 (TARGET_GOACC_VALIDATE_DIMS): Override.
8448 * target.def (TARGET_GOACC): New target hook prefix.
8449 (validate_dims): New hook.
8450 * targhooks.h (default_goacc_validate_dims): New.
8451 * omp-low.c (oacc_validate_dims): New.
8452 (execute_oacc_device_lower): New.
8453 (default_goacc_validate_dims): New.
8454 (pass_data_oacc_device_lower): New.
8455 (pass_oacc_device_lower): New pass.
8456 (make_pass_oacc_device_lower): New.
8457 * tree-pass.h (make_pass_oacc_device_lower): Declare.
8458 * passes.def (pass_oacc_device_lower): Add it.
8459 * doc/tm.texi: Rebuilt.
8460 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8461 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8462
8463 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
8464
8465 PR rtl-optimization/67037
8466 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8467
8468 2015-09-30 Bernd Schmidt <bernds@redhat.com>
8469
8470 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8471 * passes.c: Include tree-ssanames.h.
8472 (execute_function_todo): Flush the pending free SSA_NAMEs after
8473 eliminating unreachable basic blocks.
8474 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8475 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8476 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8477 (flush_ssanames_freelist): New function.
8478 (release_ssaname_fn): Put released names on the queue.
8479 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8480 * tree-ssanames.h (flush_ssanames_freelist): Declare.
8481
8482 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8483
8484 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8485 (generate_target_descr_file, generate_target_offloadend_file)
8486 (generate_host_descr_file, prepare_target_image): Pass it on.
8487 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8488 (compile_native, main): Pass it on.
8489 * lto-wrapper.c (compile_offload_image): Likewise.
8490
8491 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8492 Ilya Verbin <ilya.verbin@intel.com>
8493 Andrey Turetskiy <andrey.turetskiy@intel.com>
8494
8495 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8496 (prepare_target_image, main): Refactor argv building to use
8497 obstacks.
8498
8499 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8500
8501 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8502 * config/spu/spu.c (spu_expand_atomic_op): New function.
8503 * config/spu/spu.md (AINT): New mode iterator.
8504 (ATOMIC): New code iterator.
8505 (atomic_name, atomic_pred): New code predicates.
8506 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8507 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8508 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8509 "atomic_<atomic_name>_fetch<mode>"): Likewise.
8510
8511 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
8512
8513 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8514 debug insns.
8515 (scalar_chain::convert_reg): Likewise.
8516
8517 2015-09-30 Richard Biener <rguenther@suse.de>
8518
8519 * builtins.c: Add comment that no new simplifications should
8520 be added here.
8521
8522 2015-09-30 Marek Polacek <polacek@redhat.com>
8523
8524 PR tree-optimization/67690
8525 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8526 reset_flow_sensitive_info_in_bb.
8527 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8528 * tree-ssanames.c: Include "gimple-iterator.h".
8529 (reset_flow_sensitive_info_in_bb): New function.
8530 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8531
8532 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8533
8534 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8535 variable, replacing it with...
8536 (offload_abi): ... this new variable. Adjust all users.
8537 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8538
8539 2015-09-30 Matthias Klose <doko@ubuntu.com>
8540
8541 * configure.ac: Remove extraneous ;;.
8542 * configure: Regenerate.
8543
8544 2015-09-29 James Bowman <james.bowman@ftdichip.com>
8545
8546 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8547 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8548 predicate, disallow register for operand 2.
8549
8550 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
8551
8552 * graphite-dependences.c (scop_get_dependences): Moved in down
8553 in order to be visible to its caller.
8554 * graphite-poly.h: Removed compute_deps, and extend_schedule.
8555
8556 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8557 Aditya Kumar <aditya.k7@samsung.com>
8558
8559 PR tree-optimization/67754
8560 * graphite-optimize-isl.c (optimize_isl): Call
8561 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8562
8563 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8564
8565 * builtins.c (expand_builtin_acc_on_device): Delete.
8566 (expand_builtin): Don't call it.
8567 (fold_builtin_1): Fold acc_on_device.
8568
8569 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
8570
8571 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8572 (ix86_nsaved_sseregs): Likewise.
8573
8574 2015-09-29 Jeff Law <law@redhat.com>
8575
8576 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8577 computation of unused value.
8578
8579 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8580 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8581 inline macro expansion.
8582
8583 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8584
8585 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8586 (gen_shl_sext): Likewise.
8587 * config/sh/sh.md (divsi3): Likewise.
8588 (imm->ext_dest_operand splitter): Likewise.
8589
8590 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8591 Aditya Kumar <aditya.k7@samsung.com>
8592
8593 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8594 (nb_data_writes_in_bb): Remove.
8595 (split_pbb): Remove.
8596 (split_reduction_stmt): Remove.
8597 (is_reduction_operation_p): Remove.
8598 (phi_contains_arg): Remove.
8599 (follow_ssa_with_commutative_ops): Remove.
8600 (detect_commutative_reduction_arg): Remove.
8601 (detect_commutative_reduction_assign): Remove.
8602 (follow_inital_value_to_phi): Remove.
8603 (edge_initial_value_for_loop_phi): Remove.
8604 (initial_value_for_loop_phi): Remove.
8605 (used_outside_reduction): Remove.
8606 (detect_commutative_reduction): Remove.
8607 (translate_scalar_reduction_to_array_for_stmt): Remove.
8608 (remove_phi): Remove.
8609 (dr_indices_valid_in_loop): Remove.
8610 (close_phi_written_to_memory): Remove.
8611 (translate_scalar_reduction_to_array): Remove.
8612 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8613 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8614 (rewrite_commutative_reductions_out_of_ssa): Remove.
8615 (build_poly_scop): Remove call to
8616 rewrite_commutative_reductions_out_of_ssa.
8617
8618 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
8619
8620 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8621 Add new insn types for vector load and store pairs.
8622 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8623 types "neon_ldp{,_q}".
8624 * config/arm/cortex-a57.md (neon_load_c): Add insn types
8625 "neon_ldp{,_q}".
8626 (neon_store_complex): Add insn types "neon_stp{,_q}".
8627 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8628 "neon_{ldp,stp}_q".
8629
8630 2015-09-29 Jeff Law <law@redhat.com>
8631
8632 * config/rx/constraints.md (Int08): Fix undefined left shift
8633 behaviour.
8634 (Sint08, Sint16, Sint24): Likewise.
8635 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8636
8637 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8638 behaviour.
8639
8640 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8641 left shift behaviour.
8642 * config/msp430/constraints.md ('L' constraint): Similarly.
8643 ('Ys' constraint): Similarly.
8644
8645 2015-09-29 Richard Biener <rguenther@suse.de>
8646
8647 PR tree-optimization/67170
8648 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8649 the translate function pointer parameter to get the
8650 bool whether to disambiguate only by reference.
8651 (walk_non_aliased_vuses): Likewise.
8652 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8653 (get_continuation_for_phi_1): Likewise.
8654 (get_continuation_for_phi): Likewise.
8655 (walk_non_aliased_vuses): Likewise.
8656 * tree-ssa-sccvn.c (const_parms): New bitmap.
8657 (vn_reference_lookup_3): Adjust for interface change.
8658 Disambiguate parameters pointing to readonly memory.
8659 (free_scc_vn): Free const_parms.
8660 (run_scc_vn): Initialize const_parms from a fn spec attribute.
8661
8662 2015-09-29 Richard Biener <rguenther@suse.de>
8663
8664 PR tree-optimization/67741
8665 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8666 builtin calls with correct signature.
8667
8668 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
8669
8670 PR target/65105
8671 * config/i386/i386.c: Include dbgcnt.h.
8672 (has_non_address_hard_reg): New.
8673 (convertible_comparison_p): New.
8674 (scalar_to_vector_candidate_p): New.
8675 (remove_non_convertible_regs): New.
8676 (scalar_chain): New.
8677 (scalar_chain::scalar_chain): New.
8678 (scalar_chain::~scalar_chain): New.
8679 (scalar_chain::add_to_queue): New.
8680 (scalar_chain::mark_dual_mode_def): New.
8681 (scalar_chain::analyze_register_chain): New.
8682 (scalar_chain::add_insn): New.
8683 (scalar_chain::build): New.
8684 (scalar_chain::compute_convert_gain): New.
8685 (scalar_chain::replace_with_subreg): New.
8686 (scalar_chain::replace_with_subreg_in_insn): New.
8687 (scalar_chain::emit_conversion_insns): New.
8688 (scalar_chain::make_vector_copies): New.
8689 (scalar_chain::convert_reg): New.
8690 (scalar_chain::convert_op): New.
8691 (scalar_chain::convert_insn): New.
8692 (scalar_chain::convert): New.
8693 (convert_scalars_to_vector): New.
8694 (pass_data_stv): New.
8695 (pass_stv): New.
8696 (make_pass_stv): New.
8697 (ix86_option_override): Created and register stv pass.
8698 (flag_opts): Add -mstv.
8699 (ix86_option_override_internal): Likewise.
8700 * config/i386/i386.md (SWIM1248x): New.
8701 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8702 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8703 (*anddi3_doubleword): New.
8704 (*zext<mode>_doubleword): New.
8705 (*zextsi_doubleword): New.
8706 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8707 (*<code>di3_doubleword): New.
8708 * config/i386/i386.opt (mstv): New.
8709 * dbgcnt.def (stv_conversion): New.
8710
8711 2015-09-29 Tom de Vries <tom@codesourcery.com>
8712
8713 * tree-cfg.c (dump_function_to_file): Dump function attributes.
8714
8715 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8716
8717 PR target/67716
8718 * config/sh/sh.c (sh_override_options_after_change): New.
8719 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8720 (sh_option_override): Move align_loops, align_jumps and
8721 align_functions handling into sh_override_options_after_change.
8722
8723 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8724
8725 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8726 (nvptx_record_offload_symbol): Record function execution geometry.
8727 * config/nvptx/mkoffload.c (process): Include launch geometry in
8728 function data.
8729 * omp-low.c (oacc_launch_pack): New.
8730 (replace_oacc_fn_attrib): New.
8731 (set_oacc_fn_attrib): New.
8732 (get_oacc_fn_attrib): New.
8733 (expand_omp_target): Create keyed varargs for GOACC_parallel call
8734 generation.
8735 * omp-low.h (get_oacc_fn_attrib): Declare.
8736 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
8737 (DEF_FUNCTION_TYPE_VAR_11): Delete.
8738 * tree.h (OMP_CLAUSE_EXPR): New.
8739 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
8740
8741 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8742 Sebastian Pop <s.pop@samsung.com>
8743
8744 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
8745
8746 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8747 Sebastian Pop <s.pop@samsung.com>
8748
8749 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
8750 * graphite-scop-detection.c (struct sese_l): New type.
8751 (get_entry_bb): API for getting entry bb of SESE.
8752 (get_exit_bb): API for getting exit bb of SESE.
8753 (class debug_printer): New type. Simple printer in debug mode.
8754 (trivially_empty_bb_p): New. Return true when BB is empty or
8755 contains only debug instructions.
8756 (graphite_can_represent_expr): Call scalar_evoution_in_region
8757 instead of analyze_scalar_evolution. Pass in scop instead of only
8758 the scop entry.
8759 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
8760 scop entry.
8761 (stmt_simple_for_scop_p): Same.
8762 (harmful_stmt_in_bb): Same.
8763 (graphite_can_represent_loop): Deleted.
8764 (struct scopdet_info): Deleted.
8765 (scopdet_basic_block_info): Deleted.
8766 (build_scops_1): Deleted.
8767 (bb_in_sd_region): Deleted.
8768 (find_single_entry_edge): Deleted.
8769 (find_single_exit_edge): Deleted.
8770 (create_single_entry_edge): Deleted.
8771 (sd_region_without_exit): Deleted.
8772 (create_single_exit_edge): Deleted.
8773 (unmark_exit_edges): Deleted.
8774 (mark_exit_edges): Deleted.
8775 (create_sese_edges): Deleted.
8776 (build_graphite_scops): Deleted.
8777 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
8778 (build_scops): Use the new scop_builder to build scops.
8779 (dot_all_scops_1): Use the new pretty printer. Print loop father
8780 as well.
8781 (loop_body_is_valid_scop): New. Return true if loop body is a
8782 valid scop.
8783 (class scop_builder): New. Builds SCoPs for polyhedral
8784 optimizations.
8785 (scop_builder): New constructor.
8786 (static sese_l invalid_sese): sese_l with invalid edges.
8787 (get_sese): Get an sese (from a loop) if possible, invalid_sese
8788 otherwise.
8789 (get_nearest_dom_with_single_entry): Get nearest dominator of a
8790 basic_block with single entry. Return NULL if we get to the
8791 beginning of a function.
8792 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
8793 a basic_block with single exit. Return NULL if we get to the
8794 beginning of a function.
8795 (print_sese): Pretty-print SESE.
8796 (merge_sese): Merge two SESEs if possible and return the new SESE.
8797 (build_scop_depth): Start building the SCoP within a loop nest.
8798 (build_scop_breadth): Start building the SCoP at a single loop
8799 depth. Merge adjacent SESEs if valid.
8800 (can_represent_loop_1): Returns true if Graphite can represent
8801 loop inside SCoP. Helper for can_represent_loop.
8802 (can_represent_loop): Returns true if Graphite can represent LOOP
8803 and all its nested loops in SCoP.
8804 (loop_is_valid_scop): Returns true if LOOP and all its nests
8805 constitute a valid SCoP.
8806 (region_has_one_loop): Returns true of a region has only one loop.
8807 (add_scop): Add SCoP to the list of valid scops. Removes an
8808 already existing scop if it intersects with or subsumed by this one.
8809 (harmful_stmt_in_region): Returns true if SCoP has any statment
8810 which cannot be represented by Graphite.
8811 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
8812 (remove_subscops): Remove any SCoP from the list of already found
8813 SCoPs, if subsumed by S1.
8814 (intersects): Return true if region bounded by SCoPs S1 and S2
8815 intersect.
8816 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
8817 * graphite.c (print_graphite_scop_statistics):
8818 (print_graphite_statistics): Print SCoP info while debugging.
8819 (graphite_initialize): Early exit in case number of loops in a
8820 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
8821 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8822 (graphite_finalize):
8823 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
8824 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
8825 (recompute_all_dominators): Recalculate POST_DOMINATORS.
8826 * tree-cfg.c (print_loops): Print the function name while printing
8827 loops.
8828
8829 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
8830 Sebastian Pop <s.pop@samsung.com>
8831
8832 PR tree-optimization/67700
8833 * graphite-sese-to-poly.c (parameter_index_in_region): Call
8834 invariant_in_sese_p_rec.
8835 (extract_affine): Same.
8836 (rewrite_cross_bb_scalar_deps): Call update_ssa.
8837 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
8838 * sese.h (invariant_in_sese_p_rec): Declare.
8839
8840 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
8841
8842 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
8843
8844 2015-09-28 Jiong Wang <jiong.wang@arm.com>
8845
8846 Revert:
8847 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8848 Jiong Wang <jiong.wang@arm.com>
8849
8850 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8851 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8852 (REG_CLASS_NAMES): Likewise.
8853 (REG_CLASS_CONTENTS): Likewise.
8854 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8855 (aarch64_register_move_cost): Likewise.
8856 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8857 possible.
8858 * config/aarch64/constraints.md (Uc0): New constraint.
8859
8860 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
8861
8862 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
8863
8864 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
8865
8866 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
8867 SECTION_EXCLUDE in XO mapping class.
8868
8869 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8870
8871 PR target/54236
8872 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
8873 and handle ne and eq codes.
8874 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
8875 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
8876 CONST_INT_P. Use reverse_condition.
8877 (sh_split_treg_set_expr): Likewise.
8878
8879 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
8880
8881 * config/arm/types.md (type): Add rotate_imm.
8882 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
8883 ROR immediate case.
8884 (*rorsi3_insn_uxtw): Likewise.
8885 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
8886 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
8887 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
8888
8889 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8890
8891 PR rtl-optimization/67481
8892 * ifcvt.c (contains_ccmode_rtx_p): New function.
8893 (insn_valid_noce_process_p): Use it.
8894
8895 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8896
8897 PR rtl-optimization/67456
8898 PR rtl-optimization/67464
8899 PR rtl-optimization/67465
8900 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
8901 move in the mode of x. Handle combination of complex and simple
8902 block pairs as well as the case when one is empty.
8903
8904 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8905
8906 * doc/gimple.texi: Update references to gimple_statement_base.
8907 * gdbhooks.py: Likewise.
8908 * gimple.h: Likewise.
8909
8910 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8911
8912 * config/sparc/driver-sparc.c: map LEON to leon3
8913
8914 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8915
8916 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
8917 and make it inverse to change default
8918 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
8919 supervisor mode
8920 * doc/invoke.texi: Document change of default
8921
8922 2015-09-28 Daniel Cederman <cederman@gaisler.com>
8923
8924 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
8925 true on %f0 for a target without FPU.
8926 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
8927 without FPU.
8928 (untyped_return): Do not load %f0 for a target without FPU.
8929
8930 2015-09-28 Andrew Pinski <apinski@cavium.com>
8931
8932 * config/aarch64/aarch64.md (prefetch):
8933 Change the predicate of operand 0 to register_operand.
8934
8935 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
8936
8937 * config/i386/predicates.md (register_sse4nonimm_operand): New
8938 predicate.
8939 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
8940 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
8941 Use register_sse4nonimm_operand as operand 0 predicate.
8942 (*vec_extractv8hi_sse2): Remove insn pattern.
8943 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
8944 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
8945
8946 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8947 Kaz Kojima <kkojima@gcc.gnu.org>
8948
8949 PR target/67391
8950 * config/sh/sh-protos.h (sh_lra_p): Declare.
8951 * config/sh/sh.c (sh_lra_p): Make non-static.
8952 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
8953 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
8954 Expand into addsi3_scr if operands[2] if needed.
8955 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
8956 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
8957 (addsi3_scr, *addsi3): New insn_and_split patterns.
8958
8959 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
8960
8961 PR rtl-optimization/64164
8962 PR tree-optimization/67312
8963 PR middle-end/67340
8964 PR middle-end/67490
8965 PR bootstrap/67597
8966 * cfgexpand.c (parm_in_stack_slot_p): Remove.
8967 (ssa_default_def_partition): Remove.
8968 (get_rtl_for_parm_ssa_default_def): Remove.
8969 (set_rtl): Check that RTL assignments match expectations.
8970 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
8971 default def location for params and results. Record SSA names
8972 or types in REG and MEM attrs, respectively.
8973 (set_parm_rtl): New.
8974 (expand_one_ssa_partition): Drop logic that assigned MEMs with
8975 unassigned addresses.
8976 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
8977 deferred stack alloc vars.
8978 (expand_used_vars): Skip partitions holding parm default defs.
8979 Move adjust_one_expanded_partition_var loop...
8980 (pass_expand::execute): ... here. Drop redundant assert.
8981 Adjust comments before the final loop over all ssa names.
8982 Require assigned rtl of parms and results to match exactly.
8983 Reset its attributes to match them, not any other variables in
8984 the same partition.
8985 (expand_debug_expr): Use entry value for PARM's default defs
8986 only iff they have zero nondebug uses.
8987 * cfgexpand.h (parm_in_stack_slot_p): Remove.
8988 (get_rtl_for_parm_ssa_default_def): Remove.
8989 (set_parm_rtl): Declare.
8990 * doc/invoke.texi: Improve wording.
8991 * explow.c (promote_decl_mode): Fix promote_function_mode for
8992 result decls not by reference.
8993 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
8994 bypass TYPE_MODE to get the actual vector mode.
8995 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
8996 2015-08-19's changes as follows. Drop include of
8997 basic-block.h and df.h.
8998 (rtl_for_parm): Remove.
8999 (maybe_reset_rtl_for_parm): Remove.
9000 (parm_in_unassigned_mem_p): Remove.
9001 (use_register_for_decl): Add logic for RESULT_DECLs matching
9002 assign_parms' behavior.
9003 (split_complex_args): Revert.
9004 (assign_parms_augmented_arg_list): Revert. Add comment
9005 referencing the logic above.
9006 (assign_parm_adjust_stack_rtl): Revert.
9007 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
9008 of SET_DECL_RTL. Set up a REG if the parm demands so.
9009 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
9010 calls into a single set_parm_rtl. Set up a temporary RTL
9011 temporarily for expand_assignment.
9012 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
9013 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
9014 (assign_bounds): Revert.
9015 (assign_parms): Revert. Use set_parm_rtl.
9016 (allocate_struct_function): Relayout result and parms of
9017 non-abstruct functions.
9018 (expand_function_start): Revert. Use set_parm_rtl. If the
9019 result is not a hard reg, create a pseudo from the promoted
9020 mode of the default def. Promote static chain mode.
9021 * tree-outof-ssa.c (remove_ssa_form): Drop unused
9022 partition_has_default_def. Set up
9023 partitions_for_parm_default_defs.
9024 (finish_out_of_ssa): Remove partition_has_default_def.
9025 Release partitions_for_parm_default_defs.
9026 * tree-outof-ssa.h (struct ssaexpand): Remove
9027 partition_has_default_def. Add
9028 partitions_for_parm_default_defs.
9029 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
9030 stor-layout.h.
9031 (build_ssa_conflict_graph): Fix conflict-detection of default
9032 defs of even unused default defs of params and results.
9033 (for_all_parms): New.
9034 (create_default_def): New.
9035 (register_default_def): New.
9036 (coalesce_with_default): New.
9037 (create_outofssa_var_map): Create default defs for all parms
9038 and results, and register their partitions. Add GIMPLE_RETURN
9039 operands as coalesce candidates with results. Add default
9040 defs of each parm or result as coalesce candidates with its
9041 other defs. Mark each result def, and each default def of
9042 parms, as used_in_copy.
9043 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
9044 with the ssa names, even anonymous ones. Drop
9045 parm_in_stack_slot_p calls. Require same signedness and
9046 alignment.
9047 (coalesce_ssa_name): Add coalesce candidates for all defs of
9048 each parm and result, even unused ones.
9049 (parm_default_def_partition_arg): New type.
9050 (set_parm_default_def_partition): New.
9051 (get_parm_default_def_partitions): New.
9052 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
9053 * tree-ssa-live.c (partition_view_init): Regard unused defs of
9054 parms and results as used.
9055 (verify_live_on_entry): Don't error out just because they're
9056 not live.
9057
9058 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
9059
9060 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9061 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
9062 (output_fde): Don't output length for debug_frame on AIX.
9063 (output_call_frame_info): Don't output length for debug_frame on AIX.
9064 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
9065 HAVE_XCOFF_DWARF_EXTRAS.
9066 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
9067 HAVE_XCOFF_DWARF_EXTRAS.
9068 (output_compilation_unit_header): Don't output length on AIX.
9069 (output_pubnames): Don't output length on AIX.
9070 (output_aranges): Delete argument. Compute length locally. Don't
9071 output length on AIX.
9072 (output_line_info): Don't output length on AIX.
9073 (dwarf2out_finish): Don't compute aranges_length.
9074 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9075 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
9076 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
9077 symbol decoration for AIX.
9078 (rs6000_xcoff_debug_unwind_info): New.
9079 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
9080 for SECTION_DEBUG.
9081 (rs6000_xcoff_declare_function_name): Emit different
9082 .function pseudo-op when DWARF2_DEBUG. Don't call
9083 xcoffout_declare_function for DWARF2_DEBUG.
9084 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
9085 Redefine.
9086 * config/rs6000/aix71.h: New.
9087 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
9088 locations support.
9089 * configure: Regenerate.
9090 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
9091 DWARF support.
9092
9093 2015-09-26 Jeff Law <law@redhat.com>
9094
9095 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
9096 behaviour.
9097 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
9098 behaviour.
9099
9100 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
9101 behaviour
9102
9103 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
9104 undefined behaviour.
9105
9106 * config/cris/cris.md (asrandb): Fix left shift undefined
9107 behaviour.
9108 (asrandw): Likewise.
9109
9110 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
9111
9112 PR target/61578
9113 * lra-constarints.c (match_reload): Check presence of the input pseudo
9114 in the output operand.
9115
9116 2015-09-25 Tobias Burnus <burnus@net-b.de>
9117
9118 * doc/invoke.texi (-fsanitize): Minor wording tweak.
9119
9120 2015-09-25 Tobias Burnus <burnus@net-b.de>
9121
9122 * doc/invoke.texi (-fsanitize): Update URLs.
9123
9124 2015-09-25 Teresa Johnson <tejohnson@google.com>
9125
9126 * opts.c (finish_options): Unset -freorder-blocks-and-partition
9127 if not using profile.
9128
9129 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9130
9131 PR pretty-print/67567
9132 * pretty-print.c (pp_string): Add gcc_checking_assert.
9133 * pretty-print.h (output_buffer_append_r): Likewise.
9134
9135 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9136
9137 PR target/67675
9138 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9139 addr2 individually. Don't emit logical or insn if one is known to
9140 be aligned approriately.
9141 (sh_expand_cmpnstr): Likewise.
9142
9143 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
9144
9145 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9146 __builtin_aarch64_fp[sc]r arguments into a register.
9147
9148 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
9149
9150 * config.gcc (x86_archs): Replace lakemount with lakemont.
9151 (with_cpu): Likewise.
9152 (with_arch): Likewise.
9153 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9154 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
9155 __tune_lakemount__ with __tune_lakemont__.
9156 * config/i386/i386.c (lakemount_cost): Renamed to ...
9157 (lakemont_cost): This.
9158 (m_LAKEMOUNT): Renamed to ...
9159 (m_LAKEMONT): This.
9160 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9161 (processor_target_table): Replace "lakemount" with "lakemont".
9162 (processor_alias_table): Likewise.
9163 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9164 PROCESSOR_LAKEMONT.
9165 (ix86_adjust_cost): Likewise.
9166 (ia32_multipass_dfa_lookahead): Likewise.
9167 * config/i386/i386.h (processor_type): Likewise.
9168 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9169 * doc/invoke.texi: Replace lakemount with lakemont. Replace
9170 Lakemount with Lakemont.
9171
9172 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
9173
9174 * config.gcc (x86_archs): Replace iamcu with lakemount.
9175 (with_cpu): Likewise.
9176 (with_arch): Likewise.
9177 * doc/invoke.texi: Likewise.
9178 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9179 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
9180 __tune_iamcu__ with __tune_lakemount__.
9181 * config/i386/i386.c (iamcu_cost): Renamed to ...
9182 (lakemount_cost): This.
9183 (m_IAMCU): Renamed to ...
9184 (m_LAKEMOUNT): This.
9185 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9186 (processor_target_table): Replace "iamcu" with "lakemount".
9187 (processor_alias_table): Likewise.
9188 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9189 PROCESSOR_LAKEMOUNT.
9190 (ix86_adjust_cost): Likewise.
9191 (ia32_multipass_dfa_lookahead): Likewise.
9192 * config/i386/i386.h (processor_type): Likewise.
9193 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9194
9195 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
9196
9197 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9198 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9199 Declare.
9200 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9201 (pa_expand_compare_and_swap_loop): New.
9202 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9203 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9204 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9205 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9206 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9207 Revise.
9208
9209 2015-09-24 Michael Collison <michael.collison@linaro.org>
9210
9211 PR other/57195
9212 * read-md.c (read_name): Allow mode iterators inside angle
9213 brackets in rtl expressions.
9214
9215 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
9216
9217 PR target/61578
9218 * ira-color.c (update_allocno_cost): Add parameter.
9219 (update_costs_from_allocno): Decrease conflict cost. Pass the new
9220 parameter.
9221
9222 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9223
9224 PR driver/67640
9225 * opts-common.c (prune_options): Discard all -fdiagnostics-color
9226 but the last one, which is moved to the front to be processed
9227 first.
9228 * opts.c (enable_warning_as_error): Reject options that do not
9229 control warnings.
9230
9231 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9232
9233 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9234
9235 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9236
9237 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9238 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9239 (aarch64_cannot_force_const_mem): Likewise.
9240 (aarch64_classify_address): Likewise.
9241 (aarch64_classify_symbolic_expression): Likewise.
9242 (aarch64_print_operand): Likewise.
9243 (aarch64_classify_symbol): Likewise.
9244 (aarch64_mov_operand_p): Likewise.
9245 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9246 (aarch64_mov_operand): Likewise.
9247
9248 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
9249
9250 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9251 for info->spe_gp_size.
9252
9253 2015-09-24 Richard Biener <rguenther@suse.de>
9254
9255 PR lto/67699
9256 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9257 abstract origins.
9258
9259 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
9260
9261 * tree-object-size.c (plus_stmt_object_size)
9262 (cond_expr_object_size): Change the formal parameters from gimple
9263 to gimple *.
9264 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9265 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9266 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9267
9268 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9269
9270 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9271 Check for ld -type pie on Solaris 11.x and 12.
9272 * configure: Regenerate.
9273 * config.in: Regenerate.
9274
9275 * gcc.c (LD_PIE_SPEC): Allow redefinition.
9276
9277 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9278 (STARTFILE_SPEC): Use it.
9279 (ENDFILE_CRTEND_SPEC): Define.
9280 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9281 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9282 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9283 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9284 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9285 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9286 (ENDFILE_ARCH_SPEC): Define.
9287 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9288
9289 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9290
9291 * configure.ac (gcc_cv_solaris_crts): New test.
9292 * configure. Regenerate.
9293 * config.in: Regenerate.
9294 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9295 HAVE_SOLARIS_CRTS variant.
9296
9297 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9298
9299 * tree-inline.h (count_insns_seq): Delete prototype.
9300 (estimate_num_insns_seq): Define prototype.
9301 * tree-inline.c (count_insns_seq): Delete.
9302 (estimate_num_insns_seq): Remove static qualifier.
9303 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9304 with estimate_num_insns_seq.
9305
9306 2015-09-24 Richard Biener <rguenther@suse.de>
9307
9308 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9309 members.
9310 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9311 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
9312 offset.
9313 (ao_ref_init_from_vn_reference): Record clique and base in the
9314 built base.
9315 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9316
9317 2015-09-24 Richard Biener <rguenther@suse.de>
9318
9319 PR tree-optimization/48885
9320 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9321 as not including any restrict tags from other pointers.
9322
9323 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9324
9325 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9326 character when appending to offload_targets.
9327
9328 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9329 offload targets by commas, not colons.
9330 * config.in: Regenerate.
9331 * configure: Likewise.
9332 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9333 instead of setting up the default offload targets here...
9334 (process_command): ..., do it here.
9335 libgomp/
9336 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9337 targets are separated by commas.
9338 * config.h.in: Regenerate.
9339
9340 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9341 Nathan Sidwell <nathan@codesourcery.com>
9342
9343 * omp-low.h (omp_reduction_init_op): Declare.
9344 * omp-low.c (omp_reduction_init_op): New, broken out of ...
9345 (omp_reduction_init): ... here. Call it.
9346 * tree-parloops.c (initialize_reductions): Use
9347 omp_reduction_init_op.
9348
9349 2015-09-23 Richard Biener <rguenther@suse.de>
9350
9351 PR middle-end/67662
9352 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9353 undefined overflow unless they will cancel out.
9354
9355 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9356
9357 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9358 insn emit.
9359
9360 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9361
9362 PR c/49655
9363 * opts.h (write_langs): Declare.
9364 * opts-global.c (write_langs): Make it extern.
9365
9366 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
9367
9368 PR target/67391
9369 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9370 overlapping regs when matching the pattern.
9371
9372 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9373
9374 * config/aarch64/aarch64-simd.md
9375 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9376 (aarch64_float_truncate_hi_v4sf_le): New.
9377 (aarch64_float_truncate_hi_v4sf_be): Likewise.
9378
9379 2015-09-23 Richard Biener <rguenther@suse.de>
9380
9381 * tree-ssa-structalias.c (intra_create_variable_infos): Build
9382 representatives for all restrict qualified pointer destinations.
9383
9384 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9385
9386 * config/i386/i386.md (define_code_attr mshift): New.
9387 (define_mode_iterator SWI1248_AVX512BW): Rename ...
9388 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9389 only.
9390 (define_insn "*k<logic><mode>"): Use new iterator name.
9391 (define_insn "*<mshift><mode>3"): New.
9392
9393 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
9394
9395 PR middle-end/67649
9396 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9397 mark the block as accessible.
9398
9399 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
9400
9401 * function.c (thread_prologue_and_epilogue_insns): Delete
9402 orig_entry_edge argument to try_shrink_wrapping.
9403 * shrink-wrap.c (can_get_prologue): New function.
9404 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9405 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
9406 can_get_prologue where needed. Remove code that finds a single
9407 edge for the prologue. Remove code that tests if any reg clobbered
9408 by the prologue is live on the prologue edge. Remove code that finds
9409 the new prologue edge after duplicating blocks. Make a new prologue
9410 block and edge.
9411 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9412
9413 2015-09-22 Jeff Law <law@redhat.com>
9414
9415 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9416 behavior.
9417
9418 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
9419
9420 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
9421 -Wtemplates, -Wnamespaces): Document.
9422
9423 2015-09-22 Tom de Vries <tom@codesourcery.com>
9424
9425 PR tree-optimization/67671
9426 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9427 pointer references as restrict.
9428
9429 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9430
9431 * config/nios2/nios2.c (nios2_legitimize_address): When handling
9432 'reg + reloc' cases, allow first operand to be non-REG, and use
9433 force_reg() to enforce address pattern.
9434
9435 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
9436
9437 PR target/67480
9438 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9439 (define_mode_iterator VI12_AVX_AVX512F): New.
9440 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9441 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9442 (define_insn "*<code><mode>3"): ... Into new pattern using
9443 VI12_AVX_AVX512F iterators without masking.
9444
9445 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9446
9447 * config.gcc: Support "skylake-avx512".
9448 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9449 PROCESSOR_SKYLAKE_AVX512.
9450 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9451 (processor_target_table): Add "skylake-avx512".
9452 (PTA_SKYLAKE_AVX512): Define.
9453 (ix86_option_override_internal): Add "skylake_avx512".
9454 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9455 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9456 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9457 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9458 * doc/invoke.texi (skylake-avx512): New.
9459
9460 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9461
9462 * config/i386/i386.md (define_insn "kunpckhi"): Fix
9463 operand in pattern.
9464 (define_insn "kunpcksi"): Ditto.
9465 (define_insn "kunpckdi"): Ditto.
9466
9467 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9468
9469 * config/i386/i386.md (define_split not/xor SWI1248x): Use
9470 iterator instead of fixed modes.
9471
9472 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9473
9474 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9475 Adjust declaration.
9476 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9477 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
9478 out_result. Update to support update-fetch operations.
9479 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9480 Adjust for change to aarch64_gen_atomic_ldop.
9481 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9482 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9483 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9484 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9485 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9486
9487 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9488
9489 * config/aarch64/aarch64-protos.h
9490 (aarch64_atomic_ldop_supported_p): Declare.
9491 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9492 (enum aarch64_atomic_load_op_code): New.
9493 (aarch64_emit_atomic_load_op): New.
9494 (aarch64_gen_atomic_ldop): Update to support load-operate
9495 patterns.
9496 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9497 to an expander.
9498 (aarch64_atomic_<atomic_optab><mode>): New.
9499 (aarch64_atomic_<atomic_optab><mode>_lse): New.
9500 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9501 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9502 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9503
9504 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9505
9506 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9507 (UNSPECV_ATOMIC_LDOP_OR): New.
9508 (UNSPECV_ATOMIC_LDOP_BIC): New.
9509 (UNSPECV_ATOMIC_LDOP_XOR): New.
9510 (UNSPECV_ATOMIC_LDOP_PLUS): New.
9511 (ATOMIC_LDOP): New.
9512 (atomic_ldop): New.
9513 (aarch64_atomic_load<atomic_ldop><mode>): New.
9514
9515 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9516
9517 * config/aarch64/aarch64.md
9518 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9519 pattern.
9520
9521 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9522
9523 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9524 Declare.
9525 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9526 (aarch64_gen_atomic_ldop): New.
9527 (aarch64_split_atomic_op): Fix whitespace and add a comment.
9528 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9529 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9530 (atomic_exchange<mode>): Replace with an expander.
9531 (aarch64_atomic_exchange<mode>): New.
9532 (aarch64_atomic_exchange<mode>_lse): New.
9533 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9534 (aarch64_atomic_swp<mode>): New.
9535
9536 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9537
9538 * tree-inline.c (expand_call_inline): Use inform for extra note.
9539 Do not give a note with UNKNOWN_LOCATION.
9540 Replace input_location with gimple_location (stmt).
9541 Use true/false instead of TRUE/FALSE.
9542
9543 2015-09-22 Tom de Vries <tom@codesourcery.com>
9544
9545 PR tree-optimization/67666
9546 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9547 with single field non-conservative.
9548
9549 2015-09-21 David S. Miller <davem@davemloft.net>
9550
9551 PR/67622
9552 Revert:
9553 2015-09-11 David S. Miller <davem@davemloft.net>
9554
9555 * config/sparc/constraints.md: Make "U" constraint a real register
9556 constraint.
9557 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9558 (D_MODES, DF_MODES): Add missing cast.
9559 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9560 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9561 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9562 cost to 8.
9563 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9564 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9565 provide these insn when flag_pic.
9566
9567 2015-09-17 David S. Miller <davem@davemloft.net>
9568
9569 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9570 Declare.
9571 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9572 function.
9573 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9574 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9575 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9576 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9577 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9578 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9579 provide when flag_pic.
9580
9581 2015-09-21 Jeff Law <law@redhat.com>
9582
9583 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9584 behavior.
9585
9586 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9587
9588 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9589
9590 2015-09-21 Richard Biener <rguenther@suse.de>
9591
9592 * passes.c (rest_of_decl_compilation): Do not call
9593 dwarf2out_early_global_decl for aliases.
9594
9595 2015-09-21 Richard Biener <rguenther@suse.de>
9596
9597 PR debug/67664
9598 * dwarf2out.c (add_location_or_const_value_attribute): Remove
9599 attribute parameter. Early exit if either DW_AT_const_value
9600 or DW_AT_location are present already.
9601 (gen_variable_die): Adjust caller.
9602 (dwarf2out_late_global_decl): Likewise.
9603
9604 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9605
9606 PR target/67657
9607 * config/sh/sh.c (sh_remove_overlapping_post_inc,
9608 sh_peephole_emit_move_insn): Add new functions.
9609 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9610 sh_peephole_emit_move_insn): Declere them.
9611 * config/sh/sh.md: Use them in various peephole2 patterns.
9612
9613 2015-09-21 Richard Biener <rguenther@suse.de>
9614
9615 PR middle-end/67651
9616 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9617 address with -fno-delete-null-pointer-checks.
9618
9619 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
9620
9621 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9622 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9623 (reduc_uplus_v16qi): Remove.
9624
9625 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9626 (reduc_<VEC_reduc_name>_v2df): Remove.
9627 (reduc_<VEC_reduc_name>_v4sf): Remove.
9628 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9629
9630 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9631 gen_ function by removing * prefix.
9632 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9633
9634 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9635
9636 PR middle-end/60832
9637 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9638 Print i_bound without converting it to a tree.
9639
9640 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
9641
9642 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9643 operands[4] operands[5] swap with std::swap, removed tmp variable.
9644 (arm_evpc_neon_vzip): Replaced in0/in1 and
9645 out0/out1 swaps with std::swap, removed x variable.
9646 (arm_evpc_neon_vtrn): Replaced in0/int1 and
9647 out0/out1 swaos with std::swap, removed x variable.
9648 (arm_expand_vec_perm_const_1): Replaced
9649 d->op0/d->op1 swap with std::swap, removed x variable.
9650 (arm_evpc_neon_vuzp): Replaced in0/in1 and
9651 out0/out1 swaps with std::swap, removed x variable.
9652
9653 2015-09-21 Jonathan Yong <10walls@gmail.com>
9654
9655 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9656 sysroot/usr/lib/32api for additional win32 libraries,
9657 fixes failing Cygwin bootstrapping.
9658
9659 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9660
9661 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9662
9663 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9664
9665 PR target/67126
9666 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9667 (*mov_t_msb_neg): Rewrite negc pattern.
9668
9669 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9670
9671 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9672 immediate generation code.
9673
9674 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9675
9676 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9677 redundant immediate generation code.
9678
9679 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9680
9681 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9682 (AARCH64_NUM_BITMASKS): Remove.
9683 (aarch64_bitmasks_cmp): Remove.
9684 (aarch64_build_bitmask_table): Remove.
9685
9686 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9687
9688 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9689 slow immediate matching loops with a faster algorithm.
9690
9691 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9692
9693 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9694 faster algorithm.
9695
9696 2015-09-20 Jeff Law <law@redhat.com>
9697
9698 PR tree-optimization/47679
9699 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9700 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9701 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9702 (thread_through_normal_block): Use record_temporary_equivalences.
9703
9704 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
9705
9706 * coretypes.h (gimple): Change typedef to be a forward declaration.
9707 * gimple.h (gimple_statement_base): rename to gimple.
9708 * (all functions and types using gimple): Adjust.
9709 * *.[ch]: Likewise.
9710
9711 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
9712 David Edelsohn <dje.gcc@gmail.com>
9713
9714 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9715 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9716 (EH_FRAME_THROUGH_COLLECT2): Define.
9717 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9718 (ASM_OUTPUT_DWARF_PCREL): Define.
9719 (ASM_OUTPUT_DWARF_DATAREL): Define.
9720
9721 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
9722
9723 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9724 of TARGET_ELF32.
9725
9726 2015-09-18 Jeff Law <law@redhat.com>
9727
9728 PR tree-optimization/47679
9729 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
9730 it here ...
9731 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
9732 object. Update constructor.
9733 (pass_dominator::execute): Corresponding chagnes to declaration
9734 and initialization of avail_exprs_stack. Update constructor call
9735 for dom_opt_dom_walker object.
9736 (lookup_avail_expr, record_cond): Accept additional argument. Pass
9737 it down to children as needed.
9738 (record_equivalences_from_incoming_edge): Likewise.
9739 (eliminate_redundant_computations): Likewise.
9740 (record_equivalences_from_stmt): Likewise.
9741 (simplify_stmt_for_jump_threading): Likewise.
9742 (record_temporary_equivalences): Likewise.
9743 (optimize_stmt): Likewise.
9744 (dom_opt_dom_walker::thread_across_edge): Update access to
9745 avail_exprs_stack object and pass it to children as needed.
9746 (dom_opt_dom_walker::before_dom_children): Similarly.
9747 (dom_opt_dom_walker::after_dom_children): Similarly.
9748 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
9749 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
9750 Add avail_expr_stack argument. Pass it to children as needed.
9751 (dummy_simplify): Likewise.
9752 (simplify_control_stmt_condition): Likewise.
9753 (thread_around_empty_blocks): Likewise.
9754 (thread_through_normal_block): Likewise.
9755 (thread_across_edge): Likewise.
9756 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9757 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
9758
9759 PR tree-optimization/47679
9760 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
9761 it here ...
9762 (dom_opt_dom_walker): New private member holding the const_and_copies
9763 object. Update constructor.
9764 (pass_dominator::execute): Corresponding changes to declaration
9765 and initialization of const_and_copies. Update constructor call
9766 for the dom_opt_dom_walker object.
9767 (record_temporary_equivalences): Accept const_and_copies argument
9768 pass it down to children as needed.
9769 (record_equality): Likewise.
9770 (record_equivalences_from_incoming_edge): Likewise.
9771 (cprop_into_successor_phis, optimize_stmt): Likewise.
9772 (eliminate_redundant_computations): Likewise.
9773 (dom_opt_dom_walker::thread_across_edge): Update access to
9774 const_and_copies object and pass it to children as needed.
9775 (dom_opt_dom_walker::before_dom_children): Similarly.
9776 (dom_opt_dom_walker::after_dom_children): Similarly.
9777
9778 PR tree-optimization/47679
9779 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
9780 it into the avail_exprs_stack class.
9781 (pass_dominator::execute): Corresponding changes to declaration
9782 and initialization of avail_exprs. Pass avail_exprs to
9783 dump_dominator_optimization_stats.
9784 (record_cond): Extract avail_exprs from avail_exprs_stack.
9785 (lookup_avail_expr): Similarly.
9786 (htab_staticstics): Remove unnecessary prototype. Move to earlier
9787 position in file.
9788 (dump_dominator_optimization_stats): Make static and prototype.
9789 Add argument for the hash table to dump.
9790 (debug_dominator_optimization_stats): Remove.
9791 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
9792 prototype.
9793 (debug_dominator_optimization_stats): Similarly.
9794 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
9795 "void" in prototype for pop_to_marker method. Add accessor method
9796 for the underlying avail_exprs table.
9797
9798 * tree-ssa-threadedge.c: Remove trailing whitespace.
9799
9800 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
9801
9802 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
9803 unsigned.
9804 (pa_ldil_cint_p): Likewise.
9805 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
9806 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
9807 Update callers.
9808 * config/pa/pa.md: Likewise.
9809
9810 2015-09-18 David Malcolm <dmalcolm@redhat.com>
9811
9812 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
9813 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
9814 (diagnostic_show_locus): Likewise.
9815 (diagnostic_print_caret_line): Likewise.
9816 * diagnostic-show-locus.c: New file.
9817
9818 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
9819
9820 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
9821 "back" parameter. Declare label in #if block.
9822
9823 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
9824
9825 PR middle-end/67619
9826 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
9827 the address to a register.
9828
9829 2015-09-18 Jeff Law <law@redhat.com>
9830
9831 PR tree-optimization/47679
9832 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
9833 * tree-ssa-dom.c: Remove unnecessary header includes.
9834 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
9835 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
9836 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
9837 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
9838 (pass_phi_only_cprop::execute): Likewise.
9839 (make_pass_phi_only_cprop): Likewise.
9840 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
9841 uses of file scoped statics by passing the required objects
9842 as parameters wherever needed.
9843
9844 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
9845 David Edelsohn <dje.gcc@gmail.com>
9846
9847 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
9848 EH_FRAME_THROUGH_COLLECT2.
9849 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
9850 DW_EH_PE_datarel.
9851 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
9852 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
9853 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
9854 * except.c (switch_to_exception_section): Use a read-only section
9855 even if EH_FRAME_SECTION_NAME is undefined.
9856 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
9857 * collect2.c (write_c_file_stat): Provide dbase on AIX.
9858 (scan_prog_file): Don't export __dso_handle nor
9859 __gcc_unwind_dbase.
9860 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9861 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9862 (ASM_OUTPUT_DWARF_PCREL): Define.
9863 (ASM_OUTPUT_DWARF_DATAREL): Define.
9864 (EH_FRAME_THROUGH_COLLECT2): Define.
9865 (EH_FRAME_IN_DATA_SECTION): Delete.
9866 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
9867 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
9868 Declare.
9869 (rs6000_asm_output_dwarf_datarel): Declare.
9870 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
9871 (rs6000_aix_asm_output_dwarf_datarel): New.
9872 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
9873 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
9874 (EH_FRAME_THROUGH_COLLECT2): Define.
9875 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
9876 (EH_FRAME_THROUGH_COLLECT2): Define.
9877 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9878 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
9879 (EH_FRAME_THROUGH_COLLECT2): New.
9880 (ASM_OUTPUT_DWARF_DATAREL): New.
9881 * doc/tm.texi: Regenerate.
9882
9883 2015-09-18 Richard Biener <rguenther@suse.de>
9884
9885 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
9886 we're in early phase.
9887 (schedule_generic_params_dies_gen): Likewise.
9888 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
9889 work as possible, retaining unhandled cases.
9890 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
9891 clear out generic_type_instances at the end.
9892 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
9893 (dwarf2out_early_finish): ... here. Do most of
9894 gen_remaining_tmpl_value_param_die_attribute here.
9895
9896 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
9897
9898 PR tree-optimization/67283
9899 * tree-sra.c (type_consists_of_records_p): Rename to...
9900 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9901 (completely_scalarize_record): Rename to...
9902 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9903 (scalarize_elem): New.
9904 (analyze_all_variable_accesses): Follow renamings.
9905
9906 2015-09-18 Richard Biener <rguenther@suse.de>
9907
9908 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
9909 in early-dwarf.
9910
9911 2015-09-18 Richard Biener <rguenther@suse.de>
9912
9913 PR tree-optimization/66142
9914 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
9915 treat MEM[&x] and x the same.
9916 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
9917 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
9918 when we simplified sth.
9919 (vn_reference_maybe_forwprop_address): Likewise.
9920 (valueize_refs_1): When we simplified through
9921 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
9922 set valueized_anything to true.
9923 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
9924 one ref kills the other instead of just a offset-based test.
9925 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
9926 for the operand_equal_p test to compare bases and also compare
9927 sizes.
9928
9929 2015-09-17 Christian Bruel <christian.bruel@st.com>
9930
9931 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
9932
9933 2015-09-17 Richard Henderson <rth@redhat.com>
9934
9935 PR libstdc++/65913
9936 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
9937 pointers that encode the alignment of the object.
9938
9939 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9940
9941 PR rtl-optimization/66790
9942 * df-problems.c (LIVE): Amend documentation.
9943
9944 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
9945
9946 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
9947 and optabs-tree.o.
9948 (GTFILES): Replace optabs.c with optabs-libfunc.c.
9949 * genopinit.c (main): Add an include guard to insn-opinit.h.
9950 Protect the rtx_code parts with NUM_RTX_CODE.
9951 * optabs.h: Split parts out to...
9952 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
9953 * optabs.c: Split parts out to...
9954 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
9955 * cilk-common.c: Include optabs-query.h rather than optabs.h.
9956 * fold-const.c: Likewise.
9957 * target-globals.c: Likewise.
9958 * tree-if-conv.c: Likewise.
9959 * tree-ssa-forwprop.c: Likewise.
9960 * tree-ssa-loop-prefetch.c: Likewise.
9961 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
9962 Remove unncessary include files.
9963 * tree-ssa-phiopt.c: Likewise.
9964 * tree-ssa-reassoc.c: Likewise.
9965 * tree-switch-conversion.c: Likewise.
9966 * tree-vect-data-refs.c: Likewise.
9967 * tree-vect-generic.c: Likewise.
9968 * tree-vect-loop.c: Likewise.
9969 * tree-vect-patterns.c: Likewise.
9970 * tree-vect-slp.c: Likewise.
9971 * tree-vect-stmts.c: Likewise.
9972 * tree-vrp.c: Likewise.
9973 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
9974 rather than optabs.h.
9975 * expr.c: Include optabs-tree.h.
9976 * function.c: Likewise.
9977
9978 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
9979
9980 PR middle-end/65958
9981 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
9982 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
9983 * config/arm/arm.c: Include common/common-target.h.
9984 (use_return_insn): Return 0 if the static chain register was saved
9985 above a non-APCS frame.
9986 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
9987 (struct scratch_reg): New.
9988 (get_scratch_register_on_entry): New function.
9989 (release_scratch_register_on_entry): Likewise.
9990 (arm_emit_probe_stack_range): Likewise.
9991 (output_probe_stack_range): Likewise.
9992 (arm_expand_prologue): Factor out code dealing with the IP register
9993 for nested function and adjust it for stack checking.
9994 Invoke arm_emit_probe_stack_range if static builtin stack checking
9995 is enabled.
9996 (thumb1_expand_prologue): Sorry out if static builtin stack checking
9997 is enabled.
9998 (arm_expand_epilogue): Add the saved static chain register, if any, to
9999 the amount of pre-pushed registers to pop.
10000 (arm_frame_pointer_required): Return true if static stack checking is
10001 enabled and we want to catch the exception with the EABI unwinder.
10002 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
10003 (UNSPEC_PROBE_STACK_RANGE): Likewise.
10004 * config/arm/arm.md (probe_stack): New insn.
10005 (probe_stack_range): Likewise.
10006
10007 2015-09-17 Richard Biener <rguenther@suse.de>
10008
10009 * genmatch.c (parser::parse_expr): Improve error message
10010 for mis-placed flags.
10011
10012 2015-09-17 Richard Biener <rguenther@suse.de>
10013
10014 * passes.c (rest_of_decl_compilation): Always call early_global_decl
10015 debug hook when we created a varpool node.
10016 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
10017 dwarf2out_early_global_decl, when not just add location or
10018 value attributes to existing DIEs.
10019
10020 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
10021
10022 * config/aarch64/aarch64.md (copysigndf3): New.
10023 (copysignsf3): Likewise.
10024
10025 2015-09-17 David S. Miller <davem@davemloft.net>
10026
10027 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
10028 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
10029 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10030 (HARD_REGNO_CALLER_SAVE_MODE): Define.
10031 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10032 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10033 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10034 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10035 provide when flag_pic.
10036
10037 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
10038
10039 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
10040 object_allocator change.
10041
10042 2015-09-17 Bin Cheng <bin.cheng@arm.com>
10043
10044 PR tree-optimization/66388
10045 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
10046 (dump_iv): Dump no_overflow information.
10047 (alloc_iv): Initialize new field for struct iv.
10048 (mark_bivs): Count number of no_overflow bivs.
10049 (find_deriving_biv_for_expr, record_biv_for_address_use): New
10050 functions.
10051 (idx_find_step): Call new functions above.
10052 (add_candidate_1, add_candidate): New paramter.
10053 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
10054 (get_computation_aff): Simplify convertion of cand for BIV.
10055 (get_computation_cost_at): Step cand's base if necessary.
10056
10057 2015-09-17 Bin Cheng <bin.cheng@arm.com>
10058
10059 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
10060 parameter.
10061 (tree_simplify_using_condition): Ditto.
10062 (simplify_using_initial_conditions): Ditto.
10063 (loop_exits_before_overflow): Pass new argument to function
10064 simplify_using_initial_conditions. Remove case for type conversions
10065 simplification.
10066 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
10067 parameter.
10068 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
10069 in iv base using loop initial conditions.
10070
10071 2015-09-16 Jeff Law <law@redhat.com>
10072
10073 PR tree-optimization/47679
10074 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
10075 (free_all_edge_infos): Use it.
10076 (allocate_edge_info): Free preexisting edge info data.
10077 (pass_dominator::execute): Set up initial edge info structures.
10078 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
10079 thread_across_edge.
10080 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
10081 If non-null, then push/pop markers appropriately.
10082 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10083 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
10084 thread-across_edge.
10085
10086 2015-09-16 James Bowman <james.bowman@ftdichip.com>
10087
10088 * config/ft32/ft32.c: Fix the memory address space predicate.
10089
10090 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
10091
10092 PR target/67573
10093 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
10094 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10095
10096 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10097
10098 * toplev.h (check_global_declaration): Remove declaration.
10099 * toplev.c (check_global_declaration): Move to ...
10100 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
10101 (analyze_functions): Update call.
10102
10103 2015-09-16 David S. Miller <davem@davemloft.net>
10104
10105 * lra-constraints.c (simplify_operand_subreg): Do not assume that
10106 lowpart of a SUBREG has offset zero.
10107
10108 2015-09-16 Jeff Law <law@redhat.com>
10109
10110 PR tree-optimization/47679
10111 * tree-ssa-dom.c (enum expr_kind): Moved from here to
10112 tree-ssa-scopedtables.h.
10113 (struct hashable_expr, class expr_hash_elt): Likewise.
10114 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
10115 Move associated methods into tree-ssa-scopedtables.c.
10116 (avail_expr_hash, initialize_expr_from_cond): Similarly.
10117 (hashable_expr_equal_p, add_expr_commutative): Likewise.
10118 (add_hashable_expr): Likewise.
10119 (record_cond): Delete element directly.
10120 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
10121 private copy ctor and assignment operator methods.
10122 (expr_elt_hasher): Inline trivial methods.
10123 (initialize_expr_from_cond): Prototype.
10124 * tree-ssa-scopedtables.c: Add necessary includes, functions and
10125 methods that were previously in tree-ssa-dom.c. Improve various
10126 comments.
10127
10128 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
10129
10130 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
10131
10132 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
10133
10134 PR bootstrap/67587
10135 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10136 fixup_partitions.
10137
10138 2015-09-16 Richard Biener <rguenther@suse.de>
10139
10140 PR middle-end/67253
10141 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10142 location of possibly shared trees.
10143
10144 2015-09-16 Richard Biener <rguenther@suse.de>
10145
10146 PR middle-end/67271
10147 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10148
10149 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
10150
10151 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10152 offset and size computations instead of HOST_WIDE_INT.
10153
10154 2015-09-16 Richard Biener <rguenther@suse.de>
10155
10156 PR middle-end/67442
10157 * fold-const.c (extract_muldiv_1): Properly extend multiplication
10158 result before builting a tree via wide_int_to_tree.
10159
10160 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
10161
10162 * Makefile.in: Add memory-block.cc
10163 (pool_allocator::initialize): Use fixed block size.
10164 (pool_allocator::release): Use memory_block_pool.
10165 (pool_allocator::allocate): Likewise.
10166 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10167 object pools.
10168 * cfg.c (initialize_original_copy_tables): Likewise.
10169 * cselib.c (elt_list_pool, elt_loc_list_pool,
10170 cselib_val_pool): Likewise.
10171 * df-problems.c (df_chain_alloc): Likewise.
10172 * df-scan.c (df_scan_alloc): Likewise.
10173 * dse.c (cse_store_info_pool, rtx_store_info_pool,
10174 read_info_type_pool, insn_info_type_pool, bb_info_pool,
10175 group_info_pool, deferred_change_pool): Likewise.
10176 * et-forest.c (et_nodes, et_occurrences): Likewise.
10177 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10178 ipcp_agg_lattice_pool): Likewise.
10179 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10180 * ipa-profile.c (histogram_pool): Likewise.
10181 * ipa-prop.c (ipa_refdesc_pool): Likewise.
10182 * ira-build.c (live_range_pool, allocno_pool, object_pool,
10183 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10184 * ira-color.c (update_cost_record_pool): Likewise.
10185 * lra-lives.c (lra_live_range_pool): Likewise.
10186 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10187 * memory-block.cc: New file.
10188 * memory-block.h: New file.
10189 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10190 * sched-deps.c (sched_deps_init): Likewise.
10191 * sel-sched-ir.c (sched_lists_pool): Likewise.
10192 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10193 * tree-sra.c (access_pool): Likewise.
10194 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10195 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10196 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10197 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10198 * tree-ssa-strlen.c (strinfo_pool): Likewise.
10199 * tree-ssa-structalias.c (variable_info_pool): Likewise.
10200 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10201 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10202
10203 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10204
10205 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10206 definition.
10207 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10208 call0 ABI.
10209
10210 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10211
10212 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10213 to pass TLS call argument, according to current ABI.
10214 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10215 callx0 for TLS call, according to current ABI.
10216
10217 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10218
10219 * tree-eh.c (lower_try_finally_dup_block): Clear location information
10220 on stack restore statements.
10221 (decide_copy_try_finally): Do not consider a stack restore statement as
10222 coming from sources.
10223
10224 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
10225
10226 * config/alpha/alpha.c (alpha_expand_block_clear): Use
10227 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10228
10229 2015-09-15 Jeff Law <law@redhat.com>
10230
10231 PR tree-optimization/47679
10232 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10233 methods and private members.
10234 (avail_exprs_stack): Similarly. Change type of global
10235 from a pair of expr_hash_elt_t to the new class.
10236 (expr_elt_hasher::hash): Corresponding changes.
10237 (expr_elt_hasher::equal): Similarly.
10238 (avail_expr_hash): Similarly.
10239 (pass_dominator::execute): Similarly.
10240 (dom_opt_dom_walker::thread_across_edge): Similarly.
10241 (record_cond): Similarly.
10242 (dom_opt_dom_walker::before_dom_children): Similarly.
10243 (dom_opt_dom_walker::after_dom_children): Similarly.
10244 (lookup_avail_expr): Likewise.
10245 (initialize_hash_element): Now a expr_hash_elt constructor.
10246 (initialize_hash_element_from_expr): Similarly.
10247 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10248 (free_expr_hash_elt): Call dtor for the element.
10249 (remove_local_expressions_from_table): Now the "pop_to_marker"
10250 method in the available_exprs_stack class.
10251 (avail_expr_stack::record_expr): Method factored out.
10252 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10253 Fix formatting.
10254 (hashable_expr_equal_p): Fix formatting.
10255
10256 2015-09-15 David Malcolm <dmalcolm@redhat.com>
10257
10258 * input.h (location_get_source_line): Drop "expanded_location"
10259 param in favor of a file and line number.
10260 * input.c (location_get_source_line): Likewise.
10261 (dump_location_info): Update for change in signature of
10262 location_get_source_line.
10263 * diagnostic.c (diagnostic_print_caret_line): Likewise.
10264
10265 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10266
10267 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10268 Bump to 4KB for SJLJ exceptions.
10269 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
10270 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10271 * doc/tm.texi: Regenerate.
10272
10273 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10274
10275 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10276 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
10277 Update prototype.
10278
10279 2015-09-15 Richard Biener <rguenther@suse.de>
10280
10281 PR tree-optimization/67470
10282 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10283 structure for PHI hoisting by inserting a forwarder block
10284 if appropriate.
10285
10286 2015-09-15 Christian Bruel <christian.bruel@st.com>
10287
10288 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10289 (arm_option_print): New function.
10290
10291 2015-09-15 Christian Bruel <christian.bruel@st.com>
10292
10293 PR target/52144
10294 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10295 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10296 Remove flags parameter.
10297 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10298 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10299 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10300 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10301 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10302 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10303 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10304 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10305
10306 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10307
10308 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10309
10310 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10311 AARCH64_VALID_SIMD_DREG_MODE.
10312
10313 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10314
10315 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10316 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10317 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10318 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10319 aarch64_ld4_lane<mode>): Combine together, making...
10320 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10321 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10322 aarch64_st4_lane<mode>): Combine together, making...
10323 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10324 * config/aarch64/iterators.md (nregs): Add comment.
10325
10326 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10327
10328 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10329 Change operand mode from <V_TWO_ELEM> to BLK.
10330 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10331 (aarch64_vec_store_lanesoi_lane<mode): Likewise
10332 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10333 (aarch64_ld2_lane<mode>): Likewise.
10334 (aarch64_st2_lane<VQ:mode>): Likewise.
10335 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10336
10337 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10338
10339 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10340 Change operand mode from <V_FOUR_ELEM> to BLK.
10341 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10342 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10343 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10344 (aarch64_ld4_lane<mode>): Likewise.
10345 (aarch64_st4_lane<mode>): Likewise.
10346 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10347
10348 2015-09-15 Richard Biener <rguenther@suse.de>
10349
10350 PR middle-end/67563
10351 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10352 transfer EH info from old to new stmt.
10353 (replace_call_with_value): Likewise.
10354 (replace_call_with_call_and_fold): Likewise.
10355 (gimple_fold_builtin_memory_op): Likewise.
10356 (gimple_fold_builtin_memset): Likewise.
10357 (gimple_fold_builtin_stpcpy): Likewise.
10358 (gimple_fold_call): Likewise.
10359
10360 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10361
10362 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10363 comment.
10364 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10365 (aarch64_simd_intEI_type_node): Likewise.
10366 (aarch64_simd_builtin_std_type): Remove EImode case.
10367 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10368 * config/aarch64/aarch64-modes.def: Remove EImode.
10369
10370 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10371
10372 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10373 Change operand mode from <V_THREE_ELEM> to BLK.
10374 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10375 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10376 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10377 (aarch64_ld3_lane<mode>): Likewise.
10378 (aarch64_st3_lane<mode>): Likewise.
10379 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10380
10381 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10382
10383 * config/aarch64/aarch64-simd.md
10384 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10385 Change all TImode operands to BLKmode.
10386 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10387 Change all EImode operands to BLKmode.
10388 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10389 Change all OImode operands to BLKmode.
10390
10391 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10392 and call set_mem_size.
10393 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10394
10395 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10396
10397 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10398
10399 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10400 to...
10401 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10402
10403 (vec_store_lanesci_lane<mode>): Rename to...
10404 (aarch64_vec_store_lanesci_lane<mode>): ...this.
10405
10406 (vec_store_lanesxi_lane<mode>): Rename to...
10407 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10408
10409 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10410 aarch64_st4_lane<mode>): Follow renaming.
10411
10412 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10413
10414 * config/s390/s390.c (s390_const_operand_ok): Add missing
10415 brackets.
10416
10417 2015-09-15 Richard Biener <rguenther@suse.de>
10418
10419 PR lto/67568
10420 * lto-streamer.h (lto_location_cache::current_sysp): Properly
10421 initialize.
10422 * lto-streamer-out.c (clear_line_info): Likewise.
10423
10424 2015-09-15 Richard Biener <rguenther@suse.de>
10425
10426 * doc/match-and-simplify.texi: Fix wording.
10427
10428 2015-09-15 Bin Cheng <bin.cheng@arm.com>
10429
10430 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10431 unnecessary type conversion in op1.
10432
10433 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10434
10435 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10436 (dup_block_and_redirect): Delete function.
10437 (can_dup_for_shrink_wrapping): New function.
10438 (fix_fake_fallthrough_edge): New function.
10439 (try_shrink_wrapping): Rewrite function.
10440 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10441
10442 2015-09-14 Rich Felker <dalias@libc.org>
10443
10444 * configure.ac: Change target pattern for sh TLS support
10445 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10446 * configure: Regenerate.
10447
10448 2015-09-14 Jeff Law <law@redhat.com>
10449
10450 PR tree-optimization/47679
10451 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10452 type rather than void *.
10453
10454 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10455
10456 PR fortran/67460
10457 * diagnostic.c (diagnostic_initialize): Do not set
10458 some_warnings_are_errors.
10459 (diagnostic_finish): Use DK_WERROR count instead.
10460 (diagnostic_report_diagnostic): Do not set
10461 some_warnings_are_errors.
10462 * diagnostic.h (struct diagnostic_context): Remove
10463 some_warnings_are_errors.
10464
10465 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
10466
10467 * config/sparc/predicates.md (const_all_ones_operand): Use
10468 CONSTM1_RTX to simplify definition.
10469
10470 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
10471
10472 PR target/67061
10473 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10474 Handle call insns.
10475
10476 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
10477
10478 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10479 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10480 OPT_fshow_column to handled saved option cases.
10481 (append_compiler_options): Do not skip the above added options.
10482
10483 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10484
10485 PR target/63304
10486 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10487 nopcrelative_literal_loads.
10488 (aarch64_classify_address): Likewise.
10489 (aarch64_constant_pool_reload_icode): Define.
10490 (aarch64_secondary_reload): Handle secondary reloads for
10491 literal pools.
10492 (aarch64_override_options): Handle nopcrelative_literal_loads.
10493 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10494 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10495 Define.
10496 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10497 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10498 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10499 predicate.
10500 * doc/invoke.texi (mpc-relative-literal-loads): Document.
10501
10502 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
10503
10504 PR middle-end/67401
10505 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10506 sync_compare_and_swap_optab libcall to target_oval.
10507
10508 2015-09-14 Marek Polacek <polacek@redhat.com>
10509
10510 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10511 value.
10512 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10513
10514 2015-09-11 Mark Wielaard <mjw@redhat.com>
10515
10516 PR c/28901
10517 * toplev.c (check_global_declaration): Check and use
10518 warn_unused_const_variable.
10519 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10520 (-Wunused-variable): Remove non-constant. For C implies
10521 -Wunused-const-variable.
10522 (-Wunused-const-variable): New.
10523
10524 2015-09-14 Richard Biener <rguenther@suse.de>
10525
10526 * doc/match-and-simplify.texi: Update for changed syntax
10527 of inner ifs and the new switch expression.
10528
10529 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10530
10531 * config/i386/haswell.md: New file describing Haswell pipeline.
10532 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10533 haswell-like processors.
10534 (ix86_reassociation_width): Increase reassociation width for 64-bit
10535 Haswell processor family.
10536 * config/i386/i386.md: Introduce haswell cpu and include new md file.
10537
10538 2015-09-14 Richard Biener <rguenther@suse.de>
10539
10540 * doc/match-and-simplify.texi: Fixup some formatting issues
10541 and document the 's' flag.
10542
10543 2015-09-13 Olivier Hainque <hainque@adacore.com>
10544 Eric Botcazou <ebotcazou@adacore.com>
10545
10546 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10547 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
10548 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10549 (TARGET_CPU_gr5): Likewise.
10550 (TARGET_CPU_gr6): Likewise.
10551 (MULTILIB_DEFAULTS): Likewise.
10552 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10553 for mcpu=gr5 and mcpu=gr6.
10554 (MULTILIB_DIRNAMES): Adjust accordingly.
10555
10556 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10557
10558 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10559 (mem_ref_p): Likewise.
10560 (outermost_indep_loop): Adjust.
10561 (mem_ref_in_stmt): Likewise.
10562 (determine_max_movement): Likewise.
10563 (mem_ref_alloc): Likewise.
10564 (record_mem_ref_loc): Likewise.
10565 (set_ref_stored_in_loop): Likewise.
10566 (mark_ref_stored): Likewise.
10567 (gather_mem_refs_stmt): Likewise.
10568 (mem_refs_may_alias_p): Likewise.
10569 (for_all_locs_in_loop): Likewise.
10570 (struct rewrite_mem_ref_loc): Likewise.
10571 (rewrite_mem_refs): Likewise.
10572 (struct first_mem_ref_loc_1): Likewise.
10573 (first_mem_ref_loc): Likewise.
10574 (struct sm_set_flag_if_changed): Likewise.
10575 (execute_sm_if_changed_flag_set): Likewise.
10576 (execute_sm): Likewise.
10577 (hoist_memory_references):
10578 (struct ref_always_accessed): Likewise.
10579 (ref_always_accessed_p): Likewise.
10580 (refs_independent_p): Likewise.
10581 (record_dep_loop): Likewise.
10582 (ref_indep_loop_p_1): Likewise.
10583 (ref_indep_loop_p_2): Likewise.
10584 (ref_indep_loop_p): Likewise.
10585 (can_sm_ref_p): Likewise.
10586 (find_refs_for_sm): Likewise.
10587 (tree_ssa_lim_finalize): Likewise.
10588
10589 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10590
10591 * dwarf2out.c (dw_attr_ref): Remove typedef.
10592 (dw_line_info_ref): Likewise.
10593 (pubname_ref): Likewise.
10594 (dw_ranges_ref): Likewise.
10595 (dw_ranges_by_label_ref): Likewise.
10596 (comdat_type_node_ref): Likewise.
10597 (get_AT): Adjust.
10598 (get_AT_low_pc): Likewise.
10599 (get_AT_hi_pc): Likewise.
10600 (get_AT_string): Likewise.
10601 (get_AT_flag): Likewise.
10602 (get_AT_unsigned): Likewise.
10603 (get_AT_ref): Likewise.
10604 (get_AT_file): Likewise.
10605 (remove_AT): Likewise.
10606 (print_die): Likewise.
10607 (check_die): Likewise.
10608 (die_checksum): Likewise.
10609 (attr_checksum_ordered): Likewise.
10610 (struct checksum_attributes): Likewise.
10611 (collect_checksum_attributes): Likewise.
10612 (die_checksum_ordered): Likewise.
10613 (same_die_p): Likewise.
10614 (is_declaration_die): Likewise.
10615 (clone_die): Likewise.
10616 (clone_as_declaration): Likewise.
10617 (copy_declaration_context): Likewise.
10618 (break_out_comdat_types): Likewise.
10619 (copy_decls_walk): Likewise.
10620 (output_location_lists): Likewise.
10621 (external_ref_hasher::hash): Likewise.
10622 (optimize_external_refs_1): Likewise.
10623 (build_abbrev_table): Likewise.
10624 (size_of_die): Likewise.
10625 (unmark_all_dies): Likewise.
10626 (size_of_pubnames): Likewise.
10627 (output_die_abbrevs): Likewise.
10628 (output_die): Likewise.
10629 (output_pubnames): Likewise.
10630 (add_ranges_num): Likewise.
10631 (add_ranges_by_labels): Likewise.
10632 (add_high_low_attributes): Likewise.
10633 (gen_producer_string): Likewise.
10634 (dwarf2out_set_name): Likewise.
10635 (new_line_info_table): Likewise.
10636 (prune_unused_types_walk_attribs): Likewise.
10637 (prune_unused_types_update_strings): Likewise.
10638 (prune_unused_types): Likewise.
10639 (resolve_addr): Likewise.
10640 (optimize_location_lists_1): Likewise.
10641 (index_location_lists): Likewise.
10642 (dwarf2out_finish): Likewise.
10643
10644 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10645
10646 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10647
10648 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10649
10650 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10651 (dump_asserts_for): Adjust.
10652 (register_new_assert_for): Likewise.
10653 (process_assert_insertions): Likewise.
10654 (insert_range_assertions): Likewise.
10655
10656 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10657
10658 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10659 and remove typedef.
10660 (new_temp_expr_table): Adjust.
10661 (free_temp_expr_table): Likewise.
10662 (version_to_be_replaced_p): Likewise.
10663 (make_dependent_on_partition): Likewise.
10664 (add_to_partition_kill_list): Likewise.
10665 (remove_from_partition_kill_list): Likewise.
10666 (add_dependence): Likewise.
10667 (finished_with_expr): Likewise.
10668 (process_replaceable): Likewise.
10669 (kill_expr): Likewise.
10670 (kill_virtual_exprs): Likewise.
10671 (mark_replaceable): Likewise.
10672 (find_replaceable_in_bb): Likewise.
10673 (find_replaceable_exprs): Likewise.
10674 (debug_ter): Likewise.
10675
10676 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10677
10678 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10679 (struct btr_user): Rename from btr_user_s.
10680 (struct btr_def): Rename from btr_def_s.
10681 (find_btr_def_group): Adjust.
10682 (add_btr_def): Likewise.
10683 (new_btr_user): Likewise.
10684 (note_other_use_this_block): Likewise.
10685 (compute_defs_uses_and_gen): Likewise.
10686 (link_btr_uses): Likewise.
10687 (build_btr_def_use_webs): Likewise.
10688 (block_at_edge_of_live_range_p): Likewise.
10689 (btr_def_live_range): Likewise.
10690 (combine_btr_defs): Likewise.
10691 (move_btr_def): Likewise.
10692 (migrate_btr_def): Likewise.
10693 (migrate_btr_defs): Likewise.
10694
10695 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10696
10697 * var-tracking.c (shared_hash_def): Rename to shared_hash.
10698 (shared_hash): Remove typedef.
10699 (struct dataflow_set): Adjust.
10700 (shared_hash_unshare): Likewise.
10701 (dataflow_set_merge): Likewise.
10702 (vt_initialize): Likewise.
10703 (vt_finalize): Likewise.
10704
10705 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10706
10707 * var-tracking.c (struct location_chain): Rename from
10708 location_chain_def.
10709 (struct variable_part): Adjust.
10710 (variable_htab_free): Likewise.
10711 (unshare_variable): Likewise.
10712 (get_init_value): Likewise.
10713 (get_addr_from_local_cache): Likewise.
10714 (drop_overlapping_mem_locs): Likewise.
10715 (val_reset): Likewise.
10716 (struct variable_union_info): Likewise.
10717 (variable_union): Likewise.
10718 (find_loc_in_1pdv): Likewise.
10719 (insert_into_intersection): Likewise.
10720 (intersect_loc_chains): Likewise.
10721 (canonicalize_loc_order_check): Likewise.
10722 (canonicalize_values_mark): Likewise.
10723 (canonicalize_values_star): Likewise.
10724 (canonicalize_vars_star): Likewise.
10725 (variable_merge_over_cur): Likewise.
10726 (remove_duplicate_values): Likewise.
10727 (variable_post_merge_new_vals): Likewise.
10728 (variable_post_merge_perm_vals): Likewise.
10729 (find_mem_expr_in_1pdv): Likewise.
10730 (dataflow_set_preserve_mem_locs): Likewise.
10731 (dataflow_set_remove_mem_locs): Likewise.
10732 (variable_part_different_p): Likewise.
10733 (onepart_variable_different_p): Likewise.
10734 (find_src_set_src): Likewise.
10735 (dump_var): Likewise.
10736 (set_slot_part): Likewise.
10737 (clobber_slot_part): Likewise.
10738 (delete_slot_part): Likewise.
10739 (vt_expand_var_loc_chain): Likewise.
10740 (emit_note_insn_var_location): Likewise.
10741 (vt_finalize): Likewise.
10742
10743 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10744
10745 * dse.c (store_info_t): Remove typedef.
10746 (group_info_t): Likewise.
10747 (const_group_info_t): Likewise.
10748 (deferred_change_t): Likewise.
10749 (get_group_info): Adjust.
10750 (free_store_info): Likewise.
10751 (canon_address): Likewise.
10752 (clear_rhs_from_active_local_stores): Likewise.
10753 (record_store): Likewise.
10754 (replace_read): Likewise.
10755 (check_mem_read_rtx): Likewise.
10756 (scan_insn): Likewise.
10757 (remove_useless_values): Likewise.
10758 (dse_step1): Likewise.
10759 (dse_step2_init): Likewise.
10760 (dse_step2_nospill): Likewise.
10761 (scan_stores_nospill): Likewise.
10762 (scan_reads_nospill): Likewise.
10763 (dse_step3_exit_block_scan): Likewise.
10764 (dse_step3): Likewise.
10765 (dse_step5_nospill): Likewise.
10766 (dse_step6): Likewise.
10767
10768 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10769
10770 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
10771 (alias_set_entry): Remove typedef.
10772 (alias_set_subset_of): Adjust.
10773 (alias_sets_conflict_p): Likewise.
10774 (init_alias_set_entry): Likewise.
10775 (get_alias_set): Likewise.
10776 (new_alias_set): Likewise.
10777 (record_alias_subset): Likewise.
10778
10779 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
10780
10781 * doc/install.texi (Downloading the source): Mark up
10782 contrib/download_prerequisites properly and drop leading "./".
10783
10784 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10785
10786 * config/arc/arc.h: Remove define of STRUCT_VALUE.
10787 * config/lm32/lm32.h: Likewise.
10788 * config/mep/mep.h: Likewise.
10789 * config/visium/visium.h: Likewise.
10790 * system.h: Poison STRUCT_VALUE macro.
10791
10792 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
10793
10794 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
10795 CONSTANT_P operands.
10796
10797 2015-09-11 David S. Miller <davem@davemloft.net>
10798
10799 * config/sparc/constraints.md: Make "U" constraint a real register
10800 constraint.
10801 * config/sparc/sparc.c (TARGET_LRA_P): Define.
10802 (D_MODES, DF_MODES): Add missing cast.
10803 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
10804 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
10805 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
10806 cost to 8.
10807 * config/sparc/sparc.h (PROMOTE_MODE): Define.
10808 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
10809 provide these insn when flag_pic.
10810
10811 2015-09-11 Jeff Law <law@redhat.com>
10812
10813 PR tree-optimization/47679
10814 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
10815 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
10816 member with m_. Update inline member functions as necessary. Add
10817 toplevel comment.
10818 * tree-ssa-scopedtables.c: Update const_and_copies's member
10819 functions to use m_ prefix to access the stack.
10820
10821 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10822
10823 * graphite-optimize-isl.c (disable_tiling): Remove.
10824 (get_schedule_for_band): Do not use disable_tiling.
10825 (get_prevector_map): Delete function.
10826 (enable_polly_vector): Remove.
10827 (get_schedule_for_band_list): Remove dead code.
10828
10829 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
10830
10831 * graphite-optimize-isl.c (get_tile_map): Refactor.
10832 (get_schedule_for_band): Same.
10833 (getScheduleForBand): Same.
10834 (get_prevector_map): Same.
10835 (get_schedule_for_band_list): Same.
10836 (get_schedule_map): Same.
10837 (get_single_map): Same.
10838 (apply_schedule_map_to_scop): Same.
10839 (optimize_isl): Same.
10840
10841 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10842
10843 PR target/63304
10844 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
10845 (movtf): Delete.
10846 * config/aarch64/iterators.md (GPF_TF_F16): New.
10847 (GPF_F16): Delete.
10848
10849 2015-09-10 Nathan Sidwell <nathan@acm.org>
10850
10851 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
10852 (nvptx_reorg): Adjust comments.
10853
10854 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
10855
10856 PR bootstrap/67363
10857 * configure.ac: Check if setenv and unsetenv are declared.
10858 * configure: Rebuild.
10859 * config.in: Rebuild.
10860 * system.h: Declare setenv and unsetenv if not declared.
10861
10862 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10863
10864 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
10865 commentary to simplify permute mask adjustment equation.
10866 (special_handling_values): Add SH_VPERM.
10867 (const_load_sequence_p): New function.
10868 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
10869 the mask loaded from the constant pool.
10870 (adjust_vperm): New function.
10871 (handle_special_swappables): Call adjust_vperm.
10872 (dump_swap_insn_table): Handle SH_VPERM.
10873
10874 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
10875
10876 * shrink-wrap.c (requires_stack_frame_p): Remove static.
10877 * shrink-wrap.h (requires_stack_frame_p): Put back.
10878
10879 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
10880
10881 * reload1.c (elimination_costs_in_insn): Locally turn
10882 -Wmaybe-uninitialized into a warning.
10883
10884 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
10885
10886 * shrink-wrap.c (requires_stack_frame_p): Make static.
10887 (prepare_shrink_wrap): Likewise.
10888 (dup_block_and_redirect): Likewise.
10889 * shrink-wrap.h: Remove declarations of those functions.
10890
10891 2015-09-10 Mark Wielaard <mjw@redhat.com>
10892
10893 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
10894
10895 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
10896
10897 PR target/67506
10898 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
10899 missing simplify_gen_subreg.
10900
10901 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10902
10903 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
10904 the vector element is bigger than 64 bit.
10905
10906 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10907
10908 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
10909 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
10910
10911 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10912
10913 * config/s390/s390.c: Add V1TImode to constant pool modes.
10914
10915 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10916
10917 PR target/67439
10918 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
10919 predicate. Set predicable_short_it attr to "no".
10920
10921 2015-09-10 Jiong Wang <jiong.wang@arm.com>
10922
10923 PR rtl-optimization/67421
10924 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
10925 left wide shift tranformation.
10926
10927 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10928
10929 * common/config/arc/arc-common.c: Remove references to A5.
10930 * config/arc/arc-opts.h: Likewise.
10931 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
10932 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
10933 * config/arc/t-arc-newlib: Likewise.
10934
10935 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
10936
10937 * config/arc/arc.md (length): Fix attribute length for conditional
10938 executed instructions with long immediate.
10939
10940 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10941
10942 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
10943 type for second alternative.
10944
10945 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
10946
10947 * doc/invoke.texi (Downloading GCC): Mention
10948 contrib/download_prerequisites script.
10949
10950 2015-09-10 Jakub Jelinek <jakub@redhat.com>
10951
10952 PR c++/67523
10953 * gimplify.c (gimplify_omp_for): If inner stmt is not found
10954 for combined loop, assert seen_error () and return GS_ERROR.
10955
10956 PR middle-end/67521
10957 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
10958 if decl is already in outer->variables.
10959
10960 PR middle-end/67517
10961 * gimplify.c (gimplify_scan_omp_clauses): Instead of
10962 asserting that decl is not specified in octx->variables,
10963 break out of the loop if it is.
10964
10965 PR c++/67514
10966 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
10967 iterator is not explicitly determined, but is defined inside
10968 of the combined workshare region, handle it like if it has
10969 DECL_EXPR in OMP_FOR_PRE_BODY.
10970
10971 2015-09-09 Nathan Sidwell <nathan@acm.org>
10972
10973 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
10974 (*cmp<mode>): Add assembler spacing.
10975 (setcc_int<mode>, set_cc_float<mode>): Likewise.
10976 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
10977 level.
10978 (write_func_decl_from_insn): Refactor argument loops & comma emission.
10979 (nvptx_expand_call): Likewise.
10980 (nvptx_output_call_insn): Likewise.
10981 (nvptx_reorg_subreg): Add spacing.
10982
10983 2015-09-09 Marek Polacek <polacek@redhat.com>
10984
10985 PR middle-end/67512
10986 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
10987 for comparisons.
10988
10989 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
10990
10991 PR c++/53184
10992 * doc/invoke.texi ([Wsubobject-linkage]): Document.
10993
10994 2015-09-09 Tom de Vries <tom@codesourcery.com>
10995
10996 * params-list.h: Add missing copyright notice.
10997
10998 2015-09-09 Nathan Sidwell <nathan@acm.org>
10999
11000 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
11001 sel_truesi, not andsi.
11002
11003 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11004
11005 * config/arm/arm.md (*subsi3_compare0): Rename to...
11006 (subsi3_compare0): ... This.
11007 (modsi3): New define_expand.
11008 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
11009 when operand is power of 2.
11010
11011 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11012
11013 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
11014 (*neg<mode>2_compare0): Rename to...
11015 (neg<mode>2_compare0): ... This.
11016 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
11017 Move check for speed inside the if-then-elses. Reflect
11018 CSNEG sequence in MOD by power of 2 case.
11019
11020 2015-09-09 Alan Modra <amodra@gmail.com>
11021
11022 PR target/67378
11023 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
11024 reload replacement for PRE_MODIFY address reg.
11025
11026 2015-09-09 Sebastian Pop <s.pop@samsung.com>
11027
11028 PR tree-optimization/53852
11029 * config.in: Regenerate.
11030 * configure: Regenerate.
11031 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
11032 * graphite-optimize-isl.c (optimize_isl): Stop computation when
11033 PARAM_MAX_ISL_OPERATIONS is reached.
11034 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
11035 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
11036 result equal to isl_stat_ok as the status now can be isl_error_quota.
11037 (subtract_commutative_associative_deps): Same.
11038 (compute_deps): Same.
11039
11040 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11041 Sebastian Pop <s.pop@samsung.com>
11042
11043 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11044 Return the parameter if it was saved in corresponding
11045 parameter_rename_map of the region.
11046 (copy_def): Copy def from sese region to the newly created region.
11047 (copy_internal_parameters): Copy all the internal parameters defined
11048 within a region to the newly created region.
11049 (graphite_regenerate_ast_isl): Copy parameters to the new region before
11050 translating isl to gimple.
11051 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
11052 the loop-nest does not have any data-references.
11053 (build_graphite_scops): Create a scop only when there is at least one
11054 loop inside it.
11055 (contains_only_close_phi_nodes): Deleted.
11056 (print_graphite_scop_statistics): Deleted
11057 (print_graphite_statistics): Deleted
11058 (limit_scops): Deleted.
11059 (build_scops): Removed call to limit_scops.
11060 * sese.c (new_sese): Construct.
11061 (free_sese): Destruct.
11062 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
11063 added.
11064 (set_rename): Pass sese region so that parameters inside the region can
11065 be added to its parameter_rename_map.
11066 (rename_uses): Pass sese region.
11067 (graphite_copy_stmts_from_block): Do not copy parameters that have been
11068 generated in the header of the scop. For each SSA_NAME in the
11069 parameter_rename_map rename its usage.
11070 (invariant_in_sese_p_rec): Return false if tree t is defined outside
11071 sese region.
11072 (scalar_evolution_in_region): If the tree t is invariant just return t.
11073 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
11074 struct sese to keep track of all the parameters which need renaming.
11075 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
11076 any data-refs.
11077 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
11078
11079 2015-09-08 Tom de Vries <tom@codesourcery.com>
11080
11081 * Makefile.in (generated_files): Add params.list.
11082 (params.list, s-params.list): Add rule.
11083 * params.h (enum compiler_param): Include params-list.h. Move define
11084 DEFPARAM, include params.def and undef DEFPARAM ...
11085 * params-list.h: ... here. New file.
11086
11087 2015-09-08 David Malcolm <dmalcolm@redhat.com>
11088
11089 * pretty-print.h (printer_fn): Fix typo in comment.
11090
11091 2015-09-07 Jeff Law <law@redhat.com>
11092
11093 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
11094
11095 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11096
11097 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
11098 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
11099 (arm_neon_fp16_hw): New.
11100
11101 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11102
11103 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
11104 UNITS_PER_WORD >= 4.
11105
11106 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11107
11108 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
11109 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
11110 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
11111 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
11112 (aarch64_float_extend_lo_v2df): Rename to...
11113 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
11114
11115 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
11116 (float_extend_lo): Add v4sf.
11117
11118 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
11119 * config/aarch64/iterators.md (VQ_HSF): New iterator.
11120 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
11121 (Vwide): New mode_attr.
11122
11123 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11124
11125 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
11126 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
11127 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
11128 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
11129 V4HF and V8HF variants to iterator.
11130
11131 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
11132
11133 * config/aarch64/iterators.md (VDQF_F16): New.
11134 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11135
11136 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11137
11138 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11139 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11140 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11141 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11142 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11143 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11144 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11145 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11146 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11147 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11148 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11149 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11150 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11151 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11152 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11153 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11154 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11155 vld1q_dup_f16): New.
11156
11157 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11158
11159 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11160 Reparameterize to...
11161 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11162 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11163 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11164
11165 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11166 v8hf variant.
11167 (float_truncate_lo_): Use BUILTIN_VDF iterator.
11168
11169 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11170
11171 * config/aarch64/iterators.md (VDF, Vdtype): New.
11172 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11173
11174 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11175
11176 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11177 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11178 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11179 Add __builtin_aarch64_simd_hf.
11180 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11181 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11182 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11183 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11184 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11185 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11186 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11187 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11188 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11189
11190 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11191 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11192 (VDC, Vdbl): Add V4HF.
11193
11194 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11195
11196 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11197 V4HFmode and V8HFmode.
11198 (aarch64_split_simd_move): Add case for V8HFmode.
11199 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11200 (aarch64_simd_builtin_std_type): Handle HFmode.
11201 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11202
11203 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11204 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11205 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11206
11207 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11208 Float16x8_t.
11209
11210 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11211 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11212 New typedefs.
11213 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11214 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11215 vst1q_lane_f16): New.
11216 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11217 (VALLDI_F16, VALL_F16): New.
11218 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11219 Add cases for V4HF and V8HF.
11220 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11221
11222 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11223
11224 * config/arm/arm-builtins.c (VAR11, VAR12): New.
11225 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11226 vld4_dup): Add v4hf variant.
11227 (vget_high, vget_low): Add v8hf variant.
11228 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11229 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11230 v4hf and v8hf variants.
11231
11232 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11233 (VDX): Add V4HF.
11234 (V_DOUBLE): Add case for V4HF.
11235 (VQX): Add V8HF.
11236 (V_HALF): Add case for V8HF.
11237 (VDQX): Add V4HF, V8HF.
11238 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11239 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11240
11241 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11242 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11243 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11244 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11245 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11246 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11247 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11248 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11249 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11250
11251 (neon_vcreate, neon_vreinterpretv8qi<mode>,
11252 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11253 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11254 Change VDX to VD_RE.
11255
11256 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11257 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11258 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11259
11260 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11261 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11262 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11263 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11264 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11265 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11266 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11267 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11268 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11269
11270 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11271
11272 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11273 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11274 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11275 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11276 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11277 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11278 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11279 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11280 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11281 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11282 New.
11283
11284 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11285
11286 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11287
11288 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11289
11290 * config/arm/arm-builtins.c (v8hf_UP): New.
11291 (arm_init_simd_builtin_types): Initialise Float16x8_t.
11292
11293 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11294
11295 * config/arm/arm_neon.h (float16x8_t): New typedef.
11296
11297 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11298
11299 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11300 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11301 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11302 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11303 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11304 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11305 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11306 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11307 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11308 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11309
11310 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
11311
11312 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11313 non-alphanumeric characters in the symbol name.
11314
11315 2015-09-07 Marek Polacek <polacek@redhat.com>
11316
11317 PR inline-asm/67448
11318 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11319 a memory input.
11320
11321 2015-09-07 Marek Polacek <polacek@redhat.com>
11322
11323 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11324
11325 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
11326
11327 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11328 not warn.
11329
11330 2015-09-04 Jakub Jelinek <jakub@redhat.com>
11331
11332 PR middle-end/67452
11333 * tree-ssa-live.c: Include cfgloop.h.
11334 (remove_unused_locals): Clear loop->simduid if simduid is about
11335 to be removed from cfun->local_decls.
11336
11337 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11338
11339 PR target/65210
11340 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11341 attribute as well.
11342
11343 2015-09-04 Tom de Vries <tom@codesourcery.com>
11344
11345 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11346
11347 2015-09-04 Jeff Law <law@redhat.com>
11348
11349 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11350 unnecessary constructor. It's now trivial and implemented inside...
11351 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11352 constructor. Add comments to various methods. Remove unused
11353 private fields.
11354 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11355 * tree-vrp.c (identify_jump_threads): Likewise.
11356 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11357 indentation issues.
11358 (thread_across_edge): Similarly.
11359 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11360 arguments in constructor call.
11361
11362 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11363
11364 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11365 temp path contains a '-'.
11366
11367 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11368 Petr Murzin <petr.murzin@intel.com>
11369 Kirill Yukhin <kirill.yukhin@intel.com>
11370
11371 * config/i386/i386-builtin-types.def
11372 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11373 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11374 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11375 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11376 * config/i386/i386.c
11377 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11378 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11379 IX86_BUILTIN_SCATTERALTDIV16SI.
11380 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11381 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11382 __builtin_ia32_scatteraltdiv8si.
11383 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11384 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11385 IX86_BUILTIN_SCATTERALTDIV16SI.
11386 (ix86_vectorize_builtin_scatter): New.
11387 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11388 ix86_vectorize_builtin_scatter.
11389
11390 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11391 Petr Murzin <petr.murzin@intel.com>
11392 Kirill Yukhin <kirill.yukhin@intel.com>
11393
11394 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11395 * doc/tm.texi: Regenerate.
11396 * target.def: Add scatter builtin.
11397 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11398 for loads/stores in case of gather/scatter accordingly.
11399 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11400 STMT_VINFO_GATHER_P(S).
11401 (vect_check_gather): Rename to ...
11402 (vect_check_gather_scatter): this.
11403 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11404 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11405 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11406 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11407 variable and new checkings for it accordingly.
11408 * tree-vect-stmts.c
11409 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11410 STMT_VINFO_GATHER_P(S).
11411 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11412 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11413
11414 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11415
11416 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11417 define_insn.
11418 (mulv16qi3): New define_expand.
11419
11420 2015-09-03 Martin Sebor <msebor@redhat.com>
11421
11422 PR c/66516
11423 * doc/extend.texi (Other Builtins): Document when the address
11424 of a built-in function can be taken.
11425
11426 2015-09-03 Richard Biener <rguenther@suse.de>
11427
11428 * dwarf2out.c (flush_limbo_die_list): Split out from ...
11429 (dwarf2out_early_finish): ... here.
11430 (dwarf2out_finish): Do not call dwarf2out_early_finish but
11431 flush_limbo_die_list. Assert we have no deferred asm names.
11432
11433 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11434
11435 * optabs.c (expand_binop): Don't create a broadcast vector with a
11436 source element wider than the inner mode.
11437
11438 2015-09-03 Richard Biener <rguenther@suse.de>
11439
11440 * varasm.c (output_constant): Use fold_convert instead of
11441 wide_int_to_tree.
11442
11443 2015-09-03 Tom de Vries <tom@codesourcery.com>
11444
11445 PR tree-optimization/65637
11446 * omp-low.c (expand_omp_for_static_chunk): Handle case that
11447 fin_bb has 2 predecessors.
11448
11449 2015-09-03 Tom de Vries <tom@codesourcery.com>
11450
11451 PR tree-optimization/65637
11452 * omp-low.c (find_phi_with_arg_on_edge): New function.
11453 (expand_omp_for_static_chunk): Fix inner loop phi.
11454
11455 2015-09-03 Tom de Vries <tom@codesourcery.com>
11456
11457 PR tree-optimization/65637
11458 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11459 that head is NULL.
11460
11461 2015-09-03 Tom de Vries <tom@codesourcery.com>
11462
11463 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11464
11465 2015-09-03 Tom de Vries <tom@codesourcery.com>
11466
11467 * doc/invoke.texi (parloops-chunk-size): Add item.
11468 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11469 * tree-parloops.c: Include params.h.
11470 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11471 param parloops-chunk-size is used.
11472
11473 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11474
11475 PR middle-end/67351
11476 * fold-const.c (fold_binary_loc) : Move
11477 Transform (x >> c) << c into x & (-1<<c) or
11478 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11479 types using simplify and match.
11480 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11481 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11482
11483 2015-09-03 Richard Biener <rguenther@suse.de>
11484
11485 PR ipa/66705
11486 * tree-ssa-structalias.c (ctor_for_analysis): New function.
11487 (create_variable_info_for_1): Use ctor_for_analysis instead
11488 of get_constructor.
11489 (create_variable_info_for): Likewise.
11490
11491 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
11492
11493 PR ipa/67280
11494 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11495 in new callgraph edge.
11496
11497 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
11498
11499 PR target/59810
11500 PR target/63652
11501 PR target/63653
11502 * config/aarch64/aarch64-simd.md
11503 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11504 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11505 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11506 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11507
11508 2015-09-02 Alan Modra <amodra@gmail.com>
11509
11510 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11511 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11512 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11513
11514 2015-09-02 Alan Modra <amodra@gmail.com>
11515
11516 PR target/67417
11517 * config/rs6000/predicates.md (current_file_function_operand): Don't
11518 return true for weak symbols.
11519 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11520
11521 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
11522 Andrew Bennett <andrew.bennett@imgtec.com>
11523
11524 * config/mips/mips-opts.h (mips_cb_setting): New enum.
11525 * config/mips/mips-protos.h: Add definitions for
11526 mips_output_jump and mips_output_equal_conditional_branch
11527 * config/mips/mips.c (MIPS_JR): Change to support the
11528 JIC instruction.
11529 (mips_emit_compare): Add support for the MIPS R6 conditional
11530 compact branches.
11531 (mips_process_sync_loop): Likewise.
11532 (mips_output_order_conditional_branch): Likewise.
11533 (mips16_build_call_stub): Change MIPS_CALL to
11534 mips_output_jump.
11535 (mips_print_operand_punctuation): Update 's' case to only
11536 apply to micromips r2.
11537 (mips_adjust_insn_length): Add support for forbidden slot
11538 hazards.
11539 (mips_avoid_hazard): Likewise.
11540 (mips_reorg_process_insns): Likewise.
11541 (mips_output_jump): New function.
11542 (mips_output_equal_conditional_branch): Likewise.
11543 (mips_output_conditional_branch): Use jrc/bc if compact
11544 branch support is enabled. Ensure the forbidden slots
11545 between the two branch instructions is filled with a nop.
11546 (mips_option_override): Add support to process the compact
11547 branch option and set the correct defaults. Prevent
11548 non-explict relocs being using for MIPS R6.
11549 (mips_trampoline_init): Add compact branch support.
11550 (mips_mult_zero_zero_cost): Allow zero initialisation of
11551 accumulators with TARGET_DSP.
11552 * config/mips/mips.h (TARGET_CB_NEVER): New define.
11553 (TARGET_CB_MAYBE): New define.
11554 (TARGET_CB_ALWAYS): New define.
11555 (ISA_HAS_DELAY_SLOTS): New define.
11556 (ISA_HAS_COMPACT_BRANCHES): New define.
11557 (ISA_HAS_JRC): New define.
11558 (MIPS_BRANCH_C): New define.
11559 (MIPS_CALL): Removed.
11560 (MICROMIPS_J): Removed.
11561 * config/mips/mips.md (compact_form): New attr.
11562 (hazard): Add support for forbidden slots.
11563 (define_delay): Add support for compact branches.
11564 (*branch_order<mode>): Likewise.
11565 (*branch_order<mode>_inverted): Likewise.
11566 (*branch_equality<mode>): Likewise.
11567 (*branch_equality<mode>_inverted): Likewise.
11568 (*jump_absolute): Likewise.
11569 (*jump_pic): Likewise.
11570 (indirect_jump): Use mips_output_jump to produce assembly output.
11571 (tablejump_<mode>"): Likewise.
11572 (*<optab>"): Likewise.
11573 (<optab>_internal): Likewise.
11574 (sibcall_internal): Likewise.
11575 (sibcall_value_internal): Likewise.
11576 (sibcall_value_multiple_internal): Likewise.
11577 (call_internal): Likewise.
11578 (call_split): Likewise.
11579 (call_internal_direct): Likewise.
11580 (call_direct_split): Likewise.
11581 (call_value_internal): Likewise.
11582 (call_value_split): Likewise.
11583 (call_value_internal_direct): Likewise.
11584 (call_value_direct_split): Likewise.
11585 (call_value_multiple_internal): Likewise.
11586 (call_value_multiple_split): Likewise.
11587 (mips_get_fcsr_mips16_<mode>): Likewise.
11588 (mips_set_fcsr_mips16_<mode>): Likewise.
11589 (tls_get_tp_mips16_<mode>): Likewise.
11590 * config/mips/mips.opt: Add -mcompact-branches option.
11591 * config/mips/predicates.md (order_operator): Ensure the
11592 conditional compact branches are only used if the ISA them.
11593 * doc/invoke.texi: Document -mcompact-branches option.
11594
11595 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
11596
11597 PR target/61578
11598 * lra-lives.c (process_bb_lives): Process move pseudos with the
11599 same value for copies and preferences
11600 * lra-constraints.c (match_reload): Create match reload pseudo
11601 with the same value from single dying input pseudo.
11602
11603 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11604
11605 PR target/67405
11606 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11607
11608 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
11609
11610 * trans-mem.c: Add contributed-by.
11611 * trans-mem.h: Same.
11612
11613 2015-09-01 Richard Biener <rguenther@suse.de>
11614
11615 * expr.c (expand_expr_real_1): For expanding TERed defs
11616 set the current location to that of the def if not UNKNOWN.
11617
11618 2015-09-01 David Sherwood <david.sherwood@arm.com>
11619
11620 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11621
11622 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11623
11624 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11625 then_cost, else_cost fields. Change branch_cost field to unsigned int.
11626 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11627 Include rtl-iter.h.
11628 (noce_simple_bbs): New function.
11629 (noce_try_move): Bail if basic blocks are not simple.
11630 (noce_try_store_flag): Likewise.
11631 (noce_try_store_flag_constants): Likewise.
11632 (noce_try_addcc): Likewise.
11633 (noce_try_store_flag_mask): Likewise.
11634 (noce_try_cmove): Likewise.
11635 (noce_try_minmax): Likewise.
11636 (noce_try_abs): Likewise.
11637 (noce_try_sign_mask): Likewise.
11638 (noce_try_bitop): Likewise.
11639 (bbs_ok_for_cmove_arith): New function.
11640 (noce_emit_all_but_last): Likewise.
11641 (noce_emit_insn): Likewise.
11642 (noce_emit_bb): Likewise.
11643 (noce_try_cmove_arith): Handle non-simple basic blocks.
11644 (insn_valid_noce_process_p): New function.
11645 (contains_mem_rtx_p): Likewise.
11646 (bb_valid_for_noce_process_p): Likewise.
11647 (noce_process_if_block): Allow non-simple basic blocks
11648 where appropriate.
11649
11650 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
11651
11652 * tree-ssa-dom.c (record_equivalences_from_phis,
11653 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11654 (lookup_avail_expr): Likewise, and remove comment and unused temp.
11655
11656 2015-09-01 Nick Clifton <nickc@redhat.com>
11657
11658 * config/msp430/msp430.opt (mcpu): Fix typo.
11659
11660 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11661
11662 * config/aarch64/aarch64.c (aarch64_set_current_function):
11663 Re-layout any vector parameters have non-simd layout.
11664 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11665 Delete.
11666 (aarch64_simd_expand_args): Delete call to the above.
11667
11668 2015-08-31 Mike Frysinger <vapier@gentoo.org>
11669
11670 * doc/invoke.texi (asan-stack): Add space before option.
11671
11672 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11673
11674 * tree.h (zerop): New function.
11675 * tree.c (zerop): Likewise.
11676 (element_precision): Handle expressions.
11677 * match.pd (define_predicates): Add zerop.
11678 (x <= +Inf): Fix comment.
11679 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11680 * fold-const.c (fold_binary_loc): ... here. Remove.
11681
11682 2015-08-31 Richard Biener <rguenther@suse.de>
11683
11684 PR middle-end/67381
11685 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11686
11687 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11688
11689 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11690 (CEXPI): New operator list.
11691 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11692 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11693 Converted from ...
11694 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11695
11696 2015-08-31 Tom de Vries <tom@codesourcery.com>
11697
11698 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11699 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11700 parameter.
11701 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11702 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11703 (rewrite_into_loop_closed_ssa): ... here.
11704 (replace_uses_in_dominated_bbs): Remove function.
11705 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11706 rewrite_into_loop_closed_ssa_1.
11707
11708 2015-08-31 Michael Matz <matz@suse.de>
11709
11710 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11711 enter entry and exit blocks for reverse post order.
11712
11713 2015-08-31 Richard Biener <rguenther@suse.de>
11714
11715 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11716 (lto_location_cache::current_sysp): Likewise.
11717 (output_block::current_sysp): Likewise.
11718 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11719 (lto_location_cache::apply_location_cache): Properly record
11720 system header locations.
11721 (lto_location_cache::input_location): Input whether a file
11722 is a system header.
11723 * lto-streamer-out.c (lto_output_location): Stream whether a file
11724 is a system header.
11725
11726 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11727
11728 PR bootstrap/67363
11729 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
11730
11731 2015-08-31 Tom de Vries <tom@codesourcery.com>
11732
11733 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
11734 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
11735 Improve function header comments.
11736
11737 2015-08-30 Michael Collison <michael.collison@linaro.org>
11738
11739 PR other/67320
11740 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
11741 standard names
11742
11743 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11744
11745 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
11746 special_handling bitfield.
11747 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
11748 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
11749 that represents a general xxpermdi.
11750 (insn_is_swappable_p): Add handling for vec_concat of two
11751 doublewords, which maps to a specific xxpermdi.
11752 (adjust_xxpermdi): New function.
11753 (adjust_concat): Likewise.
11754 (handle_special_swappables): Call adjust_xxpermdi and
11755 adjust_concat.
11756 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
11757
11758 2015-08-30 Rich Felker <dalias@libc.org>
11759
11760 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
11761 case instead of sh[123456ble]-*-*.
11762
11763 2015-08-29 Anatoly Sokolov <aesok@post.ru>
11764
11765 * ira.c (print_unform_and_important_classes,
11766 print_translated_classes): Remove reg_class_names static array.
11767 (print_unform_and_important_classes): Rename to ...
11768 (print_uniform_and_important_classes): ... this.
11769 (ira_debug_allocno_classes): Update accordingly.
11770
11771 2015-08-29 Tom de Vries <tom@codesourcery.com>
11772
11773 PR tree-optimization/46193
11774 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
11775 clause.
11776
11777 2015-08-28 Jeff Law <law@redhat.com>
11778
11779 PR lto/66752
11780 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11781 unable to find X NE 0 in the tables, return X as the simplified
11782 condition.
11783 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11784 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11785 to VISISTED_BBS.
11786 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11787 after removing the control flow statement and unnecessary edges.
11788
11789 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
11790
11791 Revert:
11792 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11793
11794 PR tree-optimization/67283
11795 * tree-sra.c (type_consists_of_records_p): Rename to...
11796 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11797
11798 (completely_scalarize_record): Rename to...
11799 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
11800 code to:
11801 (scalarize_elem): New.
11802
11803 2015-08-28 Jiong Wang <jiong.wang@arm.com>
11804
11805 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
11806 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
11807 (aarch64_symbol_type): Likewise.
11808 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11809 Likewise.
11810 (aarch64_expand_mov_immediate): Likewise.
11811 (aarch64_print_operand): Likewise.
11812 (aarch64_classify_tls_symbol): Likewise.
11813
11814 2015-08-28 Richard Biener <rguenther@suse.de>
11815
11816 * cgraphunit.c (symbol_table::compile): Move early debug generation
11817 and finish...
11818 (symbol_table::finalize_compilation_unit): ... back here and
11819 add a !seen_error () guard.
11820
11821 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11822
11823 * toplev.c (process_options): Do not use flag_loop_block,
11824 flag_loop_interchange, and flag_loop_strip_mine. Add check for
11825 flag_loop_optimize_isl.
11826
11827 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11828
11829 * Makefile.in (OBJS): Remove graphite-blocking.o and
11830 graphite-interchange.o.
11831 * common.opt (floop-strip-mine, floop-interchange, floop-block):
11832 Alias of floop-nest-optimize.
11833 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
11834 Document as alias of -floop-nest-optimize.
11835 * graphite-blocking.c: Remove.
11836 * graphite-interchange.c: Remove.
11837 * graphite-optimize-isl.c: Include dumpfile.h.
11838 (getScheduleForBand): Add dump for tiled loops. Use
11839 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
11840 * graphite-poly.c (scop_max_loop_depth): Remove.
11841 (print_scattering_function_1): Remove.
11842 (print_scattering_function): Remove.
11843 (print_scattering_functions): Remove.
11844 (debug_scattering_function): Remove.
11845 (debug_scattering_functions): Remove.
11846 (apply_poly_transforms): Remove use of flag_loop_block,
11847 flag_loop_strip_mine, and flag_loop_interchange.
11848 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
11849 PBB_ORIGINAL.
11850 (print_pdr_access_layout): Remove.
11851 (print_pdr): Print ISL representation.
11852 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
11853 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
11854 (free_scop): Same.
11855 (openscop_print_pbb_domain): Remove.
11856 (print_pbb): Remove call to print_scattering_function.
11857 (openscop_print_scop_context): Remove.
11858 (print_scop_context): Do not print matrices anymore.
11859 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
11860 SCOP_TRANSFORMED_SCHEDULE.
11861 (print_isl_set): Add printing of a new line.
11862 (print_isl_map): Same.
11863 (print_isl_aff): Same.
11864 (print_isl_constraint): Same.
11865 (loop_to_lst): Remove.
11866 (scop_to_lst): Remove.
11867 (lst_indent_to): Remove.
11868 (print_lst): Remove.
11869 (debug_lst): Remove.
11870 (dot_lst_1): Remove.
11871 (dot_lst): Remove.
11872 (reverse_loop_at_level): Remove.
11873 (reverse_loop_for_pbbs): Remove.
11874 * graphite-poly.h (pdr_dim_iter_domain): Remove.
11875 (pdr_nb_params): Remove.
11876 (pdr_alias_set_dim): Remove.
11877 (pdr_subscript_dim): Remove.
11878 (pdr_iterator_dim): Remove.
11879 (pdr_parameter_dim): Remove.
11880 (same_pdr_p): Remove.
11881 (struct poly_scattering): Remove.
11882 (struct poly_bb): Remove _original, _transformed, _saved.
11883 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
11884 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
11885 (PBB_NB_LOCAL_VARIABLES): Remove.
11886 (PBB_NB_SCATTERING_TRANSFORM): Remove.
11887 (schedule_to_scattering): Remove.
11888 (number_of_write_pdrs): Remove.
11889 (pbb_dim_iter_domain): Remove.
11890 (pbb_nb_params): Remove.
11891 (pbb_nb_scattering_orig): Remove.
11892 (pbb_nb_scattering_transform): Remove.
11893 (pbb_nb_dynamic_scattering_transform): Remove.
11894 (pbb_nb_local_vars): Remove.
11895 (pbb_iterator_dim): Remove.
11896 (pbb_parameter_dim): Remove.
11897 (psco_scattering_dim): Remove.
11898 (psct_scattering_dim): Remove.
11899 (psct_local_var_dim): Remove.
11900 (psco_iterator_dim): Remove.
11901 (psct_iterator_dim): Remove.
11902 (psco_parameter_dim): Remove.
11903 (psct_parameter_dim): Remove.
11904 (psct_dynamic_dim): Remove.
11905 (psct_static_dim): Remove.
11906 (psct_add_local_variable): Remove.
11907 (new_lst_loop): Remove.
11908 (new_lst_stmt): Remove.
11909 (free_lst): Remove.
11910 (copy_lst): Remove.
11911 (lst_add_loop_under_loop): Remove.
11912 (lst_depth): Remove.
11913 (lst_dewey_number): Remove.
11914 (lst_dewey_number_at_depth): Remove.
11915 (lst_pred): Remove.
11916 (lst_succ): Remove.
11917 (lst_find_pbb): Remove.
11918 (find_lst_loop): Remove.
11919 (lst_find_first_pbb): Remove.
11920 (lst_empty_p): Remove.
11921 (lst_find_last_pbb): Remove.
11922 (lst_contains_p): Remove.
11923 (lst_contains_pbb): Remove.
11924 (lst_create_nest): Remove.
11925 (lst_remove_from_sequence): Remove.
11926 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
11927 (lst_niter_for_loop): Remove.
11928 (pbb_update_scattering): Remove.
11929 (lst_update_scattering_under): Remove.
11930 (lst_update_scattering): Remove.
11931 (lst_insert_in_sequence): Remove.
11932 (lst_replace): Remove.
11933 (lst_substitute_3): Remove.
11934 (lst_distribute_lst): Remove.
11935 (lst_remove_all_before_including_pbb): Remove.
11936 (lst_remove_all_before_excluding_pbb): Remove.
11937 (struct scop): Remove original_schedule, transformed_schedule, and
11938 saved_schedule.
11939 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
11940 (SCOP_SAVED_SCHEDULE): Remove.
11941 (poly_scattering_new): Remove.
11942 (poly_scattering_free): Remove.
11943 (poly_scattering_copy): Remove.
11944 (store_scattering_pbb): Remove.
11945 (store_lst_schedule): Remove.
11946 (restore_lst_schedule): Remove.
11947 (store_scattering): Remove.
11948 (restore_scattering_pbb): Remove.
11949 (restore_scattering): Remove.
11950 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11951 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
11952 compute the scattering polyhedron dimension from the dimension of
11953 pbb->domain.
11954 (build_scop_scattering): Update call to
11955 build_pbb_scattering_polyhedrons.
11956 (build_poly_scop): Remove call to scop_to_lst.
11957 * graphite.c (graphite_transform_loops): Add call to print_scop.
11958 (gate_graphite_transforms): Remove use of flag_loop_block,
11959 flag_loop_interchange, and flag_loop_strip_mine.
11960
11961 2015-08-27 Sebastian Pop <s.pop@samsung.com>
11962
11963 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
11964 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
11965 -floop-nest-optimize.
11966 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
11967 (generate_luj_sepclass): Remove.
11968 (generate_luj_options): Remove.
11969 (set_options): Remove opt_luj.
11970 (scop_to_isl_ast): Remove opt_luj.
11971 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
11972 flag_loop_unroll_jam.
11973 (getPrevectorMap_full): Remove.
11974 (getScheduleForBandList): Remove map_sepcl.
11975 (getScheduleMap): Same.
11976 (apply_schedule_map_to_scop): Remove sepcl.
11977 (optimize_isl): Same.
11978 * graphite-poly.c (apply_poly_transforms): Remove check for
11979 flag_loop_unroll_jam.
11980 (new_poly_bb): Remove map_sepclass.
11981 * graphite-poly.h (struct poly_bb): Same.
11982 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
11983 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
11984 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
11985 * toplev.c (process_options): Remove flag_loop_unroll_jam.
11986
11987 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
11988
11989 PR target/67317
11990 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
11991 (addqi3_cc): Ditto.
11992 (UNSPEC_ADD_CARRY): Remove.
11993 (addqi3_cconly_overflow): New expander.
11994 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
11995 Adjust for changed add<mode>3_carry.
11996 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
11997 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
11998 (<plusminus_insn><mode>3_carry): Remove expander.
11999 (*<plusminus_insn><mode>3_carry): Split insn pattern to
12000 add<mode>3_carry and sub<mode>3_carry.
12001 (plusminus_carry_mnemonic): Remove code attribute.
12002 (add<mode>3_carry): Canonicalize insn pattern.
12003 (*addsi3_carry_zext): Ditto.
12004 (sub<mode>3_carry): Ditto.
12005 (*subsi3_carry_zext): Ditto.
12006 (adcx<mode>3): Remove insn pattern.
12007 (addcarry<mode>): New insn pattern.
12008 (subborrow<mode>): Ditto.
12009 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
12010 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
12011 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
12012 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
12013 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
12014 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
12015 Rewrite expander to not clobber carry flag chains.
12016
12017 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
12018
12019 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
12020 instead of a rotate.
12021
12022 2015-08-27 Marek Polacek <polacek@redhat.com>
12023
12024 PR middle-end/67005
12025 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
12026 an entry into an irreducible region.
12027
12028 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12029
12030 * configure: Regenerate.
12031
12032 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12033
12034 PR tree-optimization/67283
12035 * tree-sra.c (type_consists_of_records_p): Rename to...
12036 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12037
12038 (completely_scalarize_record): Rename to...
12039 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12040 (scalarize_elem): New.
12041
12042 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12043
12044 * tree-sra.c (completely_scalarize_var): Rename to...
12045 (create_total_scalarization_access): ... Here. Drop call to
12046 completely_scalarize_record.
12047
12048 (analyze_all_variable_accesses): Replace completely_scalarize_var
12049 with create_total_scalarization_access and completely_scalarize_record.
12050
12051 2015-08-27 Alan Modra <amodra@gmail.com>
12052
12053 PR target/67356
12054 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
12055 for operand 1.
12056
12057 2015-08-27 Richard Biener <rguenther@suse.de>
12058
12059 * passes.c (rest_of_decl_compilation): Guard early_global_decl
12060 call with !seen_error ().
12061 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
12062 early debug generation and finish...
12063 (symbol_table::compile): ... here to put it after a !seen_error ()
12064 guard.
12065
12066 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12067
12068 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
12069 Solaris 12+.
12070
12071 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12072 Andre Vieira <andre.simoesdiasvieira@arm.com>
12073
12074 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
12075 (*cb<optab><mode>1): Likewise.
12076 (*tb<optab><mode>1): Likewise.
12077 (*cb<optab><mode>1): Likewise.
12078 * config/aarch64/iterators.md (inv_cb): New code attribute.
12079 (inv_tb): Likewise.
12080 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
12081 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
12082
12083 2015-08-27 Richard Biener <rguenther@suse.de>
12084
12085 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
12086
12087 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12088
12089 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
12090 trap to fix ICE.
12091
12092 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12093
12094 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
12095 Add declaration.
12096
12097 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
12098 comment.
12099 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
12100 floating point in VSX registers.
12101 (rs6000_output_move_128bit): Always print out the set insn if we
12102 can't generate an appropriate 128-bit move.
12103 (rs6000_generate_compare): Add support for IEEE 128-bit floating
12104 point in VSX registers comparisons.
12105 (rs6000_expand_float128_convert): Likewise.
12106
12107 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
12108 predicate for only GPR hard registers.
12109
12110 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
12111 modes to iterators. Add new iterators for moving 128-bit values in
12112 scalar FPR registers and VSX registers.
12113 (FMOVE128): Likewise.
12114 (FMOVE128_FPR): Likewise.
12115 (FMOVE128_GPR): Likewise.
12116 (FMOVE128_VSX): Likewise.
12117 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
12118 in VSX registers.
12119 (IFKF): Likewise.
12120 (IBM128): Likewise.
12121 (TFIFKF): Likewise.
12122 (RELOAD): Add IEEE 128-bit floating point modes.
12123 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
12124 floating point in VSX registers modes.
12125 (signbit<mode>2, IBM128 iterator): Likewise.
12126 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
12127 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12128 (negtf2): Likewise.
12129 (neg<mode>2, TFIFKF iterator): Likewise.
12130 (negtf2_internal): Likewise.
12131 (abstf2): Likewise.
12132 (abs<mode>2, TFIFKF iterator): Likewise.
12133 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
12134 VSX insn support for negate, absolute value, and negative absolute
12135 value.
12136 (ieee_128bit_vsx_neg<mode>2): Likewise.
12137 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12138 (ieee_128bit_vsx_abs<mode>2): Likewise.
12139 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12140 (ieee_128bit_vsx_nabs<mode>2): Likewise.
12141 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12142 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12143 floating point in VSX registers.
12144 (unpack<mode>_dm): Likewise.
12145 (unpack<mode>_nodm): Likewise.
12146 (pack<mode>): Likewise.
12147 (unpackv1ti): Likewise.
12148 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12149 (packv1ti): Likewise.
12150 (pack<mode>, FMOVE128_VSX iterator): Likewise.
12151 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12152 registers.
12153 (extenddftf2_internal): Likewise.
12154 (trunctfdf2): Likewise.
12155 (trunctfdf2_internal2): Likewise.
12156 (fix_trunc_helper): Likewise.
12157 (fix_trunctfdi2"): Likewise.
12158 (floatditf2): Likewise.
12159 (floatuns<mode>tf2): Likewise.
12160 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12161 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12162 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12163 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12164 (float<SDI:mode><IFKF:mode>2): Likewise.
12165 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12166
12167 2015-08-26 Renlin Li <renlin.li@arm.com>
12168
12169 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12170
12171 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12172 Jiong Wang <jiong.wang@arm.com>
12173
12174 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12175 (tlsie_tiny_<mode>): New define_insn.
12176 (tlsie_tiny_sidi): Likewise.
12177 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12178 SYMBOL_TINY_TLSIE.
12179 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12180 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12181 SYMBOL_TINY_TLSIE.
12182 (aarch64_expand_mov_immediate): Likewise.
12183 (aarch64_print_operand): Likewise.
12184 (arch64_classify_tls_symbol): Likewise.
12185
12186 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12187
12188 * config/arm/arm-arches.def: Replace single value flags with
12189 an initializer built from ARM_FSET_MAKE_CPU1.
12190 * config/arm/arm-cores.def: Likewise.
12191 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12192 derivation from the ARM_CORE macro definition, use the given value
12193 instead.
12194 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12195 ARM_ARCH macro definition, use the given value instead.
12196
12197 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12198
12199 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12200 feature set.
12201 (struct builtin_description): Replace field mask with field
12202 features.
12203 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12204 (IWMMXT2_BUILTIN): Likewise.
12205 (IWMMXT2_BUILTIN2): Likewise.
12206 (FP_BUILTIN): Likewise.
12207 (CRC32_BUILTIN): Likewise.
12208 (CRYPTO_BUILTIN): Likewise.
12209 (iwmmx_mbuiltin): Likewise.
12210 (iwmmx2_mbuiltin): Likewise.
12211 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12212 struct builtin_description.
12213
12214 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12215
12216 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12217 (struct builtin_description): Change type of mask to unsigned
12218 long.
12219 * config/arm/arm-protos.h (insn_flags): Declare as type
12220 arm_feature_set.
12221 (tune_flags): Likewise.
12222 * config/arm/arm.c (feature_count): New.
12223 (insn_flags): Define as type arm_feature_set.
12224 (tune_flags): Likewise.
12225 (struct processors): Define field flags as type arm_feature_set.
12226 (all_cores): Update for change to struct processors.
12227 (all_architectures): Likewise.
12228 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12229 macros.
12230 (arm_option_override_internal): Likewise.
12231 (arm_option_override): Likewise.
12232
12233 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12234 Jiong Wang <jiong.wang@arm.com>
12235
12236 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12237 tls size for tiny, small, large memory model.
12238 (aarch64_load_symref_appropriately): Support new symbol types.
12239 (aarch64_expand_mov_immediate): Likewise.
12240 (aarch64_print_operand): Likewise.
12241 (aarch64_classify_tls_symbol): Likewise.
12242 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12243 (aarch64_symbol_type): Likewise.
12244 * config/aarch64/aarch64.md (tlsle): Deleted.
12245 (tlsle12_<mode>): New define_insn.
12246 (tlsle24_<mode>): Likewise.
12247 (tlsle32_<mode>): Likewise.
12248 (tlsle48_<mode>): Likewise.
12249 * doc/sourcebuild.texi (AArch64-specific attributes): Document
12250 "aarch64_tlsle32".
12251
12252 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12253
12254 * config/arm/arm-protos.h (FL_NONE): New.
12255 (FL_ANY): New.
12256 (arm_feature_set): New.
12257 (ARM_FSET_MAKE): New.
12258 (ARM_FSET_MAKE_CPU1): New.
12259 (ARM_FSET_MAKE_CPU2): New.
12260 (ARM_FSET_CPU1): New.
12261 (ARM_FSET_CPU2): New.
12262 (ARM_FSET_EMPTY): New.
12263 (ARM_FSET_ANY): New.
12264 (ARM_FSET_HAS_CPU1): New.
12265 (ARM_FSET_HAS_CPU2): New.
12266 (ARM_FSET_HAS_CPU): New.
12267 (ARM_FSET_ADD_CPU1): New.
12268 (ARM_FSET_ADD_CPU2): New.
12269 (ARM_FSET_DEL_CPU1): New.
12270 (ARM_FSET_DEL_CPU2): New.
12271 (ARM_FSET_UNION): New.
12272 (ARM_FSET_INTER): New.
12273 (ARM_FSET_XOR): New.
12274 (ARM_FSET_EXCLUDE): New.
12275 (AFM_FSET_IS_EMPTY): New.
12276 (ARM_FSET_CPU_SUBSET): New.
12277
12278 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12279
12280 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12281 SYMBOL_TLSLE to SYMBOL_TLSLE24.
12282 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12283 Likewise.
12284 (aarch64_expand_mov_immediate): Likewise.
12285 (aarch64_print_operand): Likewise.
12286 (aarch64_classify_symbol): Likewise.
12287
12288 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12289
12290 * config/aarch64/aarch64.opt (mtls-size): New entry.
12291 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12292 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12293 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12294
12295 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12296
12297 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12298 ARM_CORE entry. Fix some white-space.
12299 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12300 ARM_CORE definition.
12301
12302 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12303
12304 * fold-const.c (fold_binary_loc) : Move Optimize
12305 root(x)*root(y) as root(x*y) to match.pd.
12306 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12307 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12308 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12309 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12310 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12311 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12312 (mult (exps:s @0) (exps:s @1)) : New simplifier.
12313 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12314 (rdiv @0 (exps:s @1)) : New simplifier.
12315
12316 2015-08-25 Joseph Myers <joseph@codesourcery.com>
12317
12318 * gcc.c (driver::finalize): Only assign to extra_specs if
12319 [EXTRA_SPECS].
12320
12321 2015-08-25 Marek Polacek <polacek@redhat.com>
12322
12323 PR middle-end/67330
12324 * varasm.c (declare_weak): Return after giving an error.
12325
12326 2015-08-25 David Malcolm <dmalcolm@redhat.com>
12327
12328 * gcc-main.c (main): Add params to driver ctor.
12329 * gcc.c (class env_manager): New.
12330 (env): New global.
12331 (env_manager::init): New.
12332 (env_manager::get): New.
12333 (env_manager::xput): New.
12334 (env_manager::restore): New.
12335 Poison getenv and putenv.
12336 (DEFAULT_TARGET_SYSTEM_ROOT): New.
12337 (target_system_root): Update initialization to use
12338 DEFAULT_TARGET_SYSTEM_ROOT.
12339 (struct spec_list): Add field "default_ptr".
12340 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12341 (init_spec): Likewise.
12342 (set_spec): Clear field "default_ptr".
12343 (read_specs): Free "spec" and "buffer".
12344 (xputenv): Reimplement in terms of env_manager.
12345 (process_command): Replace ::getenv calls with calls to the
12346 env_manager singleton.
12347 (process_brace_body): Free string in three places.
12348 (driver::driver): New.
12349 (driver::~driver): New.
12350 (used_arg): Convert from a function to...
12351 (class used_arg_t): ...this class, and...
12352 (used_arg): ...this new global instance.
12353 (used_arg_t::finalize): New function.
12354 (getenv_spec_function): Add "const" to local "value". Replace
12355 ::getenv call with call to the env_manager singleton.
12356 (path_prefix_reset): New function.
12357 (driver::finalize): New function.
12358 * gcc.h (driver::driver): New.
12359 (driver::~driver): New.
12360 (driver::finalize): New.
12361
12362 2015-08-25 Nathan Sidwell <nathan@acm.org>
12363
12364 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12365 target doesn't have one.
12366
12367 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12368
12369 PR target/67346
12370 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12371
12372 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12373
12374 PR target/67344
12375 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12376 a define_insn, remove second alternative.
12377
12378 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
12379 Joseph Myers <joseph@codesourcery.com>
12380
12381 * gcc.c (struct switchstr): Expand comment.
12382
12383 2015-08-25 Nathan Sidwell <nathan@acm.org>
12384
12385 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12386 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12387
12388 2015-08-25 Richard Biener <rguenther@suse.de>
12389
12390 PR middle-end/67306
12391 * genmatch.c (expr::gen_transform): Verify the result of
12392 builtin_decl_implicit.
12393 (dt_simplify::gen_1): Likewise.
12394
12395 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
12396
12397 * config/arm/constraints.md: Also list Cs and US ARM-specific
12398 constraints as used.
12399
12400 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
12401
12402 PR target/66609
12403 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12404 UNSPEC_PCREL.
12405 (nonpic_symbol_mentioned_p): Likewise.
12406 (sh_delegitimize_address): Likewise.
12407 (sh_function_ok_for_sibcall): Take into account weak symbols.
12408 (sh_expand_sym_label2reg): New.
12409 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12410 * config/sh/sh.md (UNSPEC_PCREL): New enum.
12411 (call_pcrel): Use sh_expand_sym_label2reg.
12412 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12413 (symPCREL_label2reg) New expand.
12414
12415 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12416
12417 * graphite-poly.c: Change type of region from void* to sese.
12418 * graphite-poly.h (struct scop): Changing the type of scop::region
12419 from void* to sese. Change accessor macro accordingly.
12420 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12421
12422 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12423
12424 * graphite-scop-detection.c (stmt_simple_for_scop_p):
12425 Constrain only on INTEGER_TYPE.
12426
12427 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12428
12429 PR target/67211
12430 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12431 -mefficient-unaligned-vsx on ISA 2.7.
12432
12433 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12434 option to a masked option.
12435
12436 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12437 logic for -mefficient-unaligned-vsx so that it is set via an arch
12438 ISA option, instead of being set if -mtune=power8 is set. Move
12439 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12440 near other default option handling.
12441
12442 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12443
12444 * genflags.c (gen_macro): Delete.
12445 (gen_proto): Don't create GEN.*CALL.* macros.
12446 * gensupport.h (get_file_location): Declare.
12447 * gensupport.c (rtx_locs): New variable.
12448 (read_md_rtx): Record rtx locations.
12449 (get_file_location): New function.
12450 * target-insns.def (call, call_pop, call_value, call_value_pop)
12451 (sibcall, sibcall_value): New patterns.
12452 * gentarget-def.c (parse_argument): New function.
12453 (def_target_insn): Use it. Handle optional operands. Raise an
12454 error if an .md pattern has the wrong number of operands for the
12455 pattern name. Remove the names of unused operands from the prototype.
12456 * builtins.c (expand_builtin_apply): Use targetm functions
12457 instead of HAVE_call_value and GEN_CALL_VALUE.
12458 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
12459 and sibcall_value_pop.
12460 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12461 of GEN_CALL.
12462 * config/alpha/alpha.md (untyped_call): Likewise.
12463 * config/iq2000/iq2000.md (untyped_call): Likewise.
12464 * config/m68k/m68k.md (untyped_call): Likewise.
12465 * config/mips/mips.md (untyped_call): Likewise.
12466 * config/pa/pa.md (untyped_call): Likewise.
12467 * config/rs6000/rs6000.md (untyped_call): Likewise.
12468 * config/sparc/sparc.md (untyped_call): Likewise.
12469 * config/tilegx/tilegx.md (untyped_call): Likewise.
12470 * config/tilepro/tilepro.md (untyped_call): Likewise.
12471 * config/visium/visium.md (untyped_call): Likewise.
12472 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12473 gen_call_value instead of GEN_CALL_VALUE.
12474 * config/arm/arm.md (untyped_call): Likewise.
12475 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12476 GEN_CALL.
12477
12478 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12479
12480 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12481 (have_cbranchcc4): New variable.
12482 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12483 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12484 (if_convert): Initialize have_cbranchcc4.
12485
12486 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12487
12488 * builtins.c (expand_cmpstrn): Rename to...
12489 (expand_cmpstrn_or_cmpmem): ...this.
12490 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12491 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12492 Remove mode argument.
12493 (expand_builtin): Update accordingly.
12494
12495 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12496
12497 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12498 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
12499 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12500 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12501 Add predicates for operands 0 and 3.
12502 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12503 operand.
12504 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12505 immediate_operand to nonmemory_operand.
12506
12507 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12508
12509 * df-scan.c (df_insn_info_init_fields): New function, split out
12510 from...
12511 (df_insn_create_insn_record): ...here.
12512 (df_insn_info_free_fields): New function, split out from...
12513 (df_insn_info_delete): ...here.
12514 (df_insn_rescan): Use the new functions instead of freeing and
12515 reallocating the df_insn_info.
12516
12517 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12518
12519 * doc/install.texi (Binaries): Remove links no longer valid.
12520
12521 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12522
12523 * config/nvptx/mkoffload.c (process): Replace
12524 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12525
12526 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
12527
12528 PR target/67329
12529 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12530
12531 2015-08-24 Renlin Li <renlin.li@arm.com>
12532
12533 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12534 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12535 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12536 * config/arm/constraints.md ("j"): Add check for high code.
12537
12538 2015-08-24 Tom de Vries <tom@codesourcery.com>
12539
12540 PR tree-optimization/65468
12541 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12542 chunk_size is one.
12543
12544 2015-08-24 Nathan Sidwell <nathan@acm.org>
12545
12546 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12547 change to nvptx_type_from_mode call. Use arg_promotion for both
12548 split and non-split args.
12549
12550 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12551
12552 * target-insns.def (movstr): New pattern.
12553 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12554 (expand_movstr): Use targetm rather than HAVE_movstr/
12555 CODE_FOR_movstr.
12556
12557 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12558
12559 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12560 cast syntax.
12561
12562 2015-08-24 Andrew Pinski <apinski@cavium.com>
12563
12564 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12565 AARCH64_EXTRA_TUNING_OPTION.
12566 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12567 New enum.
12568 (aarch64_extra_tuning_flags): Base the shifted value on the index
12569 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12570 * config/aarch64/aarch64.c: Remove the last argument to
12571 AARCH64_EXTRA_TUNING_OPTION.
12572
12573 2015-08-23 Nathan Sidwell <nathan@acm.org>
12574
12575 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12576 decls.
12577 (nvptx_declare_function_name): Insert formatting tabs for
12578 consistency.
12579
12580 2015-08-23 Tom de Vries <tom@codesourcery.com>
12581
12582 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12583 parm_decl, rather than generating a dummy default def in cfun.
12584 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
12585 ssa_name from cfun and child_fn do not share a stmt as def stmt.
12586 (move_stmt_op): Handle PARM_DECl.
12587 (gather_ssa_name_hash_map_from): New function.
12588 (move_sese_region_to_fn): Add default defs for function params, and add
12589 them to vars_map. Release copied ssa names.
12590 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12591
12592 2015-08-23 Tom de Vries <tom@codesourcery.com>
12593
12594 * doc/sourcebuild.texi: Rename vect_no_int_max with
12595 vect_no_int_min_max. Update description.
12596
12597 2015-08-22 Andrew Pinski <apinski@cavium.com>
12598
12599 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12600 * config/aarch64/aarch64-protos.h
12601 (aarch64_fusion_pairs_index): New enum.
12602 (aarch64_fusion_pairs): Base the shifted value on the index instead
12603 Rewrite AARCH64_FUSE_ALL to be based on the end index.
12604 of the argument to AARCH64_FUSION_PAIR.
12605 * config/aarch64/aarch64.c: Remove the last argument to
12606 AARCH64_FUSION_PAIR.
12607
12608 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
12609
12610 * dominance.c (new_zero_array): Define.
12611 (dom_info): Redefine as class with proper encapsulation.
12612 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12613 Add new members.
12614 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
12615 allocations/deallocations. Pass function as parameter (instead of
12616 using cfun).
12617 (dom_info::get_idom): Define accessor method.
12618 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12619 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
12620 (calculate_dominance_info): Adjust to use dom_info class.
12621 (verify_dominators): Likewise.
12622
12623 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
12624
12625 * print-rtl.c (print_rtx): Check the correct range for
12626 flag_dump_unnumbered_links to behave as documented.
12627
12628 PR rtl-optimization/67227
12629 PR rtl-optimization/64164
12630 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12631 (nonoverlapping_memrefs_p): Test offsets and sizes when given
12632 identical gimple_reg exprs.
12633
12634 2015-08-21 Nathan Sidwell <nathan@acm.org>
12635
12636 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12637 expansion.
12638 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12639 crtl->stack_alignment_needed to determine alignment.
12640 (nvptx_get_drap_rtx): New.
12641 (TARGET_GET_DRAP_RTX): Override.
12642 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12643
12644 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12645
12646 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12647
12648 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12649
12650 * configure.ac: Remove uwin* cases.
12651 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12652 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12653 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12654 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12655 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12656 i[34567]86-*-uwin*, powerpc-*-beos*.
12657
12658 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
12659
12660 * gencodes.c (gencodes): Print the comma for the preceding
12661 enum value rather than the current one. Use aliased enum values
12662 rather than #defines for compiled-out patterns.
12663 (main): Update accordingly. Replace LAST_INSN_CODE with
12664 NUM_INSN_CODES.
12665 * lra.c (insn_code_data): Update accordingly.
12666 (finish_insn_code_data_once, get_static_insn_data): Likewise.
12667 * recog.h (target_recog): Likewise.
12668 (preprocess_insn_constraints): Change parameter to unsigned int.
12669 * recog.c (preprocess_insn_constraints): Likewise.
12670 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12671 * tree-vect-stmts.c (vectorizable_operation): Simplify.
12672
12673 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
12674
12675 PR rtl-optimization/61657
12676 * loop-iv.c (iv_number_of_iterations): Declare up and down as
12677 unsigned. Remove superflous uint64_t cast.
12678
12679 2014-08-21 Felix Yang <felix.yang@huawei.com>
12680 Jiji Jiang <jiangjiji@huawei.com>
12681
12682 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12683 argument and get builtin function code directly from CALL.
12684 (gimple_stringop_fixed_value): Modified accordingly.
12685 (gimple_stringops_transform, gimple_stringops_values_to_profile):
12686 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12687
12688 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
12689
12690 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12691
12692 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12693
12694 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12695 to match.pd.
12696 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12697 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12698 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12699 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12700 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12701 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12702 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12703 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12704 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12705 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12706
12707 * match.pd (SIN ) : New Operator.
12708 (TAN) : New Operator.
12709 (mult (SQRT@1 @0) @1) : New simplifier.
12710 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12711 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12712 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12713 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12714 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12715 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12716 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12717 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12718 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12719 (rdiv @0 (POW:s @1 @2)) : New simplifier.
12720
12721 2015-08-21 Bin Cheng <bin.cheng@arm.com>
12722
12723 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12724 loop if EXPR is simplified to const value.
12725
12726 2015-08-21 Yury Gribov <y.gribov@samsung.com>
12727
12728 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
12729 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
12730
12731 2015-08-21 Richard Biener <rguenther@suse.de>
12732
12733 PR middle-end/67285
12734 * gimple-fold.c (replace_stmt_with_simplification): Assert
12735 seq is empty when replacing a call with itself but different
12736 arguments.
12737 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
12738 a call require that it is const.
12739
12740 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12741
12742 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
12743 * builtins.c (get_object_alignment_2): Adjust.
12744 * varasm.c (align_variable): Likewise.
12745 (get_variable_align): Likewise.
12746 (build_constant_desc): Likewise.
12747 (force_const_mem): Likewise.
12748 * doc/tm.texi.in: Likewise.
12749 * doc/tm.texi: Regenerate.
12750
12751 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12752
12753 * genconfig.c (main): Always define HAVE_cc0.
12754 * recog.c (rest_of_handle_peephole2): Adjust.
12755
12756 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12757
12758 * reorg.c (relax_delay_slots): Don't use #if to check value of
12759 HAVE_cc0.
12760
12761 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12762
12763 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
12764 * targhooks.c (default_have_conditional_execution): Adjust.
12765
12766 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12767
12768 * rtl.h (rtvec_all_equal_p): Declare.
12769 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
12770 * rtl.c (rtvec_all_equal_p): New function.
12771 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
12772 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
12773 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
12774 * config/arm/arm.c (neon_vdup_constant): Likewise.
12775 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
12776 * config/tilegx/constraints.md (W, Y): Likewise.
12777 * config/tilepro/constraints.md (W, Y): Likewise.
12778 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
12779 (classify_immediate): Use unwrap_const_vec_duplicate.
12780 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
12781 (reg_or_v2s8bit_operand): Likewise.
12782 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
12783 (reg_or_v4s8bit_operand): Likewise.
12784
12785 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12786
12787 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
12788 (vec_shasigma_be): New #define.
12789 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
12790 (VPMSUMH): Likewise.
12791 (VPMSUMW): Likewise.
12792 (VPMSUMD): Likewise.
12793 (VPMSUM): New BU_P8V_OVERLOAD_2.
12794 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
12795 entries for VEC_MADD and VEC_VPMSUM.
12796
12797 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
12798
12799 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
12800 Multiply argument avr_n_flash by 64 to match unit of "KiB".
12801 (avr_pgm_check_var_decl): Same.
12802
12803 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
12804
12805 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
12806 initialization of HFmode scalar type (float16_t) to...
12807 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
12808 code.
12809
12810 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
12811
12812 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
12813 having an -mfp16-format.
12814
12815 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
12816
12817 * config/i386/predicates.md (vector_all_ones_operand): Use
12818 CONSTM1_RTX to simplify definition.
12819
12820 2015-08-20 Richard Biener <rguenther@suse.de>
12821
12822 * toplev.c (compile_file): Remove loop calling late_global_decl
12823 on all symbols.
12824 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
12825 on decls we assembled.
12826
12827 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
12828
12829 * common/config/aarch64/aarch64-common.c
12830 (AARCH64_CPU_NAME_LENGTH): Delete.
12831 (aarch64_option_extension): New.
12832 (all_extensions): Likewise.
12833 (processor_name_to_arch): Likewise.
12834 (arch_to_arch_name): Likewise.
12835 (all_cores): New.
12836 (all_architectures): Likewise.
12837 (aarch64_get_extension_string_for_isa_flags): Likewise.
12838 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
12839 architecture names.
12840 * config/aarch64/aarch64-protos.h
12841 (aarch64_get_extension_string_for_isa_flags): New.
12842 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
12843 (aarch64_option_print): Get the string to print from
12844 aarch64_get_extension_string_for_isa_flags.
12845 (aarch64_declare_function_name): Likewise.
12846 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
12847 (MCPU_TO_MARCH_SPEC): This.
12848 (ASM_CPU_SPEC): Use it.
12849 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
12850 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
12851 (EXTRA_SPEC_FUNCTIONS): Use it.
12852
12853 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
12854
12855 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
12856 expansion when !ISA_HAS_LWL_LWR.
12857 (mips_block_move_straight): Update the size of elements copied to
12858 account for alignment when !ISA_HAS_LWL_LWR.
12859 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
12860
12861 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12862
12863 * expr.c (expand_expr_real_2): Check gimple statement during
12864 LSHIFT_EXPR expand.
12865
12866 2015-08-19 Magnus Granberg <zorry@gentoo.org>
12867
12868 * common.opt (fstack-protector): Initialize to -1.
12869 (fstack-protector-all): Likewise.
12870 (fstack-protector-strong): Likewise.
12871 (fstack-protector-explicit): Likewise.
12872 * configure.ac: Add --enable-default-ssp.
12873 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
12874 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
12875 -1.
12876 * doc/install.texi: Document --enable-default-ssp.
12877 * config.in: Regenerated.
12878 * configure: Likewise.
12879
12880 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
12881
12882 PR rtl-optimization/64164
12883 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
12884 (parm_in_stack_slot_p): ... this. Disregard mode, what
12885 matters is whether the parm will live in a pseudo or a stack
12886 slot.
12887 (expand_one_ssa_partition): Deal with params without a default
12888 def. Disregard mode.
12889 * cfgexpand.h: Renamed function declaration.
12890 * tree-ssa-coalesce.c: Adjust.
12891 * function.c (split_complex_args): Allocate stack slot for
12892 unassigned parms before splitting.
12893 (parm_in_unassigned_mem_p): New. Use it instead of
12894 parm_maybe_byref_p throughout this file.
12895 (assign_parm_setup_block): Use it. Accept pseudos in the
12896 expand-assigned rtl.
12897 (assign_parm_setup_reg): Drop BLKmode requirement.
12898 (assign_parm_setup_stack): Allocate and fill in the address of
12899 unassigned MEM parms.
12900
12901 2015-08-19 David Sherwood <david.sherwood@arm.com>
12902
12903 * genmodes.c (emit_mode_unit_size_inline): New function.
12904 (emit_mode_unit_precision_inline): New function.
12905 (emit_insn_modes_h): Emit new #define. Emit new functions.
12906 (emit_mode_unit_size): New function.
12907 (emit_mode_unit_precision): New function.
12908 (emit_mode_adjustments): Add mode_unit_size adjustments.
12909 (emit_insn_modes_c): Emit new arrays.
12910 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
12911 use new inline methods.
12912
12913 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12914
12915 * config/aarch64/aarch64.c (bit_count): Delete prototype
12916 and definition.
12917 (aarch64_print_operand): Use popcount_hwi instead of the above.
12918
12919 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12920
12921 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
12922 comment.
12923
12924 2015-08-19 Marek Polacek <polacek@redhat.com>
12925
12926 PR middle-end/67133
12927 * gimple-ssa-isolate-paths.c
12928 (insert_trap_and_remove_trailing_statements): Rename to ...
12929 (insert_trap): ... this. Don't remove trailing statements; split
12930 block instead.
12931 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
12932
12933 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
12934
12935 PR other/67042
12936 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
12937 conditionalize the whole on __GNUC__. Add fallback code
12938 depending neither on undefined nor implementation-defined behaviour.
12939
12940 2015-08-19 Jiong Wang <jiong.wang@arm.com>
12941
12942 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
12943 whitespaces with tab.
12944
12945 2015-08-19 Florian Weimer <fweimer@redhat.com>
12946
12947 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
12948 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
12949 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
12950 Move Name_Ids instantiation to the Prj.Proc package, to avoid
12951 trampolines.
12952
12953 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12954
12955 * config/arm/arm.c (bounds_check): Use %wd print format
12956 for HOST_WIDE_INT arguments.
12957
12958 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
12959
12960 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
12961 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
12962 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
12963 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
12964 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
12965 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
12966 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
12967 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
12968 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
12969 typedefs.
12970
12971 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
12972
12973 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
12974 function.c, graphite-scop-detection.c, haifa-sched.c,
12975 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
12976 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
12977 varasm.c: Remove typedefs of structs.
12978
12979 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12980
12981 * config/rs6000/altivec.h (vec_adde): New define.
12982 (vec_addec): Likewise.
12983 (vec_double): Likewise.
12984 (vec_bperm): Likewise.
12985 (vec_gb): Likewise.
12986 * config/rs6000/rs6000-builtin.def (ADDE): New
12987 BU_ALTIVEC_OVERLOAD_3.
12988 (ADDEC): Likewise.
12989 (DOUBLE): New BU_VSX_OVERLOAD_1.
12990 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
12991 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
12992 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
12993 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
12994 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
12995 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
12996 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
12997 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
12998 and P8V_BUILTIN_VEC_VBPERMQ.
12999
13000 2015-08-18 Jason Merrill <jason@redhat.com>
13001
13002 * print-tree.c (print_node): Handle TREE_BINFO.
13003
13004 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13005
13006 PR middle-end/36757
13007 * builtins.c (expand_builtin_signbit): Add asserts to make sure
13008 we can expand BUILT_IN_SIGNBIT inline.
13009 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
13010 * doc/extend.texi: Document the type-generic __builtin_signbit.
13011
13012 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
13013
13014 PR rtl-optimization/67218
13015 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
13016 (simplify_unary_operation_1): Use it.
13017
13018 2015-08-18 Marek Polacek <polacek@redhat.com>
13019
13020 PR middle-end/67222
13021 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
13022 if the call isn't valid.
13023 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
13024 gimple_call_builtin_p.
13025 (call_may_clobber_ref_p_1): Likewise.
13026 (stmt_kills_ref_p): Likewise.
13027
13028 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
13029
13030 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
13031 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
13032 (mips_hard_regno_scratch_ok): Likewise.
13033 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
13034 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
13035
13036 2015-08-18 Bin Cheng <bin.cheng@arm.com>
13037
13038 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
13039 (determine_value_range): Call refine_value_range_using_guard for
13040 each loop initial condition to improve value range.
13041
13042 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
13043
13044 * config/i386/i386.c: Remove include of fibheap.h.
13045
13046 2015-08-17 Richard Biener <rguenther@suse.de>
13047
13048 PR tree-optimization/67221
13049 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
13050 (sccvn_dom_walker::before_dom_children): Mark backedges of
13051 non-executable blocks as not executable.
13052
13053 2015-08-17 David Sherwood <david.sherwood@arm.com>
13054
13055 * config/arm/arm.c (neon_element_bits): Replace call to
13056 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
13057 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
13058 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
13059 (neon_vdup_lane<mode>): Likewise.
13060 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
13061 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
13062 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
13063 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13064 * config/spu/spu.c (arith_immediate_p): Likewise.
13065 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13066 * expr.c (expand_expr_real_2): Likewise.
13067 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
13068 * simplify-rtx.c (simplify_immed_subreg): Likewise.
13069 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
13070 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
13071 New variable.
13072 * fold-const.c (fold_binary_loc): Replace call to
13073 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
13074 GET_MODE_UNIT_PRECISION (m).
13075
13076 2015-08-17 Mike Stump <mikestump@comcast.net>
13077
13078 * config/arm/arm.c (arm_block_move_unaligned_straight):
13079 Emit normal move instead of unaligned load when source or destination
13080 are appropriately aligned.
13081
13082 2015-08-17 Richard Biener <rguenther@suse.de>
13083 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13084
13085 PR middle-end/16107
13086 * match.pd (div (coss (op @0) : New simplifier.
13087
13088 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
13089
13090 PR rtl-optimization/64164
13091 PR bootstrap/66978
13092 PR middle-end/66983
13093 PR rtl-optimization/67000
13094 PR middle-end/67034
13095 PR middle-end/67035
13096 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13097 * tree-ssa-copyrename.c: Removed.
13098 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13099 -ftree-coalesce-vars.
13100 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13101 * common.opt (ftree-copyrename): Ignore.
13102 (ftree-coalesce-inlined-vars): Likewise.
13103 * doc/invoke.texi: Remove the ignored options above.
13104 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13105 * tree-ssa-coalesce.h: ... here.
13106 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13107 headers required by it.
13108 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13109 across variables when flag_tree_coalesce_vars. Check register
13110 use and promoted modes to allow coalescing. Do not coalesce
13111 maybe-byref parms with SSA_NAMEs of other variables, or
13112 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
13113 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13114 with its member functions to tree-ssa-coalesce.c.
13115 (var_map_base_init): Likewise. Renamed to
13116 compute_samebase_partition_bases.
13117 (partition_view_normal): Drop want_bases parameter.
13118 (partition_view_bitmap): Likewise.
13119 * tree-ssa-live.h: Adjust declarations.
13120 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
13121 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13122 default defs at the entry point.
13123 (dump_part_var_map): New.
13124 (compute_optimized_partition_bases): New, called by...
13125 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13126 of compute_samebase_partition_bases. Adjust.
13127 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13128 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
13129 (ssa_default_def_partition): New.
13130 (get_rtl_for_parm_ssa_default_def): New.
13131 (align_local_variable, add_stack_var): Support anonymous SSA
13132 names.
13133 (defer_stack_allocation): Likewise. Declare earlier.
13134 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13135 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13136 Do no record deferred-allocation marker in
13137 SA.partition_to_pseudo.
13138 (expand_stack_vars): Adjust check for the marker in it.
13139 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13140 redundant MEM attr setting.
13141 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13142 from...
13143 (expand_one_stack_var): ... this. New wrapper to check and
13144 skip already expanded SSA partitions.
13145 (record_alignment_for_reg_var): New, factored out of...
13146 (expand_one_var): ... this.
13147 (expand_one_ssa_partition): New.
13148 (adjust_one_expanded_partition_var): New.
13149 (expand_one_register_var): Check and skip already expanded SSA
13150 partitions.
13151 (expand_used_vars): Don't create DECLs for anonymous SSA
13152 names. Expand all SSA partitions, then adjust all SSA names.
13153 (pass::execute): Replace the loops that set
13154 SA.partition_to_pseudo from partition leaders and cleared
13155 DECL_RTL for multi-location variables, and that which used to
13156 rename vars and set attrs, with one that clears DECL_RTL and
13157 checks that PARMs and RESULTs default_defs match DECL_RTL.
13158 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13159 * emit-rtl.c: Include stor-layout.h.
13160 (set_reg_attrs_for_parm): Handle NULL decl.
13161 (set_reg_attrs_for_decl_rtl): Take mode from expression if
13162 it's not a DECL.
13163 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13164 rather than its possibly-NULL DECL.
13165 * explow.c (promote_ssa_mode): New.
13166 * explow.h (promote_ssa_mode): Declare.
13167 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13168 (read_complex_part): Export.
13169 * expr.h (read_complex_part): Declare.
13170 * cfgexpand.h (parm_maybe_byref_p): Declare.
13171 * function.c: Include cfgexpand.h.
13172 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13173 (use_register_for_parm_decl): Wrapper for the above to
13174 special-case the result_ptr.
13175 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13176 (split_complex_args): Take assign_parm_data_all argument.
13177 Pass it to rtl_for_parm. Set up rtl and context for split
13178 args. Reset complex parm before fetching its default decl
13179 rtl.
13180 (assign_parms_unsplit_complex): Use the default-def complex
13181 parm rtl if it matches the components.
13182 (assign_parms_augmented_arg_list): Adjust.
13183 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13184 multiple locations. Recognize split complex args.
13185 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13186 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13187 (assign_parm_setup_block): Prefer SSA-assigned location, and
13188 fill in its address if the memory location of a maybe-byref
13189 parm was not assigned by cfgexpand.
13190 (assign_parm_setup_reg): Likewise. Adjust its mode as
13191 needed. Use entry_parm for equiv if stack_parm is NULL. Make
13192 sure passed_pointer parms don't need conversion. Copy address
13193 or value as needed.
13194 (assign_parm_setup_stack): Prefer SSA-assigned location.
13195 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13196 rtl before testing for pointer bounds. Special-case result_ptr.
13197 (expand_function_start): Maybe reset DECL_RTL of result.
13198 Prefer SSA-assigned location for result and static chain.
13199 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
13200 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
13201 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13202 anonymous SSA names. Use promote_ssa_mode.
13203 (get_temp_reg): Likewise.
13204 (remove_ssa_form): Adjust.
13205 * stor-layout.c (layout_decl): Don't set mem attributes of
13206 non-MEMs.
13207 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13208 and get its reg_usage for reg invalidation.
13209 (compute_bb_dataflow): Pass it insn.
13210 (emit_notes_in_bb): Likewise.
13211
13212 2015-08-14 Marek Polacek <polacek@redhat.com>
13213
13214 * tree-core.h (tree_base): Fix typo.
13215
13216 2015-08-14 Marek Polacek <polacek@redhat.com>
13217
13218 PR middle-end/67133
13219 * gimple.c (infer_nonnull_range_by_attribute): Check that the
13220 nonnull argument position is not outside function arguments.
13221
13222 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
13223
13224 PR target/67143
13225 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13226 'lconst_atomic' with 'const_atomic'.
13227 (atomic_fetch_<optab><mode>): Likewise.
13228 (atomic_<optab>_fetch<mode>): Likewise.
13229 * config/aarch64/iterators.md (lconst-atomic): Move below
13230 'const_atomic'.
13231 (const_atomic): New.
13232
13233 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
13234 Bernd Schmidt <bernds@codesourcery.com>
13235
13236 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13237 debug options.
13238 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13239 (DWARF2_DEBUGGING_INFO): Don't define.
13240 * debug.h (dwarf2_lineno_debug_hooks): Declare.
13241 * toplev.c (process_options): Add a case for it.
13242 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13243 (dwarf2out_init): Skip most initializations if
13244 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13245 case.
13246 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13247 DWARF2_LINENO_DEBUGGING_INFO.
13248 * opts.c (set_debug_level): Likewise.
13249
13250 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
13251
13252 * config/arm/types.md (is_neon_type): Add missing types.
13253
13254 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13255
13256 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13257 for skylake.
13258 * config/i386/i386.c (PTA_SKYLAKE): New macros.
13259 (processor_alias_table): Add skylake description.
13260 (enum processor_model): Add skylake processor.
13261 (arch_names_table): Add skylake record.
13262 * doc/invoke.texi: Add skylake item.
13263
13264 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
13265
13266 * ira-int.h: Include recog.h.
13267 * ira-build.c: Don't include recog.h.
13268 * ira-color.c: Likewise.
13269 * ira-conflicts.c: Likewise.
13270 * ira-costs.c: Likewise.
13271 * ira-emit.c: Likewise.
13272 * ira-lives.c: Likewise.
13273 * ira.c: Likewise.
13274 * sched-deps.c: Likewise.
13275 * sel-sched.c: Likewise.
13276 * target-globals.c: Likewise.
13277
13278 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
13279
13280 PR bootstrap/55035
13281 * reload1.c (elimination_costs_in_insn): Make it obvious to the
13282 compiler that the n_dups and n_operands loop bounds are invariant.
13283
13284 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13285
13286 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13287 expressions in A and B.
13288
13289 2015-08-13 Richard Biener <rguenther@suse.de>
13290
13291 * tree.c (nonnull_arg_p): Move from ...
13292 * tree-vrp.c (nonnull_arg_p): ... here.
13293 * tree.h (nonnull_arg_p): Declare.
13294 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13295 here, register ptr != 0 for nonnull_arg_p pointer arguments.
13296 Properly initialize static chain and by-reference result pointer.
13297 (run_scc_vn): Adjust.
13298
13299 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13300
13301 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13302 TUNE_I6400.
13303
13304 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13305
13306 * config/aarch64/aarch64-protos.h
13307 (aarch64_gen_atomic_cas): Declare.
13308 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13309 Choose appropriate instruction pattern for the target.
13310 (aarch64_gen_atomic_cas): New.
13311 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13312 (atomic_compare_and_swap<mode>_1): Rename to
13313 aarch64_compare_and_swap<mode>. Fix some indentation.
13314 (aarch64_compare_and_swap<mode>_lse): New.
13315 (aarch64_atomic_cas<mode>): New.
13316
13317 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13318
13319 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13320 (TARGET_LSE): New.
13321
13322 2015-08-13 Richard Biener <rguenther@suse.de>
13323
13324 PR tree-optimization/67191
13325 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13326 assert we value-numbered last stmts operand because it can validly
13327 trigger for unreachable code.
13328
13329 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13330
13331 PR rtl-optimization/67103
13332 * ifcvt.c (noce_try_store_flag_constants): Move
13333 x = (-(test != 0) & (b - a)) + a transformation to...
13334 (noce_try_cmove): ... Here. Try it if normal conditional
13335 move fails.
13336
13337 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13338
13339 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13340 pseudo-processors.
13341 * config/mips/mips.md (processor): Remove w32 and w64.
13342
13343 2015-08-13 Richard Biener <rguenther@suse.de>
13344
13345 PR tree-optimization/66502
13346 PR tree-optimization/67167
13347 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13348 backedge arguments.
13349 (vn_phi_lookup): Adjust.
13350 (vn_phi_insert): Likewise.
13351 (visit_phi): Prefer to value-number to another PHI node
13352 over value-numbering to a PHI argument.
13353 (init_scc_vn): Mark DFS back edges.
13354
13355 2015-08-13 Richard Biener <rguenther@suse.de>
13356
13357 * gimple.h (gcall::code_): New constant static member.
13358 (gcond::code_): Likewise.
13359 * gimple.c (gcall::code_): Define.
13360 (gcond::code_): Likewise.
13361 (is_a_helper <const gcond *>): Add.
13362 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13363 and forward to a new gcall overload with less checking and a
13364 cheaper way to access the operand.
13365 (gimple_call_lhs_ptr): Likewise.
13366 (gimple_call_set_lhs): Likewise.
13367 (gimple_call_internal_p): Likewise.
13368 (gimple_call_with_bounds_p): Likewise.
13369 (gimple_call_set_with_bounds): Likewise.
13370 (gimple_call_internal_fn): Likewise.
13371 (gimple_call_set_ctrl_altering): Likewise.
13372 (gimple_call_ctrl_altering_p): Likewise.
13373 (gimple_call_fntype): Likewise.
13374 (gimple_call_fn): Likewise.
13375 (gimple_call_fn_ptr): Likewise.
13376 (gimple_call_set_fndecl): Likewise.
13377 (gimple_call_fndecl): Likewise.
13378 (gimple_call_chain): Likewise.
13379 (gimple_call_num_args): Likewise.
13380 (gimple_call_arg): Likewise.
13381 (gimple_call_arg_ptr): Likewise.
13382 (gimple_call_set_arg): Likewise.
13383 (gimple_call_noreturn_p): Likewise.
13384 (gimple_cond_code): Likewise.
13385 (gimple_cond_lhs): Likewise.
13386 (gimple_cond_rhs): Likewise.
13387 (gimple_has_lhs): Reduce checking.
13388
13389 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13390
13391 PR middle-end/25529
13392 * match.pd (div (mult @0 @1) @1) : New simplifier.
13393
13394 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13395
13396 PR target/67071
13397 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13398 predicate to allow construction of vector constants using the
13399 VSLDOI vector shift instruction.
13400
13401 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13402 declaration.
13403
13404 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13405 the number of bytes to be shifted left and filled in with either
13406 all zero or all one bits.
13407 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13408 methods exist.
13409 (output_vec_const_move): On power8, generate XXLORC to generate
13410 a vector constant with all 1's. Do a split if we need to use a
13411 VSLDOI instruction.
13412
13413 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13414 properly test for the MSB.
13415
13416 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13417 vector constants that can be created with VSLDOI.
13418
13419 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13420
13421 revert:
13422 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13423 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13424 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13425 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13426 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13427 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13428 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13429 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13430 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13431
13432 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
13433
13434 * config/xtensa/constraints.md (define_constraint "Y"): New
13435 constraint.
13436 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13437 * config/xtensa/linux.h (ASM_SPEC): Likewise.
13438 * config/xtensa/predicates.md (move_operand): Match constants
13439 and symbols in the presence of TARGET_AUTO_LITPOOLS.
13440 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13441 immediate references to TLS data.
13442 (xtensa_emit_move_sequence): Don't force constants to memory in
13443 the presence of TARGET_AUTO_LITPOOLS.
13444 (print_operand): Add 'y' format, same as default, but capable of
13445 printing SF mode constants as well.
13446 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13447 (movsf_internal): Add movi pattern that loads literal.
13448 (movsf, movdf): Don't force constants to memory in the presence
13449 of TARGET_AUTO_LITPOOLS.
13450 (movdf_internal): Add 'Y' constraint.
13451 * config/xtensa/xtensa.opt (mauto-litpools): New option.
13452 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13453
13454 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13455
13456 * config/arm/arm-fpus.def: Replace booleans with feature flags.
13457 Update comment.
13458 * config/arm/arm.c (ARM_FPU): Update macro.
13459 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13460 (TARGET_FP16): Likewise.
13461 (TARGET_CRYPTO): Likewise.
13462 (TARGET_NEON): Likewise.
13463 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
13464 field features.
13465
13466 2015-08-12 Tom de Vries <tom@codesourcery.com>
13467
13468 PR other/67092
13469 PR other/67098
13470 * doc/install.texi: Remove --with_host_libstdcxx item. Update
13471 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13472 accordingly. Mention default for --with-stage1-ldflags.
13473
13474 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13475
13476 * config/arm/arm.h (arm_fpu_feature_set): New.
13477 (ARM_FPU_FSET_HAS): New.
13478 (FPU_FL_NONE): New.
13479 (FPU_FL_NEON): New.
13480 (FPU_FL_FP16): New.
13481 (FPU_FL_CRYPTO): New.
13482
13483 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13484
13485 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13486 after -mcmodel=large -fPIC sorry.
13487
13488 2015-08-12 Richard Biener <rguenther@suse.de>
13489
13490 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13491 comparison operand order and commutative ternary op operand order.
13492 (sccvn_dom_walker::cond_stack): New state to track temporary
13493 expressions.
13494 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13495 no longer valid.
13496 (sccvn_dom_walker::record_cond): Add a single temporary conditional
13497 expression.
13498 (sccvn_dom_walker::record_conds): Add a temporary conditional
13499 expressions and all related expressions also true/false.
13500 (sccvn_dom_walker::before_dom_children): Record temporary
13501 expressions based on the controlling condition of a single
13502 predecessor. When trying to simplify a conditional statement
13503 lookup expressions we might have inserted earlier.
13504
13505 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
13506
13507 PR target/67127
13508 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13509 to ARM core registers.
13510
13511 2015-08-12 Nathan Sidwell <nathan@acm.org>
13512
13513 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13514 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13515
13516 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
13517
13518 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13519 line with comments.
13520 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13521
13522 2015-08-12 Richard Biener <rguenther@suse.de>
13523
13524 * gimple.h (remove_pointer): New trait.
13525 (GIMPLE_CHECK2): New inline template function.
13526 (gassign::code_): New constant static member.
13527 (is_a_helper<const gassign *>): Add.
13528 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13529 and forward to a new gassign overload with less checking and a
13530 cheaper way to access the operand.
13531 (gimple_assign_lhs_ptr): Likewise.
13532 (gimple_assign_set_lhs): Likewise.
13533 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13534 Likewise.
13535 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13536 Likewise.
13537 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13538 Likewise.
13539 (gimple_assign_rhs_code): Likewise.
13540 * gimple.c (gassign::code_): Define.
13541
13542 2015-08-12 Richard Biener <rguenther@suse.de>
13543
13544 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13545 Eliminate edges marked as not executable by SCCVN.
13546 * tree-ssa-sccvn.c: Include gimple-iterator.h.
13547 (cond_dom_walker): Rename to sccvn_dom_walker.
13548 (sccvn_dom_walker::before_dom_children): Value-number defs
13549 of all stmts.
13550 (run_scc_vn): Remove loop value-numbering all SSA names.
13551 Drop not visited SSA names to varying.
13552
13553 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13554
13555 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13556 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13557 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13558 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13559 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13560 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13561 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13562 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13563 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13564
13565 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
13566
13567 PR target/66954
13568 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13569 to enum feature_priority and feature_list.
13570 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13571 and isa_names_table.
13572
13573 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13574
13575 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13576 vect_induction_def.
13577
13578 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13579
13580 PR c/66098
13581 PR c/66711
13582 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13583 account when deciding what was the command-line status.
13584
13585 2015-08-11 Nathan Sidwell <nathan@acm.org>
13586
13587 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13588
13589 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13590 we're not the only contributor to target phi.
13591
13592 2015-08-11 Jiong Wang <jiong.wang@arm.com>
13593
13594 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13595 FIXED_REG0.
13596
13597 2015-08-11 Tom de Vries <tom@codesourcery.com>
13598
13599 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13600
13601 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
13602
13603 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13604 with CPU_SLM.
13605 * config/i386/i386.md (cpu): Remove knl.
13606
13607 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13608
13609 PR libgomp/65742
13610 PR middle-end/66332
13611 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13612 open-coded sequence.
13613 * omp-low.c (oacc_process_reduction_data): Remove handline of
13614 GOMP_DEVICE_HOST_NONSHM.
13615
13616 * lto-streamer-in.c (lto_input_mode_table): Adjust to
13617 GET_MODE_INNER changes.
13618
13619 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13620 Ilya Verbin <ilya.verbin@intel.com>
13621
13622 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13623
13624 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13625
13626 * doc/options.texi (EnabledBy): Document that the argument must be
13627 a Common option.
13628 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13629 Not enabled by -Wall.
13630 * optc-gen.awk: Give nicer error messages. Detect if the argument
13631 of EnabledBy is not a Common option.
13632 * common.opt (Wnull-dereference): Not enabled by -Wall.
13633 * opt-functions.awk (lang_enabled_by): Nicer error messages.
13634
13635 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
13636
13637 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13638 model == 0x4f as Broadwell.
13639
13640 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13641
13642 PR rtl-optimization/67028
13643 * combine.c (simplify_comparison): Fix comment. Rearrange code.
13644 Add test to see if a const_int fits in the new mode.
13645
13646 2015-08-07 DJ Delorie <dj@redhat.com>
13647
13648 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13649
13650 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
13651
13652 PR rtl-optimization/67029
13653 * ira-color.c: Include "recog.h" before including "ira-int.h".
13654 * target-globals.c: Likewise.
13655 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13656 adds an alternative_mask argument and use it instead of
13657 preferred_alternatives.
13658 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13659 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13660 * sched-deps.c: Include "ira-int.h" after including "ira.h".
13661 (sched_analyze_insn): Update call to
13662 ira_implicitly_set_insn_hard_regs.
13663 * sel-sched.c: Include "ira-int.h" after including "ira.h".
13664 (implicit_clobber_conflict_p): Update call to
13665 ira_implicitly_set_insn_hard_regs.
13666
13667 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13668
13669 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13670
13671 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
13672
13673 PR target/67002
13674 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13675 currently_expanding_to_rtl is set.
13676
13677 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
13678
13679 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13680 * configure: Regenerate.
13681
13682 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13683 Jiong Wang <jiong.wang@arm.com>
13684
13685 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13686 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13687 (REG_CLASS_NAMES): Likewise.
13688 (REG_CLASS_CONTENTS): Likewise.
13689 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13690 (aarch64_register_move_cost): Likewise.
13691 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13692 possible.
13693 * config/aarch64/constraints.md (Uc0): New constraint.
13694
13695 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13696
13697 * config/aarch64/constraints.md (Usf): Add the test of
13698 aarch64_is_noplt_call_p.
13699
13700 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13701
13702 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13703 declaration.
13704 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13705 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13706 (call_symbol): Likewise.
13707
13708 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13709
13710 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13711 for vectorizing multiplication patterns.
13712 * tree-vectorizer.h: Adjust the number of patterns.
13713
13714 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13715
13716 * config/i386/sse.md (*vec_concatv2df): Declare added
13717 alternatives as sselog type.
13718
13719 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13720
13721 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13722 all GPRs.
13723
13724 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13725
13726 * config/s390/s390.c (s390_expand_tbegin): Expand either
13727 tbegin_1_z13 or tbegin_1 depending on VX flag.
13728 * config/s390/s390.md ("tbegin_1_z13"): New expander.
13729
13730 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13731
13732 * config/s390/s390.opt: Clarify description for -mzvector
13733 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
13734 -mzvector.
13735
13736 2015-08-06 Richard Biener <rguenther@suse.de>
13737
13738 * gimple.h (gimple_call_set_fn): Access op member directly.
13739 (gimple_call_chain_ptr): Likewise.
13740 (gimple_call_set_chain): Likewise.
13741 (gimple_cond_lhs_ptr): Likewise.
13742 (gimple_cond_set_lhs): Likewise.
13743 (gimple_cond_rhs_ptr): Likewise.
13744 (gimple_cond_set_rhs): Likewise.
13745 (gimple_cond_true_label): Likewise.
13746 (gimple_cond_set_true_label): Likewise.
13747 (gimple_cond_set_false_label): Likewise.
13748 (gimple_cond_false_label): Likewise.
13749 (gimple_label_label): Likewise.
13750 (gimple_label_set_label): Likewise.
13751 (gimple_goto_set_dest): Likewise.
13752 (gimple_asm_input_op): Likewise.
13753 (gimple_asm_input_op_ptr): Likewise.
13754 (gimple_asm_set_input_op): Likewise.
13755 (gimple_asm_output_op): Likewise.
13756 (gimple_asm_output_op_ptr): Likewise.
13757 (gimple_asm_set_output_op): Likewise.
13758 (gimple_asm_clobber_op): Likewise.
13759 (gimple_asm_set_clobber_op): Likewise.
13760 (gimple_asm_label_op): Likewise.
13761 (gimple_asm_set_label_op): Likewise.
13762 (gimple_switch_index): Likewise.
13763 (gimple_switch_index_ptr): Likewise.
13764 (gimple_return_retval_ptr): Likewise.
13765 (gimple_return_retval): Likewise.
13766 (gimple_return_set_retval): Likewise.
13767 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
13768 (gimple_switch_label): Likewise.
13769 (gimple_switch_set_label): Likewise.
13770
13771 2015-08-06 Richard Biener <rguenther@suse.de>
13772
13773 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
13774 bool comparison canonicalization and restrict to integers.
13775
13776 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
13777
13778 * coretypes.h (enum symbol_visibility): Relocate here.
13779 * flag-types.h (enum symbol_visibility): Remove.
13780 * tree-core.h (enum symbol_visibility): Remove.
13781
13782 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
13783
13784 PR target/66870
13785 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
13786 for no_split_stack function attribute along with
13787 flag_split_stack.
13788 (rs6000_expand_split_stack_prologue): Likewise.
13789
13790 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
13791 Jeff Law <law@redhat.com>
13792
13793 PR c/16351
13794 * doc/invoke.texi (Wnull-dereference): New.
13795 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
13796 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
13797 Warn for potential NULL dereferences.
13798 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
13799 * ubsan.c (instrument_nonnull_arg): Call
13800 infer_nonnull_range_by_attribute.
13801 (instrument_nonnull_return): Likewise.
13802 * common.opt (Wnull-dereference); New.
13803 * gimple.c (infer_nonnull_range): Remove bool arguments.
13804 (infer_nonnull_range_by_dereference): New.
13805 (infer_nonnull_range_by_attribute): New.
13806 * gimple.h: Update declarations.
13807
13808 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13809
13810 * gensupport.c (sequence_num): Replace with...
13811 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
13812 ...these new variables.
13813 (init_rtx_reader_args_cb): Update accordingly.
13814 (get_num_code_insns): Likewise.
13815 (read_md_rtx): Rework to use a while loop and get_c_test.
13816 Use the new counters. Remove redundant DEFINE_SUBST case.
13817 * genoutput.c (gen_split): Delete.
13818 (main): Don't call it.
13819
13820 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13821
13822 * gensupport.h (get_c_test): Declare.
13823 * gensupport.c (get_c_test): New function.
13824 * genconditions.c (main): Use it.
13825 * genrecog.c (validate_pattern): Likewise.
13826 (match_pattern_1): Likewise. Remove c_test argument.
13827 (match_pattern): Update accordingly and remove c_test argument.
13828 (main): Update accordingly.
13829
13830 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13831
13832 * gensupport.h (get_num_insn_codes): Declare.
13833 * gensupport.c (get_num_insn_codes): New function.
13834 * genattrtab.c (optimize_attrs): Rename max_insn_code to
13835 num_insn_codes.
13836 (main): Likewise. Use get_num_insn_codes.
13837 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
13838
13839 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13840
13841 PR middle-end/66311
13842 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
13843 is zero- rather than sign-extended.
13844
13845 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
13846
13847 * target-insns.def (can_extend): Delete.
13848
13849 2015-08-05 Richard Biener <rguenther@suse.de>
13850
13851 PR tree-optimization/67121
13852 * tree-if-conv.c (combine_blocks): Clear range-info produced
13853 by stmts no longer executed conditionally.
13854
13855 2015-08-05 Nick Clifton <nickc@redhat.com>
13856
13857 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
13858 to allow identical far pointers to remain.
13859
13860 2015-08-05 Richard Biener <rguenther@suse.de>
13861
13862 PR middle-end/67120
13863 * match.pd: Compare address bases with == if they are decls
13864 or SSA names, not operand_equal_p. Otherwise fail.
13865
13866 2015-08-05 Richard Biener <rguenther@suse.de>
13867
13868 PR tree-optimization/67055
13869 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
13870 NULL gimple_block.
13871
13872 * g++.dg/torture/pr67055.C: New testcase.
13873
13874 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13875
13876 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
13877 noavx512vl.
13878 (define_attr "enabled"): Handle avx521vl and noavx512vl.
13879 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
13880 AVX-512 alternative out of SSE.
13881 (define_insn "*vec_concatv2df"): Ditto.
13882
13883 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
13884
13885 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
13886 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
13887 CODE_FOR_avx_ptestv4di.
13888 * config/i386/sse.md (define_mode_iterator V_AVX): New.
13889 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
13890 (define_insn "avx_ptest256"): Merge this ...
13891 (define_insn "sse4_1_ptest"): And this ...
13892 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
13893
13894 2015-08-05 Richard Biener <rguenther@suse.de>
13895
13896 PR tree-optimization/67109
13897 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
13898 against too big groups. Print whether this is a load or store
13899 group. Rename from ...
13900 (vect_analyze_group_access): ... this which is now a wrapper
13901 dissolving an invalid group.
13902 (vect_analyze_data_ref_accesses): Print whether this is a load
13903 or store group.
13904
13905 2015-08-05 Richard Biener <rguenther@suse.de>
13906
13907 PR middle-end/67107
13908 * match.pd: Guard const_binop result checking against NULL_TREE
13909 result.
13910
13911 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
13912
13913 * cse.c (cse_insn): Restoring old behaviour for src_eqv
13914 when dest and value in the REG_EQUAL are same and dest
13915 is STRICT_LOW_PART.
13916
13917 2015-08-04 Anatoly Sokolov <aesok@post.ru>
13918
13919 * config/moxie/moxie.h (PRINT_OPERAND,
13920 PRINT_OPERAND_ADDRESS): Remove macros.
13921 * config/moxie/moxie-protos.h (moxie_print_operand,
13922 moxie_print_operand_address): Remove declaration.
13923 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
13924 TARGET_PRINT_OPERAND_ADDRESS): Define.
13925 (moxie_print_operand, moxie_print_operand_address): Make static.
13926
13927 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
13928
13929 PR target/66731
13930 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
13931 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
13932
13933 2015-08-04 Richard Biener <rguenther@suse.de>
13934
13935 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
13936 generated code.
13937 (dt_operand::gen_gimple_expr): Adjust.
13938
13939 2015-08-04 Richard Biener <rguenther@suse.de>
13940
13941 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
13942 bool compares on RHS.
13943 * match.pd: Add X ==/!= !X is false/true pattern.
13944
13945 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
13946
13947 * config/aarch64/aarch64.c: Change inner loop statement cost
13948 to be consistent with other targets.
13949
13950 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
13951
13952 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
13953 targets.
13954
13955 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
13956
13957 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
13958 (machine_function): Remove pseudos field.
13959
13960 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13961
13962 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13963 Exit early and use target_option_current_node if processing current
13964 pragma.
13965
13966 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13967
13968 * doc/extend.texi (AArch64 Function Attributes): New node.
13969 (AArch64 Pragmas): Likewise.
13970
13971 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13972
13973 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
13974 Initialize simd builtins if TARGET_SIMD.
13975 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13976 Make sure that the builtins are initialized only once no matter how
13977 many times the function is called.
13978 (aarch64_init_builtins): Unconditionally initialize crc builtins.
13979 (aarch64_relayout_simd_param): New function.
13980 (aarch64_simd_expand_args): Use above during argument expansion.
13981 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
13982 simd builtins if TARGET_SIMD.
13983 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
13984 prototype.
13985 (aarch64_relayout_simd_types): Likewise.
13986
13987 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13988
13989 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
13990 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
13991 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
13992 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13993 static keyword.
13994 (aarch64_reset_previous_fndecl): New function.
13995 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
13996 the string.
13997 * config/aarch64/aarch64-c.c: New file.
13998 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
13999 Push and pop options at beginning and end. Remove ifdef
14000 __ARM_FEATURE_CRC32.
14001 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
14002 Add pragma +nothing+simd and +nothing+crypto where appropriate.
14003 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
14004 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
14005 Define prototype.
14006 (aarch64_register_pragmas): Likewise.
14007 (aarch64_reset_previous_fndecl): Likewise.
14008 (aarch64_process_target_attr): Likewise.
14009 (aarch64_override_options_internal): Likewise.
14010
14011 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14012
14013 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
14014 New function.
14015 (aarch64_can_inline_p): Likewise.
14016 (TARGET_CAN_INLINE_P): Define.
14017
14018 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14019
14020 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14021 Remove static. Handle OPT_mgeneral_regs_only,
14022 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
14023 OPT_momit_leaf_frame_pointer.
14024 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
14025 (aarch64_attr_opt_type): New enum.
14026 (aarch64_attribute_info): New struct.
14027 (aarch64_handle_attr_arch): New function.
14028 (aarch64_handle_attr_cpu): Likewise.
14029 (aarch64_handle_attr_tune): Likewise.
14030 (aarch64_handle_attr_isa_flags): Likewise.
14031 (aarch64_attributes): New table.
14032 (aarch64_process_one_target_attr): New function.
14033 (num_occurences_in_str): Likewise.
14034 (aarch64_process_target_attr): Likewise.
14035 (aarch64_option_valid_attribute_p): Likewise.
14036 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14037 * config/aarch64/aarch64-protos.h: Include input.h
14038 (aarch64_handle_option): Declare prototype.
14039
14040 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14041
14042 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
14043 * config/aarch64/aarch64.c: Include target-globals.h
14044 (aarch64_previous_fndecl): New variable.
14045 (aarch64_set_current_function): New function.
14046 (TARGET_SET_CURRENT_FUNCTION): Define.
14047
14048 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14049
14050 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
14051 (explicit_arch): Likewise.
14052 (x_aarch64_isa_flags): Likewise.
14053 (mgeneral-regs-only): Mark as Save.
14054 (mfix-cortex-a53-835769): Likewise.
14055 (mcmodel=): Likewise.
14056 (mstrict-align): Likewise.
14057 (momit-leaf-frame-pointer): Likewise.
14058 (mtls-dialect): Likewise.
14059 (master=): Likewise.
14060 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
14061 (aarch64_isa_flags): Remove extern declaration.
14062 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
14063 to indicate success or failure.
14064 (aarch64_validate_march): Likewise.
14065 (aarch64_validate_mtune): Likewise.
14066 (aarch64_isa_flags): Delete.
14067 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
14068 instead of aarch64_isa_flags.
14069 (aarch64_get_tune_cpu): New function.
14070 (aarch64_get_arch): Likewise.
14071 (aarch64_override_options): Use above and set up explicit_tune_core
14072 and explicit_arch.
14073 (aarch64_print_extension): Move earlier in file. Add isa_flags
14074 argument and use that instead of the global aarch64_isa_flags.
14075 (aarch64_option_save): New function.
14076 (aarch64_option_restore): Likewise.
14077 (aarch64_option_print): Likewise.
14078 (aarch64_declare_function_name): Likewise.
14079 (aarch64_start_file): Delete.
14080 (TARGET_ASM_FILE_START): Do not define.
14081 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
14082 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
14083 Declare prototype.
14084
14085 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14086
14087 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
14088 flag_omit_leaf_frame_pointer to 2.
14089
14090 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14091
14092 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
14093 define to 0 or 1.
14094 (TARGET_FIX_ERR_A53_835769): New macro.
14095 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14096 handling of opts->x_aarch64_fix_a53_err835769.
14097 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
14098 than aarch64_fix_a53_err835769.
14099 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
14100 * config/aarch64/aarch64-linux.h: Likewise.
14101
14102 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
14103
14104 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
14105 ix86_expand_int_movcc as boolean.
14106
14107 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14108
14109 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
14110 (aarch64_cpu_string): Likewise.
14111 (aarch64_tune_string): Likewise.
14112 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
14113 (aarch64_parse_extension): Return aarch64_parse_opt_result.
14114 Add extra argument to put result into.
14115 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
14116 (aarch64_parse_cpu): Add arguments to put results into. Return
14117 aarch64_parse_opt_result.
14118 (aarch64_parse_tune): Likewise.
14119 (aarch64_override_options_after_change_1): New function.
14120 (aarch64_override_options_internal): New function.
14121 (aarch64_validate_mcpu): Likewise.
14122 (aarch64_validate_march): Likewise.
14123 (aarch64_validate_mtune): Likewise.
14124 (aarch64_override_options): Update to reflect above changes.
14125 Move some logic into aarch64_override_options_internal.
14126 Initialize target_option_default_node and target_option_current_node.
14127 (aarch64_override_options_after_change): Move logic into
14128 aarch64_override_options_after_change_1 and call it with global_options.
14129 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
14130 flag values from that.
14131
14132 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14133
14134 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14135 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14136 * config/aarch64/aarch64.c (struct processor): Add arch field.
14137 (all_architectures): Handle above, move above all_cores.
14138 (all_cores): Handle above.
14139 (aarch64_parse_arch): Handle above changes.
14140 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14141 above. Update comments.
14142 (armv8.1-a): Likewise.
14143 * config/aarch64/aarch64-cores.def: Update according to above.
14144 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14145 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14146 aarch64_arch_driver_info.
14147
14148 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14149
14150 * config/aarch64/aarch64.c (struct processor): Add ident field.
14151 Rename core sched_core.
14152 (all_cores): Handle above changes.
14153 (all_architectures): Likewise.
14154 (aarch64_parse_arch): Likewise.
14155 (aarch64_override_options): Likewise.
14156
14157 2015-08-04 Richard Biener <rguenther@suse.de>
14158
14159 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14160 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14161 comparisons embedded in [VEC_]COND_EXPRs.
14162
14163 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
14164
14165 * tree-if-conv.c: Fix various typos in comments.
14166 * tree-vect-stmts.c: Likewise.
14167
14168 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14169
14170 PR tree-optimization/67043
14171 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14172 preheader after hoisting invariant in it.
14173 (find_defs): Force recomputation of all luids.
14174
14175 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
14176
14177 * config/rs6000/htm.md (tabort.): Restrict the source operand to
14178 using a base register.
14179
14180 2015-08-03 David Malcolm <dmalcolm@redhat.com>
14181
14182 * main.c (main): Pass in NULL for toplev's external_timer.
14183 * timevar.c: Include coretypes.h.
14184 (class timer::named_items): New.
14185 (timer::named_items::named_items): New.
14186 (timer::named_items::~named_items): New.
14187 (timer::named_items::push): New.
14188 (timer::named_items::pop): New.
14189 (timer::named_items::print): New.
14190 (timer::timer): Initialize field "m_jit_client_items".
14191 (timer::~timer): New.
14192 (timer::push): Move bulk of implementation to...
14193 (timer::push_internal): ...here. New function.
14194 (timer::pop): Move bulk of implementation to...
14195 (timer::pop_internal): ...here. New function.
14196 (timer::push_client_item): New.
14197 (timer::pop_client_item): New.
14198 (timer::print_row): New function, taken from timer::print.
14199 (timer::print): Print "GCC items" header if we also have client
14200 items. Move row-printing to timer::print_row. Print any client
14201 items.
14202 (timer::get_topmost_item_name): New method.
14203 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14204 (TV_JIT_CLIENT_CODE): New.
14205 * timevar.h (timer::push_client_item): New declaration.
14206 (timer::pop_client_item): New declaration.
14207 (timer::get_topmost_item_name): New method.
14208 (timer::push_internal): New declaration.
14209 (timer::pop_internal): New declaration.
14210 (timer::print_row): New declaration.
14211 (timer::named_items): New declaration.
14212 (timer::m_jit_client_items): New field.
14213 (timer): Add friend class named_items.
14214 (auto_timevar::auto_timevar): Add timer param.
14215 (auto_timevar::~auto_timevar): Use field "m_timer".
14216 (auto_timevar::m_timer): New field.
14217 * toplev.c (initialize_rtl): Add g_timer as param when
14218 constructing auto_timevar instance.
14219 (toplev::toplev): Add "external_timer" param, and use it to
14220 initialize the "g_timer" global if non-NULL.
14221 (toplev::~toplev): If this created "g_timer", delete it.
14222 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14223 with "external_timer" timer *.
14224
14225 2015-08-03 Alexander Basov <coohpt@gmail.com>
14226
14227 PR middle-end/64744
14228 PR middle-end/48470
14229 PR middle-end/43404
14230 * cfgexpand.c (expand_one_var): Add check if stack is going to
14231 be used in naked function.
14232 * expr.c (expand_expr_addr_expr_1): Remove excess checking
14233 whether expression should not reside in MEM.
14234 * function.c (use_register_for_decl): Do not use registers for
14235 non-register things (volatile, float, BLKMode) in naked functions.
14236
14237 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
14238
14239 PR target/67060
14240 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14241 Adjust splits to match new pattern.
14242
14243 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14244
14245 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14246 (VEC_M): Likewise.
14247 (VEC_N): Likewise.
14248 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14249 point in VSX registers.
14250
14251 * config/rs6000/constraints.md (wb constraint): Document unused
14252 w<x> constraint.
14253 (we constraint): Likewise.
14254 (wo constraint): Likewise.
14255 (wp constraint): New constraint for IEEE 128-bit floating point in
14256 VSX registers.
14257 (wq constraint): Likewise.
14258
14259 * config/rs6000/predicates.md (easy_fp_constant): Add support for
14260 IEEE 128-bit floating point in VSX registers.
14261 (easy_scalar_constant): Likewise.
14262
14263 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14264 constraints (wp, wq) for IEEE 128-bit floating point in VSX
14265 registers.
14266 (rs6000_init_hard_regno_mode_ok): Likewise.
14267
14268 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14269 floating point in VSX registers.
14270 (VSX_L): Likewise.
14271 (VSX_M): Likewise.
14272 (VSX_M2): Likewise.
14273 (VSm): Likewise.
14274 (VSs): Likewise.
14275 (VSr): Likewise.
14276 (VSa): Likewise.
14277 (VSv): Likewise.
14278 (vsx_le_permute_<mode>): Add support to properly swap bytes for
14279 IEEE 128-bit floating point in VSX registers on little endian.
14280 (vsx_le_undo_permute_<mode>): Likewise.
14281 (vsx_le_perm_load_<mode>): Likewise.
14282 (vsx_le_perm_store_<mode>): Likewise.
14283 (splitters for IEEE 128-bit fp moves): Likewise.
14284
14285 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14286 wq constraints.
14287
14288 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14289 floating point in VSX registers.
14290 (VM2): Likewise.
14291
14292 * doc/md.text (Machine Constraints): Document wp and wq
14293 constraints on PowerPC.
14294
14295 2015-08-03 Jeff Law <law@redhat.com>
14296
14297 PR middle-end/66314
14298 PR gcov-profile/66899
14299 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14300 iterate over the jump threading paths when an element in the
14301 jump threading paths array is eliminated.
14302
14303 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
14304
14305 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14306
14307 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
14308
14309 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14310 is_use_properly_guarded the variable def_preds. Free its
14311 contents before returning.
14312 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14313 (is_use_properly_guarded): Replace local variable def_preds with
14314 a parameter. Adjust accordingly. Only update *def_preds if it's
14315 the empty vector.
14316
14317 2015-08-03 Richard Biener <rguenther@suse.de>
14318
14319 * genmatch.c (simplify::for_subst_vec): New member.
14320 (binary_ok): New helper for for lowering.
14321 (lower_for): Delay substituting operators into result expressions
14322 if we can merge the results eventually again.
14323 (capture_info::walk_result): Adjust for user_id appearing as
14324 result expression operator.
14325 (expr::gen_transform): Likewise.
14326 (dt_simplify::gen_1): Likewise.
14327 (dt_simplify::gen): Pass not substituted operators to tail
14328 functions or initialize local variable with it.
14329 (decision_tree::gen): Adjust function signature.
14330 * match.pd: Fix tests against global code and add default
14331 cases to switch stmts.
14332
14333 2015-08-03 Richard Biener <rguenther@suse.de>
14334
14335 * genmatch.c (dt_simplify::gen): Create captures array
14336 with an initializer.
14337
14338 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14339
14340 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14341 the host compiler is affected by placement new aliasing bug.
14342 * configure: Regenerate.
14343 * Makefile.in (ALIASING_FLAGS): New variable.
14344 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14345
14346 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14347
14348 PR target/66731
14349 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14350 (negmulsf3_vfp): Likewise.
14351 (muldf3negdf_vfp): Disable for -frounding-math.
14352 (mulsf3negsf_vfp): Likewise.
14353 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14354 fix MULT cost with -frounding-math.
14355
14356 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14357
14358 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14359 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14360 explicit. Prefer to add the flag whenever possible.
14361 (noce_process_if_block): Try noce_try_store_flag_constants before
14362 noce_try_cmove.
14363
14364 2015-08-03 Richard Biener <rguenther@suse.de>
14365
14366 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14367 New hash-map to record equivalent transforms.
14368 (dt_node::analyze): Populate the equivalent transforms hash-map.
14369 (dt_simplify::info): Add reference to hash-map entry.
14370 (dt_simplify::gen): If we have split out a function for the
14371 transform, generate a call to it.
14372 (sinfo_hashmap_traits::hash): New function.
14373 (compare_op): New helper function for ...
14374 (sinfo_hashmap_traits::equal_keys): ... this new function.
14375 (decision_tree::gen): Split out common equivalent transforms
14376 into functions.
14377
14378 2015-08-03 Richard Biener <rguenther@suse.de>
14379
14380 * gimple-fold.c (fold_gimple_assign): Remove folding of
14381 the comparison in COND_EXPRs.
14382
14383 2015-08-03 Richard Biener <rguenther@suse.de>
14384
14385 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14386 on the rhs of assignments first simplify the embedded
14387 GENERIC condition.
14388
14389 2015-08-03 Richard Biener <rguenther@suse.de>
14390
14391 PR tree-optimization/66917
14392 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14393 field.
14394 (DR_VECT_AUX): New macro.
14395 (set_dr_misalignment): Adjust.
14396 (dr_misalignment): Likewise.
14397 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14398 Compute whether the base is at least element aligned.
14399 * tree-vect-stmts.c (ensure_base_align): Adjust.
14400 (vectorizable_store): If the base is not element aligned
14401 preserve alignment of the original access if misalignment is unknown.
14402 (vectorizable_load): Likewise.
14403
14404 2015-08-02 Martin Sebor <msebor@redhat.com>
14405
14406 * c-family/c.opt (-Wframe-address): New warning option.
14407 * doc/invoke.texi (Wframe-address): Document it.
14408 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14409 Clarify possible effects of calling the functions with non-zero
14410 arguments and mention -Wframe-address.
14411 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14412
14413 2015-08-01 Michael Collison <michael.collison@linaro.org
14414 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14415
14416 * config/arm/arm.md (*arm_smin_cmp): New pattern.
14417 (*arm_umin_cmp): Likewise.
14418
14419 2015-08-01 Caroline Tice <cmtice@google.com>
14420
14421 PR 66521
14422 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14423 global variables.
14424 (vtbl_find_mangled_name): New function.
14425 (vtbl_register_mangled_name): New function.
14426 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
14427 mangled name in mangled name vectors.
14428 (find_or_create_vtbl_map_node): Ditto.
14429 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
14430 update recursion_depth on function entry; pass it to every recursive
14431 call; automatically exit if depth > 25 (give up looking at that point).
14432 (verify_bb_vtables): Initialize recursion_depth and pass it to
14433 var_is_used_for_virtual_call_p.
14434 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14435 global variable decls.
14436 (vtbl_register_mangled_name): New extern function decl.
14437
14438 2015-08-01 Tom de Vries <tom@codesourcery.com>
14439
14440 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14441 function.
14442 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14443 Declare.
14444 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14445 operation_no_trapping_overflow. Allow non-overflow operations.
14446 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14447 operations.
14448
14449 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
14450
14451 PR target/67049
14452 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14453
14454 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14455
14456 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14457 Enable for TARGET_32BIT.
14458 (*if_move_neg): Likewise.
14459
14460 2015-07-31 Nick Clifton <nickc@redhat.com>
14461
14462 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14463 Returns true for __model__.
14464 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14465
14466 2015-07-31 Alan Modra <amodra@gmail.com>
14467
14468 PR target/66870
14469 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14470 (rs6000_emit_prologue): Set it.
14471 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14472
14473 2015-07-31 Richard Biener <rguenther@suse.de>
14474
14475 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14476 -> X == (C1 ^ C2) which is already implemented in match.pd.
14477 Remove redundant dispatching to fold_relational_const.
14478 Move unordered self and NaN compares ...
14479 * match.pd: ... as patterns here. Remove some stray captures
14480 and add a comment.
14481
14482 2015-07-31 Petr Murzin <petr.murzin@intel.com>
14483
14484 * config/i386/i386.c
14485 (bdesc_special_args): Convert mask type from signed to unsigned for
14486 masked builtins.
14487 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14488 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14489 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14490 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14491 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14492 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14493 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14494 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14495 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14496 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14497 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14498 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14499 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14500 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14501 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14502 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14503 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14504 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14505 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14506 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14507 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14508 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14509 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14510 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14511 * config/i386/i386-builtin-types.def
14512 (V16QI_FTYPE_V16SI): Remove.
14513 (V8DF_FTYPE_V8SI): Ditto.
14514 (V8HI_FTYPE_V8DI): Ditto.
14515 (V8SI_FTYPE_V8DI): Ditto.
14516 (V8SF_FTYPE_V8DF): Ditto.
14517 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14518 (V16HI_FTYPE_V16SI): Ditto.
14519 (V16SF_FTYPE_V16HI): Ditto.
14520 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14521 (V16SF_FTYPE_V16SI): Ditto.
14522 (V4DI_FTYPE_V4DI): Ditto.
14523 (V16SI_FTYPE_V16SF): Ditto.
14524 (V16SF_FTYPE_FLOAT): Ditto.
14525 (V8DF_FTYPE_DOUBLE): Ditto.
14526 (V8DI_FTYPE_INT64): Ditto.
14527 (V8DI_FTYPE_V4DI): Ditto.
14528 (V16QI_FTYPE_V8DI): Ditto.
14529 (UINT_FTYPE_V4SF): Ditto.
14530 (UINT64_FTYPE_V4SF): Ditto.
14531 (UINT_FTYPE_V2DF): Ditto.
14532 (UINT64_FTYPE_V2DF): Ditto.
14533 (V16SI_FTYPE_V16SI): Ditto.
14534 (V8DI_FTYPE_V8DI): Ditto.
14535 (V16SI_FTYPE_PV4SI): Ditto.
14536 (V16SF_FTYPE_PV4SF): Ditto.
14537 (V8DI_FTYPE_PV2DI): Ditto.
14538 (V8DF_FTYPE_PV2DF): Ditto.
14539 (V4DI_FTYPE_PV2DI): Ditto.
14540 (V4DF_FTYPE_PV2DF): Ditto.
14541 (V16SI_FTYPE_PV2SI): Ditto.
14542 (V16SF_FTYPE_PV2SF): Ditto.
14543 (V8DI_FTYPE_PV4DI): Ditto.
14544 (V8DF_FTYPE_PV4DF): Ditto.
14545 (V8SF_FTYPE_FLOAT): Ditto.
14546 (V4SF_FTYPE_FLOAT): Ditto.
14547 (V4DF_FTYPE_DOUBLE): Ditto.
14548 (V8SF_FTYPE_PV4SF): Ditto.
14549 (V8SI_FTYPE_PV4SI): Ditto.
14550 (V4SI_FTYPE_PV2SI): Ditto.
14551 (V8SF_FTYPE_PV2SF): Ditto.
14552 (V8SI_FTYPE_PV2SI): Ditto.
14553 (V16SF_FTYPE_PV8SF): Ditto.
14554 (V16SI_FTYPE_PV8SI): Ditto.
14555 (V8DI_FTYPE_V8SF): Ditto.
14556 (V4DI_FTYPE_V4SF): Ditto.
14557 (V2DI_FTYPE_V4SF): Ditto.
14558 (V64QI_FTYPE_QI): Ditto.
14559 (V32HI_FTYPE_HI): Ditto.
14560 (V8UHI_FTYPE_V8UHI): Ditto.
14561 (V16UHI_FTYPE_V16UHI): Ditto.
14562 (V32UHI_FTYPE_V32UHI): Ditto.
14563 (V2UDI_FTYPE_V2UDI): Ditto.
14564 (V4UDI_FTYPE_V4UDI): Ditto.
14565 (V8UDI_FTYPE_V8UDI): Ditto.
14566 (V4USI_FTYPE_V4USI): Ditto.
14567 (V8USI_FTYPE_V8USI): Ditto.
14568 (V16USI_FTYPE_V16USI): Ditto.
14569 (V2DF_FTYPE_V2DF_UINT64): Ditto.
14570 (V2DI_FTYPE_V2DF_V2DF): Ditto.
14571 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14572 (V8DF_FTYPE_V8DF_V8DI): Ditto.
14573 (V4SF_FTYPE_V4SF_UINT64): Ditto.
14574 (V4SI_FTYPE_V4SF_V4SF): Ditto.
14575 (V16SF_FTYPE_V16SF_V16SI): Ditto.
14576 (V64QI_FTYPE_V32HI_V32HI): Ditto.
14577 (V32HI_FTYPE_V16SI_V16SI): Ditto.
14578 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14579 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14580 (V32HI_FTYPE_V64QI_V64QI): Ditto.
14581 (V32HI_FTYPE_V32HI_V32HI): Ditto.
14582 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14583 (V16SI_FTYPE_V16SI_V4SI): Ditto.
14584 (V16SI_FTYPE_V16SI_V16SI): Ditto.
14585 (V16SI_FTYPE_V32HI_V32HI): Ditto.
14586 (V16SI_FTYPE_V16SI_SI): Ditto.
14587 (V8DI_FTYPE_V8DI_V8DI): Ditto.
14588 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14589 (V8DI_FTYPE_V16SI_V16SI): Ditto.
14590 (V8DI_FTYPE_V8DI_V2DI): Ditto.
14591 (QI_FTYPE_QI): Ditto.
14592 (SI_FTYPE_SI): Ditto.
14593 (DI_FTYPE_DI): Ditto.
14594 (QI_FTYPE_QI_QI): Ditto.
14595 (QI_FTYPE_QI_INT): Ditto.
14596 (HI_FTYPE_HI_INT): Ditto.
14597 (SI_FTYPE_SI_INT): Ditto.
14598 (DI_FTYPE_DI_INT): Ditto.
14599 (HI_FTYPE_V16QI_V16QI): Ditto.
14600 (SI_FTYPE_V32QI_V32QI): Ditto.
14601 (DI_FTYPE_V64QI_V64QI): Ditto.
14602 (QI_FTYPE_V8HI_V8HI): Ditto.
14603 (HI_FTYPE_V16HI_V16HI): Ditto.
14604 (SI_FTYPE_V32HI_V32HI): Ditto.
14605 (QI_FTYPE_V4SI_V4SI): Ditto.
14606 (QI_FTYPE_V8SI_V8SI): Ditto.
14607 (QI_FTYPE_V2DI_V2DI): Ditto.
14608 (QI_FTYPE_V4DI_V4DI): Ditto.
14609 (QI_FTYPE_V8DI_V8DI): Ditto.
14610 (HI_FTYPE_V16SI_V16SI): Ditto.
14611 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14612 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14613 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14614 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14615 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14616 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14617 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14618 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14619 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14620 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14621 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14622 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14623 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14624 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14625 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14626 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14627 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14628 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14629 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14630 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14631 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14632 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14633 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14634 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14635 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14636 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14637 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14638 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14639 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14640 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14641 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14642 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14643 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14644 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14645 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14646 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14647 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14648 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14649 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14650 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14651 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14652 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14653 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14654 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14655 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14656 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14657 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14658 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14659 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14660 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14661 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14662 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14663 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14664 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14665 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14666 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14667 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14668 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14669 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14670 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14671 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14672 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14673 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14674 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14675 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14676 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14677 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14678 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14679 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14680 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14681 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14682 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14683 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14684 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14685 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14686 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14687 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14688 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14689 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14690 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14691 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14692 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14693 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14694 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14695 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14696 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14697 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14698 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14699 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14700 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14701 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14702 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14703 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14704 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14705 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14706 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14707 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14708 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14709 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14710 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14711 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14712 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14713 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14714 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14715 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14716 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14717 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14718 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14719 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14720 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14721 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14722 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14723 (HI_FTYPE_HI): Ditto.
14724 (HI_FTYPE_V16QI): Ditto.
14725 (SI_FTYPE_V32QI): Ditto.
14726 (DI_FTYPE_V64QI): Ditto.
14727 (QI_FTYPE_V8HI): Ditto.
14728 (HI_FTYPE_V16HI): Ditto.
14729 (SI_FTYPE_V32HI): Ditto.
14730 (QI_FTYPE_V4SI): Ditto.
14731 (QI_FTYPE_V8SI): Ditto.
14732 (HI_FTYPE_V16SI): Ditto.
14733 (QI_FTYPE_V2DI): Ditto.
14734 (QI_FTYPE_V4DI): Ditto.
14735 (QI_FTYPE_V8DI): Ditto.
14736 (V16QI_FTYPE_HI): Ditto.
14737 (V32QI_FTYPE_SI): Ditto.
14738 (V64QI_FTYPE_DI): Ditto.
14739 (V8HI_FTYPE_QI): Ditto.
14740 (V16HI_FTYPE_HI): Ditto.
14741 (V32HI_FTYPE_SI): Ditto.
14742 (V4SI_FTYPE_QI): Ditto.
14743 (V4SI_FTYPE_HI): Ditto.
14744 (V8SI_FTYPE_QI): Ditto.
14745 (V8SI_FTYPE_HI): Ditto.
14746 (V2DI_FTYPE_QI): Ditto.
14747 (V4DI_FTYPE_QI): Ditto.
14748 (HI_FTYPE_HI_HI): Ditto.
14749 (SI_FTYPE_SI_SI): Ditto.
14750 (DI_FTYPE_DI_DI): Ditto.
14751 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
14752 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
14753 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
14754 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
14755 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
14756 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
14757 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
14758 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
14759 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
14760 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
14761 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
14762 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
14763 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
14764 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
14765 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
14766 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
14767 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
14768 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
14769 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
14770 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
14771 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
14772 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
14773 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
14774 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
14775 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
14776 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
14777 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
14778 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
14779 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
14780 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
14781 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
14782 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
14783 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
14784 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
14785 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
14786 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
14787 (V16SI_FTYPE_HI): Ditto.
14788 (V8DI_FTYPE_QI): Ditto.
14789 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
14790 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
14791 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
14792 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
14793 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
14794 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
14795 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
14796 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
14797 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
14798 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
14799 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
14800 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
14801 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
14802 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
14803 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
14804 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
14805 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
14806 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
14807 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
14808 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
14809 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
14810 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
14811 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
14812 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
14813 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
14814 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
14815 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
14816 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
14817 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
14818 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
14819 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
14820 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
14821 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
14822 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
14823 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
14824 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
14825 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
14826 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
14827 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
14828 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
14829 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
14830 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
14831 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
14832 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
14833 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
14834 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
14835 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
14836 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
14837 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
14838 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
14839 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
14840 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
14841 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
14842 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
14843 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
14844 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
14845 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
14846 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
14847 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
14848 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
14849 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
14850 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
14851 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
14852 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
14853 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
14854 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
14855 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
14856 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
14857 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
14858 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
14859 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
14860 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
14861 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
14862 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
14863 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
14864 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
14865 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
14866 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
14867 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
14868 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
14869 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
14870 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
14871 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
14872 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
14873 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
14874 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
14875 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
14876 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
14877 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
14878 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
14879 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
14880 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
14881 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
14882 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
14883 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
14884 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
14885 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
14886 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
14887 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
14888 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
14889 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
14890 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
14891 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
14892 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
14893 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
14894 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
14895 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
14896 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
14897 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
14898 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
14899 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
14900 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
14901 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
14902 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
14903 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
14904 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
14905 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
14906 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
14907 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
14908 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
14909 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
14910 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
14911 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
14912 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
14913 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
14914 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
14915 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
14916 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
14917 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
14918 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
14919 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
14920 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
14921 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
14922 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
14923 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
14924 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
14925 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
14926 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
14927 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
14928 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
14929 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
14930 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
14931 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
14932 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
14933 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
14934 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
14935 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
14936 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
14937 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
14938 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
14939 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
14940 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
14941 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
14942 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
14943 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
14944 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
14945 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
14946 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
14947 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
14948 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
14949 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
14950 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
14951 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
14952 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
14953 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
14954 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
14955 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
14956 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
14957 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
14958 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
14959 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
14960 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
14961 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
14962 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
14963 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
14964 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
14965 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
14966 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
14967 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
14968 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
14969 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
14970 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
14971 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
14972 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
14973 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
14974 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
14975 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
14976 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
14977 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
14978 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
14979 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
14980 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
14981 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
14982 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
14983 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
14984 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
14985 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
14986 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
14987 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
14988 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
14989 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
14990 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
14991 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
14992 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
14993 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
14994 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
14995 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
14996 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
14997 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
14998 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
14999 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
15000 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
15001 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
15002 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
15003 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
15004 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
15005 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
15006 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
15007 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
15008 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
15009 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
15010 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
15011 (QI_FTYPE_V8DF_INT_QI): Ditto.
15012 (QI_FTYPE_V4DF_INT_QI): Ditto.
15013 (QI_FTYPE_V2DF_INT_QI): Ditto.
15014 (HI_FTYPE_V16SF_INT_HI): Ditto.
15015 (QI_FTYPE_V8SF_INT_QI): Ditto.
15016 (QI_FTYPE_V4SF_INT_QI): Ditto.
15017 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
15018
15019 2015-07-31 Richard Biener <rguenther@suse.de>
15020
15021 * gimple-fold.c (fold_gimple_assign): Remove folding of
15022 GIMPLE_BINARY_RHS.
15023
15024 2015-07-31 Tom de Vries <tom@codesourcery.com>
15025
15026 PR tree-optimization/66846
15027 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
15028 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
15029 (expand_omp_target) [ENABLE_CHECKING]: Same.
15030 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
15031 cfun if !LOOPS_NEED_FIXUP.
15032 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
15033 that omp_for already has its own loop struct.
15034 * tree-parloops.c (create_phi_for_local_result)
15035 (create_call_for_reduction): Handle simple latch bb.
15036 (create_parallel_loop): Add simple latch bb to preserve
15037 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
15038 (gen_parallel_loop): Remove call to cancel_loop_tree.
15039 (parallelize_loops): Skip loops that are inner loops of parallelized
15040 loops.
15041 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
15042 verify_loop_structure.
15043
15044 2015-07-30 Anatoly Sokolov <aesok@post.ru>
15045
15046 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
15047 * config/v850/v850.md (RV_REGNUM): New constants.
15048 * config/v850/v850.c (v850_libcall_value): New functions.
15049 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
15050 (TARGET_LIBCALL_VALUE): Define.
15051
15052 2015-07-30 Anatoly Sokolov <aesok@post.ru>
15053
15054 * rtl.h (lowpart_subreg): Move in file.
15055 * loop-iv.c (lowpart_subreg): Move to...
15056 * simplify-rtx.c (lowpart_subreg): ...here.
15057 (simplify_binary_operation_1): Use lowpart_subreg instead of
15058 simplify_gen_subreg.
15059 * expr.c (expand_expr_real_2): Ditto.
15060 * emit-rtl.c (gen_lowpart_common): Ditto.
15061 * combine.c (gen_lowpart_for_combine): Ditto.
15062 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
15063 expand_debug_source_expr): Ditto.
15064
15065 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
15066
15067 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
15068 (expand_builtin_atomic_clear): Remove support for atomic_clear
15069 pattern.
15070
15071 2015-07-30 Richard Biener <rguenther@suse.de>
15072
15073 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
15074 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
15075 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
15076 redundant operand canonicalization.
15077
15078 2015-07-30 David Sherwood <david.sherwood@arm.com>
15079
15080 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
15081 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
15082 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
15083 * config/arm/arm.c (neon_valid_immediate): Likewise.
15084 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
15085 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
15086 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
15087 (expand_vec_perm_vpshufb2_vpermq): Likewise.
15088 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
15089 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
15090 * config/i386/sse.md
15091 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
15092 (*ssse3_palignr<mode>_perm): Likewise.
15093 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
15094 * config/spu/spu.c (arith_immediate_p): Likewise.
15095 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15096 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
15097
15098 2015-07-30 Richard Biener <rguenther@suse.de>
15099
15100 * genmatch.c (decision_tree::gen_gimple): Merge with ...
15101 (decision_tree::gen_generic): ... this into ...
15102 (decision_tree::gen): ... this.
15103 (main): Adjust callers.
15104
15105 2015-07-30 Richard Biener <rguenther@suse.de>
15106
15107 * genmatch.c (verbose): New global.
15108 (warning_at): Add overload with source_location.
15109 (capture_info::capture_info): Add bool whether generating gimple
15110 or generic. Add gimple member.
15111 (capture_info::cinfo): Add capture member.
15112 (capture_info::walk_match): Record capture. Warn on
15113 non-captured leafs.
15114 (capture_info::walk_c_expr): Add more fragments captures cannot
15115 escape through. Warn on escaped captures.
15116 (dt_simplify::gen_1): Warn on operands we force to have no
15117 side-effects.
15118 (main): Initialize verbose.
15119 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
15120
15121 2015-07-30 Richard Biener <rguenther@suse.de>
15122
15123 PR middle-end/67053
15124 * match.pd: Allow both operands to independently have conversion
15125 when simplifying compares of addresses.
15126
15127 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15128
15129 PR target/66217
15130 PR target/67045
15131 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
15132 around those cases that need one.
15133
15134 2015-07-29 Aditya Kumar <hiraditya@msn.com>
15135
15136 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15137
15138 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
15139
15140 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15141 New. Copied from config/i386/gnu-user.h.
15142 (ASM_COMMENT_START): Likewise.
15143 (DBX_REGISTER_NUMBER): Likewise.
15144
15145 2015-07-29 Richard Biener <rguenther@suse.de>
15146
15147 * gimple-fold.c (fold_gimple_cond): Remove.
15148 (fold_stmt_1): Do not call it.
15149
15150 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
15151
15152 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15153 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15154
15155 * config/aarch64/aarch64-modes.def: Add HFmode.
15156
15157 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15158 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15159
15160 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15161 aarch64_promoted_type): New.
15162
15163 (aarch64_float_const_representable_p): Disable HFmode.
15164 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15165 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15166 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15167
15168 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15169 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15170
15171 * config/aarch64/iterators.md (GPF_F16): New.
15172
15173 2015-07-29 Richard Biener <rguenther@suse.de>
15174
15175 * match.pd: Merge address comparison patterns and make them
15176 handle some more cases.
15177
15178 2015-07-29 Richard Biener <rguenther@suse.de>
15179
15180 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15181 (parser::parse_capture): Add bool argument on whether to reject
15182 unknown captures.
15183 (parser::parse_expr): Adjust.
15184 (parser::parse_op): Likewise.
15185 (parser::parse_pattern): Likewise.
15186
15187 2015-07-29 Richard Biener <rguenther@suse.de>
15188
15189 * gimple-fold.c (has_use_on_stmt): New function.
15190 (replace_stmt_with_simplification): Use it to allow
15191 abnormals originally referenced in the stmt.
15192 (fold_stmt_1): Canonicalize operand order.
15193
15194 2015-07-28 David Sherwood <david.sherwood@arm.com>
15195
15196 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15197 GET_MODE_INNER unconditionally.
15198 * config/spu/spu.c (arith_immediate_p): Likewise.
15199 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15200 * expmed.c (synth_mult): Remove check for VOIDmode result from
15201 GET_MODE_INNER.
15202 (expand_mult_const): Likewise.
15203 * fold-const.c (fold_binary_loc): Replace call to element_precision
15204 with call to GET_MODE_PRECISION.
15205 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15206 m->name.
15207 (emit_mode_inner): Likewise.
15208 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15209 result check.
15210 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15211 (GET_MODE_UNIT_PRECISION): Likewise.
15212 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15213 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15214 * stor-layout.c (bitwise_type_for_mode): Update assert.
15215 (element_precision): Remove.
15216
15217 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15218
15219 * target-insns.def (reload_load_address): New targetm instruction
15220 pattern.
15221 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15222
15223 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15224
15225 * target-insns.def (atomic_test_and_set): New targetm instruction
15226 pattern.
15227 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15228 HAVE_*/gen_* interface.
15229
15230 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15231
15232 * target-insns.def (can_extend, ptr_extend): New targetm instruction
15233 patterns.
15234 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15235 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15236 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15237 * rtlanal.c (nonzero_bits1): Likewise.
15238 (num_sign_bit_copies1): Likewise.
15239
15240 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15241
15242 * target-insns.def (eh_return): New targetm instruction pattern.
15243 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15244 interface.
15245 * function.c (thread_prologue_and_epilogue_insns): Remove
15246 preprocessor condition.
15247
15248 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15249
15250 * target-insns.def (indirect_jump): New targetm instruction pattern.
15251 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15252 interface.
15253
15254 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15255
15256 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15257 instead of nonimmediate_operand. Remove C condiition.
15258
15259 2015-07-28 Richard Biener <rguenther@suse.de>
15260
15261 * match.pd: Add more simplification of address comparisons.
15262
15263 2015-07-28 Richard Biener <rguenther@suse.de>
15264
15265 * match.pd: Re-order two cases in comparison with max/min
15266 value simplification to make it apply for bools.
15267
15268 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15269
15270 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15271 Handle simple SIGN_EXTEND or ZERO_EXTEND.
15272 (aarch64_rtx_costs): Properly strip extend or extract before
15273 passing down to rtx costs again.
15274
15275 2015-07-28 Nick Clifton <nickc@redhat.com>
15276
15277 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15278 Optimizes the case where -mes0 is active and a constant symbolic
15279 address is used.
15280 * config/rl78/rl78-protos.h: Prototype the new function.
15281 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15282
15283 2015-07-28 Tom de Vries <tom@codesourcery.com>
15284
15285 * tree-parloops.c (reduc_stmt_res): New function.
15286 (initialize_reductions, add_field_for_reduction)
15287 (create_phi_for_local_result, create_loads_for_reductions)
15288 (create_stores_for_reduction, build_new_reduction): Handle case that
15289 reduc_stmt is a phi.
15290 (gather_scalar_reductions): Allow double_reduc reductions.
15291
15292 2015-07-28 Richard Biener <rguenther@suse.de>
15293
15294 * fold-const.c (fold_comparison): Remove equality folding
15295 of decl addresses ...
15296 * match.pd: ... here and merge with existing pattern.
15297
15298 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15299
15300 PR tree-optimization/66828
15301 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15302 from int64_t to uint64_t.
15303
15304 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
15305
15306 * opts-common.c (read_cmdline_option): List DriverOnly enum values
15307 as valid only in the error message of the driver, not in the
15308 messages of the language compilers.
15309
15310 2015-07-27 Tom de Vries <tom@codesourcery.com>
15311
15312 * tree-parloops.c (gather_scalar_reductions): Simplify function
15313 structure.
15314
15315 2015-07-27 Marek Polacek <polacek@redhat.com>
15316
15317 * ipa-devirt.c (types_same_for_odr): Fix typo.
15318
15319 2015-07-27 Jason Merrill <jason@redhat.com>
15320
15321 PR debug/66468
15322 * dwarf2out.c (gen_inlined_subroutine_die): Check
15323 cgraph_function_possibly_inlined_p.
15324
15325 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15326
15327 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15328 Place integer variant first.
15329 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15330
15331 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15332
15333 PR/63870
15334 * config/arm/arm-builtins.c (enum arm_builtins):
15335 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15336 (ARM_BUILTIN_NEON_BASE): Rename macro to....
15337 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15338 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15339 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15340
15341 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15342
15343 PR/63870
15344 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15345 Add qualifier_lane_index.
15346 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15347 (arm_getlane_qualifiers): Use qualifier_lane_index.
15348 (arm_lanemac_qualifiers): Rename to...
15349 (arm_mac_n_qualifiers): ...this.
15350 (LANEMAC_QUALIFIERS): Rename to...
15351 (MAC_N_QUALIFIERS): ...this.
15352 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15353 (arm_setlane_qualifiers): Use qualifier_lane_index.
15354 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15355 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15356 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15357 (arm_expand_neon_builtin): Handle qualifier_lane_index.
15358
15359 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15360 * config/arm/arm.c (bounds_check): Likewise, improve error message.
15361 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15362 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15363 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15364 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15365 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15366 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15367 qualifiers to TERNOP_IMM.
15368 (vdup_lane): Change qualifiers to GETLANE.
15369 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15370 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15371 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15372 vqdmlsl_n): Change qualifiers to MAC_N.
15373
15374 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15375 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15376 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15377 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15378 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15379 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15380 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15381 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15382 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15383 Remove call to neon_lane_bounds.
15384
15385 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15386
15387 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15388 Place integer variant first.
15389
15390 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
15391
15392 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15393 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15394 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15395 for armv6kz targets.
15396 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15397 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15398 (FL_FOR_ARCH6ZK): Remove.
15399 (FL_FOR_ARCH6KZ): New.
15400 (arm_arch6zk): New declaration.
15401 * config/arm/arm-tables.opt: Regenerate.
15402 * config/arm/arm.c (arm_arch6kz): New.
15403 (arm_option_override): Set arm_arch6kz.
15404 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15405 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15406 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15407
15408 2015-07-27 Marek Polacek <polacek@redhat.com>
15409
15410 PR c++/66555
15411 PR c/54979
15412 * doc/invoke.texi: Document -Wtautological-compare.
15413
15414 2015-07-27 Richard Biener <rguenther@suse.de>
15415
15416 * genmatch.c (decision_tree::gen_gimple): Split out large
15417 subtrees into separate functions.
15418 (decision_tree::gen_generic): Likewise.
15419
15420 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
15421
15422 * config/alpha/alpha.c: Use SUBREG_P predicate.
15423 * config/alpha/predicates.md: Ditto.
15424
15425 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
15426
15427 * config.host (s390*-*-*): Include driver-native.c only when
15428 building with s390* as host *and* target.
15429
15430 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
15431
15432 PR target/66930
15433 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15434 T bit register modified_between_p check.
15435
15436 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15437
15438 * config/i386/i386.c: Use SUBREG_P predicate.
15439 * config/i386/i386.md: Ditto.
15440 * config/i386/sse.md: Ditto.
15441 * config/i386/predicates.md: Ditto.
15442
15443 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15444
15445 PR target/67004
15446 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15447 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15448
15449 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15450
15451 * Makefile.in: Remove use of TREEBROWSER.
15452 * config.in: Regenerated.
15453 * configure: Regenerated.
15454 * configure.ac: Remove definition of TREEBROWSER.
15455 * tree-browser.c: Removed.
15456 * tree-browser.def: Removed.
15457
15458 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15459
15460 * graphite-scop-detection.c: Include gimple-pretty-print.h.
15461 (stmt_simple_for_scop_p): Print when a stmt is not handled in
15462 Graphite.
15463 (scopdet_basic_block_info): Print when a loop or bb cannot be
15464 represented in Graphite.
15465
15466 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15467
15468 PR target/66648
15469 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15470 execution guard when min_size is less than size_needed.
15471
15472 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15473
15474 * doc/install.texi: Document supported versions of ISL.
15475
15476 2015-07-25 Jeff Law <law@redhat.com>
15477
15478 Revert:
15479 PR lto/66752
15480 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15481 unable to find X NE 0 in the tables, return X as the simplified
15482 condition.
15483 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15484 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15485 to VISISTED_BBS. */
15486 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15487 after removing the control flow statement and unnecessary edges.
15488
15489 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
15490
15491 Revert:
15492 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15493
15494 PR rtl-optimization/64164
15495 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15496 * tree-ssa-copyrename.c: Removed.
15497 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15498 -ftree-coalesce-vars.
15499 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15500 * common.opt (ftree-copyrename): Ignore.
15501 (ftree-coalesce-inlined-vars): Likewise.
15502 * doc/invoke.texi: Remove the ignored options above.
15503 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15504 * tree-ssa-coalesce.h: ... here.
15505 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15506 headers required by it.
15507 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15508 across variables when flag_tree_coalesce_vars. Check register
15509 use and promoted modes to allow coalescing. Moved to
15510 tree-ssa-coalesce.c.
15511 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15512 with its member functions to tree-ssa-coalesce.c.
15513 (var_map_base_init): Likewise. Renamed to
15514 compute_samebase_partition_bases.
15515 (partition_view_normal): Drop want_bases parameter.
15516 (partition_view_bitmap): Likewise.
15517 * tree-ssa-live.h: Adjust declarations.
15518 * tree-ssa-coalesce.c: Include explow.h.
15519 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15520 default defs at the entry point.
15521 (dump_part_var_map): New.
15522 (compute_optimized_partition_bases): New, called by...
15523 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15524 of compute_samebase_partition_bases. Adjust.
15525 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15526 * cfgexpand.c (leader_merge): New.
15527 (get_rtl_for_parm_ssa_default_def): New.
15528 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15529 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15530 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15531 redundant MEM attr setting.
15532 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15533 from...
15534 (expand_one_stack_var): ... this. New wrapper to check and
15535 skip already expanded SSA partitions.
15536 (record_alignment_for_reg_var): New, factored out of...
15537 (expand_one_var): ... this.
15538 (expand_one_ssa_partition): New.
15539 (adjust_one_expanded_partition_var): New.
15540 (expand_one_register_var): Check and skip already expanded SSA
15541 partitions.
15542 (expand_used_vars): Don't create DECLs for anonymous SSA
15543 names. Expand all SSA partitions, then adjust all SSA names.
15544 (pass::execute): Replace the loops that set
15545 SA.partition_to_pseudo from partition leaders and cleared
15546 DECL_RTL for multi-location variables, and that which used to
15547 rename vars and set attrs, with one that clears DECL_RTL and
15548 checks that PARMs and RESULTs default_defs match DECL_RTL.
15549 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15550 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15551 * explow.c (promote_ssa_mode): New.
15552 * explow.h (promote_ssa_mode): Declare.
15553 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15554 * function.c: Include cfgexpand.h.
15555 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15556 (use_register_for_parm_decl): Wrapper for the above to
15557 special-case the result_ptr.
15558 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15559 (split_complex_args): Take assign_parm_data_all argument.
15560 Pass it to rtl_for_parm. Set up rtl and context for split
15561 args.
15562 (assign_parms_augmented_arg_list): Adjust.
15563 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15564 multiple locations. Recognize split complex args.
15565 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15566 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15567 (assign_parm_setup_block): Prefer SSA-assigned location.
15568 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15569 if stack_parm is NULL.
15570 (assign_parm_setup_stack): Prefer SSA-assigned location.
15571 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15572 rtl before testing for pointer bounds. Special-case result_ptr.
15573 (expand_function_start): Maybe reset DECL_RTL of result.
15574 Prefer SSA-assigned location for result and static chain.
15575 Factor out DECL_RESULT and SET_DECL_RTL.
15576 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15577 anonymous SSA names. Use promote_ssa_mode.
15578 (get_temp_reg): Likewise.
15579 (remove_ssa_form): Adjust.
15580 * stor-layout.c (layout_decl): Don't set mem attributes of
15581 non-MEMs.
15582 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15583 and get its reg_usage for reg invalidation.
15584 (compute_bb_dataflow): Pass it insn.
15585 (emit_notes_in_bb): Likewise.
15586
15587 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15588
15589 * config/i386/i386.c (ix86_va_start): Remove
15590 unneeded !TARGET_64BIT check.
15591 (ix86_gimplify_va_arg): Ditto.
15592
15593 2015-07-24 Tom de Vries <tom@codesourcery.com>
15594
15595 * graphite-sese-to-poly.c (build_poly_scop): Always call
15596 rewrite_commutative_reductions_out_of_ssa.
15597
15598 2015-07-24 Tom de Vries <tom@codesourcery.com>
15599
15600 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15601 flag_associative_math to FLOAT_TYPE_P. Honour
15602 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15603
15604 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15605
15606 PR c++/64079
15607 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15608 and "%qD" in warning_at instead of "%q+D" in warning.
15609
15610 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15611
15612 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15613 (ix86_function_abi): Cleanup.
15614
15615 2015-07-24 Michael Darling <darlingm@gmail.com>
15616
15617 PR other/66259
15618 * acinclude.m4: Reflects renaming of configure.in to configure.ac
15619 * configure: Likewise
15620 * configure.ac: Likewise
15621 * doc/install.texi: Likewise
15622 * doc/tm.texi: Likewise
15623 * doc/tm.texi.in: Likewise
15624
15625 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15626
15627 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15628 manually swapping values.
15629 * cse.c (fold_rtx): Likewise.
15630 * lra-eliminations.c (form_sum): Likewise.
15631
15632 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15633
15634 PR target/64003
15635 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15636 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15637 (*jcc_1, *jcc_2, jump, simple_return_internal)
15638 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15639 Set length_nobnd attribute instead of length attribute.
15640 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15641 (length_nobnd): Remove attribute.
15642 (length): Remove length_nobnd processing.
15643
15644 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
15645
15646 * gimplify.c (omp_default_clause): New function. Reorganize flow
15647 for clarity. Broken out of ...
15648 (omp_notice_variable): ... here.
15649
15650 2015-07-24 Gary Funck <gary@intrepid.com>
15651
15652 PR middle-end/66984
15653 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15654 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15655
15656 2015-07-24 Tom de Vries <tom@codesourcery.com>
15657
15658 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15659 exit-first loop transform.
15660
15661 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15662
15663 PR 66714
15664 * tree-cfg.c (struct replace_decls_d): New struct.
15665 (replace_block_vars_by_duplicates_1): New function.
15666 (replace_block_vars_by_duplicates): Use it to replace the decls
15667 in the value exprs by duplicates.
15668
15669 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15670
15671 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15672 -shared, -symbolic, -rdynamic.
15673
15674 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15675
15676 PR target/65711
15677 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15678 -dynamic-linker within %{!static %{!shared, and -rdynamic within
15679 %{!static.
15680
15681 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15682
15683 PR ipa/66566
15684 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15685 edge summary is available.
15686
15687 2015-07-24 Richard Biener <rguenther@suse.de>
15688
15689 * genmatch.c (struct dt_node): Add statistic fields.
15690 (dt_node::analyze): New method.
15691 (decision_tree::gen_gimple): Call analyze on the root node
15692 and print statistics to stderr.
15693 (decision_tree::gen_generic): Likewise.
15694
15695 2015-07-24 Richard Biener <rguenther@suse.de>
15696
15697 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15698 against the highest or lowest possible integer ...
15699 * match.pd: ... as patterns here.
15700
15701 2015-07-24 Richard Biener <rguenther@suse.de>
15702
15703 * genmatch.c (struct capture_info): Add same_as field.
15704 (capture_info::capture_info): Initialize same_as.
15705 (capture_info::walk_match): Compute same_as.
15706 (capture_info::walk_result): Compute stuff for the leader.
15707 (capture_info::walk_c_expr): Likewise.
15708 (dt_simplify::gen_1): Only look at leaders when deciding
15709 to force no side-effects or emit side-effects of omitted operands.
15710
15711 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15712
15713 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15714 reg note to the GPR -> FPR save instructions.
15715
15716 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15717
15718 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15719 cheaper.
15720 (s390_expand_insv): Don't generate risbg pattern for constant zero
15721 sources.
15722 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15723 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
15724 splitters.
15725
15726 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15727
15728 * config/s390/s390.c (s390_reorg): Clean up handling of processors
15729 with
15730 -mtune=
15731 (s390_issue_rate): Likewise.
15732 (s390_sched_reorder): Likewise.
15733 (s390_sched_variable_issue): Likewise.
15734 (s390_loop_unroll_adjust): Likewise.
15735 (s390_option_override): Likewise.
15736
15737 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15738
15739 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
15740 processor capabilities with -march=native.
15741 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
15742 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
15743 (S390_TARGET_BITS_STRING): Macro to simplify specs.
15744
15745 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15746
15747 * config/s390/s390.c (s390_issue_rate): Handle
15748 PROCESSOR_2094_Z9_EC.
15749 (s390_option_override): Likewise.
15750 (s390_adjust_priority): Likewise.
15751
15752 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15753
15754 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
15755 when cross compiling.
15756
15757 2015-07-24 Richard Biener <rguenther@suse.de>
15758
15759 * fold-const.c (maybe_canonicalize_comparison_1): Move
15760 A code CST canonicalization ...
15761 * match.pd: ... to a pattern here.
15762
15763 2015-07-24 Jiong Wang <jiong.wang@arm.com>
15764
15765 Revert:
15766 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15767 PR target/63521
15768 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15769 (HONOR_REG_ALLOC_ORDER): Define.
15770
15771 2015-07-24 Richard Biener <rguenther@suse.de>
15772
15773 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
15774 * fold-const.c (fold_comparison): Move parameter does not
15775 alias &local simplification ...
15776 * match.pd: ... as a pattern here.
15777
15778 2015-07-24 Richard Biener <rguenther@suse.de>
15779
15780 * gimple-fold.c (replace_stmt_with_simplification): Special-case
15781 valueizing call operands.
15782 * gimple-match-head.c (maybe_push_res_to_seq): Take
15783 number of call arguments from ops array.
15784 (do_valueize): New function.
15785 (gimple_simplify): Return true if valueization changed
15786 any operand even if the result didn't simplify further.
15787
15788 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15789
15790 PR middle-end/25530
15791 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
15792
15793 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15794
15795 PR middle-end/25529
15796 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
15797
15798 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15799
15800 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
15801 instruction.
15802
15803 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15804
15805 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
15806 clean up.
15807
15808 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
15809
15810 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
15811 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
15812 targets here.
15813 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
15814 ms_va_list_type_node initialization.
15815
15816 2015-07-23 Jeff Law <law@redhat.com>
15817
15818 PR lto/66752
15819 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15820 unable to find X NE 0 in the tables, return X as the simplified
15821 condition.
15822 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15823 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15824 to VISISTED_BBS. */
15825 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15826 after removing the control flow statement and unnecessary edges.
15827
15828 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
15829
15830 * tree-pass.h (get_current_pass_name): Removed.
15831
15832 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15833
15834 PR rtl-optimization/64164
15835 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15836 * tree-ssa-copyrename.c: Removed.
15837 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15838 -ftree-coalesce-vars.
15839 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15840 * common.opt (ftree-copyrename): Ignore.
15841 (ftree-coalesce-inlined-vars): Likewise.
15842 * doc/invoke.texi: Remove the ignored options above.
15843 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15844 * tree-ssa-coalesce.h: ... here.
15845 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15846 headers required by it.
15847 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15848 across variables when flag_tree_coalesce_vars. Check register
15849 use and promoted modes to allow coalescing. Moved to
15850 tree-ssa-coalesce.c.
15851 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15852 with its member functions to tree-ssa-coalesce.c.
15853 (var_map_base_init): Likewise. Renamed to
15854 compute_samebase_partition_bases.
15855 (partition_view_normal): Drop want_bases parameter.
15856 (partition_view_bitmap): Likewise.
15857 * tree-ssa-live.h: Adjust declarations.
15858 * tree-ssa-coalesce.c: Include explow.h.
15859 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15860 default defs at the entry point.
15861 (dump_part_var_map): New.
15862 (compute_optimized_partition_bases): New, called by...
15863 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15864 of compute_samebase_partition_bases. Adjust.
15865 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15866 * cfgexpand.c (leader_merge): New.
15867 (get_rtl_for_parm_ssa_default_def): New.
15868 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15869 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15870 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15871 redundant MEM attr setting.
15872 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15873 from...
15874 (expand_one_stack_var): ... this. New wrapper to check and
15875 skip already expanded SSA partitions.
15876 (record_alignment_for_reg_var): New, factored out of...
15877 (expand_one_var): ... this.
15878 (expand_one_ssa_partition): New.
15879 (adjust_one_expanded_partition_var): New.
15880 (expand_one_register_var): Check and skip already expanded SSA
15881 partitions.
15882 (expand_used_vars): Don't create DECLs for anonymous SSA
15883 names. Expand all SSA partitions, then adjust all SSA names.
15884 (pass::execute): Replace the loops that set
15885 SA.partition_to_pseudo from partition leaders and cleared
15886 DECL_RTL for multi-location variables, and that which used to
15887 rename vars and set attrs, with one that clears DECL_RTL and
15888 checks that PARMs and RESULTs default_defs match DECL_RTL.
15889 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15890 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15891 * explow.c (promote_ssa_mode): New.
15892 * explow.h (promote_ssa_mode): Declare.
15893 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15894 * function.c: Include cfgexpand.h.
15895 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15896 (use_register_for_parm_decl): Wrapper for the above to
15897 special-case the result_ptr.
15898 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15899 (split_complex_args): Take assign_parm_data_all argument.
15900 Pass it to rtl_for_parm. Set up rtl and context for split
15901 args.
15902 (assign_parms_augmented_arg_list): Adjust.
15903 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15904 multiple locations. Recognize split complex args.
15905 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15906 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15907 (assign_parm_setup_block): Prefer SSA-assigned location.
15908 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15909 if stack_parm is NULL.
15910 (assign_parm_setup_stack): Prefer SSA-assigned location.
15911 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15912 rtl before testing for pointer bounds. Special-case result_ptr.
15913 (expand_function_start): Maybe reset DECL_RTL of result.
15914 Prefer SSA-assigned location for result and static chain.
15915 Factor out DECL_RESULT and SET_DECL_RTL.
15916 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15917 anonymous SSA names. Use promote_ssa_mode.
15918 (get_temp_reg): Likewise.
15919 (remove_ssa_form): Adjust.
15920 * stor-layout.c (layout_decl): Don't set mem attributes of
15921 non-MEMs.
15922 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15923 and get its reg_usage for reg invalidation.
15924 (compute_bb_dataflow): Pass it insn.
15925 (emit_notes_in_bb): Likewise.
15926
15927 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
15928
15929 PR target/66217
15930 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
15931 prototype.
15932 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
15933 (rs6000_emit_2insn_and): Handle dot forms.
15934 * config/rs6000/rs6000.md (and<mode>3): Adjust.
15935 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
15936 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
15937
15938 2015-07-23 Richard Biener <rguenther@suse.de>
15939
15940 * generic-match-head.c: Include cgraph.h.
15941 * gimple-match-head.c: Likewise.
15942 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
15943 SSA names.
15944 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
15945 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
15946 pattern.
15947
15948 2015-07-23 Richard Biener <rguenther@suse.de>
15949
15950 * gimple-fold.c (fold_gimple_cond): Do not require folding
15951 results to pass valid_gimple_rhs_p.
15952 * tree-cfg.h (fold_cond_expr_cond): Remove.
15953 * tree-cfg.c (fold_cond_expr_cond): Likewise.
15954 (make_edges): Do not call it.
15955 * tree-inline.c (tree_function_versioning): Likewise.
15956
15957 2015-07-23 Tom de Vries <tom@codesourcery.com>
15958
15959 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
15960 vect_force_simple_reduction.
15961 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
15962 (vect_is_simple_reduction_1): Add and handle
15963 need_wrapping_integral_overflow parameter.
15964 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
15965 need_wrapping_integral_overflow parameter.
15966 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
15967 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
15968 decl.
15969
15970 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
15971
15972 PR tree-optimization/66926,66951
15973 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
15974 INNER_LOOP and fix up condition for renaming virtual operands.
15975
15976 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15977
15978 * combine.c (try_combine): Use std::swap instead of manually
15979 swapping.
15980
15981 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
15982
15983 * config/mips/i6400.md: New file.
15984 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
15985 (mips64r6): Likewise.
15986 (i6400): Define.
15987 * config/mips/mips-tables.opt: Regenerate.
15988 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
15989 (mips_issue_rate): Add support for i6400.
15990 (mips_multipass_dfa_lookahead): Likewise.
15991 * config/mips/mips.h (TUNE_I6400): Define.
15992 * config/mips/mips.md: Include i6400.md.
15993 (processor): Add i6400.
15994 * doc/invoke.texi (-march=@var{arch}): Add i6400.
15995
15996 2015-07-23 Richard Biener <rguenther@suse.de>
15997
15998 PR middle-end/66916
15999 * match.pd: Guard widen and sign-change comparison simplification
16000 with single_use.
16001
16002 2015-07-23 Richard Biener <rguenther@suse.de>
16003
16004 PR tree-optimization/66945
16005 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
16006 ::before_dom_children): Force the propagators idea of
16007 non-executable edges to materialize, not what the folder
16008 chooses.
16009
16010 2015-07-23 Richard Biener <rguenther@suse.de>
16011
16012 * gimple.h (gimple_cond_make_false): Use 0 != 0.
16013 (gimple_cond_make_true): Use 1 != 0.
16014
16015 2015-07-22 DJ Delorie <dj@redhat.com>
16016
16017 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
16018 slashes.
16019
16020 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
16021 (ashrhi3): Likewise.
16022 (lshrhi3): Likewise.
16023 (movhi): Take advantage of zero-extend to load small constants.
16024 (movpsi): Likewise.
16025 (and<mode>3): Likewise.
16026 (zero_extendqihi2): Likewise.
16027 (zero_extendqisi2): New.
16028 * config/msp430/constraints.md (N,O): New.
16029 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
16030
16031 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
16032
16033 PR target/66954
16034 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
16035 to enum feature_priority and feature_list.
16036 (fold_builtin_cpu): Add F_AES to enum processor_features
16037 and isa_names_table.
16038
16039 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
16040
16041 PR driver/66737
16042 * config/i386/linux-common.h (MPX_SPEC): Use linker option
16043 for 64bit target only.
16044
16045 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
16046
16047 * config/nvptx/nvptx.c: Expand some comments.
16048
16049 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
16050
16051 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
16052 (cortex_a53_advsimd): ...This.
16053
16054 2015-07-22 Richard Biener <rguenther@suse.de>
16055
16056 * genmatch.c (expr::gen_transform): Clarify error message
16057 and display location.
16058
16059 2015-07-22 Richard Biener <rguenther@suse.de>
16060
16061 * genmatch.c (struct operand): Add location member.
16062 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
16063 constructors.
16064 (struct simplify): Remove match_location and result_location
16065 members.
16066 (elsehwere): Adjust.
16067
16068 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
16069
16070 * config/mips/m5100.md: New file.
16071 * config/mips/mips-cpus.def (m5100, m5101): Define.
16072 * config/mips/mips-tables.opt: Regenerate.
16073 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
16074 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
16075 -march=m5101 to -mips32r5.
16076 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
16077 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
16078 !-msoft-float.
16079 * config/mips/mips.md: Include m5100.md.
16080 (processor): Add m5100.
16081 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
16082
16083 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
16084
16085 * config/mips/mips-cpus.def (interaptiv): Define.
16086 * config/mips/mips-tables.opt: Regenerate.
16087 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
16088 -mips32r2.
16089 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
16090 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
16091
16092 2015-07-22 Jiong Wang <jiong.wang@arm.com>
16093
16094 PR target/63521
16095 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16096 (HONOR_REG_ALLOC_ORDER): Define.
16097
16098 2015-07-22 Richard Biener <rguenther@suse.de>
16099
16100 PR tree-optimization/66952
16101 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
16102 blocks we end up executing unconditionally reset all SSA
16103 info such as range and alignment.
16104 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
16105 * tree-ssanames.c (reset_flow_sensitive_info): New function.
16106
16107 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
16108
16109 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
16110 typo in attribute.
16111
16112 2015-07-22 Richard Biener <rguenther@suse.de>
16113
16114 * genmatch.c (parser::parse_result): Properly handle
16115 match with result operands and conditions.
16116
16117 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
16118
16119 PR target/63870
16120 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16121 Add qualifier_struct_load_store_lane_index.
16122 (aarch64_types_loadstruct_lane_qualifiers): Use
16123 qualifier_struct_load_store_lane_index for lane index argument for
16124 last argument.
16125 (aarch64_types_storestruct_lane_qualifiers): Ditto.
16126 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16127 (aarch64_simd_expand_args): Add new argument describing mode of
16128 builtin. Check lane bounds for arguments with
16129 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16130 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
16131 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16132 (aarch64_simd_expand_builtin): Handle arguments with
16133 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
16134 aarch64_simd_expand_args.
16135 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16136 vst[234]_lane with BUILTIN_VALLDIF.
16137 * config/aarch64/aarch64-simd.md:
16138 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16139 endianness reversal on lane index.
16140 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16141 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16142 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16143 (vec_store_lanesci_lane<mode>): Ditto.
16144 (vec_store_lanesxi_lane<mode>): Ditto.
16145 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16146 reversal of lane index.
16147 (aarch64_ld3_lane<mode>): Ditto.
16148 (aarch64_ld4_lane<mode>): Ditto.
16149 (aarch64_st2_lane<mode>): Ditto.
16150 (aarch64_st3_lane<mode>): Ditto.
16151 (aarch64_st4_lane<mode>): Ditto.
16152 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16153 to qmode. Add new mode parameter. Update uses.
16154 (__LD3_LANE_FUNC): Ditto.
16155 (__LD4_LANE_FUNC): Ditto.
16156 (__ST2_LANE_FUNC): Ditto.
16157 (__ST3_LANE_FUNC): Ditto.
16158 (__ST4_LANE_FUNC): Ditto.
16159
16160 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
16161
16162 * doc/invoke.texi (Language Independent Options): Rename node to
16163 Diagnostic Message Formatting Options.
16164
16165 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
16166
16167 PR ipa/66424.
16168 * lra-remat.c (operand_to_remat): Prevent using insns with input
16169 subregs processed separately by IRA.
16170
16171 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
16172
16173 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16174 straight loops.
16175 (single_imm_use): Check for iterator node.
16176 (num_imm_uses): Likewise.
16177 * tree-ssa-operands.c (has_zero_uses_1): Delete.
16178 (single_imm_use_1): Check for iterator node.
16179
16180 2015-07-21 Mike Frysinger <vapier@gentoo.org>
16181 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16182
16183 * configure.ac: Add check for new options in isl-0.15.
16184 * config.in, configure: Rebuilt.
16185 * graphite-blocking.c: Include <isl/constraint.h>
16186 * graphite-interchange.c, graphite-poly.c: Likewise.
16187 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16188 * graphite.c: Likewise.
16189 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16190 <isl/union_set.h>.
16191 * graphite-dependences.c: Include <isl/constraint.h>.
16192 (max_number_of_out_dimensions): Returns isl_stat.
16193 (extend_schedule_1): Likewise
16194 (extend_schedule): Corresponding changes.
16195 * graphite-optimize-isl.c: Include <isl/constraint.h> and
16196 <isl/union_set.h>.
16197 (getSingleMap): Change return type of isl_stat.
16198 (optimize_isl): Conditionally use
16199 isl_options_set_schedule_serialize_sccs.
16200 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16201 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16202
16203 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
16204
16205 PR target/66956
16206 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16207 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16208
16209 2015-07-21 Richard Biener <rguenther@suse.de>
16210
16211 PR tree-optimization/66948
16212 * genmatch.c (capture_info::walk_match): Also recurse to
16213 captures. Properly compute expr state from captures of
16214 captures.
16215 * match.pd: Add single-use guards to
16216 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16217
16218 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
16219
16220 * config/nvptx/mkoffload.c (process): Add static destructor call.
16221
16222 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16223
16224 PR middle-end/66915
16225 * match.pd (A - B -> A + (-B)): Don't allow folding
16226 when type if a fixed-point type.
16227
16228 2015-07-20 DJ Delorie <dj@redhat.com>
16229
16230 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16231 (iorqi3_real): Likewise for set1.
16232
16233 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
16234
16235 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16236 for !TARGET_64BIT.
16237
16238 2015-07-20 Aditya Kumar <hiraditya@msn.com>
16239
16240 * graphite-isl-ast-to-gimple.c:
16241 Refactor so that each function can access 'region'. This will help
16242 maintain a parameter rename_map within a region.
16243
16244 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16245
16246 * config/rs6000/rs6000.md (*lt0_disi): New.
16247
16248 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16249
16250 PR target/66217
16251 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
16252 "available letters" comment.
16253 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16254 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16255 and_2rld_operand): Delete.
16256 (and_operand): Adjust.
16257 (rotate_mask_operator): New.
16258 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16259 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16260 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16261 extract_ME): Delete.
16262 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16263 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16264 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16265 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16266 rs6000_emit_2insn_and): New.
16267 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16268 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16269 includes_rldic_lshift_p, includes_rldicr_lshift_p,
16270 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16271 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16272 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16273 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16274 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16275 rs6000_emit_2insn_and): New.
16276 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16277 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16278 handling.
16279 <NOT>: Don't fall through to next case.
16280 <AND>: Handle the various rotate-and-mask cases directly.
16281 <IOR>: Always cost as one insn.
16282 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16283 (and<mode>3): Adjust expander for the new patterns.
16284 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16285 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16286 (*and<mode>3_imm_dot_shifted): New.
16287 (*and<mode>3_mask): Delete, rewrite as ...
16288 (and<mode>3_mask): ... New.
16289 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16290 (andsi3_internal0_nomc): Delete.
16291 (*andsi3_internal6): Delete.
16292 (*and<mode>3_2insn): New.
16293 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16294 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16295 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16296 *insvdi_internal3): Delete.
16297 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16298 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16299 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16300 *ior<mode>_mask): New.
16301 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16302 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16303 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16304 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16305 Delete.
16306 (ashr<mode>3): Delete expander.
16307 (*ashr<mode>3): Rename to ...
16308 (ashr<mode>3): ... This.
16309 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16310 (*rotldi3_internal4, *rotldi3_internal5 and split,
16311 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16312 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16313 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16314 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16315 (splitter for loading a mask): Adjust.
16316 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16317
16318 2015-07-20 Marek Polacek <polacek@redhat.com>
16319
16320 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16321 output_add_clobbers, output_added_clobbers_hard_reg_p,
16322 gen_rtx_scratch): Remove declarations.
16323
16324 2015-07-20 Marek Polacek <polacek@redhat.com>
16325
16326 PR c++/55095
16327 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16328
16329 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16330
16331 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16332 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16333
16334 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16335
16336 * combine.c (combine_simplify_rtx): Move simplification step
16337 before various transformations/substitutions.
16338
16339 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
16340
16341 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16342 (struct int_traits): Likewise.
16343
16344 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16345
16346 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16347 function to vmsdbgout_function_decl.
16348
16349 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16350
16351 PR target/66922
16352 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16353 from misaligned positions.
16354 (ix86_expand_pinsr): Reject insertions to misaligned positions.
16355
16356 2015-07-18 Sebastian Pop <s.pop@samsung.com>
16357
16358 PR middle-end/46851
16359 PR middle-end/60340
16360 * Makefile.in: Removed omega.o.
16361 * common.opt: Document flag fcheck-data-deps as deprecated.
16362 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16363 its associated params: omega-max-vars, omega-max-geqs,
16364 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16365 omega-max-keys, omega-eliminate-redundant-constraints.
16366 * doc/loop.texi: Remove all the section on Omega.
16367 * graphite-blocking.c: Include missing params.h: it used to be
16368 included through tree-data-ref.h and omega.h.
16369 * graphite-isl-ast-to-gimple.c: Same.
16370 * graphite-optimize-isl.c: Same.
16371 * graphite-sese-to-poly.c: Same.
16372 * graphite.c: Same.
16373 * omega.c: Remove.
16374 * omega.h: Remove.
16375 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16376 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16377 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16378 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16379 * passes.def: Remove pass_check_data_deps.
16380 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16381 (dump_conflict_function): Same.
16382 (dump_subscript): Same.
16383 (print_direction_vector): Same.
16384 (print_dir_vectors): Same.
16385 (print_lambda_vector): Same.
16386 (print_dist_vectors): Same.
16387 (dump_data_dependence_relation): Same.
16388 (dump_data_dependence_relations): Same.
16389 (dump_dist_dir_vectors): Same.
16390 (dump_ddrs): Same.
16391 (init_omega_eq_with_af): Removed.
16392 (omega_extract_distance_vectors): Removed.
16393 (omega_setup_subscript): Removed.
16394 (init_omega_for_ddr_1): Removed.
16395 (init_omega_for_ddr): Removed.
16396 (ddr_consistent_p): Removed.
16397 (compute_affine_dependence): Do not use omega to check data
16398 dependences.
16399 (compute_data_dependences_for_bb): Removed.
16400 (analyze_all_data_dependences): Removed.
16401 (tree_check_data_deps): Removed.
16402 * tree-data-ref.h: Do not include omega.h.
16403 (compute_data_dependences_for_bb): Removed.
16404 (tree_check_data_deps): Removed.
16405 * tree-ssa-loop.c (pass_check_data_deps): Removed.
16406 (make_pass_check_data_deps): Removed.
16407 * tree-ssa-phiopt.c: Include params.h.
16408 * tree-vect-data-refs.c: Same.
16409 * tree-vect-slp.c: Same.
16410
16411 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16412
16413 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16414 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
16415 (mem->fpreg splitters): Ditto.
16416 (general_operand->nonimmediate_operand splitter): Use explicit modes.
16417 Disable DFmode for TARGET_64BIT.
16418
16419 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
16420
16421 PR target/66906
16422 * config/i386/i386.c (ix86_expand_prologue): Replicate static
16423 chain on the stack.
16424
16425 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16426
16427 * config/nvptx/mkoffload.c (process): Constify host data.
16428 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16429 Constify host data.
16430 (generate_host_descr_file): Likewise.
16431
16432 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
16433 Sebastian Pop <s.pop@samsung.com>
16434
16435 PR middle-end/61929
16436 * graphite-dependences.c (add_pdr_constraints): Renamed
16437 pdr->extent to pdr->subscript_sizes.
16438 * graphite-interchange.c (build_linearized_memory_access): Add
16439 back all gcc_assert's that the "isl_int to isl_val conversion"
16440 patch has removed. Refactored.
16441 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16442 * graphite-poly.c (new_poly_dr): Same.
16443 (free_poly_dr): Same.
16444 * graphite-poly.h (struct poly_dr): Same.
16445 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16446 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16447 * graphite-scop-detection.h: Fix space.
16448 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16449 back all gcc_assert's removed by a previous patch.
16450 (wrap): Remove the_isl_ctx global variable that the same patch has
16451 added.
16452 (build_loop_iteration_domains): Same.
16453 (add_param_constraints): Same.
16454 (pdr_add_data_dimensions): Same. Refactored.
16455 (build_poly_dr): Renamed extent to subscript_sizes.
16456
16457 2015-07-17 Marek Polacek <polacek@redhat.com>
16458
16459 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16460 * match.pd: ... here.
16461
16462 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16463
16464 * config/nvptx/mkoffload.c (process): Constify target data.
16465 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16466 Constify target data.
16467 (generate_target_offloadend_file): Likewise.
16468
16469 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16470
16471 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16472 to allow renaming of PHI arguments on edges incoming from outer
16473 loop header, add corresponding check before start PHI iterator.
16474 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16475 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16476 with true force_vectorize. Set-up dominator for outer loop too.
16477 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16478 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16479 was marked with force_vectorize and has restricted cfg.
16480 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16481 inner loop.
16482 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16483 do peeling for outer loops.
16484
16485 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
16486 Matthias Klose <doko@ubuntu.com>
16487
16488 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16489 build-sysroot, sysroot from the `Miscenalleous configure options' to
16490 the `Directories' section and strip trailing `/' from with_sysroot.
16491 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16492 * configure: Regenerated.
16493
16494 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16495
16496 PR target/66824
16497 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16498 (TARGET_HARD_DF_REGS): Ditto.
16499 (TARGET_HARD_XF_REGS): Ditto.
16500 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16501 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16502 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16503 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16504 (*movsf_internal): Add alternatives 16 and 17. Enable
16505 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16506
16507 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16508
16509 PR rtl-optimization/66891
16510 * calls.c (expand_call): Wrap precompute_register_parameters with
16511 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16512
16513 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
16514
16515 * config/nvptx/mkoffload.c (process): Constify mapping variables.
16516 Define target data struct and initialize it.
16517
16518 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
16519
16520 PR rtl-optimization/66626
16521 * ira.h (emit-rtl.h): Include.
16522 (non_spilled_static_chain_regno_p): New.
16523 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16524 unless it is non spilled static chain pseudo.
16525 (assign_hard_rego): Spill memory profitable allocno unless it is
16526 non spilled static chain pseudo.
16527 (allocno_spill_priority_compare): Put non spilled static chain
16528 pseudo at the end of sorted array.
16529 (improve_allocation): Do nothing if we have static chain and
16530 non-local goto.
16531 (allocno__priority_compare_func): Put non spilled static chain
16532 pseudo at the beginning of sorted array.
16533 (move_spill_restore): Ignore non spilled static chain pseudo.
16534 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16535 to non spilled static chain pseudo.
16536 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16537 pseudo at the beginning of sorted array.
16538 (spill_for): Spill non spilled static chain pseudo last.
16539 * lra-constraints.c (lra_constraints): Remove static chain pseudo
16540 check for equivalence.
16541
16542 2015-07-16 Martin Liska <mliska@suse.cz>
16543
16544 PR ipa/66896.
16545 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16546 dst_ctx if it does not exist.
16547
16548 2015-07-16 Martin Liska <mliska@suse.cz>
16549
16550 * hash-set.h (remove): New function.
16551 (iterator): New iteration class for hash_set.
16552
16553 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16554
16555 * genattrtab.c (make_canonical): Add a file_location parameter.
16556 Use fatal_at rather than fatal.
16557 (get_attr_value): Likewise. Update call to make_canonical.
16558 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16559 (make_internal_attr): Update calls accordingly.
16560
16561 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16562
16563 * read-md.h (message_with_line, error_with_line): Delete.
16564 * read-md.c (message_with_line, error_with_line): Delete.
16565 * gensupport.h: Include read-md.h.
16566 (md_rtx_info): New structure.
16567 (read_md_rtx): Use it. Return a bool success value.
16568 * gensupport.c (read_md_rtx): Likewise.
16569 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16570 (main): Update after interface changes.
16571 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16572 (main): Update after interface changes.
16573 * genattrtab.c (insn_code_number): Delete.
16574 (optimize_attrs): Add a max_insn_code parameter and use it instead
16575 of insn_code_number.
16576 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16577 Use *_at rather than *_with_line functions.
16578 (gen_insn): Likewise.
16579 (gen_delay): Likewise.
16580 (gen_insn_reserv): Likewise.
16581 (gen_bypass): Take an md_rtx_info rather than an rtx.
16582 (main): Update after interface changes. Use a local max_insn_code
16583 variable instead of insn_code_number.
16584 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16585 an rtx. Use fatal_at rather than fatal.
16586 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16587 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16588 (gen_absence_set, gen_final_absence_set, gen_automaton)
16589 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16590 (main): Update after interface changes.
16591 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16592 and code number.
16593 (main): Update after interface changes.
16594 * genconditions.c (main): Use new read_md_rtx interface.
16595 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16596 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16597 (main): Update after interface changes.
16598 * genemit.c (insn_code_number, insn_index_number): Delete.
16599 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16600 Use fatal_at rather than fatal.
16601 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
16602 rather than fatal.
16603 (gen_split): Likewise.
16604 (main): Update after interface changes.
16605 * genextract.c (line_no): Delete.
16606 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16607 Update call to walk_rtx.
16608 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
16609 rather than message_with_line.
16610 (walk_rtx): Add an md_rtx_info argument. Update call to
16611 VEC_safe_set_locstr.
16612 (main): Update after interface changes.
16613 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16614 and lineno. Use error_at rather than separate message_with_line
16615 calls and have_error assignments.
16616 (main): Update after interface changes.
16617 * genmddump.c (main): Use new read_md_rtx interface.
16618 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16619 (main): Update after interface changes.
16620 * genoutput.c (next_code_number): Delete.
16621 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16622 (gen_peephole, gen_expand, gen_split): Likewise.
16623 (note_constraint): Likewise. Use *_at rather than *_with_line
16624 functions.
16625 (main): Update after interface changes.
16626 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16627 rtx and lineno.
16628 (main): Update after interface changes.
16629 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16630 than an rtx and lineno.
16631 (process_define_constraint): Likewise.
16632 (process_define_register_constraint): Likewise.
16633 (main): Update after interface changes.
16634 * genrecog.c (next_insn_code, pattern_lineno): Delete.
16635 (validate_pattern): Replace top-level rtx with an md_rtx_info.
16636 Use *_at rather than *_with_line functions.
16637 (match_pattern_2): Likewise.
16638 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16639 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16640 Use *_at rather than *_with_line functions.
16641 * gentarget-def.c (add_insn): New function.
16642 (main): Use it. Use new read_md_rtx interface.
16643
16644 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16645
16646 * gensupport.h (compute_test_codes): Take a file_location rather
16647 than a line number.
16648 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
16649 rather than *_with_line functions.
16650 (process_define_predicate): Update call to compute_test_codes.
16651 * genpreds.c (validate_exp): Take a file_location rather than a
16652 line number. Use *_at functions rather than *_with_line functions.
16653 (process_define_predicate): Update call to validate_exp.
16654 (constraint_data): Replace lineno field with a file_location.
16655 (add_constraint): Take a file_location rather than a line number.
16656 Use *_at functions rather than *_with_line functions. Fix error
16657 message for address constraints. Update after changes to
16658 validate_exp, constraint_data and compute_test_codes.
16659 (process_define_constraint): Update accordingly.
16660 (process_define_register_constraint): Likewise.
16661
16662 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16663
16664 * genoutput.c (data): Use a file_location to record the source
16665 position.
16666 (nothing): Delete.
16667 (idata, idata_end): Remove initialization.
16668 (constraint_data): Replace lineno with a file_location.
16669 (output_insn_data): Update after changes to data.
16670 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16671 (scan_operands): Likewise, using *_at rather than *_with_line
16672 functions.
16673 (process_template): Likewise.
16674 (validate_insn_alternatives): Likewise.
16675 (validate_insn_operands): Likewise.
16676 (validate_optab_operands): Likewise.
16677 (init_insn_for_nothing): Initialize idata and idata_end.
16678 (note_constraint): Update after changes to constraint_data,
16679 using at rather than with_line functions.
16680 (mdep_constraint_len): Take a file_location rather than a
16681 line number. Use at rather than with_line functions.
16682
16683 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16684
16685 * read-md.h (fatal_at): Declare.
16686 * read-md.c (fatal_at): New function.
16687 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16688 to record the source position.
16689 (check_attr_test): Take a file_location instead of a line number.
16690 Use fatal_at instead of fatal.
16691 (check_attr_value): Update after above changes, using "at"
16692 rather than "with_line" reporting functions.
16693 (convert_set_attr_alternative): Likewise.
16694 (gen_attr): Likewise.
16695 (check_defs): Likewise. Don't assign to read_md_filename.
16696 (gen_insn): Update initialization after above changes.
16697 (gen_delay): Likewise.
16698 (write_insn_cases): Print the filename for a define_peephole.
16699 (gen_insn_reserv): Take a line number as argument and update
16700 the call to check_attr_test.
16701 (main): Pass a line number to gen_insn_reserv.
16702
16703 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16704
16705 * read-md.h (file_location): New structure.
16706 (directive_handler_t): Take a file_location rather than a line number.
16707 (message_at, error_at): Declare.
16708 (read_skip_construct): Delete.
16709 * read-md.c (message_with_line_1): Replace with...
16710 (message_at_1): ...this new function.
16711 (message_at, error_at): New functions.
16712 (message_with_line, error_with_line): Update to use message_at_1.
16713 (handle_enum): Take a file_location rather than a line number
16714 and use error_at for error reporting.
16715 (handle_include): Likewise.
16716 (read_skip_construct): Likewise. Make static.
16717 (handle_file): Update after above changes. Pass a file_location
16718 rather than a line number to handle_directive.
16719 * gensupport.c (queue_elem): Replace separate filename and lineno
16720 with a file_location.
16721 (queue_pattern): Replace filename and lineno arguments with a
16722 file_location. Update after change to queue_elem.
16723 (process_define_predicate): Replace lineno argument with a
16724 file_location and use error_at for error reporting. Update
16725 after above changes.
16726 (process_rtx): Likewise.
16727 (subst_pattern_match): Likewise.
16728 (get_alternatives_number): Likewise.
16729 (alter_predicate_for_insn): Likewise.
16730 (rtx_handle_directive): Likewise.
16731 (is_predicable): Update after above changes, using error_at rather
16732 than error_with_line.
16733 (has_subst_attribute): Likewise.
16734 (identify_predicable_attribute): Likewise.
16735 (alter_attrs_for_subst_insn): Likewise.
16736 (process_one_cond_exec): Likewise.
16737 (process_substs_on_one_elem): Likewise.
16738 (process_define_subst): Likewise.
16739 (check_define_attr_duplicates): Likewise.
16740 (read_md_rtx): Update after change to queue_elem.
16741
16742 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16743
16744 * genoutput.c (next_index_number): Delete.
16745 (data): Remove index_number.
16746 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
16747 (main): Remove manipulation of next_index_number.
16748
16749 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16750
16751 * genattrtab.c (check_attr_value): Remove handling of null attrs.
16752 (make_canonical): Likewise.
16753
16754 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
16755
16756 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
16757 instead of adjust_address_nv.
16758 (restore_stack_nonlocal): Likewise.
16759 (nonlocal_goto): Likewise.
16760
16761 2015-07-16 Tom de Vries <tom@codesourcery.com>
16762
16763 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
16764 not have a corresponding loop header phi.
16765
16766 2015-07-16 Tom de Vries <tom@codesourcery.com>
16767
16768 * tree-parloops.c (create_loads_for_reductions): Handle case that
16769 reduction is unused.
16770
16771 2015-07-16 Richard Biener <rguenther@suse.de>
16772
16773 PR tree-optimization/66894
16774 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
16775 about deriving NE_EXPR from truncated values.
16776
16777 2015-07-16 Martin Liska <mliska@suse.cz>
16778
16779 * alloc-pool.h
16780 (object_allocator): Add new class.
16781 (pool_allocator::initialize): Use the underlying class.
16782 (pool_allocator::allocate): Likewise.
16783 (pool_allocator::remove): Likewise.
16784 (operator new): A new generic allocator.
16785 * asan.c (struct asan_mem_ref): Remove unused members.
16786 (asan_mem_ref_new): Replace new operator with
16787 object_allocator::allocate.
16788 (free_mem_ref_resources): Change deallocation.
16789 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
16790 with object_allocator.
16791 * config/sh/sh.c (add_constant): Replace new operator with
16792 object_allocator::allocate.
16793 (sh_reorg): Change call to a release method.
16794 * cselib.c (struct elt_list): Remove unused members.
16795 (new_elt_list): Replace new operator with
16796 object_allocator::allocate.
16797 (new_elt_loc_list): Likewise.
16798 (new_cselib_val): Likewise.
16799 (unchain_one_elt_list): Change delete operator with remove method.
16800 (unchain_one_elt_loc_list): Likewise.
16801 (unchain_one_value): Likewise.
16802 (cselib_finish): Release newly added static allocators.
16803 * cselib.h (struct cselib_val): Remove unused members.
16804 (struct elt_loc_list): Likewise.
16805 * df-problems.c (df_chain_alloc): Replace pool_allocator with
16806 object_allocator.
16807 * df-scan.c (struct df_scan_problem_data): Likewise.
16808 (df_scan_alloc): Likewise.
16809 * df.h (struct dataflow): Likewise.
16810 * dse.c (struct read_info_type): Likewise.
16811 (struct insn_info_type): Likewise.
16812 (struct dse_bb_info_type): Likewise.
16813 (struct group_info): Likewise.
16814 (struct deferred_change): Likewise.
16815 (get_group_info): Likewise.
16816 (delete_dead_store_insn): Likewise.
16817 (free_read_records): Likewise.
16818 (replace_read): Likewise.
16819 (check_mem_read_rtx): Likewise.
16820 (scan_insn): Likewise.
16821 (dse_step1): Likewise.
16822 (dse_step7): Likewise.
16823 * et-forest.c (struct et_occ): Remove unused members.
16824 (et_new_occ): Use allocate instead of new operator.
16825 (et_new_tree): Likewise.
16826 (et_free_tree): Call release method explicitly.
16827 (et_free_tree_force): Likewise.
16828 (et_free_pools): Likewise.
16829 (et_split): Use remove instead of delete operator.
16830 * et-forest.h (struct et_node): Remove unused members.
16831 * ipa-cp.c: Change pool_allocator to object_allocator.
16832 * ipa-inline-analysis.c: Likewise.
16833 * ipa-profile.c: Likewise.
16834 * ipa-prop.c: Likewise.
16835 * ipa-prop.h: Likewise.
16836 * ira-build.c (initiate_cost_vectors): Cast return value.
16837 (ira_allocate_cost_vector): Likewise.
16838 * ira-color.c (struct update_cost_record): Remove unused members.
16839 * lra-int.h (struct lra_live_range): Likewise.
16840 (struct lra_copy): Likewise.
16841 (struct lra_insn_reg): Likewise.
16842 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
16843 * lra.c (new_insn_reg): Replace new operator with allocate method.
16844 (free_insn_regs): Same for operator delete.
16845 (finish_insn_regs): Release new static allocator.
16846 (finish_insn_recog_data): Likewise.
16847 (lra_free_copies): Replace delete operator with remove method.
16848 (lra_create_copy): Replace operator new with allocate method.
16849 (invalidate_insn_data_regno_info): Same for remove method.
16850 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
16851 (free_debug_insn_changes): Replace delete operator with remove method.
16852 (replace_oldest_value_reg): Replace operator new with allocate method.
16853 (pass_cprop_hardreg::execute): Release new static variable.
16854 * sched-deps.c (sched_deps_init): Change pool_allocator to
16855 object_allocator.
16856 * sel-sched-ir.c: Likewise.
16857 * sel-sched-ir.h: Likewise.
16858 * stmt.c (expand_case): Likewise.
16859 (expand_sjlj_dispatch_table): Likewise.
16860 * tree-sra.c (struct access): Remove unused members.
16861 (struct assign_link): Likewise.
16862 (sra_deinitialize): Release newly added static pools.
16863 (create_access_1):Replace operator new with allocate method.
16864 (build_accesses_from_assign): Likewise.
16865 (create_artificial_child_access): Likewise.
16866 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
16867 pool_allocator to object_allocator.
16868 * tree-ssa-pre.c: Likewise.
16869 * tree-ssa-reassoc.c: Likewise.
16870 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16871 * tree-ssa-strlen.c: Likewise.
16872 * tree-ssa-structalias.c: Likewise.
16873 * var-tracking.c (onepart_pool_allocate): New function.
16874 (unshare_variable): Use the newly added function.
16875 (variable_merge_over_cur): Likewise.
16876 (variable_from_dropped): Likewise.
16877 (variable_was_changed): Likewise.
16878 (set_slot_part): Likewise.
16879 (emit_notes_for_differences_1): Likewise.
16880 (vt_finalize): Release newly added static pools.
16881
16882 2015-07-16 Martin Jambor <mjambor@suse.cz>
16883
16884 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
16885 all uses. Fix two typos in its general comment.
16886 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
16887
16888 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
16889
16890 * config/i386/linux-common.h (LINK_MPX): New.
16891 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
16892 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
16893 indicating '-z bndplt' support by linker.
16894 * configure: Regenerate.
16895 * config.in: Regenerate.
16896
16897 2015-07-16 Richard Biener <rguenther@suse.de>
16898
16899 * fold-const.c (fold_widened_comparison): Remove.
16900 (fold_sign_changed_comparison): Likewise.
16901 (fold_comparison): Move widened and sign-changed comparison
16902 simplification ...
16903 * match.pd: ... to patterns here.
16904 * generic-match-head.c: Include target.h.
16905 * gimple-match-head.c: Likewise.
16906
16907 2015-07-16 Richard Biener <rguenther@suse.de>
16908
16909 * tree-ssa-dom.c (dom_valueize): New function.
16910 (record_temporary_equivalences): Also record equivalences
16911 for dominating stmts that have uses of equivalences we are
16912 about to record.
16913
16914 2015-07-16 Bin Cheng <bin.cheng@arm.com>
16915
16916 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
16917 add_autoinc_candidates.
16918 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
16919 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
16920 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
16921 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
16922 Call new function.
16923 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
16924 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
16925 Remove parameter struct iv*. Call add_autoinc_candidates here.
16926 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
16927 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
16928 Call new function.
16929 (find_iv_candidates): Call new functions.
16930
16931 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
16932
16933 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
16934 uninitialized-variable warning.
16935
16936 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
16937
16938 PR target/65249
16939 * config/sh/sh.md (movdi): Split simple reg move to two movsi
16940 when the destination is R0.
16941
16942 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
16943
16944 PR target/66866
16945 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
16946 * config/i386/i386.c (ix86_expand_pextr): New function.
16947 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
16948 for non-lowpart subregs.
16949 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
16950 (insv<mode>): Use SWI248 mode iterator.
16951 (insv<mode>_1): Ditto.
16952
16953 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16954 Sebastian Pop <s.pop@samsung.com>
16955
16956 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
16957 iterator to use_stmt.
16958
16959 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16960 Sebastian Pop <s.pop@samsung.com>
16961
16962 * graphite-scop-detection.c (build_scops_1): Discard scops for
16963 which entry==exit.
16964
16965 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16966 Sebastian Pop <s.pop@samsung.com>
16967
16968 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
16969 case of a return statement in scop.
16970
16971 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
16972 Sebastian Pop <s.pop@samsung.com>
16973
16974 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
16975 INTEGER_TYPE parameters.
16976 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
16977 VECTOR_CST in scan_tree_for_params.
16978 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
16979
16980 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16981
16982 * gimple-pretty-print.h: Don't include pretty-print.h.
16983 * tree-streamer.h: Don't include lto-streamer.h.
16984 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
16985 * gimple-streamer-in.c: Remove redundant includes.
16986 * gimple-streamer-out.c: Likewise.
16987 * ipa-devirt.c: Likewise.
16988 * ipa-icf.c: Likewise.
16989 * ipa-inline-analysis.c: Likewise.
16990 * ipa-polymorphic-call.c: Likewise.
16991 * ipa-profile.c: Likewise.
16992 * ipa-prop.c: Likewise.
16993 * ipa-pure-const.c: Likewise.
16994 * lto-cgraph.c: Likewise.
16995 * lto-streamer-in.c: Likewise.
16996 * lto-streamer-out.c: Likewise.
16997 * lto-streamer.c: Likewise.
16998 * tree-streamer-in.c: Likewise.
16999 * tree-streamer-out.c: Likewise.
17000 * tree-streamer.c: Likewise.
17001
17002 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
17003
17004 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
17005 include input.h.
17006 * opts.c: Remove multiline #include comment.
17007
17008 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
17009
17010 * config/nvptx/mkoffload.c (process): Add C++ protection to
17011 emitted code.
17012
17013 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17014
17015 PR target/66854
17016 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
17017 null before IEEE 128-bit floating point support patch.
17018
17019 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17020
17021 * simplify-rtx.c (simplify_ternary_operation): Add simplification
17022 for (!c) != {0,...,0} ? a : b for vector modes.
17023
17024 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
17025 Martin Jambor <mjambor@suse.cz>
17026
17027 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
17028 struct func_body_info* instead of struct ipa_node_params*, expecting
17029 fbi->info to be filled in. Replace throughout. Adjust call to
17030 ipa_load_from_parm_agg.
17031 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
17032 instead of struct ipa_node_params*. Adjust calls to other functions
17033 so that they pass either fbi or fbi->info.
17034 (set_switch_stmt_execution_predicate): Likewise.
17035 (will_be_nonconstant_predicate): Likewise.
17036 (compute_bb_predicates): Likewise.
17037 (estimate_function_body_sizes): Move asserts earlier. Fill in
17038 struct func_body_info, replace parms_info with fbi.info. Adjust
17039 calls to functions that now accept struct func_body_info.
17040 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
17041 (struct func_body_info): Likewise.
17042 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
17043 remove static. Adjust callers.
17044 (ipa_load_from_parm_agg): Remove.
17045 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
17046 (func_body_info): Likewise.
17047 (ipa_load_from_parm_agg): Adjust prototype.
17048
17049 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17050
17051 * gensupport.c (rtx_handle_directive): Adjust.
17052 * read-rtl.c (apply_iterators): Take vector to add rtxs to
17053 instead of expr list rtx.
17054 (add_define_attr_for_define_subst): Likewise.
17055 (add_define_subst_attr): Likewise.
17056 (read_subst_mapping): Likewise.
17057 (read_rtx): Likewise.
17058 * rtl.h (read_rtx): Adjust.
17059
17060 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17061
17062 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
17063
17064 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17065
17066 PR target/58066
17067 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
17068 (*tls_local_dynamic_base_64_<mode>): Ditto.
17069 (*tls_local_dynamic_base_64_largepic): Ditto.
17070 (tls_global_dynamic_64_<mode>): Update expander pattern.
17071 (tls_local_dynamic_base_64_<mode>): Ditto.
17072
17073 2015-07-15 Richard Biener <rguenther@suse.de>
17074
17075 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
17076 and bool_var == 1 -> bool_var simplifications ...
17077 * match.pd: ... to patterns here. Factor out negate_expr_p
17078 cases from the A - B -> A + (-B) patterns as negate_expr_p
17079 predicate and add a -(A + B) -> (-B) - A pattern.
17080
17081 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
17082
17083 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
17084
17085 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
17086 Robert Suchanek <robert.suchanek@imgtec.com>
17087
17088 * config/mips/mips.c (mips_int_mask): New enum.
17089 (mips_shadow_set): Likewise.
17090 (int_mask): New variable.
17091 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
17092 (machine_function): Add int_mask and use_shadow_register_set.
17093 (mips_attribute_table): Add attribute handlers for interrupt and
17094 use_shadow_register_set.
17095 (mips_interrupt_mask): New static function.
17096 (mips_handle_interrupt_attr): Likewise.
17097 (mips_handle_use_shadow_register_set_attr): Likewise.
17098 (mips_use_shadow_register_set): Change return type to enum
17099 mips_shadow_set. Add argument handling for use_shadow_register_set
17100 attribute.
17101 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
17102 compare with mips_shadow_set enum.
17103 (mips_compute_frame_info): Add interrupt mask and
17104 use_shadow_register_set to per-function information structure.
17105 Add a stack slot for EPC unconditionally.
17106 (mips_expand_prologue): Compare use_shadow_register_set value
17107 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
17108 masked interrupt register but in EIC mode use K0 and save Cause in K0.
17109 EPC saved and restored unconditionally. Use PMODE_INSN macro when
17110 copying the stack pointer from the shadow register set.
17111 * config/mips/mips.h (SR_IM0): New define.
17112 * config/mips/mips.md (mips_rdpgpr): Rename to...
17113 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
17114 * doc/extend.texi (Declaring Attributes of Functions): Document
17115 optional arguments for interrupt and use_shadow_register_set
17116 attributes.
17117
17118 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
17119
17120 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
17121 interrupt attribute.
17122 (mips_expand_prologue): Disable the floating point unit in an ISR.
17123 * config/mips/mips.h (SR_COP1): New define.
17124
17125 2015-07-15 Richard Biener <rguenther@suse.de>
17126
17127 * genmatch.c (parser::peek, parser::peek_ident): Add argument
17128 to tell how many tokens to peek ahead (default 1).
17129 (parser::eat_token, parser::eat_ident): Return token consumed.
17130 (parser::parse_result): Parse new switch statement.
17131 * match.pd: Use case statements where appropriate.
17132
17133 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17134
17135 PR rtl-optimization/58066
17136 * calls.c (expand_call): Precompute register parameters before stack
17137 alignment is performed.
17138
17139 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17140
17141 PR rtl-optimization/66838
17142 * postreload.c (reload_cse_move2add): Also process
17143 CALL_INSN_FUNCTION_USAGE when resetting information of
17144 call-clobbered registers.
17145
17146 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17147 Cesar Philippidis <cesar@codesourcery.com>
17148 Chung-Lin Tang <cltang@codesourcery.com>
17149
17150 * config/nios2/constraints.md (U, v): New constraints.
17151 * config/nios2/predicates.md (rdprs_dcache_operand): New.
17152 (ldstex_memory_operand): New.
17153 * config/nios2/sync.md: New file.
17154 * config/nios2/nios2.md (unspecv): Add new builtin function
17155 UNSPECV codes.
17156 (rdprs, flushd, flushda, wrpie, eni): New patterns.
17157 (top-level): Include sync.md.
17158 * config/nios2/nios2.c (N2_FTYPES): Add function types for
17159 new builtins.
17160 (N2_BUILTINS): Add arch field setting, add new builtins.
17161 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17162 for arch field.
17163 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17164 Also handle ldex/stex/ldsex/stsex builtins.
17165 (nios2_expand_rdprs_builtin): New function.
17166 (nios2_expand_cache_builtin): New function.
17167 (nios2_expand_wrpie_builtin): New function.
17168 (nios2_expand_eni_builtin): New function.
17169 (nios2_expand_builtin): Add arch field handling and new builtin
17170 cases.
17171 * doc/extend.texi (Altera Nios II Built-in Functions): Document
17172 new builtins.
17173 * doc/md.texi (Machine Constraints): Document U and v constraints.
17174
17175 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17176 Cesar Philippidis <cesar@codesourcery.com>
17177 Chung-Lin Tang <cltang@codesourcery.com>
17178
17179 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17180 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17181 callee_save_reg_size and uses_anonymous_args fields.
17182 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17183 (nios2_create_cfa_notes): New function.
17184 (nios2_adjust_stack): New function for adjusting stack.
17185 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17186 Use nios2_adjust_stack.
17187 (nios2_expand_epilogue): Likewise.
17188 (nios2_expand_return): New function.
17189 (nios2_can_use_return_insn): Update for CDX pop.n usage.
17190 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17191 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17192 * config/nios2/nios2.md (return): Use nios2_expand_return.
17193
17194 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17195 Cesar Philippidis <cesar@codesourcery.com>
17196 Chung-Lin Tang <cltang@codesourcery.com>
17197
17198 * config/nios2/predicates.md (pop_operation): New.
17199 (ldwm_operation, stwm_operation): New.
17200 (nios2_hard_register_operand): New.
17201 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17202 (ldstwm_operation_p): Declare.
17203 (gen_ldstwm_peep): Declare.
17204 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17205 (base_reg_adjustment_p): New.
17206 (pop_operation_p): New.
17207 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17208 (nios2_ldstwm_regset_p): New.
17209 (ldstwm_operation_p): New.
17210 (gen_ldst): New.
17211 (nios2_ldst_parallel): New.
17212 (struct ldswm_operand): Declare.
17213 (compare_ldstwm_operands): New.
17214 (can_use_cdx_ldstw): New.
17215 (gen_ldstwm_peep): New.
17216 * config/nios2/nios2-ldstwm.sml: New.
17217 * config/nios2/nios2.md: Include ldstwm.md.
17218 * config/nios2/ldstwm.md: Generated.
17219
17220 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17221 Cesar Philippidis <cesar@codesourcery.com>
17222 Chung-Lin Tang <cltang@codesourcery.com>
17223
17224 * config/nios2/nios2.h (LABEL_ALIGN): Define.
17225 (REG_ALLOC_ORDER): Define.
17226 (ADJUST_REG_ALLOC_ORDER): Define.
17227 (HONOR_REG_ALLOC_ORDER): Define.
17228 (CDX_REG_P): Define.
17229 (ANDCLEAR_INT): Define.
17230 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17231 (nios2_label_align): Declare.
17232 (nios2_cdx_narrow_form_p): Declare.
17233 (nios2_adjust_reg_alloc_order): Declare.
17234 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17235 operation.
17236 (nios2_large_unspec_reloc_p): New function, split from...
17237 (nios2_legitimate_pic_operand_p): ...here.
17238 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17239 (nios2_print_operand_punct_valid_p): New.
17240 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
17241 (split_mem_address): New.
17242 (split_alu_insn): New.
17243 (cdxreg): New.
17244 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17245 (enum nios2_add_insn_kind): New.
17246 (nios2_add_insn_names, nios2_add_insn_narrow): New.
17247 (nios2_add_insn_classify): New.
17248 (nios2_add_insn_asm): New.
17249 (nios2_cdx_narrow_form_p): New.
17250 (label_align, min_labelno, max_labelno): New.
17251 (nios2_reorg): New.
17252 (nios2_label_align): New.
17253 (nios2_adjust_reg_alloc_order): New.
17254 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17255 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17256 * config/nios2/constraints.md (P): New constraint.
17257 * config/nios2/predicates.md (const_and_operand): New.
17258 (and_operand): New.
17259 (stack_memory_operand): New.
17260 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17261 (length): Update to use nios2_cdx_narrow_form_p().
17262 (type): Add new insn type values.
17263 (control, alu, st, ld, shift): Update insn reservations with
17264 new insn type values.
17265 (*high, *lo_sum): Define new insn patterns for constant generation.
17266 (movqi_internal, movhi_internal, movsi_internal): Reduce
17267 alternatives, update asm template to handle CDX variants, update
17268 type attributes.
17269 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17270 template, update type attributes.
17271 (extendhisi2, extendqi<mode>2): Likewise.
17272 (addsi3): Change to use function for asm string.
17273 (subsi3): Add CDX notation to asm template, update type attributes.
17274 (negsi3, one_cmplsi3): Likewise.
17275 (andsi3): New pattern, specialized from logical patterns.
17276 (<code>si3): Remove and case, combine alternatives, update asm
17277 template.
17278 (<shift_op>si3): Add CDX notation, update type attributes.
17279 (rotrsi3): Update type attribute.
17280 (*merge, extzv, insv): New insn patterns.
17281 (return): Change to define_expand.
17282 (simple_return): Add CDX notation, update type attributes.
17283 (indirect_jump): Add CDX notation.
17284 (jump): Update asm cases, update length attribute expression.
17285 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17286 (nios2_cbranch): Update asm cases and length attribute expression
17287 to handle CDX variants.
17288 (nios2_cmp<code>): Update asm template.
17289 (nop): Add CDX notation, update type attributes.
17290 (trap): Add CDX notation.
17291 (ctrapsi4): Update asm cases and length attribute expression to
17292 handle CDX variant.
17293 * doc/md.texi (Machine Constraints): Document P constraint.
17294
17295 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17296 Cesar Philippidis <cesar@codesourcery.com>
17297 Chung-Lin Tang <cltang@codesourcery.com>
17298
17299 * config/nios2/nios2.h (SMALL_INT12): New macro.
17300 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17301 (nios2_valid_addr_expr_p): Use it.
17302 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17303 with implicit "io" instructions on R2.
17304 * config/nios2/constraints.md (w): New constraint.
17305 * config/nios2/predicates.md (ldstio_memory_operand): New.
17306 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17307 operand predicate and constraint.
17308 (ld<bh>io_signed, st<bhw>io>): Likewise.
17309 * doc/md.texi (Machine Constraints): Document w constraint.
17310
17311 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17312 Cesar Philippidis <cesar@codesourcery.com>
17313 Chung-Lin Tang <cltang@codesourcery.com>
17314
17315 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17316 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17317 Nios II architecture level.
17318 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17319 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17320 (OPTION_DEFAULT_SPECS): Define.
17321 (ASM_SPEC): Add -march= spec strings.
17322 * config/nios2/nios2.c (nios2_option_override): Check for
17323 conflicts involving new options.
17324 * config.gcc (nios2*-*-*): Support --with-arch=.
17325 * doc/invoke.texi (Option Summary, Nios II Options): Document
17326 -march=, -mbmx, and -mcdx.
17327
17328 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
17329
17330 PR rtl-optimization/66626
17331 * lra-constraints.c (lra_constraints): Prevent equivalence
17332 substitution for static chain pseudo in functions with nonlocal
17333 goto.
17334
17335 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17336
17337 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17338 (nios2_emit_stack_limit_check): Add size parameter. Handle
17339 -fstack-limit-symbol as well as -fstack-limit-register.
17340 (nios2_expand_prologue): Emit only a single stack limit check,
17341 even if multiple stack adjustments are required.
17342 (nios2_option_override): Diagnose unsupported combination of -fpic
17343 and -stack-limit-symbol.
17344
17345 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
17346
17347 * Makefile.in (top_srcdir): New.
17348 * configure.ac: Use AM_ZLIB.
17349 * configure: Regeneated.
17350
17351 2015-07-14 Matthias Klose <doko@ubuntu.com>
17352
17353 PR target/66840
17354 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17355
17356 2015-07-14 Richard Biener <rguenther@suse.de>
17357
17358 PR tree-optimization/66863
17359 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17360 what we record for conversion use stmt lhs inequalities.
17361
17362 2015-07-14 Richard Biener <rguenther@suse.de>
17363
17364 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17365 (decision_tree::gen_gimple): Likewise.
17366
17367 2015-07-14 Tom de Vries <tom@codesourcery.com>
17368
17369 * gcc.c (greater_than_spec_func): Declare forward.
17370 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17371 -ftree-parallelize-loops={0,1}.
17372 (static_spec_functions): Add greater_than_spec_func function with name
17373 "gt".
17374 (greater_than_spec_func): New function.
17375
17376 2015-07-14 Richard Biener <rguenther@suse.de>
17377
17378 * tree-ssa-dom.c (record_temporary_equivalences): Merge
17379 wideing type conversion case from record_equivalences_from_incoming_edge
17380 and use record_equality to record equivalences.
17381 (record_equivalences_from_incoming_edge): Call
17382 record_temporary_equivalences.
17383
17384 2015-07-14 Richard Biener <rguenther@suse.de>
17385
17386 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17387 (struct if_expr): New.
17388 (struct with_expr): Likewise.
17389 (is_a_helper): Add helpers for if_expr and with_expr.
17390 (struct simplify): Add simplify_kind enum and member. Remove
17391 ifexpr_vec member.
17392 (simplify::simplify): Adjust.
17393 (lower_commutative): Adjust.
17394 (lower_opt_convert): Likewise.
17395 (lower_cond): Likewise.
17396 (replace_id): Handle with_expr and if_expr.
17397 (lower_for): Adjust.
17398 (dt_simplify::gen_1): New recursive worker, split out from ...
17399 (dt_simplify::gen): ... here. Deal with if and with expansion
17400 recursively.
17401 (capture_info::capture_info): Take context argument
17402 (capture_info::walk_result): Only analyze specific result.
17403 (parser::parse_result): New function.
17404 (parser::parse_simplify): Adjust to parse ifs with then end
17405 else case.
17406 (parser::parse_if): Simplify.
17407 (parser::parse_pattern): Pass down simplify kind.
17408 * match.pd: Convert if structure to new syntax.
17409
17410 2015-07-13 Marek Polacek <polacek@redhat.com>
17411
17412 * rtl.c (rtx_equal_p_cb): Fix typo.
17413
17414 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
17415
17416 * omega.h: Don't include config.h, don't include params.h again if
17417 omega.h has already been included.
17418 * graphite-poly.h: Include sese.h.
17419 * graphite.c: Don't include sese.h, remove needless includes and
17420 minimize includes outside #ifdef HAVE_isl block.
17421 * graphite-blocking.c: Don't include sese.h, remove needless includes,
17422 and wrap entire file in #ifdef HAVE_isl
17423 * graphite-dependences.c: Likewise.
17424 * graphite-interchange.c: Likewise.
17425 * graphite-isl-ast-to-gimple.c: Likewise.
17426 * graphite-optimize-isl.c: Likewise.
17427 * graphite-poly.c: Likewise.
17428 * graphite-scop-detection.c: Likewise.
17429 * graphite-sese-to-poly.c: Likewise.
17430
17431 2015-07-13 Tom de Vries <tom@codesourcery.com>
17432
17433 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17434
17435 2015-07-13 Renlin Li <renlin.li@arm.com>
17436
17437 PR rtl/66556
17438 * simplify-rtx.c (simplify_const_relational_operation): Add
17439 side_effects_p checks.
17440
17441 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
17442
17443 * bitmap.h: Fix double word typos.
17444 * builtins.c: Same.
17445 * calls.c: Same.
17446 * cfgloopmanip.c: Same.
17447 * cgraph.c: Same.
17448 * cgraph.h: Same.
17449 * cgraphclones.c: Same.
17450 * combine.c: Same.
17451 * config/aarch64/aarch64-protos.h: Same.
17452 * config/aarch64/aarch64.c: Same.
17453 * config/aarch64/aarch64.md: Same.
17454 * config/arm/arm.md: Same.
17455 * config/arm/arm1020e.md: Same.
17456 * config/arm/arm1026ejs.md: Same.
17457 * config/arm/arm926ejs.md: Same.
17458 * config/arm/fa526.md: Same.
17459 * config/arm/fa606te.md: Same.
17460 * config/arm/fa626te.md: Same.
17461 * config/arm/fa726te.md: Same.
17462 * config/arm/fmp626.md: Same.
17463 * config/darwin.c: Same.
17464 * config/epiphany/epiphany.c: Same.
17465 * config/frv/frv.c: Same.
17466 * config/ft32/ft32.c: Same.
17467 * config/gnu-user.h: Same.
17468 * config/h8300/constraints.md: Same.
17469 * config/i386/i386.c: Same.
17470 * config/i386/i386.md: Same.
17471 * config/iq2000/iq2000.md: Same.
17472 * config/mips/mips.c: Same.
17473 * config/mmix/mmix.md: Same.
17474 * config/moxie/moxie.c: Same.
17475 * config/nds32/nds32.md: Same.
17476 * config/pa/pa.h: Same.
17477 * config/rs6000/aix.h: Same.
17478 * config/rs6000/rs6000.h: Same.
17479 * config/sh/sh.c: Same.
17480 * config/tilegx/tilegx.md: Same.
17481 * config/tilepro/gen-mul-tables.cc: Same.
17482 * cse.c: Same.
17483 * dbxout.c: Same.
17484 * doc/invoke.texi: Same.
17485 * dse.c: Same.
17486 * dwarf2out.c: Same.
17487 * final.c: Same.
17488 * gcc.c: Same.
17489 * genmatch.c: Same.
17490 * gimplify.c: Same.
17491 * hash-table.h: Same.
17492 * internal-fn.c: Same.
17493 * ipa-cp.c: Same.
17494 * ipa-devirt.c: Same.
17495 * ipa-icf.c: Same.
17496 * ipa-icf.h: Same.
17497 * ipa-profile.c: Same.
17498 * ipa-prop.c: Same.
17499 * ipa-prop.h: Same.
17500 * ira.c: Same.
17501 * omp-low.c: Same.
17502 * reg-stack.c: Same.
17503 * regcprop.c: Same.
17504 * reorg.c: Same.
17505 * rtl.h: Same.
17506 * sbitmap.h: Same.
17507 * tree-eh.c: Same.
17508 * tree-inline.c: Same.
17509 * tree-sra.c: Same.
17510 * tree-ssa-dom.c: Same.
17511 * tree-ssa-loop-ivopts.c: Same.
17512 * tree-ssa-structalias.c: Same.
17513 * tree-ssa-tail-merge.c: Same.
17514 * tree-ssa-ter.c: Same.
17515 * tree-ssa-threadupdate.c: Same.
17516 * tree-ssa-uninit.c: Same.
17517 * tree-ssanames.c: Same.
17518 * tree-vect-loop-manip.c: Same.
17519 * tree-vrp.c: Same.
17520 * tree.c: Same.
17521 * valtrack.c: Same.
17522 * vec.h: Same.
17523
17524 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17525
17526 PR middle-end/66726
17527 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17528 tree_ssa_phiopt_worker): Call it.
17529
17530 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17531
17532 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17533 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17534 REG_EQUAL note.
17535
17536 2015-07-11 Marek Polacek <polacek@redhat.com>
17537
17538 PR middle-end/66353
17539 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17540 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17541 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17542 rather than bb_has_abnormal_call_pred.
17543 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17544 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17545 rather than bb_has_abnormal_call_pred.
17546
17547 2015-07-10 Anatoly Sokolov <aesok@post.ru>
17548
17549 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17550 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17551 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17552 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17553 v850_legitimate_address_p): New functions.
17554 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17555
17556 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
17557
17558 PR target/66819
17559 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17560 indirect sibcall with register arguments if register available
17561 for argument passing.
17562 (init_cumulative_args): Set cfun->machine->arg_reg_available
17563 to (cum->nregs > 0) or to true if function has a variable
17564 argument list.
17565 (function_arg_advance_32): Set cfun->machine->arg_reg_available
17566 to false if cum->nregs <= 0.
17567 * config/i386/i386.h (machine_function): Add arg_reg_available.
17568
17569 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17570
17571 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17572 and gen_higpart instead of gen_rtx_SUBREG.
17573 * config/i386/i386.md
17574 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17575 (read-modify peephole2): Use gen_lowpart instead of
17576 gen_rtx_SUBREG for operand 5.
17577
17578 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17579
17580 * config/tilepro/gen-mul-tables.cc (main): Change include list for
17581 generated files.
17582 * config/tilepro/mul-tables.c: Regenerate.
17583 * config/tilegx/mul-tables.c: Regenerate.
17584
17585 2015-07-10 Richard Biener <rguenther@suse.de>
17586
17587 * fold-const.c (distribute_bit_expr): Remove.
17588 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17589 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17590 to A & (B | C) and simplifying A << C1 << C2 to ...
17591 * match.pd: ... patterns here.
17592
17593 2015-07-10 Jiong Wang <jiong.wang@arm.com>
17594
17595 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17596 Mark mem as READONLY and NOTRAP for PIC symbol.
17597
17598 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17599
17600 * gimple-predict.h: New file.
17601 (gimple_predict_predictor, gimple_predict_set_predictor,
17602 gimple_predict_outcome, gimple_predict_set_outcome,
17603 gimple_build_predict): Relocate here.
17604 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17605 gimple_predict_outcome, gimple_predict_set_outcome): Move to
17606 gimple-predict.h.
17607 * gimple.c (gimple_build_predict): Move to gimple-predict.h
17608 * basic-block.h: Don't include cfghooks.h.
17609 * backend.h: Don't include predict.h.
17610 * cfghooks.h: Include predict.h.
17611 * gimple-pretty-print.c: Include gimple-predict.h.
17612 * gimplify.c: Likwise.
17613 * predict.c: Adjust includes.
17614 * tree-inline.c: Likewise.
17615 * asan.c: Likewise.
17616 * auto-inc-dec.c: Likewise.
17617 * auto-profile.c: Likewise.
17618 * bb-reorder.c: Likewise.
17619 * builtins.c: Likewise.
17620 * caller-save.c: Likewise.
17621 * calls.c: Likewise.
17622 * cfganal.c: Likewise.
17623 * cfgbuild.c: Likewise.
17624 * cfg.c: Likewise.
17625 * cfgcleanup.c: Likewise.
17626 * cfgexpand.c: Likewise.
17627 * cfghooks.c: Likewise.
17628 * cfgloopanal.c: Likewise.
17629 * cfgloop.c: Likewise.
17630 * cfgloopmanip.c: Likewise.
17631 * cfgrtl.c: Likewise.
17632 * cgraph.c: Likewise.
17633 * cgraphunit.c: Likewise.
17634 * combine.c: Likewise.
17635 * cprop.c: Likewise.
17636 * cse.c: Likewise.
17637 * dce.c: Likewise.
17638 * dojump.c: Likewise.
17639 * dse.c: Likewise.
17640 * except.c: Likewise.
17641 * expmed.c: Likewise.
17642 * expr.c: Likewise.
17643 * final.c: Likewise.
17644 * fold-const.c: Likewise.
17645 * function.c: Likewise.
17646 * fwprop.c: Likewise.
17647 * gcc-plugin.h: Likewise.
17648 * gcse.c: Likewise.
17649 * genattrtab.c: Likewise.
17650 * genemit.c: Likewise.
17651 * gengtype.c: Likewise.
17652 * genopinit.c: Likewise.
17653 * genoutput.c: Likewise.
17654 * genpreds.c: Likewise.
17655 * genrecog.c: Likewise.
17656 * gimple-fold.c: Likewise.
17657 * gimple-iterator.c: Likewise.
17658 * gimple-ssa-isolate-paths.c: Likewise.
17659 * gimple-ssa-strength-reduction.c: Likewise.
17660 * graph.c: Likewise.
17661 * graphite-blocking.c: Likewise.
17662 * graphite.c: Likewise.
17663 * graphite-dependences.c: Likewise.
17664 * graphite-interchange.c: Likewise.
17665 * graphite-isl-ast-to-gimple.c: Likewise.
17666 * graphite-optimize-isl.c: Likewise.
17667 * graphite-poly.c: Likewise.
17668 * graphite-scop-detection.c: Likewise.
17669 * graphite-sese-to-poly.c: Likewise.
17670 * haifa-sched.c: Likewise.
17671 * ifcvt.c: Likewise.
17672 * internal-fn.c: Likewise.
17673 * ipa-cp.c: Likewise.
17674 * ipa-profile.c: Likewise.
17675 * ipa-split.c: Likewise.
17676 * ipa-utils.c: Likewise.
17677 * ira-build.c: Likewise.
17678 * ira-color.c: Likewise.
17679 * ira-conflicts.c: Likewise.
17680 * ira-costs.c: Likewise.
17681 * ira-emit.c: Likewise.
17682 * ira-lives.c: Likewise.
17683 * jump.c: Likewise.
17684 * loop-doloop.c: Likewise.
17685 * loop-init.c: Likewise.
17686 * loop-invariant.c: Likewise.
17687 * loop-unroll.c: Likewise.
17688 * lower-subreg.c: Likewise.
17689 * lra-assigns.c: Likewise.
17690 * lra.c: Likewise.
17691 * lra-coalesce.c: Likewise.
17692 * lra-constraints.c: Likewise.
17693 * lra-lives.c: Likewise.
17694 * lto-cgraph.c: Likewise.
17695 * lto-streamer-in.c: Likewise.
17696 * mode-switching.c: Likewise.
17697 * modulo-sched.c: Likewise.
17698 * omp-low.c: Likewise.
17699 * optabs.c: Likewise.
17700 * passes.c: Likewise.
17701 * postreload.c: Likewise.
17702 * postreload-gcse.c: Likewise.
17703 * profile.c: Likewise.
17704 * recog.c: Likewise.
17705 * regstat.c: Likewise.
17706 * reload1.c: Likewise.
17707 * reorg.c: Likewise.
17708 * rtlanal.c: Likewise.
17709 * sched-ebb.c: Likewise.
17710 * sel-sched-ir.c: Likewise.
17711 * sese.c: Likewise.
17712 * shrink-wrap.c: Likewise.
17713 * simplify-rtx.c: Likewise.
17714 * stmt.c: Likewise.
17715 * store-motion.c: Likewise.
17716 * tracer.c: Likewise.
17717 * trans-mem.c: Likewise.
17718 * tree-call-cdce.c: Likewise.
17719 * tree-cfg.c: Likewise.
17720 * tree-cfgcleanup.c: Likewise.
17721 * tree-chkp.c: Likewise.
17722 * tree-complex.c: Likewise.
17723 * tree-eh.c: Likewise.
17724 * tree-if-conv.c: Likewise.
17725 * tree-loop-distribution.c: Likewise.
17726 * tree-outof-ssa.c: Likewise.
17727 * tree-parloops.c: Likewise.
17728 * tree-predcom.c: Likewise.
17729 * tree-pretty-print.c: Likewise.
17730 * tree-profile.c: Likewise.
17731 * tree-sra.c: Likewise.
17732 * tree-ssa.c: Likewise.
17733 * tree-ssa-coalesce.c: Likewise.
17734 * tree-ssa-dce.c: Likewise.
17735 * tree-ssa-dom.c: Likewise.
17736 * tree-ssa-forwprop.c: Likewise.
17737 * tree-ssa-ifcombine.c: Likewise.
17738 * tree-ssa-loop-ch.c: Likewise.
17739 * tree-ssa-loop-im.c: Likewise.
17740 * tree-ssa-loop-ivcanon.c: Likewise.
17741 * tree-ssa-loop-ivopts.c: Likewise.
17742 * tree-ssa-loop-manip.c: Likewise.
17743 * tree-ssa-loop-prefetch.c: Likewise.
17744 * tree-ssa-loop-unswitch.c: Likewise.
17745 * tree-ssa-math-opts.c: Likewise.
17746 * tree-ssa-phiopt.c: Likewise.
17747 * tree-ssa-pre.c: Likewise.
17748 * tree-ssa-reassoc.c: Likewise.
17749 * tree-ssa-sink.c: Likewise.
17750 * tree-ssa-tail-merge.c: Likewise.
17751 * tree-ssa-threadedge.c: Likewise.
17752 * tree-ssa-threadupdate.c: Likewise.
17753 * tree-switch-conversion.c: Likewise.
17754 * tree-tailcall.c: Likewise.
17755 * tree-vect-data-refs.c: Likewise.
17756 * tree-vect-loop.c: Likewise.
17757 * tree-vect-loop-manip.c: Likewise.
17758 * tree-vectorizer.c: Likewise.
17759 * tree-vrp.c: Likewise.
17760 * ubsan.c: Likewise.
17761 * value-prof.c: Likewise.
17762 * varasm.c: Likewise.
17763 * var-tracking.c: Likewise.
17764 * config/aarch64/aarch64-builtins.c: Likewise.
17765 * config/aarch64/aarch64.c: Likewise.
17766 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17767 * config/alpha/alpha.c: Likewise.
17768 * config/arc/arc.c: Likewise.
17769 * config/arm/arm.c: Likewise.
17770 * config/avr/avr.c: Likewise.
17771 * config/bfin/bfin.c: Likewise.
17772 * config/c6x/c6x.c: Likewise.
17773 * config/cr16/cr16.c: Likewise.
17774 * config/cris/cris.c: Likewise.
17775 * config/darwin.c: Likewise.
17776 * config/darwin-c.c: Likewise.
17777 * config/epiphany/epiphany.c: Likewise.
17778 * config/epiphany/mode-switch-use.c: Likewise.
17779 * config/epiphany/resolve-sw-modes.c: Likewise.
17780 * config/fr30/fr30.c: Likewise.
17781 * config/frv/frv.c: Likewise.
17782 * config/ft32/ft32.c: Likewise.
17783 * config/h8300/h8300.c: Likewise.
17784 * config/i386/i386.c: Likewise.
17785 * config/i386/winnt.c: Likewise.
17786 * config/ia64/ia64.c: Likewise.
17787 * config/iq2000/iq2000.c: Likewise.
17788 * config/lm32/lm32.c: Likewise.
17789 * config/m32c/m32c.c: Likewise.
17790 * config/m32r/m32r.c: Likewise.
17791 * config/m68k/m68k.c: Likewise.
17792 * config/mcore/mcore.c: Likewise.
17793 * config/mep/mep.c: Likewise.
17794 * config/microblaze/microblaze.c: Likewise.
17795 * config/mips/mips.c: Likewise.
17796 * config/mmix/mmix.c: Likewise.
17797 * config/mn10300/mn10300.c: Likewise.
17798 * config/moxie/moxie.c: Likewise.
17799 * config/msp430/msp430.c: Likewise.
17800 * config/nds32/nds32.c: Likewise.
17801 * config/nds32/nds32-cost.c: Likewise.
17802 * config/nds32/nds32-fp-as-gp.c: Likewise.
17803 * config/nds32/nds32-intrinsic.c: Likewise.
17804 * config/nds32/nds32-isr.c: Likewise.
17805 * config/nds32/nds32-md-auxiliary.c: Likewise.
17806 * config/nds32/nds32-memory-manipulation.c: Likewise.
17807 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17808 * config/nds32/nds32-predicates.c: Likewise.
17809 * config/nios2/nios2.c: Likewise.
17810 * config/nvptx/nvptx.c: Likewise.
17811 * config/pa/pa.c: Likewise.
17812 * config/pdp11/pdp11.c: Likewise.
17813 * config/rl78/rl78.c: Likewise.
17814 * config/rs6000/rs6000.c: Likewise.
17815 * config/rx/rx.c: Likewise.
17816 * config/s390/s390.c: Likewise.
17817 * config/sh/sh.c: Likewise.
17818 * config/sh/sh-mem.cc: Likewise.
17819 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17820 * config/sh/sh_treg_combine.cc: Likewise.
17821 * config/sparc/sparc.c: Likewise.
17822 * config/spu/spu.c: Likewise.
17823 * config/stormy16/stormy16.c: Likewise.
17824 * config/tilegx/tilegx.c: Likewise.
17825 * config/tilepro/tilepro.c: Likewise.
17826 * config/v850/v850.c: Likewise.
17827 * config/vax/vax.c: Likewise.
17828 * config/visium/visium.c: Likewise.
17829 * config/xtensa/xtensa.c: Likewise.
17830
17831 2015-07-10 Richard Biener <rguenther@suse.de>
17832
17833 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
17834 (decision_tree::gen_gimple): Likewise.
17835 (decision_tree::gen_generic): Likewise.
17836
17837 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17838
17839 PR target/66813
17840 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
17841 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
17842
17843 2015-07-10 Jakub Jelinek <jakub@redhat.com>
17844
17845 PR middle-end/66820
17846 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
17847 or ORT_TASK contexts.
17848 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
17849 is non-zero.
17850
17851 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17852
17853 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
17854 above function.
17855
17856 2015-07-10 Tom de Vries <tom@codesourcery.com>
17857
17858 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
17859 insert nit + 1 bound.
17860
17861 2015-07-10 Richard Biener <rguenther@suse.de>
17862
17863 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
17864 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
17865 (if_convertible_loop_p_1): For this always compute bb predicates.
17866 (if_convertible_loop_p): And free them.
17867
17868 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17869
17870 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
17871 in dump message.
17872
17873 2015-07-10 Richard Biener <rguenther@suse.de>
17874
17875 PR tree-optimization/66823
17876 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
17877 inverted predicate.
17878
17879 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
17880
17881 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
17882 to handle mips[32|64]r3 and mips[32|64]r5.
17883
17884 2015-07-09 Jakub Jelinek <jakub@redhat.com>
17885
17886 PR middle-end/66633
17887 * tree-nested.c (get_static_chain): Or in a flag into
17888 info->static_chain_added.
17889 (get_frame_field, get_nonlocal_debug_decl): Likewise.
17890 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
17891 2015-07-01 changes.
17892 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
17893 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
17894 add it to clauses.
17895
17896 PR tree-optimization/66718
17897 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
17898 field.
17899 (vect_simd_lane_linear): New function.
17900 (vectorizable_simd_clone_call): Support using linear arguments for
17901 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
17902
17903 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17904
17905 PR target/66821
17906 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
17907
17908 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17909
17910 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
17911 Use machine mode, not enum machine_mode in the prototype.
17912
17913 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
17914 classify 128-bit floating point support.
17915 (FLOAT128_IBM_P): Likewise.
17916 (FLOAT128_VECTOR_P): Likewise.
17917 (FLOAT128_2REG_P): Likewise.
17918 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
17919 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
17920 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
17921 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
17922
17923 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
17924 tests against TFmode/TDmode, since those modes do not use VSX
17925 addresses.
17926 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
17927 support.
17928 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
17929 tests against TFmode, etc.
17930 (invalid_e500_subreg): Add tests against IFmode/KFmode.
17931 (reg_offset_addressing_ok_p): Likewise.
17932 (rs6000_legitimate_offset_address_p): Likewise.
17933 (rs6000_legitimize_address): Likewise.
17934 (rs6000_legitimize_reload_address): Likewise.
17935 (rs6000_legitimate_address_p): Clean up tests against TFmode and
17936 TDmode to use the new helper macros, which will include IFmode and
17937 KFmode.
17938 (rs6000_emit_move): Likewise.
17939 (rs6000_darwin64_record_arg_recurse): Likewise.
17940 (print_operand): Likewise.
17941 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
17942 that uses a single vector register as a vector and not as a
17943 floating point register in terms of the calling sequence.
17944 (rs6000_discover_homogeneous_aggregate): Likewise.
17945 (rs6000_return_in_memory): Likewise.
17946 (init_cumulative_args): Likewise.
17947 (rs6000_function_arg_boundary): Likewise.
17948 (rs6000_function_arg_advance_1): Likewise.
17949 (rs6000_function_arg): Likewise.
17950 (rs6000_pass_by_reference): Likewise.
17951 (rs6000_gimplify_va_arg): Likewise.
17952 (rs6000_secondary_reload_memory): Use machine_mode not enum
17953 machine mode.
17954 (rs6000_split_multireg_move): Use new helper macros.
17955 (spe_func_has_64bit_regs_p): Likewise.
17956 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
17957 (output_toc): Use new helper macros.
17958 (rs6000_register_move_cost): Likewise.
17959 (rs6000_function_value): Add IEEE 128-bit floating point calling
17960 sequence support.
17961 (rs6000_libcall_value): Likewise.
17962 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
17963 floating point support.
17964 (rs6000_vector_mode_supported_p): Likewise.
17965
17966 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
17967
17968 PR rtl-optimization/66782
17969 * lra-int.h (struct lra_insn_recog_data): Add comment about
17970 clobbered hard regs for arg_hard_regs.
17971 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
17972 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
17973 Add condition for processing used hard regs.
17974 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
17975 Process clobbered hard regs.
17976
17977 2015-07-09 Michael Matz <matz@suse.de>
17978
17979 * genmatch.c (fprintf_indent): New function.
17980 (operand::gen_transform): Add indent parameter.
17981 (expr::gen_transform, c_expr::gen_transform,
17982 capture::gen_transform): Ditto and use fprintf_indent.
17983 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
17984 (dt_operand::gen, dt_operand::gen_predicate,
17985 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
17986 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
17987 (decision_tree::gen_gimple): Adjust calls and indent generated
17988 code.
17989 (decision_tree::gen_generic): Ditto.
17990 (write_predicate): Ditto.
17991
17992 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17993
17994 PR target/66814
17995 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
17996 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
17997 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
17998 {GENERAL,SSE,MMX}_REG_P where appropriate.
17999
18000 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
18001
18002 * lto-streamer.h: Don't include target.h and alloc-pool.h.
18003 * builtins.c: Adjust includes.
18004 * gimple.c: Likewise.
18005 * ipa-icf.c: Likewise.
18006 * lto-opts.c: Likewise.
18007 * ipa-reference.c: Likewise.
18008 * lto-section-out.c: Likewise.
18009 * lto-streamer-in.c: Likewise.
18010 * lto-streamer-out.c: Likewise.
18011 * opts-global.c: Likewise.
18012 * symtab.c: Likewise.
18013 * tree-chkp.c: Likewise.
18014 * tree-ssa-live.c: Likewise.
18015 * tree-streamer-in.c: Likewise.
18016 * tree-streamer-out.c: Likewise.
18017 * config/darwin.c: Likewise.
18018 * config/i386/winnt.c: Likewise.
18019
18020 2015-07-09 Richard Biener <rguenther@suse.de>
18021
18022 * genmatch.c (struct expr): Add force_single_use flag.
18023 (expr::expr): Add copy constructor.
18024 (capture_info::walk_match): Gather force_single_use captures.
18025 (expr::gen_transform): Use possibly NULLified sequence.
18026 (dt_simplify::gen): Apply single-use restrictions by NULLifying
18027 seq if any constrained expr is not single-use.
18028 (parser::parse_expr): Refactor to allow multiple flags. Handle
18029 's' flag to force an expression have a single-use if the pattern
18030 simplifies to more than one statement.
18031 * match.pd: Convert most single_use conditionals to :s flags.
18032
18033 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18034
18035 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
18036 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18037 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
18038
18039 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
18040
18041 * flags.h: Don't include flag-types.h or options.h.
18042 * opts-common.c: Adjust includes.
18043 * opts-global.c: Likewise.
18044 * common/config/epiphany/epiphany-common.c: Likewise.
18045
18046 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18047
18048 PR target/66818
18049 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
18050 for IA MCU.
18051
18052 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18053
18054 PR target/66817
18055 * config/i386/i386.c (ix86_return_in_memory): Return true
18056 if int_size_in_bytes returns negative for IA MCU.
18057
18058 2015-07-09 Marek Polacek <polacek@redhat.com>
18059
18060 PR tree-optimization/66718
18061 * Makefile.in (OBJS): Add gimple-laddress.o.
18062 * passes.def: Schedule pass_laddress.
18063 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
18064 * tree-pass.h (make_pass_laddress): Declare.
18065 * gimple-laddress.c: New file.
18066
18067 2015-07-09 Richard Biener <rguenther@suse.de>
18068
18069 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
18070
18071 2015-07-09 Richard Biener <rguenther@suse.de>
18072
18073 PR tree-optimization/66807
18074 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
18075
18076 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
18077
18078 * function.c (stack_protect_epilogue): Use if rather than switch for
18079 check targetm.have_stack_protect_test.
18080
18081 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18082
18083 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
18084 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
18085 * config/arc/arc.h: Likewise.
18086 * config/arm/arm.h: Likewise.
18087 * config/bfin/bfin.h: Likewise.
18088 * config/epiphany/epiphany.h: Likewise.
18089 * config/frv/frv.h: Likewise.
18090 * config/ia64/ia64.h: Likewise.
18091 * config/iq2000/iq2000.h: Likewise.
18092 * config/lm32/lm32.h: Likewise.
18093 * config/m32r/m32r.h: Likewise.
18094 * config/mcore/mcore.h: Likewise.
18095 * config/mep/mep.h: Likewise.
18096 * config/microblaze/microblaze.h: Likewise.
18097 * config/mips/mips.h: Likewise.
18098 * config/mmix/mmix.h: Likewise.
18099 * config/mn10300/mn10300.h: Likewise.
18100 * config/nds32/nds32.h: Likewise.
18101 * config/nios2/nios2.h: Likewise.
18102 * config/pa/pa.h: Likewise.
18103 * config/rl78/rl78.h: Likewise.
18104 * config/sh/sh.h: Likewise.
18105 * config/sparc/sparc.h: Likewise.
18106 * config/stormy16/stormy16.h: Likewise.
18107 * config/tilegx/tilegx.h: Likewise.
18108 * config/tilepro/tilepro.h: Likewise.
18109 * config/v850/v850.h: Likewise.
18110 * config/xtensa/xtensa.h: Likewise.
18111 * doc/tm.texi: Regenerate.
18112 * doc/tm.texi.in: Adjust.
18113 * combine.c (simplify_set): Likewise.
18114 (simplify_comparison): Likewise.
18115 * expr.c (store_constructor): Likewise.
18116 * internal-fn.c (expand_arith_overflow): Likewise.
18117 * reload.c (push_reload): Likewise.
18118 (find_reloads): Likewise.
18119 (find_reloads_subreg_address): Likewise.
18120 * reload1.c (eliminate_regs_1): Likewise.
18121 * rtlanal.c (nonzero_bits1): Likewise.
18122 (num_sign_bit_copies1): Likewise.
18123 * simplify-rtx.c (simplify_truncation): Likewise.
18124
18125 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18126
18127 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
18128 of AUTO_INC_DEC with the preprocessor.
18129 * combine.c (combine_instructions): Likewise.
18130 (can_combine_p): Likewise.
18131 (try_combine): Likewise.
18132 * emit-rtl.c (try_split): Likewise.
18133 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18134 * lower-subreg.c (resolve_simple_move): Likewise.
18135 * lra.c (update_inc_notes): Likewise.
18136 * recog.c (asm_operand_ok): Likewise.
18137 (constrain_operands): Likewise.
18138 * regrename.c (scan_rtx_address): Likewise.
18139 * reload.c (update_auto_inc_notes): Likewise.
18140 (reg_inc_found_and_valid_p): Likewise.
18141 * reload1.c (reload): Likewise.
18142 (emit_input_reload_insns): Likewise.
18143 (delete_output_reload): Likewise.
18144 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18145 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18146
18147 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18148
18149 * rtl.h: Always define AUTO_INC_DEC.
18150 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18151 * combine.c (combine_instructions): Likewise.
18152 (can_combine_p): Likewise.
18153 (try_combine): Likewise.
18154 * emit-rtl.c (try_split): Likewise.
18155 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18156 * lower-subreg.c (resolve_simple_move): Likewise.
18157 * lra.c (update_inc_notes): Likewise.
18158 * recog.c (asm_operand_ok): Likewise.
18159 (constrain_operands): Likewise.
18160 * regrename.c (scan_rtx_address): Likewise.
18161 * reload.c (update_auto_inc_notes): Likewise.
18162 (find_equiv_reg): Likewise.
18163 * reload1.c (reload): Likewise.
18164 (reload_as_needed): Likewise.
18165 (choose_reload_regs): Likewise.
18166 (emit_input_reload_insns): Likewise.
18167 (delete_output_reload): Likewise.
18168 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18169 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18170
18171 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18172
18173 * combine.c (can_combine_def_p): Don't check the value of
18174 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18175 (combinable_i3pat): Likewise.
18176 (mark_used_regs_combine): Likewise.
18177 * regrename.c (rename_chains): Likewise.
18178 * reload.c (find_reloads_address): Likewise.
18179 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18180
18181 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18182
18183 * combine.c (update_rsp_from_reg_equal): Don't check if
18184 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18185 (reg_nonzero_bits_for_combine): Likewise.
18186 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18187 1.
18188 * config/frv/frv.h: Likewise.
18189 * config/lm32/lm32.h: Likewise.
18190 * config/mep/mep.h: Likewise.
18191 * config/mips/mips.h: Likewise.
18192 * config/rs6000/rs6000.h: Likewise.
18193 * config/sh/sh.h: Likewise.
18194 * config/tilegx/tilegx.h (enum reg_class): Likewise.
18195 * config/tilepro/tilepro.h: Likewise.
18196 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18197 * doc/tm.texi: Regenerate.
18198 * doc/tm.texi.in: Adjust.
18199 * rtlanal.c (nonzero_bits1): Likewise.
18200
18201 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18202
18203 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18204 with the preprocessor.
18205 (combine_instructions): Likewise.
18206 (try_combine): Likewise.
18207 (subst): Likewise.
18208 (distribute_notes): Likewise.
18209
18210 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18211
18212 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18213 defined.
18214 (simplify_set): Likewise.
18215 * cse.c (cse_insn): Likewise.
18216 * fold-const.c (fold_single_bit_test): Likewise.
18217 (fold_unary_loc): Likewise.
18218 * postreload.c (reload_cse_simplify_set): Likewise.
18219 (reload_cse_simplify_operands): Likewise.
18220
18221 2015-07-08 Jiong Wang <jiong.wang@arm.com>
18222
18223 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18224 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18225
18226 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18227
18228 PR target/66746
18229 * config/i386/x86intrin.h: Include <adxintrin.h> even if
18230 __iamcu__ is defined.
18231
18232 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18233
18234 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18235
18236 2015-07-08 Iain Sandoe <iain@codesourcery.com>
18237
18238 PR target/66523
18239 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18240 names from preservation.
18241
18242 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18243
18244 PR target/66806
18245 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18246 change for IAMCU.
18247 (function_arg_advance_32): Don't pass vectors in registers for
18248 IAMCU.
18249 (function_arg_32): Likewise.
18250 (ix86_return_in_memory): Don't return vectors in registers for
18251 IAMCU.
18252
18253 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
18254
18255 PR middle-end/66334
18256 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18257 hard regno live at the start of BB with incoming abnormal edges.
18258 * lra-lives.c (process_bb_lives): Ditto.
18259
18260 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
18261
18262 PR libgomp/65099
18263 * config/nvptx/mkoffload.c (main): Create an offload image only in
18264 64-bit configurations.
18265
18266 2015-07-08 Martin Liska <mliska@suse.cz>
18267
18268 PR bootstrap/66744
18269 * tree-sra.c (create_access_1): Call ctor without brackets.
18270 (create_artificial_child_access): Likewise.
18271
18272 2015-07-08 Richard Biener <rguenther@suse.de>
18273
18274 PR tree-optimization/66793
18275 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18276 Properly split the block after stmts ending it.
18277
18278 2015-07-08 Richard Biener <rguenther@suse.de>
18279
18280 PR tree-optimization/66794
18281 * passes.c (execute_function_todo): Assert that post-dominators
18282 are not computed.
18283 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18284 Free post-dominators.
18285
18286 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18287
18288 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18289 with early exit.
18290
18291 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18292
18293 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18294 more than or equal 8 and less than 32 when optimizing for size.
18295
18296 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18297
18298 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18299 COSTS_N_INSNS (1) and increment it appropriately throughout the
18300 function.
18301
18302 2015-07-08 Richard Biener <rguenther@suse.de>
18303
18304 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18305
18306 2015-07-08 Alan Modra <amodra@gmail.com>
18307
18308 * target.def (rtx_costs): Remove "code" param, add "mode".
18309 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18310 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
18311 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18312 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
18313 call. Track mode when given in rtx.
18314 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
18315 (default_address_cost): Pass Pmode to rtx_cost.
18316 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18317 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18318 with NULL set.
18319 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
18320 (notreg_cost): Add mode param. Use it.
18321 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
18322 mode param and pass to set_src_cost. Update all calls.
18323 (hash_scan_set): Formatting.
18324 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18325 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18326 * hooks.h: Ditto.
18327 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18328 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18329 emit_store_flag): Update set_src_cost and rtx_cost calls.
18330 * auto-inc-dec.c (attempt_change): Likewise.
18331 * calls.c (precompute_register_parameters): Likewise.
18332 * combine.c (expand_compound_operation, make_extraction,
18333 force_to_mode, distribute_and_simplify_rtx): Likewise.
18334 * dojump.c (prefer_and_bit_test): Likewise.
18335 * dse.c (find_shift_sequence): Likewise.
18336 * expr.c (compress_float_constant): Likewise.
18337 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18338 * ifcvt.c (noce_try_sign_mask): Likewise.
18339 * loop-doloop.c (doloop_optimize): Likewise.
18340 * loop-invariant.c (create_new_invariant): Likewise.
18341 * lower-subreg.c (shift_cost, compute_costs): Likewise.
18342 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18343 lshift_cheap_p): Likewise.
18344 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18345 try_replace_in_use, reload_cse_move2add): Likewise.
18346 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18347 Likewise.
18348 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18349 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18350 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18351 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18352 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18353 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
18354 to rtx_cost calls.
18355 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18356 * config/arc/arc.c (arc_rtx_costs): Likewise.
18357 * config/arm/arm.c (arm_rtx_costs): Likewise.
18358 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18359 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18360 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18361 * config/cris/cris.c (cris_rtx_costs): Likewise.
18362 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18363 * config/frv/frv.c (frv_rtx_costs): Likewise.
18364 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18365 * config/i386/i386.c (ix86_rtx_costs): Likewise.
18366 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18367 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18368 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18369 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18370 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18371 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18372 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18373 * config/mep/mep.c (mep_rtx_cost): Likewise.
18374 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18375 * config/mips/mips.c (mips_rtx_costs): Likewise.
18376 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18377 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18378 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18379 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18380 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18381 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18382 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18383 * config/pa/pa.c (hppa_rtx_costs): Likewise.
18384 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18385 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18386 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18387 * config/s390/s390.c (s390_rtx_costs): Likewise.
18388 * config/sh/sh.c (sh_rtx_costs): Likewise.
18389 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18390 * config/spu/spu.c (spu_rtx_costs): Likewise.
18391 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18392 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18393 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18394 * config/v850/v850.c (v850_rtx_costs): Likewise.
18395 * config/vax/vax.c (vax_rtx_costs): Likewise.
18396 * config/visium/visium.c (visium_rtx_costs): Likewise.
18397 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18398 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18399 "code" param, and pass as outer_code to first rtx_cost call. Pass
18400 mode to rtx_cost calls.
18401 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18402 calls.
18403 (aarch64_rtx_costs_wrapper): Update.
18404 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18405 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18406 rtx_cost calls.
18407 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18408 and rtx_cost calls.
18409 (avr_operand_rtx_cost): Similarly.
18410 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18411 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18412 * config/mips/mips.c (mips_stack_address_p): Comment typo.
18413 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18414 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18415 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18416 rtx_cost.
18417 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18418 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18419 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18420 * doc/tm.texi: Regenerate.
18421
18422 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
18423
18424 * tree-core.h: Include symtab.h.
18425 * rtl.h: Include hard-reg-set.h but not flags.h.
18426 (HARD_CONST): Remove condition compilation involving HARD_CONST since
18427 hard-reg-set.h is always included.
18428 * regs.h: Don't include hard-reg-set.h or rtl.h.
18429 * cfg.h: Include dominance.h.
18430 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18431 * backend.h: New. Aggregate commonly used backend header files.
18432 * gimple-ssa.h: Don't include tree-hasher.h.
18433 * ssa.h: New. Aggregate commonly used SSA header files.
18434 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18435 * sel-sched-ir.h: Flatten includes.
18436 * lra-int.h: Flatten completely.
18437 * sel-sched-dump.h: Flatten includes.
18438 * ira-int.h: Flatten includes.
18439 * gimple-streamer.h: Remove all includes.
18440 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18441 * resource.h: Flatten hard-reg-set.h and df.h.
18442 * sched-int.h: Flatten insn-arrt.h and df.h.
18443 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18444 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18445 * genattrtab.c (write_header): Adjust generated includes.
18446 * genautomata.c (main): Likewise.
18447 * genconditions.c (write-header): Likewise.
18448 * genemit.c (main): Likewise.
18449 * gengtype.c (open_base_files): Likewise.
18450 * genopinit.c (main): Likewise.
18451 * genoutput.c (output_prologue): Likewise.
18452 * genpeep.c (main): Likewise.
18453 * genpreds.c (write_insn_preds_c): Likewise.
18454 * genrecog.c (write_header): Likewise.
18455 * alias.c: Adjust includes.
18456 * asan.c: Likewise.
18457 * attribs.c: Likewise.
18458 * auto-inc-dec.c: Likewise.
18459 * auto-profile.c: Likewise.
18460 * bb-reorder.c: Likewise.
18461 * bt-load.c: Likewise.
18462 * builtins.c: Likewise.
18463 * caller-save.c: Likewise.
18464 * calls.c: Likewise.
18465 * ccmp.c: Likewise.
18466 * cfg.c: Likewise.
18467 * cfganal.c: Likewise.
18468 * cfgbuild.c: Likewise.
18469 * cfgcleanup.c: Likewise.
18470 * cfgexpand.c: Likewise.
18471 * cfghooks.c: Likewise.
18472 * cfgloop.c: Likewise.
18473 * cfgloopanal.c: Likewise.
18474 * cfgloopmanip.c: Likewise.
18475 * cfgrtl.c: Likewise.
18476 * cgraph.c: Likewise.
18477 * cgraphbuild.c: Likewise.
18478 * cgraphclones.c: Likewise.
18479 * cgraphunit.c: Likewise.
18480 * cilk-common.c: Likewise.
18481 * combine-stack-adj.c: Likewise.
18482 * combine.c: Likewise.
18483 * compare-elim.c: Likewise.
18484 * convert.c: Likewise.
18485 * coverage.c: Likewise.
18486 * cppbuiltin.c: Likewise.
18487 * cprop.c: Likewise.
18488 * cse.c: Likewise.
18489 * cselib.c: Likewise.
18490 * data-streamer-in.c: Likewise.
18491 * data-streamer-out.c: Likewise.
18492 * data-streamer.c: Likewise.
18493 * dbxout.c: Likewise.
18494 * dce.c: Likewise.
18495 * ddg.c: Likewise.
18496 * debug.c: Likewise.
18497 * df-core.c: Likewise.
18498 * df-problems.c: Likewise.
18499 * df-scan.c: Likewise.
18500 * dfp.c: Likewise.
18501 * dojump.c: Likewise.
18502 * dominance.c: Likewise.
18503 * domwalk.c: Likewise.
18504 * double-int.c: Likewise.
18505 * dse.c: Likewise.
18506 * dumpfile.c: Likewise.
18507 * dwarf2asm.c: Likewise.
18508 * dwarf2cfi.c: Likewise.
18509 * dwarf2out.c: Likewise.
18510 * emit-rtl.c: Likewise.
18511 * et-forest.c: Likewise.
18512 * except.c: Likewise.
18513 * explow.c: Likewise.
18514 * expmed.c: Likewise.
18515 * expr.c: Likewise.
18516 * final.c: Likewise.
18517 * fixed-value.c: Likewise.
18518 * fold-const.c: Likewise.
18519 * function.c: Likewise.
18520 * fwprop.c: Likewise.
18521 * gcc-plugin.h: Likewise.
18522 * gcse-common.c: Likewise.
18523 * gcse.c: Likewise.
18524 * generic-match-head.c: Likewise.
18525 * ggc-page.c: Likewise.
18526 * gimple-builder.c: Likewise.
18527 * gimple-expr.c: Likewise.
18528 * gimple-fold.c: Likewise.
18529 * gimple-iterator.c: Likewise.
18530 * gimple-low.c: Likewise.
18531 * gimple-match-head.c: Likewise.
18532 * gimple-pretty-print.c: Likewise.
18533 * gimple-ssa-isolate-paths.c: Likewise.
18534 * gimple-ssa-strength-reduction.c: Likewise.
18535 * gimple-streamer-in.c: Likewise.
18536 * gimple-streamer-out.c: Likewise.
18537 * gimple-walk.c: Likewise.
18538 * gimple.c: Likewise.
18539 * gimplify-me.c: Likewise.
18540 * gimplify.c: Likewise.
18541 * godump.c: Likewise.
18542 * graph.c: Likewise.
18543 * graphite-blocking.c: Likewise.
18544 * graphite-dependences.c: Likewise.
18545 * graphite-interchange.c: Likewise.
18546 * graphite-isl-ast-to-gimple.c: Likewise.
18547 * graphite-optimize-isl.c: Likewise.
18548 * graphite-poly.c: Likewise.
18549 * graphite-scop-detection.c: Likewise.
18550 * graphite-sese-to-poly.c: Likewise.
18551 * graphite.c: Likewise.
18552 * haifa-sched.c: Likewise.
18553 * hw-doloop.c: Likewise.
18554 * ifcvt.c: Likewise.
18555 * init-regs.c: Likewise.
18556 * internal-fn.c: Likewise.
18557 * ipa-chkp.c: Likewise.
18558 * ipa-comdats.c: Likewise.
18559 * ipa-cp.c: Likewise.
18560 * ipa-devirt.c: Likewise.
18561 * ipa-icf-gimple.c: Likewise.
18562 * ipa-icf.c: Likewise.
18563 * ipa-inline-analysis.c: Likewise.
18564 * ipa-inline-transform.c: Likewise.
18565 * ipa-inline.c: Likewise.
18566 * ipa-polymorphic-call.c: Likewise.
18567 * ipa-profile.c: Likewise.
18568 * ipa-prop.c: Likewise.
18569 * ipa-pure-const.c: Likewise.
18570 * ipa-ref.c: Likewise.
18571 * ipa-reference.c: Likewise.
18572 * ipa-split.c: Likewise.
18573 * ipa-utils.c: Likewise.
18574 * ipa-visibility.c: Likewise.
18575 * ipa.c: Likewise.
18576 * ira-build.c: Likewise.
18577 * ira-color.c: Likewise.
18578 * ira-conflicts.c: Likewise.
18579 * ira-costs.c: Likewise.
18580 * ira-emit.c: Likewise.
18581 * ira-lives.c: Likewise.
18582 * ira.c: Likewise.
18583 * jump.c: Likewise.
18584 * langhooks.c: Likewise.
18585 * lcm.c: Likewise.
18586 * loop-doloop.c: Likewise.
18587 * loop-init.c: Likewise.
18588 * loop-invariant.c: Likewise.
18589 * loop-iv.c: Likewise.
18590 * loop-unroll.c: Likewise.
18591 * lower-subreg.c: Likewise.
18592 * lra-assigns.c: Likewise.
18593 * lra-coalesce.c: Likewise.
18594 * lra-constraints.c: Likewise.
18595 * lra-eliminations.c: Likewise.
18596 * lra-lives.c: Likewise.
18597 * lra-remat.c: Likewise.
18598 * lra-spills.c: Likewise.
18599 * lra.c: Likewise.
18600 * lto-cgraph.c: Likewise.
18601 * lto-compress.c: Likewise.
18602 * lto-opts.c: Likewise.
18603 * lto-section-in.c: Likewise.
18604 * lto-section-out.c: Likewise.
18605 * lto-streamer-in.c: Likewise.
18606 * lto-streamer-out.c: Likewise.
18607 * lto-streamer.c: Likewise.
18608 * mcf.c: Likewise.
18609 * mode-switching.c: Likewise.
18610 * modulo-sched.c: Likewise.
18611 * omega.c: Likewise.
18612 * omp-low.c: Likewise.
18613 * optabs.c: Likewise.
18614 * opts-global.c: Likewise.
18615 * passes.c: Likewise.
18616 * plugin.c: Likewise.
18617 * postreload-gcse.c: Likewise.
18618 * postreload.c: Likewise.
18619 * predict.c: Likewise.
18620 * print-rtl.c: Likewise.
18621 * print-tree.c: Likewise.
18622 * profile.c: Likewise.
18623 * real.c: Likewise.
18624 * realmpfr.c: Likewise.
18625 * recog.c: Likewise.
18626 * ree.c: Likewise.
18627 * reg-stack.c: Likewise.
18628 * regcprop.c: Likewise.
18629 * reginfo.c: Likewise.
18630 * regrename.c: Likewise.
18631 * regstat.c: Likewise.
18632 * reload.c: Likewise.
18633 * reload1.c: Likewise.
18634 * reorg.c: Likewise.
18635 * resource.c: Likewise.
18636 * rtl-chkp.c: Likewise.
18637 * rtlanal.c: Likewise.
18638 * rtlhooks.c: Likewise.
18639 * sanopt.c: Likewise.
18640 * sched-deps.c: Likewise.
18641 * sched-ebb.c: Likewise.
18642 * sched-rgn.c: Likewise.
18643 * sched-vis.c: Likewise.
18644 * sdbout.c: Likewise.
18645 * sel-sched-dump.c: Likewise.
18646 * sel-sched-ir.c: Likewise.
18647 * sel-sched.c: Likewise.
18648 * sese.c: Likewise.
18649 * shrink-wrap.c: Likewise.
18650 * simplify-rtx.c: Likewise.
18651 * stack-ptr-mod.c: Likewise.
18652 * stmt.c: Likewise.
18653 * stor-layout.c: Likewise.
18654 * store-motion.c: Likewise.
18655 * stringpool.c: Likewise.
18656 * symtab.c: Likewise.
18657 * target-globals.c: Likewise.
18658 * targhooks.c: Likewise.
18659 * toplev.c: Likewise.
18660 * tracer.c: Likewise.
18661 * trans-mem.c: Likewise.
18662 * tree-affine.c: Likewise.
18663 * tree-browser.c: Likewise.
18664 * tree-call-cdce.c: Likewise.
18665 * tree-cfg.c: Likewise.
18666 * tree-cfgcleanup.c: Likewise.
18667 * tree-chkp-opt.c: Likewise.
18668 * tree-chkp.c: Likewise.
18669 * tree-chrec.c: Likewise.
18670 * tree-complex.c: Likewise.
18671 * tree-data-ref.c: Likewise.
18672 * tree-dfa.c: Likewise.
18673 * tree-diagnostic.c: Likewise.
18674 * tree-dump.c: Likewise.
18675 * tree-eh.c: Likewise.
18676 * tree-emutls.c: Likewise.
18677 * tree-if-conv.c: Likewise.
18678 * tree-inline.c: Likewise.
18679 * tree-into-ssa.c: Likewise.
18680 * tree-iterator.c: Likewise.
18681 * tree-loop-distribution.c: Likewise.
18682 * tree-nested.c: Likewise.
18683 * tree-nrv.c: Likewise.
18684 * tree-object-size.c: Likewise.
18685 * tree-outof-ssa.c: Likewise.
18686 * tree-parloops.c: Likewise.
18687 * tree-phinodes.c: Likewise.
18688 * tree-predcom.c: Likewise.
18689 * tree-pretty-print.c: Likewise.
18690 * tree-profile.c: Likewise.
18691 * tree-scalar-evolution.c: Likewise.
18692 * tree-sra.c: Likewise.
18693 * tree-ssa-address.c: Likewise.
18694 * tree-ssa-alias.c: Likewise.
18695 * tree-ssa-ccp.c: Likewise.
18696 * tree-ssa-coalesce.c: Likewise.
18697 * tree-ssa-copy.c: Likewise.
18698 * tree-ssa-copyrename.c: Likewise.
18699 * tree-ssa-dce.c: Likewise.
18700 * tree-ssa-dom.c: Likewise.
18701 * tree-ssa-dse.c: Likewise.
18702 * tree-ssa-forwprop.c: Likewise.
18703 * tree-ssa-ifcombine.c: Likewise.
18704 * tree-ssa-live.c: Likewise.
18705 * tree-ssa-loop-ch.c: Likewise.
18706 * tree-ssa-loop-im.c: Likewise.
18707 * tree-ssa-loop-ivcanon.c: Likewise.
18708 * tree-ssa-loop-ivopts.c: Likewise.
18709 * tree-ssa-loop-manip.c: Likewise.
18710 * tree-ssa-loop-niter.c: Likewise.
18711 * tree-ssa-loop-prefetch.c: Likewise.
18712 * tree-ssa-loop-unswitch.c: Likewise.
18713 * tree-ssa-loop.c: Likewise.
18714 * tree-ssa-math-opts.c: Likewise.
18715 * tree-ssa-operands.c: Likewise.
18716 * tree-ssa-phiopt.c: Likewise.
18717 * tree-ssa-phiprop.c: Likewise.
18718 * tree-ssa-pre.c: Likewise.
18719 * tree-ssa-propagate.c: Likewise.
18720 * tree-ssa-reassoc.c: Likewise.
18721 * tree-ssa-sccvn.c: Likewise.
18722 * tree-ssa-scopedtables.c: Likewise.
18723 * tree-ssa-sink.c: Likewise.
18724 * tree-ssa-strlen.c: Likewise.
18725 * tree-ssa-structalias.c: Likewise.
18726 * tree-ssa-tail-merge.c: Likewise.
18727 * tree-ssa-ter.c: Likewise.
18728 * tree-ssa-threadedge.c: Likewise.
18729 * tree-ssa-threadupdate.c: Likewise.
18730 * tree-ssa-uncprop.c: Likewise.
18731 * tree-ssa-uninit.c: Likewise.
18732 * tree-ssa.c: Likewise.
18733 * tree-ssanames.c: Likewise.
18734 * tree-stdarg.c: Likewise.
18735 * tree-streamer-in.c: Likewise.
18736 * tree-streamer-out.c: Likewise.
18737 * tree-streamer.c: Likewise.
18738 * tree-switch-conversion.c: Likewise.
18739 * tree-tailcall.c: Likewise.
18740 * tree-vect-data-refs.c: Likewise.
18741 * tree-vect-generic.c: Likewise.
18742 * tree-vect-loop-manip.c: Likewise.
18743 * tree-vect-loop.c: Likewise.
18744 * tree-vect-patterns.c: Likewise.
18745 * tree-vect-slp.c: Likewise.
18746 * tree-vect-stmts.c: Likewise.
18747 * tree-vectorizer.c: Likewise.
18748 * tree-vrp.c: Likewise.
18749 * tree.c: Likewise.
18750 * tsan.c: Likewise.
18751 * ubsan.c: Likewise.
18752 * valtrack.c: Likewise.
18753 * value-prof.c: Likewise.
18754 * var-tracking.c: Likewise.
18755 * varasm.c: Likewise.
18756 * varpool.c: Likewise.
18757 * vmsdbgout.c: Likewise.
18758 * vtable-verify.c: Likewise.
18759 * web.c: Likewise.
18760 * wide-int.cc: Likewise.
18761 * xcoffout.c: Likewise.
18762 * config/aarch64/aarch64-builtins.c: Likewise.
18763 * config/aarch64/aarch64.c: Likewise.
18764 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18765 * config/alpha/alpha.c: Likewise.
18766 * config/arc/arc.c: Likewise.
18767 * config/arm/aarch-common.c: Likewise.
18768 * config/arm/arm-builtins.c: Likewise.
18769 * config/arm/arm-c.c: Likewise.
18770 * config/arm/arm.c: Likewise.
18771 * config/avr/avr-c.c: Likewise.
18772 * config/avr/avr-log.c: Likewise.
18773 * config/avr/avr.c: Likewise.
18774 * config/bfin/bfin.c: Likewise.
18775 * config/c6x/c6x.c: Likewise.
18776 * config/cr16/cr16.c: Likewise.
18777 * config/cris/cris.c: Likewise.
18778 * config/darwin-c.c: Likewise.
18779 * config/darwin.c: Likewise.
18780 * config/epiphany/epiphany.c: Likewise.
18781 * config/epiphany/mode-switch-use.c: Likewise.
18782 * config/epiphany/resolve-sw-modes.c: Likewise.
18783 * config/fr30/fr30.c: Likewise.
18784 * config/frv/frv.c: Likewise.
18785 * config/ft32/ft32.c: Likewise.
18786 * config/h8300/h8300.c: Likewise.
18787 * config/i386/i386-c.c: Likewise.
18788 * config/i386/i386.c: Likewise.
18789 * config/i386/msformat-c.c: Likewise.
18790 * config/i386/winnt-cxx.c: Likewise.
18791 * config/i386/winnt-stubs.c: Likewise.
18792 * config/i386/winnt.c: Likewise.
18793 * config/ia64/ia64-c.c: Likewise.
18794 * config/ia64/ia64.c: Likewise.
18795 * config/iq2000/iq2000.c: Likewise.
18796 * config/lm32/lm32.c: Likewise.
18797 * config/m32c/m32c-pragma.c: Likewise.
18798 * config/m32c/m32c.c: Likewise.
18799 * config/m32r/m32r.c: Likewise.
18800 * config/m68k/m68k.c: Likewise.
18801 * config/mcore/mcore.c: Likewise.
18802 * config/mep/mep-pragma.c: Likewise.
18803 * config/mep/mep.c: Likewise.
18804 * config/microblaze/microblaze-c.c: Likewise.
18805 * config/microblaze/microblaze.c: Likewise.
18806 * config/mips/mips.c: Likewise.
18807 * config/mmix/mmix.c: Likewise.
18808 * config/mn10300/mn10300.c: Likewise.
18809 * config/moxie/moxie.c: Likewise.
18810 * config/msp430/msp430-c.c: Likewise.
18811 * config/msp430/msp430.c: Likewise.
18812 * config/nds32/nds32-cost.c: Likewise.
18813 * config/nds32/nds32-fp-as-gp.c: Likewise.
18814 * config/nds32/nds32-intrinsic.c: Likewise.
18815 * config/nds32/nds32-isr.c: Likewise.
18816 * config/nds32/nds32-md-auxiliary.c: Likewise.
18817 * config/nds32/nds32-memory-manipulation.c: Likewise.
18818 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18819 * config/nds32/nds32-predicates.c: Likewise.
18820 * config/nds32/nds32.c: Likewise.
18821 * config/nios2/nios2.c: Likewise.
18822 * config/nvptx/nvptx.c: Likewise.
18823 * config/pa/pa.c: Likewise.
18824 * config/pdp11/pdp11.c: Likewise.
18825 * config/rl78/rl78-c.c: Likewise.
18826 * config/rl78/rl78.c: Likewise.
18827 * config/rs6000/rs6000-c.c: Likewise.
18828 * config/rs6000/rs6000.c: Likewise.
18829 * config/rx/rx.c: Likewise.
18830 * config/s390/s390-c.c: Likewise.
18831 * config/s390/s390.c: Likewise.
18832 * config/sh/sh-c.c: Likewise.
18833 * config/sh/sh-mem.cc: Likewise.
18834 * config/sh/sh.c: Likewise.
18835 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18836 * config/sh/sh_treg_combine.cc: Likewise.
18837 * config/sol2-c.c: Likewise.
18838 * config/sol2-cxx.c: Likewise.
18839 * config/sol2-stubs.c: Likewise.
18840 * config/sol2.c: Likewise.
18841 * config/sparc/sparc-c.c: Likewise.
18842 * config/sparc/sparc.c: Likewise.
18843 * config/spu/spu-c.c: Likewise.
18844 * config/spu/spu.c: Likewise.
18845 * config/stormy16/stormy16.c: Likewise.
18846 * config/tilegx/mul-tables.c: Likewise.
18847 * config/tilegx/tilegx-c.c: Likewise.
18848 * config/tilegx/tilegx.c: Likewise.
18849 * config/tilepro/mul-tables.c: Likewise.
18850 * config/tilepro/tilepro-c.c: Likewise.
18851 * config/tilepro/tilepro.c: Likewise.
18852 * config/v850/v850-c.c: Likewise.
18853 * config/v850/v850.c: Likewise.
18854 * config/vax/vax.c: Likewise.
18855 * config/visium/visium.c: Likewise.
18856 * config/vms/vms-c.c: Likewise.
18857 * config/vms/vms.c: Likewise.
18858 * config/vxworks.c: Likewise.
18859 * config/xtensa/xtensa.c: Likewise.
18860
18861 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
18862
18863 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
18864 Remove operand constraints. Change operand 2 predicate to
18865 nonmemory operand. Limit const_int values to mode bitsize. Only
18866 allow const_int values less than 32 when optimizing for size.
18867 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
18868 Remove operand constraints.
18869 (*bt<mode>): Use SImode for const_int values less than 32.
18870 (regmode): Remove mode attribute.
18871
18872 2015-07-07 Anatoly Sokolov <aesok@post.ru>
18873
18874 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18875 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
18876 moxie_legitimate_address_p): New functions.
18877 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
18878
18879 2015-07-07 Tom de Vries <tom@codesourcery.com>
18880
18881 PR tree-optimization/66642
18882 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
18883 header comment. Rename split_edge variable to edge_at_split. Split
18884 exit edge to create new loop exit bb. Insert loop exit phis in new
18885 loop exit bb.
18886
18887 2015-07-07 Tom de Vries <tom@codesourcery.com>
18888
18889 * tree-cfg.c (get_virtual_phi): New function.
18890 * tree-cfg.h (get_virtual_phi): Declare.
18891 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
18892 (rewrite_virtuals_into_loop_closed_ssa): New function.
18893 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
18894 Declare.
18895 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
18896 (transform_to_exit_first_loop_alt): Use
18897 rewrite_virtuals_into_loop_closed_ssa.
18898
18899 2015-07-07 Richard Biener <rguenther@suse.de>
18900
18901 * fold-const.c (fold_binary_loc): Move
18902 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
18903 * match.pd: ... here.
18904 Add (X * C1) % C2 -> 0 simplification pattern derived from
18905 extract_muldiv_1.
18906
18907 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
18908
18909 PR target/66780
18910 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
18911 change for target/65249.
18912
18913 2015-07-07 Paulo Matos <pmatos@broadcom.com>
18914
18915 * symtab.c (address_matters_1): Fix typo in comment above.
18916 (can_increase_alignment_p): Likewise.
18917
18918 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18919
18920 * function.c (free_after_compilation): Clear PROP_cfg in
18921 f->curr_properties.
18922
18923 2015-07-07 Richard Biener <rguenther@suse.de>
18924
18925 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
18926 add which use to.
18927 (add_control_edge): Remove excessive vertical space in dumping.
18928 (process_ssa_edge_worklist): Simulate at most one statement and
18929 return whether we did. Do not simulate PHIs if they are in a
18930 BB not yet simulated.
18931 (ssa_propagate): Adjust to always drain the BB worklist whenever
18932 a BB is available there, likewise the VARYING edges list before
18933 the interesting edge list.
18934
18935 2015-07-07 Christian Bruel <christian.bruel@st.com>
18936
18937 PR target/52144
18938 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
18939
18940 2015-07-07 Richard Biener <rguenther@suse.de>
18941
18942 PR middle-end/66739
18943 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
18944 A - B.
18945
18946 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18947
18948 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
18949 modes for operands 0 and 3. Use SImode for operands 2 and 3.
18950 Copy operand 0 to a temporary if !ext_register_operand. Remove
18951 ancient extract_bit_field workaround.
18952 (insv<mode>_1): Rename from mov<mode>_insv_1.
18953 (*insvqi): Rename from *movqi_insv_2.
18954 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
18955 for renamed insvsi_1.
18956 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
18957
18958 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
18959
18960 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
18961 call to nvptx_reorg_subreg.
18962
18963 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
18964
18965 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
18966 * graphite-dependencies.c, graphite-interchange.c,
18967 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
18968 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
18969 Likewise.
18970
18971 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
18972
18973 * match.pd: Remove element_mode inside HONOR_*.
18974 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
18975 (~X | X -> -1, ~X ^ X -> -1): Merge.
18976 * tree.c (build_each_one_cst): New function.
18977 * tree.h (build_each_one_cst): Likewise.
18978
18979 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18980
18981 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18982 PROCESSOR_IAMCU.
18983
18984 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
18985
18986 * config.gcc <mips*-*-*>: Add fused-madd.opt.
18987 * config/mips/mips.opt (mfused-madd): Remove.
18988 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
18989 * config/mips/mips.h (TARGET_MIPS8000): New.
18990 (ISA_HAS_FP_MADD4_MSUB4): Remove.
18991 (ISA_HAS_FP_MADDF_MSUBF): Remove.
18992 (ISA_HAS_FP_MADD3_MSUB3): Remove.
18993 (ISA_HAS_NMADD4_NMSUB4): Remove.
18994 (ISA_HAS_NMADD3_NMSUB3): Remove.
18995 (ISA_HAS_FUSED_MADD4): New.
18996 (ISA_HAS_UNFUSED_MADD4): New.
18997 (ISA_HAS_FUSED_MADDF): New.
18998 (ISA_HAS_FUSED_MADD3): New.
18999 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
19000 (*fma<mode>4_madd3) New.
19001 (*fma<mode>4_madd4) New.
19002 (*fma<mode>4_maddf) New.
19003 (fms<mode>4) New.
19004 (*fms<mode>4_msub3) New.
19005 (*fms<mode>4_msub4) New.
19006 (fnma<mode>4) New.
19007 (*fnma<mode>4_nmadd3) New.
19008 (*fnma<mode>4_nmadd4) New.
19009 (fnms<mode>4) New.
19010 (*fnms<mode>4_nmsub3) New.
19011 (*fnms<mode>4_nmsub4) New.
19012 (*madd4<mode>) Modify to be unfused only.
19013 (*msub4<mode>) Modify to be unfused only.
19014 (*nmadd4<mode>) Modify to be unfused only.
19015 (*nmsub4<mode>) Modify to be unfused only.
19016 (*madd3<mode>) Remove.
19017 (*msub3<mode>) Remove.
19018 (*nmadd3<mode>) Remove.
19019 (*nmsub3<mode>) Remove.
19020 (*nmadd3<mode>_fastmath) Remove.
19021 (*nmsub3<mode>_fastmath) Remove.
19022 (*nmadd4<mode>_fastmath) Update condition.
19023 (*nmsub4<mode>_fastmath) Update condition.
19024
19025 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
19026
19027 PR target/65956
19028 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
19029 alignment attribute, exploring one level down for records and arrays.
19030
19031 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
19032
19033 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
19034 modes for operands 0 and 1. Use SImode for operands 2 and 3.
19035 Copy operand 1 to a temporary if !ext_register_operand. Remove
19036 ancient extract_bit_field workaround.
19037 (*extv<mode>): Rename from *mov<mode>_extv_1.
19038 (*extvqi): Rename from *movqi_extv_1.
19039 (extzv<mode>): Rename from extzv. Use SWI248 modes for
19040 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
19041 to a temporary if !ext_register_operand. Remove ancient
19042 extract_bit_field workaround.
19043 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
19044 (*extzvqi): Rename from *movqi_extzv_2.
19045 (*testqi_ext_3): Remove modes from const_int_operand predicated
19046 operands. Add "n" constraint.
19047 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
19048 operand. Add "J" constraint.
19049 (*btsq, *btrq, *btcq peephole2s): Remove mode from
19050 const_0_to_63 predicated operand.
19051 (regmode): New insn attribute.
19052 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
19053 to nonmemory_operand. Use regmode insn attribute.
19054 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
19055 (*jcc_bt<mode>_mask): Remove mode from operand 3.
19056 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
19057 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
19058 operands. Use "N" constraint instead of "n".
19059
19060 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
19061
19062 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
19063
19064 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19065
19066 PR target/66749
19067 * config/i386/i386.c (iamcu_cost): New.
19068 (m_IAMCU): Likewise.
19069 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
19070 (processor_target_table): Add an entry for "iamcu".
19071 (processor_alias_table): Likewise.
19072 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
19073 (ix86_adjust_cost): Likewise.
19074 (ia32_multipass_dfa_lookahead): Likewise.
19075 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
19076 * config/i386/x86-tune.def: Updated for m_IAMCU.
19077
19078 2015-07-06 Richard Biener <rguenther@suse.de>
19079
19080 PR tree-optimization/66772
19081 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
19082 values are available in the PHI node BB when there are
19083 still unexecutable edges.
19084
19085 2015-07-06 Richard Biener <rguenther@suse.de>
19086
19087 PR tree-optimization/66767
19088 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
19089 Make sure to build the alignment test on a SSA name without
19090 final alignment info valid only if the alignment test
19091 evaluates to true.
19092
19093 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
19094
19095 PR target/66620
19096 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
19097 loop start when inserting LSETUP.
19098
19099 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19100
19101 PR target/53383
19102 * config/i386/i386.c (ix86_option_override_internal): Allow
19103 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
19104
19105 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19106
19107 * read-md.c (decimal_string): Rename to ...
19108 (md_decimal_string): ... this.
19109 (handle_enum): Reflect this.
19110
19111 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19112
19113 PR target/66731
19114 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
19115
19116 2015-07-06 Richard Biener <rguenther@suse.de>
19117
19118 PR middle-end/66759
19119 * match.pd: Add missing constraint of y to REAL_CST in
19120 REAL_CST - x CMP y to y - CST CMP x simplification.
19121
19122 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
19123
19124 PR tree-optimization/66757
19125 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
19126
19127 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
19128 Sandra Loosemore <sandra@codesourcery.com>
19129
19130 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
19131 Delete extern declaration.
19132 (gprel_constant_p): Add extern declaration.
19133 * config/nios2/constraints.md ("S"): Use gprel_constant_p
19134 instead of nios2_symbol_ref_in_small_data_p.
19135 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19136 (nios2_symbol_ref_in_small_data_p): Make static.
19137 (gprel_constant_p): Make non-static.
19138
19139 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19140
19141 * doc/fragments.texi (Target Fragment): Convert debian.org
19142 link to use https.
19143 * doc/install.texi (Configuration): Ditto.
19144
19145 2015-07-05 Jakub Jelinek <jakub@redhat.com>
19146
19147 PR tree-optimization/66718
19148 * tree-vect-stmts.c (vectorizable_call): Replace uses of
19149 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19150
19151 PR tree-optimization/66718
19152 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19153 vectorizable_load, vectorizable_condition): Move vectype,
19154 nunits, ncopies computation after checking what kind of statement
19155 stmt is.
19156
19157 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19158
19159 * target-insns.def (extv, extzv, insv): New targetm instruction
19160 patterns.
19161 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19162 interface.
19163 * recog.c (simplify_while_replacing): Likewise.
19164
19165 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19166
19167 * target-insns.def (doloop_begin, doloop_end): New targetm
19168 instruction patterns.
19169 * loop-init.c: Include target.h.
19170 (pass_loop2::gate): Use the new targetm patterns instead of
19171 HAVE_*/gen_* interface.
19172 (pass_rtl_doloop::gate): Likewise.
19173 (pass_rtl_doloop::execute): Remove preprocessor condition.
19174 * hw-doloop.c: Build unconditionally.
19175 * loop-doloop.c: Likewise.
19176 (doloop_optimize): Use the new targetm patterns instead of
19177 HAVE_*/gen_* interface.
19178 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19179 * modulo-sched.c (doloop_register_get): Likewise.
19180
19181 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19182
19183 * target-insns.def (clear_cache): New targetm instruction pattern.
19184 * builtins.c (expand_builtin___clear_cache): Use it instead of
19185 HAVE_*/gen_* interface.
19186
19187 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19188
19189 * target-insns.def (allocate_stack, check_stack, probe_stack)
19190 (probe_stack_address, split_stack_prologue, split_stack_space_check):
19191 New targetm instruction patterns.
19192 * explow.c (allocate_dynamic_stack_space): Use them instead of
19193 HAVE_*/gen_* interface.
19194 (emit_stack_probe): Likewise.
19195 (probe_stack_range): Likewise.
19196 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19197
19198 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19199
19200 * target-insns.def (stack_protect_set, stack_protect_test): New
19201 targetm instruction patterns.
19202 * cfgexpand.c (stack_protect_prologue): Use them instead of
19203 HAVE_*/gen_* interface.
19204 * function.c (stack_protect_epilogue): Likewise.
19205
19206 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19207
19208 * expr.h (gen_move_insn_uncast): Delete.
19209 * expr.c (gen_move_insn_uncast): Delete.
19210
19211 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19212
19213 * target-insns.def (restore_stack_block, restore_stack_function)
19214 (restore_stack_nonlocal, save_stack_block, save_stack_function)
19215 (save_stack_nonlocal): New targetm instruction patterns.
19216 * builtins.c (expand_builtin_apply): Use them instead of
19217 HAVE_*/gen_* interface.
19218 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19219
19220 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19221
19222 * target-insns.def (trap): New targetm instruction pattern.
19223 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19224 interface.
19225 * explow.c (allocate_dynamic_stack_space): Likewise.
19226 * ifcvt.c (find_if_header): Likewise.
19227
19228 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19229
19230 * target-insns.def (prefetch): New targetm instruction pattern.
19231 * tree-ssa-loop-prefetch.c: Include targeth.
19232 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19233 of HAVE_*/gen_* interface.
19234 * builtins.c (expand_builtin_prefetch): Likewise.
19235 * toplev.c (process_options): Likewise.
19236
19237 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19238
19239 * target-insns.def (untyped_call, untyped_return): New targetm
19240 instruction patterns.
19241 * builtins.c (expand_builtin_apply): Use them instead of
19242 HAVE_*/gen_* interface.
19243 (result_vector): Define unconditionally.
19244
19245 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19246
19247 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19248 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19249 (nonlocal_goto_receiver): New targetm instruction patterns.
19250 * builtins.c (expand_builtin_setjmp_setup): Use them instead
19251 of HAVE_*/gen_* interface.
19252 (expand_builtin_setjmp_receiver): Likewise.
19253 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19254 * except.c (expand_dw2_landing_pad_for_region): Likewise.
19255
19256 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19257
19258 * target.def: Add code_for_* hooks.
19259 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19260 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19261 * target-insns.def (casesi, tablejump): New targetm instruction
19262 patterns.
19263 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19264 (do_tablejump): Likewise.
19265 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19266 (expand_sjlj_dispatch_table): Likewise.
19267 * targhooks.c (default_case_values_threshold): Likewise.
19268
19269 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
19270
19271 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19272 Use rtx_insn * instead of rtx.
19273 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19274 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19275 (nios2_call_tls_get_addr): Likewise.
19276 (nios2_emit_expensive_div): Likewise.
19277 (nios2_emit_move_sequence): Change return type to bool.
19278 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19279 Change return type to bool.
19280
19281 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19282
19283 PR target/66747
19284 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19285
19286 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
19287
19288 PR target/66114
19289 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19290 of register_operand. Remove constraint.
19291
19292 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
19293
19294 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19295 the first argument.
19296
19297 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
19298
19299 * attribs.c (decl_attributes): Guard inform with the return value
19300 of the preceding warning.
19301
19302 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19303
19304 * doc/invoke.texi (moverride): Move to correct section.
19305
19306 2015-07-03 Richard Biener <rguenther@suse.de>
19307
19308 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19309 Copy from tree.c
19310 (dt_operand::gen_gimple_expr): After valueizing operands
19311 re-canonicalize operand order for commutative tree codes.
19312
19313 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
19314
19315 PR target/66746.
19316 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19317 is defined.
19318 (__crc32w): Likewise.
19319 (__crc32d): Likewise.
19320 (__rdpmc): Likewise.
19321 (__rdtscp): Likewise.
19322 (_rdpmc): Likewise.
19323 (_rdtscp): Likewise.
19324 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19325 is defined.
19326
19327 2015-07-03 Richard Biener <rguenther@suse.de>
19328
19329 * fold-const.c (fold_mathfn_compare): Remove.
19330 (fold_inf_compare): Likewise.
19331 (fold_comparison): Move floating point comparison simplifications...
19332 * match.pd: ... to patterns here. Introduce simple_comparisons
19333 operator list and use it for patterns formerly in fold_comparison.
19334
19335 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19336
19337 PR tree-optimization/66119
19338 * toplev.c (process_options): Don't set up default values for
19339 the sra_max_scalarization_size_{speed,size} parameters.
19340 * tree-sra (analyze_all_variable_accesses): If no values
19341 have been set for the sra_max_scalarization_size_{speed,size}
19342 parameters, call get_move_ratio to get target defaults.
19343
19344 2015-07-03 Richard Biener <rguenther@suse.de>
19345
19346 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19347 * match.pd: ... here.
19348
19349 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
19350
19351 PR target/37072
19352 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19353 is not actually the default on FreeBSD.
19354
19355 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19356
19357 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19358 definition.
19359 (CMPGE_8HI): Likewise.
19360 (CMPGE_4SI): Likewise.
19361 (CMPGE_2DI): Likewise.
19362 (CMPGE_U16QI): Likewise.
19363 (CMPGE_U8HI): Likewise.
19364 (CMPGE_U4SI): Likewise.
19365 (CMPGE_U2DI): Likewise.
19366 (CMPLE_16QI): Likewise.
19367 (CMPLE_8HI): Likewise.
19368 (CMPLE_4SI): Likewise.
19369 (CMPLE_2DI): Likewise.
19370 (CMPLE_U16QI): Likewise.
19371 (CMPLE_U8HI): Likewise.
19372 (CMPLE_U4SI): Likewise.
19373 (CMPLE_U2DI): Likewise.
19374 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19375 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19376 ALTIVEC_BUILTIN_VEC_CMPLE.
19377 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19378 floating-point vector modes.
19379 (vector_nlt<mode>): New define_expand.
19380 (vector_nltu<mode>): Likewise.
19381 (vector_ngt<mode>): Likewise.
19382 (vector_ngtu<mode>): Likewise.
19383
19384 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19385
19386 PR rtl-optimization/66706
19387 * combine.c (make_compound_operation): If an AND of SUBREG of
19388 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19389
19390 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
19391
19392 * tree-pass.h (make_pass_ch_vect): New.
19393 * passes.def: Add pass_ch_vect just before pass_if_conversion.
19394
19395 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19396 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19397 make_pass_ch_vect): New.
19398 (pass_ch): Extend ch_base.
19399
19400 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19401 (ch_base::copy_headers): ...here.
19402
19403 2015-07-02 Richard Biener <rguenther@suse.de>
19404
19405 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19406 * fold-const.c (get_pointer_modulus_and_residue): Remove.
19407 (fold_binary_loc): Implement (T)ptr & CST in terms of
19408 get_pointer_alignment_1.
19409 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19410 Make sure to build the alignment test on a SSA name without
19411 final alignment info valid only after the prologue.
19412
19413 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
19414
19415 * config/cris/cris.md ("epilogue"): Remove condition.
19416 ("prologue"): Ditto.
19417
19418 2015-07-02 Richard Biener <rguenther@suse.de>
19419
19420 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19421 parameter to record a condition that is false.
19422 (record_conditions): When recording an extra NE_EXPR that is
19423 true also record a EQ_EXPR that is false.
19424
19425 2015-07-02 Bin Cheng <bin.cheng@arm.com>
19426
19427 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19428 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19429 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
19430 (set_iv, find_interesting_uses_address, add_candidate_1): New
19431 argument to alloc_iv.
19432 (find_interesting_uses_op, find_interesting_uses_cond): Don't
19433 duplicate struct iv.
19434 (free_loop_data): Don't free struct iv explicitly.
19435 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19436
19437 2015-07-01 DJ Delorie <dj@redhat.com>
19438
19439 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19440 (LIB_SPEC): Add.
19441 (SUPPORTS_DISCRIMINATOR): Define.
19442
19443 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19444
19445 PR bootstrap/66685
19446 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19447 there are no CALLs in the same pattern.
19448
19449 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19450
19451 PR rtl-optimization/61047
19452 * rtlanal.c (get_initial_register_offset): New function.
19453 (rtx_addr_can_trap_p_1): Check offsets of stack references.
19454
19455 2015-07-01 Richard Biener <rguenther@suse.de>
19456
19457 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19458 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19459 ~X CMP C -> X CMP' ~C to ...
19460 * match.pd: ... patterns here.
19461
19462 2015-07-01 Nick Clifton <nickc@redhat.com>
19463
19464 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19465 a 16-bit value into a 20-bit memory slot.
19466
19467 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19468
19469 * doc/sourcebuild.texi (AArch64-specific attributes): Document
19470 "aarch64_tiny", "aarch64_small", "aarch64_large",
19471 "aarch64_little_endian", "aarch64_big_endian".
19472
19473 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19474
19475 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19476 Document "aarch64_small_fpic".
19477
19478 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19479
19480 * configure.ac: Add check for aarch64 assembler -fpic relocation
19481 modifier support.
19482 * configure: Regenerate.
19483 * config.in: Regenerate.
19484 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19485 to -fPIC if not support of -fpic relocation modifier in assembler.
19486
19487 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19488
19489 PR bootstrap/66685
19490 * rtl.c (classify_insn): Handle returns in PARALLELs.
19491
19492 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
19493
19494 PR middle-end/66633
19495 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19496 to true if the function is nested and if not optimizing.
19497 (convert_local_omp_clauses): Initialize need_frame to true if the
19498 function contains nested functions and if not optimizing.
19499
19500 2015-07-01 Richard Biener <rguenther@suse.de>
19501
19502 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19503 (X & Y) ^ Y -> ~X & Y transforms to ...
19504 * match.pd: ... here.
19505
19506 2015-07-01 Richard Biener <rguenther@suse.de>
19507
19508 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19509 of converts to avoid uninteresting noise from the conversion
19510 simplifying patterns.
19511
19512 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
19513
19514 * config/c6x/c6x.c (try_rename_operands): Do not depend on
19515 gcc_assert evaluating its argument for side-effect.
19516
19517 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
19518
19519 PR target/64833
19520 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19521 flag_pic is set.
19522
19523 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19524
19525 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19526 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19527 (hash_scc): Add this_ref_p and ref_p parameters and pass them
19528 to the inner DFS walk.
19529
19530 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19531
19532 * target-insns.def (jump): New targetm instruction pattern.
19533 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19534 instead of gen_jump.
19535 (fix_up_crossing_landing_pad): Likewise.
19536 (add_labels_and_missing_jumps): Likewise.
19537 (fix_crossing_conditional_branches): Likewise.
19538 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19539 (force_nonfallthru_and_redirect): Likewise.
19540 * cse.c (cse_insn): Likewise.
19541 * expmed.c (expand_divmod): Likewise.
19542 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19543 * haifa-sched.c (init_before_recovery): Likewise.
19544 (sched_create_recovery_edges): Likewise.
19545 * ifcvt.c (find_cond_trap): Likewise.
19546 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19547 (expand_float, expand_fix): Likewise.
19548 * stmt.c (emit_jump): Likewise.
19549
19550 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19551
19552 * defaults.h (HAVE_load_multiple, gen_load_multiple)
19553 (HAVE_store_multiple, gen_store_multiple): Delete.
19554 * target-insns.def (load_multiple, store_multiple): New targetm
19555 instruction patterns.
19556 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19557 of HAVE_*/gen_* interface.
19558
19559 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19560
19561 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19562 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19563 (gen_mem_signal_fence): Delete.
19564 * target-insns.def (mem_signal_fence, mem_thread_fence)
19565 (memory_barrier): New targetm instruction patterns.
19566 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19567 interface.
19568 (expand_mem_signal_fence): Likewise.
19569
19570 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19571
19572 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19573 * target-insns.def (epilogue, prologue, sibcall_prologue): New
19574 targetm instruction patterns.
19575 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19576 interface.
19577 * calls.c (expand_call): Likewise.
19578 * cfgrtl.c (cfg_layout_finalize): Likewise.
19579 * df-scan.c (df_get_entry_block_def_set): Likewise.
19580 (df_get_exit_block_use_set): Likewise.
19581 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19582 * final.c (final_start_function): Likewise.
19583 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19584 (reposition_prologue_and_epilogue_notes): Likewise.
19585 * reorg.c (find_end_label): Likewise.
19586 * toplev.c (process_options): Likewise.
19587
19588 2015-06-30 David Malcolm <dmalcolm@redhat.com>
19589
19590 * typed-splay-tree.h: New file.
19591
19592 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
19593
19594 PR debug/66691
19595 * lra-int.h (lra_substitute_pseudo): Add a parameter.
19596 (lra_substitute_pseudo_within_insn): Ditto.
19597 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
19598 of constant.
19599 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
19600 to lra_substitute_pseudo.
19601 * lra-lives.c (process_bb_lives): Add an argument to
19602 lra_substitute_pseudo_within_insn call.
19603 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19604 argument to lra_substitute_pseudo and
19605 lra_substitute_pseudo_within_insn calls.
19606 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19607
19608 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19609
19610 * configure: Regenerated.
19611
19612 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19613
19614 * config.gcc: Support i[34567]86-*-elfiamcu target.
19615 * config/i386/iamcu.h: New.
19616 * config/i386/i386.opt: Add -miamcu.
19617 * doc/invoke.texi: Document -miamcu.
19618 * common/config/i386/i386-common.c (ix86_handle_option): Turn
19619 off x87/MMX/SSE/AVX codegen for -miamcu.
19620 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19621 __iamcu/__iamcu__ for -miamcu.
19622 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19623 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19624 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19625 * config/i386/i386.c (ix86_option_override_internal): Ignore and
19626 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
19627 MCU by default. Default long double to 64-bit for Intel MCU.
19628 Turn on -freg-struct-return for Intel MCU. Issue an error when
19629 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19630 AVX is turned on.
19631 (function_arg_advance_32): Pass value whose size is no larger
19632 than 8 bytes in registers for Intel MCU.
19633 (function_arg_32): Likewise.
19634 (ix86_return_in_memory): Return value whose size is no larger
19635 than 8 bytes in registers for Intel MCU.
19636 (iamcu_alignment): New function.
19637 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19638 true.
19639 (ix86_local_alignment): Don't increase alignment for Intel MCU.
19640 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19641 true.
19642
19643 2015-06-30 Marek Polacek <polacek@redhat.com>
19644
19645 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
19646 both operands of the resulting expression.
19647
19648 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
19649 the final expression with the operand's type and then convert
19650 it to the type of the expression.
19651
19652 2015-06-30 Richard Biener <rguenther@suse.de>
19653
19654 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19655 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19656 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19657 * match.pd: ... to patterns here.
19658
19659 2015-06-30 Richard Biener <rguenther@suse.de>
19660
19661 PR tree-optimization/66704
19662 * tree-vect-data-refs.c (vect_setup_realignment): Use
19663 make_ssa_name for non-SSA name source.
19664
19665 2015-06-30 Jakub Jelinek <jakub@redhat.com>
19666
19667 PR middle-end/66702
19668 * omp-low.c (simd_clone_adjust): Handle addressable linear
19669 or uniform parameters or non-gimple type uniform parameters.
19670
19671 2015-06-30 Richard Biener <rguenther@suse.de>
19672
19673 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19674 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19675 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19676 * match.pd: ... here.
19677 Add a few cases of A - B -> A + (-B) when B "easily" negates.
19678 Move (x & y) | x -> x and friends before
19679 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19680
19681 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19682
19683 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19684 -mfix-ut699 is not specified.
19685 (leon3_load): Rename into...
19686 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
19687 is specified.
19688
19689 2015-06-30 Marek Polacek <polacek@redhat.com>
19690
19691 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19692 * match.pd: ... here.
19693
19694 2015-06-30 Richard Biener <rguenther@suse.de>
19695
19696 * target-insns.def (canonicalize_funcptr_for_compare): Add.
19697 * fold-const.c (build_range_check): Replace uses of
19698 HAVE_canonicalize_funcptr_for_compare.
19699 (fold_widened_comparison): Likewise.
19700 (fold_sign_changed_comparison): Likewise.
19701 * dojump.c: Include "target.h".
19702 (do_compare_and_jump): Replace uses of
19703 HAVE_canonicalize_funcptr_for_compare and
19704 gen_canonicalize_funcptr_for_compare.
19705 * expr.c (do_store_flag): Likewise.
19706
19707 2015-06-30 Tom de Vries <tom@codesourcery.com>
19708
19709 PR tree-optimization/66652
19710 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19711 max_loop_iterations to determine if nit + 1 overflows.
19712
19713 2015-06-30 Richard Biener <rguenther@suse.de>
19714
19715 * tree-vrp.c (register_edge_assert_for_2): Also register
19716 asserts for dominating conversion results.
19717
19718 2015-06-30 Bin Cheng <bin.cheng@arm.com>
19719
19720 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19721 field in struct iv.
19722
19723 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
19724
19725 PR target/66509
19726 * configure.ac: Fix filds and fildq test for 64-bit.
19727 * configure: Regenerated.
19728
19729 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
19730
19731 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
19732 (nvptx_reorg): Here. Keep the non-subreg pieces.
19733
19734 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
19735
19736 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
19737 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19738
19739 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
19740
19741 * config/i386/i386.md (*jcc_1): Use %! in asm template.
19742 Set attribute "length_nobnd" instead of "length".
19743 (*jcc_2): Ditto.
19744 (jump): Ditto.
19745 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
19746
19747 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
19748
19749 * config/nios2/nios2.c (nios2_delegitimize_address): Make
19750 assert less restrictive.
19751
19752 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
19753
19754 PR fortran/66605
19755 * cgraphunit.c (cgraph_node::finalize_function): Do not call
19756 do_warn_unused_parameter.
19757 * function.c (do_warn_unused_parameter): Move from here.
19758 * function.h (do_warn_unused_parameter): Do not declare.
19759
19760 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19761
19762 PR target/65697
19763 * gcc.target/arm/armv-sync-comp-swap.c: New.
19764 * gcc.target/arm/armv-sync-op-acquire.c: New.
19765 * gcc.target/arm/armv-sync-op-full.c: New.
19766 * gcc.target/arm/armv-sync-op-release.c: New.
19767
19768 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19769
19770 PR target/65697
19771 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
19772 initial acquire barrier with final barrier.
19773
19774 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19775
19776 PR target/65697
19777 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
19778 initial acquire barrier with final barrier.
19779
19780 2015-06-29 Richard Henderson <rth@redhat.com>
19781
19782 * config/i386/constraints.md (Bf): New constraint.
19783 * config/i386/i386-c.c (ix86_target_macros): Define
19784 __GCC_ASM_FLAG_OUTPUTS__.
19785 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
19786 as flags outputs.
19787 * doc/extend.texi (FlagOutputOperands): Document them.
19788
19789 2015-06-29 Jiong Wang <jiong.wang@arm.com>
19790
19791 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
19792 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
19793 unspec name.
19794 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
19795 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
19796 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
19797 (aarch64_symbol_context): Ditto.
19798 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
19799 and use new pattern name.
19800 (aarch64_expand_mov_immediate): Ditto.
19801 (aarch64_print_operand): Ditto.
19802 (aarch64_classify_tls_symbol): Ditto.
19803
19804 2015-06-29 Marek Polacek <polacek@redhat.com>
19805 Marc Glisse <marc.glisse@inria.fr>
19806
19807 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
19808 * match.pd: ... pattern here.
19809
19810 2015-06-29 Tom de Vries <tom@codesourcery.com>
19811
19812 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
19813 function structure.
19814
19815 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
19816
19817 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
19818 feature description, split out the native option, add a link to
19819 the feature documentation, rearrange and slightly rewrite text.
19820 (Aarch64 options, -mcpu): Likewise.
19821 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
19822 +rdma implies Adv. SIMD.
19823
19824 2015-06-29 Marek Polacek <polacek@redhat.com>
19825
19826 PR c/66322
19827 * function.c (stack_protect_epilogue): Remove a cast to int.
19828 * doc/invoke.texi: Update -Wswitch-bool description.
19829
19830 2015-06-29 Richard Biener <rguenther@suse.de>
19831
19832 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
19833 * fold-const.c (fold_binary_loc): Move &A - &B simplification
19834 via ptr_difference_const ...
19835 * match.pd: ... here.
19836 When matching (X ^ Y) == Y also match with swapped operands.
19837
19838 2015-06-29 Richard Biener <rguenther@suse.de>
19839
19840 * lto-streamer.h (LTO_major_version): Bump to 5.
19841
19842 2015-06-29 Richard Biener <rguenther@suse.de>
19843
19844 PR tree-optimization/66677
19845 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
19846 STMT_VINFO_VEC_STMT clobbering less strict.
19847
19848 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19849
19850 PR middle-end/64130
19851 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
19852 division, compute max and min when value ranges for dividend and
19853 divisor are available.
19854
19855 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
19856 Sandra Loosemore <sandra@codesourcery.com>
19857
19858 * regrename.h (regrename_do_replace): Change to return bool.
19859 * regrename.c (rename_chains): Check return value of
19860 regname_do_replace.
19861 (regrename_do_replace): Re-validate the modified insns and
19862 return bool status.
19863 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
19864 Update to match rename_chains changes.
19865 * config/c6x/c6x.c (try_rename_operands): Assert that
19866 regrename_do_replace returns true.
19867
19868 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
19869
19870 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
19871 operand 2 here. Use copy_addr_to_reg to copy non-index
19872 register operand 2 to a temporary.
19873 (<mode>_stx): Ditto for operand 1.
19874 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
19875 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
19876 (ix86_store_bounds): Ditto.
19877
19878 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
19879
19880 * print-tree.c (print_node) [TREE_VEC]: Print its length.
19881
19882 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
19883
19884 * gimple.c (gimple_call_set_fndecl): Remove.
19885 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
19886 build1_loc directly instead of build_fold_addr_expr_loc.
19887
19888 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19889
19890 * hash-map.h (hash_map::traverse): Use the definition of the
19891 Key typedef rather than the typedef itself.
19892
19893 2015-06-26 Martin Jambor <mjambor@suse.cz>
19894
19895 PR debug/66301
19896 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
19897 NULL instead of calling dump_enabled_p.
19898
19899 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19900
19901 * config/aarch64/aarch64.opt: (override): New.
19902 * doc/invoke.texi (override): Document.
19903 * config/aarch64/aarch64.c (aarch64_flag_desc): New
19904 (aarch64_fusible_pairs): Likewise.
19905 (aarch64_tuning_flags): Likewise.
19906 (aarch64_tuning_override_function): Likewise.
19907 (aarch64_tuning_override_functions): Likewise.
19908 (aarch64_parse_one_option_token): Likewise.
19909 (aarch64_parse_boolean_options): Likewise.
19910 (aarch64_parse_fuse_string): Likewise.
19911 (aarch64_parse_tune_string): Likewise.
19912 (aarch64_parse_one_override_token): Likewise.
19913 (aarch64_parse_override_string): Likewise.
19914 (aarch64_override_options): Parse the -override string if it
19915 is present.
19916
19917 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19918
19919 * config/aarch64/aarch64-protos.h (tune_params): Remove
19920 const from members.
19921 (aarch64_tune_params): Remove const, change to no longer be
19922 a pointer.
19923 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
19924 change to no longer be a pointer, initialize to generic_tunings.
19925 (aarch64_min_divisions_for_recip_mul): Change dereference of
19926 aarch64_tune_params to member access.
19927 (aarch64_reassociation_width): Likewise.
19928 (aarch64_rtx_mult_cost): Likewise.
19929 (aarch64_address_cost): Likewise.
19930 (aarch64_branch_cost): Likewise.
19931 (aarch64_rtx_costs): Likewise.
19932 (aarch64_register_move_cost): Likewise.
19933 (aarch64_memory_move_cost): Likewise.
19934 (aarch64_sched_issue_rate): Likewise.
19935 (aarch64_builtin_vectorization_cost): Likewise.
19936 (aarch64_override_options): Take a copy of the selected tuning
19937 struct in to aarch64_tune_params, rather than just setting
19938 a pointer, change dereferences of aarch64_tune_params to member
19939 accesses.
19940 (aarch64_override_options_after_change): Change dereferences of
19941 aarch64_tune_params to member access.
19942 (aarch64_macro_fusion_p): Likewise.
19943 (aarch_macro_fusion_pair_p): Likewise.
19944 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
19945
19946 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19947
19948 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
19949 (aarch64_tune_flags): Likewise.
19950 (AARCH64_TUNE_FMA_STEERING): Likewise.
19951 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
19952 to AARCH64_FL_USE_FMA_STEERING_PASS.
19953 (cortex-a57.cortex-a53): Likewise.
19954 (cortex-a72): Use cortexa72_tunings.
19955 (cortex-a72.cortex-a53): Likewise.
19956 (exynos-m1): Likewise.
19957 * config/aarch64/aarch64-protos.h (tune_params): Add
19958 a field: extra_tuning_flags.
19959 * config/aarch64/aarch64-tuning-flags.def: New.
19960 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
19961 (aarch64_extra_tuning_flags): Likewise.
19962 (aarch64_tune_params): Declare here.
19963 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
19964 (cortexa53_tunings): Likewise.
19965 (cortexa57_tunings): Likewise.
19966 (thunderx_tunings): Likewise.
19967 (xgene1_tunings): Likewise.
19968 (cortexa72_tunings): New.
19969 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
19970 (gate): Check against aarch64_tune_params.
19971 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
19972 aarch64-protos.h.
19973
19974 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19975
19976 * config/aarch64/aarch64-fusion-pairs.def: New.
19977 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
19978 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
19979 aarch64_fusion_pairs.
19980 (AARCH64_FUSE_MOV_MOVK): Likewise.
19981 (AARCH64_FUSE_ADRP_ADD): Likewise.
19982 (AARCH64_FUSE_MOVK_MOVK): Likewise.
19983 (AARCH64_FUSE_ADRP_LDR): Likewise.
19984 (AARCH64_FUSE_CMP_BRANCH): Likewise.
19985
19986 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19987
19988 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
19989 SYMBOL_SMALL_GOT_28K.
19990 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
19991 relocation modifiers.
19992 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
19993 (ldr_got_small_28k_<mode>): New.
19994 (ldr_got_small_28k_sidi): New.
19995 * config/aarch64/iterators.md (got_modifier): New mode iterator.
19996 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
19997 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
19998 SYMBOL_SMALL_GOT_28K.
19999 (aarch64_rtx_costs): Add costs for new instruction sequences.
20000 (initialize_aarch64_code_model): Initialize new model.
20001 (aarch64_classify_symbol): Recognize new model and new symbol classification.
20002 (aarch64_asm_preferred_eh_data_format): Support new model.
20003 (aarch64_load_symref_appropriately): Generate new instruction
20004 sequences for -fpic.
20005 (TARGET_USE_PSEUDO_PIC_REG): New definition.
20006 (aarch64_use_pseudo_pic_reg): New function.
20007
20008 2015-06-26 Jiong Wang <jiong.wang@arm.com>
20009
20010 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
20011 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
20012 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
20013 (aarch64_expand_mov_immediate): Ditto.
20014 (aarch64_print_operand): Ditto.
20015 (aarch64_classify_symbol): Ditto.
20016
20017 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
20018
20019 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
20020
20021 2015-06-26 Bin Cheng <bin.cheng@arm.com>
20022
20023 PR bootstrap/66638
20024 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
20025 assertion failed. Remove assertion itself.
20026
20027 2015-06-26 Richard Biener <rguenther@suse.de>
20028
20029 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
20030 and -A CMP CST -> A CMP -CST which is redundant with a pattern
20031 in match.pd.
20032 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
20033 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
20034 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
20035 * match.pd: ... patterns here.
20036
20037 2015-06-26 Marek Polacek <polacek@redhat.com>
20038
20039 * match.pd ((x | y) & ~(x & y) -> x ^ y,
20040 (x | y) & (~x ^ y) -> x & y): New patterns.
20041
20042 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
20043
20044 * rtl.h (emit): Add an optional boolean parameter to control
20045 whether barriers are emitted.
20046 * emit-rtl.c (emit): Likewise.
20047 * gensupport.c (get_emit_function): Return null rather than "emit".
20048 * genemit.c (gen_emit_seq): Handle the null return value.
20049 Don't emit barriers after the final instruction in the sequence.
20050 * gentarget-def.c (main): Don't emit barriers after the instruction.
20051
20052 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20053
20054 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
20055 TARGET_UNIFIED_ASM.
20056
20057 2015-06-26 Richard Biener <rguenther@suse.de>
20058
20059 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
20060
20061 2015-06-26 Richard Biener <rguenther@suse.de>
20062
20063 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
20064 irrespective on whether the inner operation has a single use
20065 of both off are constant.
20066
20067 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
20068 Segher Boessenkool <segher@kernel.crashing.org>
20069
20070 PR target/66412
20071 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
20072 before doing PUT_MODE or PUT_CODE on operands to avoid
20073 in-place RTX modification.
20074
20075 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
20076
20077 * gentarget-def.c (def_target_insn): Cast return of strtol to
20078 unsigned int.
20079
20080 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20081
20082 * gimple.h (gimple_call_set_fn): Move inline function.
20083 * gimple.c (gimple_call_set_fn): Relocate here.
20084
20085 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
20086
20087 PR target/65979
20088 PR target/66611
20089 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
20090 the replacement insn will work.
20091
20092 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
20093
20094 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
20095 by default.
20096
20097 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20098
20099 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
20100 * cgraph.h: Include ipa-ref.h and plugin-api.h.
20101 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
20102 (symtab_node::address_can_be_compared_p): Move function.
20103 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
20104 definition here.
20105 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
20106 * auto-profile.c: Likewise.
20107 * bb-reorder.c: Likewise.
20108 * builtins.c: Likewise.
20109 * calls.c: Likewise.
20110 * cfgexpand.c: Likewise.
20111 * cgraphbuild.c: Likewise.
20112 * cgraphclones.c: Likewise.
20113 * cgraphunit.c: Likewise.
20114 * combine.c: Likewise.
20115 * coverage.c: Likewise.
20116 * data-streamer-in.c: Likewise.
20117 * data-streamer-out.c: Likewise.
20118 * data-streamer.c: Likewise.
20119 * dbxout.c: Likewise.
20120 * dwarf2out.c: Likewise.
20121 * except.c: Likewise.
20122 * expr.c: Likewise.
20123 * final.c: Likewise.
20124 * fold-const.c: Likewise.
20125 * ggc-page.c: Likewise.
20126 * gimple-fold.c: Likewise.
20127 * gimple-iterator.c: Likewise.
20128 * gimple-pretty-print.c: Likewise.
20129 * gimple-streamer-in.c: Likewise.
20130 * gimple-streamer-out.c: Likewise.
20131 * gimple.c: Likewise.
20132 * gimplify.c: Likewise.
20133 * ipa-chkp.c: Likewise.
20134 * ipa-comdats.c: Likewise.
20135 * ipa-cp.c: Likewise.
20136 * ipa-devirt.c: Likewise.
20137 * ipa-icf-gimple.c: Likewise.
20138 * ipa-icf.c: Likewise.
20139 * ipa-inline-analysis.c: Likewise.
20140 * ipa-inline-transform.c: Likewise.
20141 * ipa-inline.c: Likewise.
20142 * ipa-polymorphic-call.c: Likewise.
20143 * ipa-profile.c: Likewise.
20144 * ipa-prop.c: Likewise.
20145 * ipa-pure-const.c: Likewise.
20146 * ipa-ref.c: Likewise.
20147 * ipa-reference.c: Likewise.
20148 * ipa-split.c: Likewise.
20149 * ipa-utils.c: Likewise.
20150 * ipa-visibility.c: Likewise.
20151 * ipa.c: Likewise.
20152 * langhooks.c: Likewise.
20153 * lto-cgraph.c: Likewise.
20154 * lto-compress.c: Likewise.
20155 * lto-opts.c: Likewise.
20156 * lto-section-in.c: Likewise.
20157 * lto-section-out.c: Likewise.
20158 * lto-streamer-in.c: Likewise.
20159 * lto-streamer-out.c: Likewise.
20160 * lto-streamer.c: Likewise.
20161 * omp-low.c: Likewise.
20162 * opts-global.c: Likewise.
20163 * passes.c: Likewise.
20164 * predict.c: Likewise.
20165 * print-tree.c: Likewise.
20166 * profile.c: Likewise.
20167 * ree.c: Likewise.
20168 * sanopt.c: Likewise.
20169 * stor-layout.c: Likewise.
20170 * symtab.c: Likewise.
20171 * toplev.c: Likewise.
20172 * trans-mem.c: Likewise.
20173 * tree-cfg.c: Likewise.
20174 * tree-chkp.c: Likewise.
20175 * tree-eh.c: Likewise.
20176 * tree-emutls.c: Likewise.
20177 * tree-inline.c: Likewise.
20178 * tree-nested.c: Likewise.
20179 * tree-parloops.c: Likewise.
20180 * tree-pretty-print.c: Likewise.
20181 * tree-profile.c: Likewise.
20182 * tree-sra.c: Likewise.
20183 * tree-ssa-alias.c: Likewise.
20184 * tree-ssa-live.c: Likewise.
20185 * tree-ssa-loop-ivcanon.c: Likewise.
20186 * tree-ssa-loop-ivopts.c: Likewise.
20187 * tree-ssa-pre.c: Likewise.
20188 * tree-ssa-sccvn.c: Likewise.
20189 * tree-ssa-strlen.c: Likewise.
20190 * tree-ssa-structalias.c: Likewise.
20191 * tree-streamer-in.c: Likewise.
20192 * tree-streamer-out.c: Likewise.
20193 * tree-streamer.c: Likewise.
20194 * tree-switch-conversion.c: Likewise.
20195 * tree-tailcall.c: Likewise.
20196 * tree-vect-data-refs.c: Likewise.
20197 * tree-vect-stmts.c: Likewise.
20198 * tree-vectorizer.c: Likewise.
20199 * tree.c: Likewise.
20200 * tsan.c: Likewise.
20201 * ubsan.c: Likewise.
20202 * value-prof.c: Likewise.
20203 * varasm.c: Likewise.
20204 * varpool.c: Likewise.
20205 * config/arm/arm.c: Likewise.
20206 * config/bfin/bfin.c: Likewise.
20207 * config/c6x/c6x.c: Likewise.
20208 * config/cris/cris.c: Likewise.
20209 * config/darwin-c.c: Likewise.
20210 * config/darwin.c: Likewise.
20211 * config/i386/i386.c: Likewise.
20212 * config/i386/winnt.c: Likewise.
20213 * config/microblaze/microblaze.c: Likewise.
20214 * config/mips/mips.c: Likewise.
20215 * config/rs6000/rs6000.c: Likewise.
20216 * config/rx/rx.c: Likewise.
20217 * config/s390/s390.c: Likewise.
20218 * config/tilegx/mul-tables.c: Likewise.
20219
20220 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20221
20222 * config/aarch64/aarch64.c, config/alpha/alpha.c,
20223 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20224 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20225 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20226 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20227 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20228 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20229 config/microblaze/microblaze.c, config/mips/mips.c,
20230 config/mmix/mmix.c, config/mn10300/mn10300.c,
20231 config/moxie/moxie.c, config/msp430/msp430.c,
20232 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20233 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20234 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20235 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20236 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20237 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20238 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20239 target-def.h include.
20240 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
20241
20242 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20243
20244 * Makefile.in (TARGET_DEF): Add target-insns.def.
20245 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20246 (build/gentarget-def.o): New rule.
20247 (genprogrtl): Add target-def.
20248 * target-insns.def, gentarget-def.c: New files.
20249 * target.def: Add targetm.have_* and targetm.gen_* hooks,
20250 based on the contents of target-insns.def.
20251 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20252 (HAVE_return, gen_return): Delete.
20253 * target-def.h: Include insn-target-def.h.
20254 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20255 instead of direct calls. Rely on them to do the appropriate assertions.
20256 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
20257 (convert_jumps_to_returns): Use targetm interface instead of
20258 direct calls.
20259 (thread_prologue_and_epilogue_insns): Likewise.
20260 * reorg.c (find_end_label, dbr_schedule): Likewise.
20261 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20262 * shrink-wrap.c (convert_to_simple_return): Likewise.
20263 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20264
20265 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20266
20267 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20268 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20269 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20270 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20271 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20272 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20273 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20274 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20275 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20276 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20277 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20278 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20279 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20280 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20281 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20282 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20283 includes to end.
20284
20285 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20286
20287 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20288 (unbounded_int_hashmap_traits::key_type): Likewise.
20289 * hash-map.h (hash_map): Get the key type from the traits.
20290 * hash-traits.h (default_hash_traits): By default, inherit from the
20291 template parameter.
20292 * alias.c (alias_set_traits): Delete.
20293 (alias_set_entry_d::children): Use alias_set_hash as the first
20294 template parameter.
20295 (record_alias_subset): Update accordingly.
20296 * except.c (tree_hash_traits): Delete.
20297 (type_to_runtime_map): Use tree_hash as the first template parameter.
20298 (init_eh): Update accordingly.
20299 * genmatch.c (capture_id_map_hasher): Delete.
20300 (cid_map_t): Use nofree_string_hash as first template parameter.
20301 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20302 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20303 Use symbol_compare_hash as the first template parameter in
20304 subdivide_hash_map.
20305 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20306 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20307 template parameter.
20308 * passes.c (pass_registry_hasher): Delete.
20309 (name_to_pass_map): Use nofree_string_hash as the first template
20310 parameter.
20311 (register_pass_name): Update accordingly.
20312 * sanopt.c (sanopt_tree_map_traits): Delete.
20313 (sanopt_tree_triplet_map_traits): Delete.
20314 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20315 template parameter.
20316 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20317 the first template parameter.
20318 * sese.c (rename_map_hasher): Delete.
20319 (rename_map_type): Use tree_ssa_name_hash as the first template
20320 parameter.
20321 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20322 (function_summary::m_map): Use map_hash as the first template
20323 parameter.
20324 (function_summary::release): Update accordingly.
20325 * tree-if-conv.c (phi_args_hash_traits): Delete.
20326 (predicate_scalar_phi): Use tree_operand_hash as the first template
20327 parameter to phi_arg_map.
20328 * tree-inline.h (dependence_hasher): Delete.
20329 (copy_body_data::dependence_map): Use dependence_hash as the first
20330 template parameter.
20331 * tree-inline.c (remap_dependence_clique): Update accordingly.
20332 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20333 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20334 parameter.
20335 (addr_stridxptr): Update accordingly.
20336 * value-prof.c (profile_id_traits): Delete.
20337 (cgraph_node_map): Use profile_id_hash as the first template
20338 parameter.
20339 (init_node_map): Update accordingly.
20340 * config/alpha/alpha.c (string_traits): Delete.
20341 (machine_function::links): Use nofree_string_hash as the first
20342 template parameter.
20343 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20344 * config/m32c/m32c.c (pragma_traits): Delete.
20345 (pragma_htab): Use nofree_string_hash as the first template parameter.
20346 (m32c_note_pragma_address): Update accordingly.
20347 * config/mep/mep.c (pragma_traits): Delete.
20348 (pragma_htab): Use nofree_string_hash as the first template parameter.
20349 (mep_note_pragma_flag): Update accordingly.
20350 * config/mips/mips.c (mips16_flip_traits): Delete.
20351 (mflip_mips16_htab): Use nofree_string_hash as the first template
20352 parameter.
20353 (mflip_mips16_use_mips16_p): Update accordingly.
20354 (local_alias_traits): Delete.
20355 (mips16_local_aliases): Use nofree_string_hash as the first template
20356 parameter.
20357 (mips16_local_alias): Update accordingly.
20358
20359 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20360
20361 * hash-map-traits.h (default_hashmap_traits): Delete.
20362
20363 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20364
20365 * hash-map-traits.h (unbounded_hashmap_traits): New class.
20366 (unbounded_int_hashmap_traits): Likewise.
20367 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20368
20369 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20370
20371 * ipa-icf.h (symbol_compare_hash): New class.
20372 (symbol_compare_hashmap_traits): Use it.
20373 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20374 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20375 (mem_alloc_description::reverse_mem_map_t): Remove redundant
20376 default_hashmap_traits.
20377 * sanopt.c (sanopt_tree_triplet_hash): New class.
20378 (sanopt_tree_triplet_map_traits): Use it.
20379
20380 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20381
20382 * gengtype-parse.c (require_template_declaration): Allow '+' in
20383 template parameters. Consolidate cases.
20384 * hash-traits.h (int_hash): New class.
20385 * alias.c (alias_set_hash): New structure.
20386 (alias_set_traits): Use it.
20387 * symbol-summary.h (function_summary::map_hash): New class.
20388 (function_summary::summary_hashmap_traits): Use it.
20389 * tree-inline.h (dependence_hash): New class.
20390 (dependence_hasher): Use it.
20391 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20392 * value-prof.c (profile_id_hash): New class.
20393 (profile_id_traits): Use it.
20394
20395 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20396
20397 * config/mips/mips.c (mips16_flip_traits): Use it.
20398 (local_alias_traits, mips16_local_aliases): Convert from a map of
20399 rtxes to a map of symbol names.
20400 (mips16_local_alias): Update accordingly.
20401
20402 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20403
20404 * hash-traits.h (string_hash, nofree_string_hash): New classes.
20405 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20406 * passes.c (pass_registry_hasher): Likewise.
20407 * config/alpha/alpha.c (string_traits): Likewise.
20408 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20409 * config/m32c/m32c.c (pragma_traits): Likewise.
20410 * config/mep/mep.c (pragma_traits): Likewise.
20411
20412 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20413
20414 * tree-hash-traits.h (tree_hash): New class.
20415 * except.c: Include tree-hash-traits.h.
20416 (tree_hash_traits): Use tree_hash.
20417
20418 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20419
20420 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20421 * sese.c: Include tree-hash-traits.h.
20422 (rename_map_hasher): Use tree_ssa_name_hasher.
20423
20424 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20425
20426 * tree-hash-traits.h (tree_decl_hash): New class.
20427 * tree-ssa-strlen.c: Include tree-hash-traits.h.
20428 (stridxlist_hash_traits): Use tree_decl_hash.
20429
20430 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20431
20432 * tree-hash-traits.h: New file.
20433 (tree_operand_hash): New class.
20434 * sanopt.c: Include tree-hash-traits.h.
20435 (sanopt_tree_map_traits): Use tree_operand_hash.
20436 * tree-if-conv.c: Include tree-hash-traits.h.
20437 (phi_args_hash_traits): Use tree_operand_hash.
20438 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20439 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20440
20441 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20442
20443 * hash-map-traits.h: Include hash-traits.h.
20444 (simple_hashmap_traits): New class.
20445 * mem-stats.h (hash_map): Change the default traits to
20446 simple_hashmap_traits<default_hash_traits<Key> >.
20447
20448 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20449
20450 * hash-table.h: Update comments.
20451
20452 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20453
20454 * hash-traits.h (default_hash_traits): New structure.
20455 * hash-set.h (default_hashset_traits): Delete.
20456 (hash_set): Use default_hash_traits<Key> instead of
20457 default_hashset_traits. Delete hash_entry type and use Key directly.
20458 * ipa-devirt.c (pair_traits): Delete.
20459 (default_hash_traits <type_pair>): Override.
20460 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20461 (odr_types_equivalent_p, add_type_duplicate): Likewise.
20462
20463 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20464
20465 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20466
20467 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20468
20469 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20470 (has_is_empty, is_empty_helper): Delete.
20471 (has_mark_deleted, mark_deleted_helper): Delete.
20472 (has_mark_empty, mark_empty_helper): Delete.
20473 (hash_table::is_deleted): Call the Descriptor unconditionally.
20474 (hash_table::is_empty): Likewise.
20475 (hash_table::mark_deleted): Likewise.
20476 (hash_table::mark_empty): Likewise.
20477
20478 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20479
20480 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
20481 redundant typedefs and members.
20482 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
20483 redundant typedefs.
20484 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20485 * ipa-devirt.c (odr_name_hasher): Likewise.
20486 (polymorphic_call_target_hasher): Likewise.
20487 * ira-costs.c (cost_classes_hasher): Likewise.
20488 * statistics.c (stats_counter_hasher): Likewise.
20489 * trans-mem.c (log_entry_hasher): Likewise.
20490 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20491 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20492 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20493 * var-tracking.c (variable_hasher): Likewise.
20494 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20495 Remove redundant typedefs and members.
20496
20497 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20498
20499 * hash-traits.h (ggc_cache_hasher): Rename to...
20500 (ggc_cache_remove): ...this and remove typedefs.
20501 (ggc_cache_ptr_hash): New class.
20502 * hash-table.h: Update commentary.
20503 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20504 rather than ggc_cache_hasher.
20505 (const_wide_int_hasher, reg_attr_hasher): Likewise.
20506 (const_double_hasher, const_fixed_hasher): Likewise.
20507 * function.c (insn_cache_hasher): Likewise.
20508 * trans-mem.c (tm_wrapper_hasher): Likewise.
20509 * tree.h (tree_decl_map_cache_hasher): Likewise.
20510 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20511 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20512 * ubsan.c (tree_type_map_cache_hasher): Likewise.
20513 * varasm.c (tm_clone_hasher): Likewise.
20514 * config/i386/i386.c (dllimport_hasher): Likewise.
20515 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20516 (tree_hasher): Likewise.
20517
20518 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20519
20520 * hash-traits.h (ggc_hasher): Rename to...
20521 (ggc_remover): ...this and remove typedefs.
20522 (ggc_cache_hasher): Update accordingly. Add typedefs.
20523 (ggc_ptr_hash): New class.
20524 * hash-table.h: Update comment.
20525 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20526 ggc_hasher.
20527 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20528 (tree_descriptor_hasher): Likewise.
20529 * cgraph.c (function_version_hasher): Likewise.
20530 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20531 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20532 (dw_loc_list_hasher, addr_hasher): Likewise.
20533 * function.h (used_type_hasher): Likewise.
20534 * function.c (temp_address_hasher): Likewise.
20535 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20536 * libfuncs.h (libfunc_hasher): Likewise.
20537 * lto-streamer.h (decl_state_hasher): Likewise.
20538 * optabs.c (libfunc_decl_hasher): Likewise.
20539 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20540 * varasm.c (section_hasher, object_block_hasher): Likewise.
20541 (const_rtx_desc_hasher): Likewise.
20542 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20543 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20544
20545 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20546
20547 * hash-traits.h (free_ptr_hash): New class.
20548 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20549 rather than typed_free_remove. Remove redudant typedefs.
20550 (external_ref_hasher): Likewise.
20551 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20552 (ehspec_hasher): Likewise.
20553 * ggc-common.c (saving_hasher): Likewise.
20554 * gimplify.c (gimplify_hasher): Likewise.
20555 * haifa-sched.c (delay_i2_hasher): Likewise.
20556 * loop-invariant.c (invariant_expr_hasher): Likewise.
20557 * loop-iv.c (biv_entry_hasher): Likewise.
20558 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20559 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20560 * tree-cfg.c (locus_discrim_hasher): Likewise.
20561 * tree-eh.c (finally_tree_hasher): Likewise.
20562 * tree-into-ssa.c (var_info_hasher): Likewise.
20563 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20564 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20565 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20566 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20567 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20568 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20569 (shared_bitmap_hasher): Likewise.
20570 * tree-ssa-threadupdate.c (redirection_data): Likewise.
20571 * tree-vectorizer.h (peel_info_hasher): Likewise.
20572 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20573 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20574
20575 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20576
20577 * hash-table.h: Update comments.
20578 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20579 (nofree_ptr_hash): New class.
20580 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20581 than typed_noop_remove. Remove redudant typedefs.
20582 * attribs.c (attribute_hasher): Likewise.
20583 * cfg.c (bb_copy_hasher): Likewise.
20584 * cselib.c (cselib_hasher): Likewise.
20585 * dse.c (invariant_group_base_hasher): Likewise.
20586 * dwarf2cfi.c (trace_info_hasher): Likewise.
20587 * dwarf2out.c (macinfo_entry_hasher): Likewise.
20588 (comdat_type_hasher, loc_list_hasher): Likewise.
20589 * gcse.c (pre_ldst_expr_hasher): Likewise.
20590 * genmatch.c (id_base): Likewise.
20591 * genrecog.c (test_pattern_hasher): Likewise.
20592 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20593 * haifa-sched.c (delay_i1_hasher): Likewise.
20594 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20595 * ipa-icf.h (congruence_class_group_hash): Likewise.
20596 * ipa-profile.c (histogram_hash): Likewise.
20597 * ira-color.c (allocno_hard_regs_hasher): Likewise.
20598 * lto-streamer.h (string_slot_hasher): Likewise.
20599 * lto-streamer.c (tree_entry_hasher): Likewise.
20600 * plugin.c (event_hasher): Likewise.
20601 * postreload-gcse.c (expr_hasher): Likewise.
20602 * store-motion.c (st_expr_hasher): Likewise.
20603 * tree-sra.c (uid_decl_hasher): Likewise.
20604 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20605 (ssa_name_var_hash): Likewise.
20606 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20607 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20608 * tree-ssa-pre.c (pre_expr_d): Likewise.
20609 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20610 * vtable-verify.h (registration_hasher): Likewise.
20611 * vtable-verify.c (vtbl_map_hasher): Likewise.
20612 * config/arm/arm.c (libcall_hasher): Likewise.
20613 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20614 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20615 * config/sol2.c (comdat_entry_hasher): Likewise.
20616 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20617 (print_fold_checksum, fold_checksum_tree): Likewise.
20618 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20619 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20620 (fold_build_call_array_loc): Likewise.
20621 * tree-ssa-ccp.c (gimple_htab): Likewise.
20622 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20623 rather than pointer_type.
20624
20625 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20626
20627 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20628 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20629
20630 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20631
20632 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20633 (ggc_hasher::ggc_mx): Likewise.
20634 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
20635 that duplicate ggc_hasher ones.
20636
20637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20638
20639 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20640 (gt_cleare_cache): Check here for deleted and empty entries.
20641 Replace handle_cache_entry with a call to keep_cache_entry.
20642 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20643 (ggc_cache_hasher::keep_cache_entry): New function.
20644 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20645 (tm_wrapper_hasher::keep_cache_entry): New function.
20646 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20647 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20648 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20649 (type_cache_hasher::keep_cache_entry): New function.
20650 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20651 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20652 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20653 (tree_type_map_cache_hasher::keep_cache_entry): New function.
20654 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20655 (tm_clone_hasher::keep_cache_entry): New function.
20656 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20657 (dllimport_hasher::keep_cache_entry): New function.
20658
20659 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20660
20661 * hash-table.h: Include hash-traits.h.
20662 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20663 (ggc_cache_hasher): Move to...
20664 * hash-traits.h: ...this new file.
20665
20666 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20667
20668 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20669 struct cl_optimization.
20670 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20671 * tree.c (make_node_stat): Allocate cl_optimization struct.
20672 (copy_node_stat): Allocate and copy cl_optimization struct.
20673
20674 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20675
20676 * function.h (struct incoming_args): Move struct.
20677 (pass_by_reference, reference_callee_copied): Remove prototypes.
20678 * emit-rtl.h (struct incoming_args): Relocate struct here.
20679 * calls.h (pass_by_reference, reference_callee_copied): Relocate
20680 prototypes here.
20681 * function.c (pass_by_reference, reference_callee_copied): Move.
20682 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20683 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20684 * ipa-chkp.c: Include calls.h.
20685
20686 2015-06-25 Andrew Macleod <amacleod@redhat.com>
20687
20688 * alias.h (alias_set_type): Move typedef.
20689 * coretypes.h (alias_set_type): Relocate typedef here.
20690 * rtl.h: Don't include alias.h.
20691
20692 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20693
20694 * cgraph.h (cgraph_rtl_info): Move to rtl.h
20695 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20696 and instance.
20697 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20698 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20699 doesn't exist.
20700 * calls.c: Include hard-reg-set.h before rtl.h.
20701 * ira.c: Likewise.
20702
20703 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20704 Vladimir Makarov <vmakarov@redhat.com>
20705
20706 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20707 Add assert.
20708
20709 2015-06-25 Richard Biener <rguenther@suse.de>
20710
20711 * fold-const.c (fold_binary_loc): Move simplification of
20712 (X <<>> C1) & C2 ...
20713 * match.pd: ... here.
20714
20715 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
20716
20717 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20718
20719 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20720
20721 * match.pd: Add patterns for vec_conds between 1 and 0.
20722
20723 2015-06-25 Richard Biener <rguenther@suse.de>
20724
20725 * tree-vect-stmts.c (vectorizable_conversion): Do not set
20726 STMT_VINFO_VEC_STMT for SLP.
20727 (vectorizable_store): Likewise.
20728 (vectorizable_load): Likewise.
20729 (vect_transform_stmt): Catch SLP vectorization clobbering
20730 STMT_VINFO_VEC_STMT.
20731
20732 2015-06-25 Richard Biener <rguenther@suse.de>
20733
20734 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
20735 dumping.
20736 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
20737 cleanup resulting dead code and parameters.
20738 (vect_transform_slp_perm_load): Adjust.
20739
20740 2015-06-25 Nick Clifton <nickc@redhat.com>
20741
20742 * config/bfin/bfin.c (bfin_expand_prologue): Set
20743 current_function_static_stack_size if flag_stack_usage_info is set.
20744 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
20745 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
20746 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20747 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
20748
20749 2015-06-25 Tom de Vries <tom@codesourcery.com>
20750
20751 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
20752 comment that the generated IV is unsigned.
20753
20754 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20755
20756 PR target/29693
20757 * config/arm/arm.c (arm_dbx_register_number): Return
20758 DWARF_FRAME_REGISTERS by default.
20759
20760 2015-06-25 Tom de Vries <tom@codesourcery.com>
20761
20762 * dominance.c (calculate_dominance_info): Fix verify_dominators call
20763 argument. Call verify_dominator when reusing dominator info.
20764
20765 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
20766
20767 PR target/66563
20768 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
20769 an additional element of the unspec vector. Modify indices
20770 of operands.
20771 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
20772 * config/sh/sh.c (prepare_move_operands): Pass incremented
20773 const_int to gen_GOTaddr2picreg.
20774 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
20775
20776 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20777
20778 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
20779 Condition on TARGET_FLOAT.
20780
20781 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20782
20783 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
20784 and (no)crypto.
20785
20786 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
20787
20788 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
20789
20790 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
20791 aarch64_err_no_fpadvsimd.
20792
20793 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
20794 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20795 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
20796 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
20797 Turn error into assert, test TARGET_FLOAT.
20798 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
20799 TARGET_FLOAT.
20800
20801 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
20802
20803 PR debug/66482
20804 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
20805
20806 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20807
20808 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
20809
20810 2015-06-24 Renlin Li <renlin.li@arm.com>
20811
20812 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
20813 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
20814
20815 2015-06-24 Richard Biener <rguenther@suse.de>
20816
20817 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
20818 (main): Likewise.
20819 (lower_opt_convert): Support lowering of conditional view_convert.
20820 (parser::parse_operation): Likewise.
20821 (parser::parse_for): Likewise.
20822
20823 2015-06-24 Renlin Li <renlin.li@arm.com>
20824
20825 * varasm.c (emit_local): Use unsigned int for align variable.
20826
20827 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20828
20829 PR target/63408
20830 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
20831 for negative numbers.
20832
20833 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20834
20835 PR rtl-optimization/66306
20836 * reload.c (find_reloads): Swap the match_dup info for
20837 commutative operands.
20838
20839 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20840
20841 * config/s390/vx-builtins.md
20842 ("vec_scatter_element<mode>_<non_vec_int>")
20843 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
20844 attribute with bhfgq.
20845
20846 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20847
20848 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
20849
20850 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20851
20852 * config/s390/s390-builtin-types.def: Add flag to indicate the
20853 options under which the function type is needed.
20854 * config/s390/s390-builtins.def: Add flag to indicate the options
20855 under which the builtin is enabled.
20856 * config/s390/s390-builtins.h: Add flags parameter to macro
20857 definitions.
20858 (bflags_for_builtin): New function.
20859 (flags_for_builtin): Renamed to ...
20860 (opflags_for_builtin): ... this.
20861 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
20862 flags_for_builtin to bflags_for_builtin and
20863 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
20864 * config/s390/s390.c: Add initialization of bflags_builtin and
20865 opflags_builtin arrays.
20866 Remove code for flags_builtin.
20867 (s390_init_builtins): Only create builtin function types if one of
20868 their flags is active.
20869 Only create builtins if all of their flags are active.
20870 (s390_expand_builtin): Rename flags_for_builtin to
20871 opflags_for_builtin.
20872
20873 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20874
20875 * config/s390/vecintrin.h: Remove internal builtins.
20876
20877 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20878
20879 * config/s390/s390.c (s390_secondary_reload): Fix check for
20880 GENERAL_REGS register class.
20881
20882 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20883
20884 * config/s390/s390.c (s390_support_vector_misalignment): Call
20885 default implementation for !TARGET_VX.
20886
20887 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20888
20889 * config/s390/s390.c (s390_legitimate_constant_p): Add
20890 TARGET_VX check.
20891
20892 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20893
20894 * config/s390/s390.c (s390_vector_abi): New variable definition.
20895 (s390_check_type_for_vector_abi): New function.
20896 (TARGET_ASM_FILE_END): New macro definition.
20897 (s390_asm_file_end): New function.
20898 (s390_function_arg): Call s390_check_type_for_vector_abi.
20899 (s390_gimplify_va_arg): Likewise.
20900 * configure: Regenerate.
20901 * configure.ac: Check for .gnu_attribute Binutils feature.
20902
20903 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
20904
20905 PR target/65803
20906 * config/bfin/bfin.c (hwloop_optimize): Initialize
20907 JUMP_LABEL for newly created jump.
20908
20909 2015-06-23 Tristan Gingold <gingold@adacore.com>
20910
20911 * collect-utils.c (collect_wait): Unlink the response file here
20912 instead of...
20913 (do_wait): ...here.
20914 (utils_cleanup): ...and here.
20915
20916 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
20917
20918 * df-scan.c: Don't include target-def.h.
20919 * targhooks.c: Likewise.
20920 * config/arm/arm-c.c: Likewise.
20921 * config/i386/i386-c.c: Likewise.
20922 * config/nds32/nds32-cost.c: Likewise.
20923 * config/nds32/nds32-fp-as-gp.c: Likewise.
20924 * config/nds32/nds32-intrinsic.c: Likewise.
20925 * config/nds32/nds32-isr.c: Likewise.
20926 * config/nds32/nds32-md-auxiliary.c: Likewise.
20927 * config/nds32/nds32-memory-manipulation.c: Likewise.
20928 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20929 * config/nds32/nds32-predicates.c: Likewise.
20930
20931 2015-06-23 Richard Biener <rguenther@suse.de>
20932
20933 PR tree-optimization/66636
20934 * tree-vect-stmts.c (vectorizable_store): Properly compute the
20935 def type for further defs for strided stores.
20936
20937 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
20938
20939 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
20940 conditional selects.
20941 (setcc_int<mode>, setcc_float<mode>): Reformat.
20942
20943 2015-06-23 Marek Polacek <polacek@redhat.com>
20944
20945 * match.pd ((x + y) - (x | y) -> x & y,
20946 (x + y) - (x & y) -> x | y): New patterns.
20947
20948 2015-06-23 Ludovic Courtès <ludo@gnu.org>
20949
20950 PR 65711
20951 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
20952 '-dynamic-linker' within %{!shared: ...}.
20953
20954 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
20955
20956 PR target/66560
20957 * config/i386/predicates.md (addsub_vm_operator): New predicate.
20958 (addsub_vs_operator): Ditto.
20959 (addsub_vs_parallel): Ditto.
20960 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
20961 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
20962 Put minus RTX before plus and adjust vec_merge selector.
20963 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
20964 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
20965 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
20966 (addsub vec_merge splitters): New combiner splitters.
20967 (addsub vec_select/vec_concat splitters): Ditto.
20968
20969 2015-06-23 Bin Cheng <bin.cheng@arm.com>
20970
20971 PR tree-optimization/66449
20972 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
20973 POINTER_PLUS_EXPR for pointers.
20974
20975 2015-06-23 Alan Modra <amodra@gmail.com>
20976
20977 * rtlanal.c (commutative_operand_precedence): Correct comments.
20978 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
20979 declaration. Return an int. Distinguish REG,REG return from
20980 others.
20981 (struct simplify_plus_minus_op_data): Make local to function.
20982 (simplify_plus_minus): Don't set canonicalized if merely sorting
20983 registers. Avoid packing ops if nothing changes. White space fixes.
20984
20985 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
20986
20987 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
20988 -fdump-ada-spec is passed but not if -fsyntax-only is.
20989
20990 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
20991
20992 PR bootstrap/63740
20993 * lra-lives.c (process_bb_lives): Check insn copying the same
20994 reload pseudo and don't create a copy for it.
20995
20996 2015-06-22 Tom de Vries <tom@codesourcery.com>
20997
20998 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
20999 for cond_stmt.
21000
21001 2015-06-22 Tom de Vries <tom@codesourcery.com>
21002
21003 * builtins.def (DEF_GOMP_BUILTIN): Test
21004 'flag_tree_parallelize_loops > 1' instead of
21005 'flag_tree_parallelize_loops'. Test flag_cilkplus.
21006
21007 2015-06-22 Tom de Vries <tom@codesourcery.com>
21008
21009 * dominance.c (calculate_dominance_info): Verify dominators if
21010 early-out.
21011
21012 2015-06-22 Marek Polacek <polacek@redhat.com>
21013
21014 * match.pd ((x ^ y) ^ (x | y) -> x & y,
21015 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
21016 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
21017 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
21018
21019 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
21020
21021 PR target/65871
21022 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
21023 cost of embedded comparison.
21024
21025 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21026
21027 PR target/65914
21028 * config/rs6000/predicates.md (altivec_register_operand): Permit
21029 virtual stack registers.
21030 (vsx_register_operand): Likewise.
21031 (vfloat_operand): Likewise.
21032 (vint_operand): Likewise.
21033 (vlogical_operand): Likewise.
21034
21035 2015-06-22 Richard Biener <rguenther@suse.de>
21036
21037 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
21038 and single_scalar_iteration_cost members.
21039 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
21040 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
21041 (vect_get_single_scalar_iteration_cost): Remove.
21042 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21043 Use LOOP_VINFO_SCALAR_ITERATION_COST.
21044 * tree-vect-loop.c (destroy_loop_vec_info): Free
21045 scalar_cost_vec.
21046 (vect_get_single_scalar_iteration_cost): Compute result into
21047 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
21048 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
21049 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
21050 (vect_estimate_min_profitable_iters): Use them.
21051
21052 2015-06-22 Christian Bruel <christian.bruel@st.com>
21053
21054 PR target/52144
21055 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
21056 (TARGET_INSERT_ATTRIBUTES): Define.
21057 (thumb_flipper): New var.
21058 * config/arm/arm.opt (-mflip-thumb): New switch.
21059
21060 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
21061 Martin Liska <mliska@suse.cz>
21062
21063 PR ipa/65908
21064 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
21065 construction of arg_types.
21066 (sem_function::sem_function): Likewise.
21067 (sem_function::~sem_function): Remove destruction of arg_types.
21068 (sem_function::compatible_parm_types_p): New function.
21069 (sem_function::equals_wpa): Reorg matching of return values
21070 and parameter types.
21071 (sem_function::equals_private): Reorg mathcing of argument types.
21072 (sem_function::parse_tree_args): Remove.
21073 * ipa-icf.h (init_wpa): Do not call it.
21074 (parse_tree_args): Remove.
21075 (compatible_parm_types_p): Declare.
21076 (result_type): Remove.
21077 (arg_types): Remove.
21078
21079 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
21080
21081 PR ipa/66351
21082 * ipa-polymorphic-call.c
21083 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
21084 initializing alias oracle; fix formating; set base_alias_set if it
21085 is known.
21086
21087 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
21088
21089 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
21090 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
21091 (find_inc): Likewise.
21092 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
21093 swapping.
21094 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
21095 * df-scan.c (df_swap_refs): Remove.
21096 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
21097 * dominance.c (link_roots): Use std::swap instead of manually swapping.
21098 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
21099 * fold-const.c (fold_relational_const): Likewise.
21100 * genattrtab.c (simplify_test_exp): Likewise.
21101 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
21102 gimple_simplify): Likewise.
21103 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
21104 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
21105 * ipa-devirt.c (add_type_duplicate): Likewise.
21106 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
21107 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
21108 * lra.c (lra_create_copy): Likewise.
21109 * lto-streamer-out.c (DFS::DFS): Likewise.
21110 * modulo-sched.c (get_sched_window): Likewise.
21111 * omega.c (omega_pretty_print_problem): Likewise.
21112 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
21113 * reload1.c (reloads_unique_chain_p): Likewise.
21114 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
21115 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
21116 use std::swap.
21117 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
21118 manually swapping.
21119 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
21120 predicate_mem_writes): Likewise.
21121 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
21122 * tree-predcom.c (combine_chains): Likewise.
21123 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
21124 refs_may_alias_p_1): Likewise.
21125 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
21126 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21127 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
21128 number_of_iterations_cond): Likewise.
21129 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21130 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
21131 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
21132 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
21133 * tree-vrp.c (extract_range_from_binary_expr_1,
21134 extract_range_from_unary_expr_1): Likewise.
21135
21136 2015-06-20 Marek Polacek <polacek@redhat.com>
21137
21138 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21139
21140 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
21141
21142 PR target/66591
21143 * config/sh/sh.c (prepare_move_operands): Replace subreg
21144 index term with R0 for base and index addressing.
21145
21146 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
21147
21148 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21149 op1 is an fp zero.
21150 (movsf_aarch64): Change condition from register_operand to
21151 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
21152 load1. Change type for alternative 7 to store1.
21153 (movdf_aarch64): Likewise.
21154
21155 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
21156
21157 * config/vax/vax.md: Adjust sign/zero extend patterns to
21158 handle SUBREGs in operands[1].
21159
21160 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21161
21162 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21163 of manually swapping.
21164 (expand_vec_perm_interleave2): Likewise.
21165
21166 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
21167
21168 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21169 reuse bounds created for abnormal ssa names.
21170
21171 2015-06-19 Jakub Jelinek <jakub@redhat.com>
21172
21173 * config/nvptx/nvptx.md (allocate_stack): Rename to...
21174 (allocate_stack_<mode>): ... this, and add :P on both
21175 match_operand and unspec.
21176 (allocate_stack): New expander.
21177
21178 2015-06-19 Christian Bruel <christian.bruel@st.com>
21179
21180 PR target/66541
21181 PR target/52144
21182 * config/arm/arm.c (arm_set_current_function): Handle
21183 explicit default options.
21184
21185 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21186
21187 * config/i386/i386.md (*movsicc_noc_zext): New insn.
21188 (zero-extended cmove with mem peephole2): New pattern.
21189 (cmove with mem peephole2): Merge patterns.
21190
21191 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
21192
21193 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21194
21195 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
21196
21197 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21198 * config/mips/mips.md (*madd4<mode>): Ditto.
21199 (*nmadd3<mode>) Ditto.
21200 (*nmadd4<mode>_fastmath): Ditto.
21201 (*nmadd3<mode>_fastmath): Ditto.
21202 (*nmsub4<mode>): Ditto.
21203 (*nmsub3<mode>): Ditto.
21204 (*nmsub4<mode>_fastmath): Ditto.
21205 (*nmsub3<mode>_fastmath): Ditto.
21206
21207 2015-06-18 Michael Matz <matz@suse.de>
21208
21209 PR middle-end/66253
21210 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21211 grouped strided stores.
21212 (vectorizable_load): Don't use the DR from first_stmt in
21213 the non-SLP grouped strided case.
21214
21215 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21216
21217 PR target/66569
21218 * function.c (assign_bounds): Add arguments assign_regs,
21219 assign_special, assign_bt.
21220 (assign_parms): For vararg functions handle bounds in BT
21221 and special slots after incoming vararg bounds.
21222
21223 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21224
21225 PR middle-end/66568
21226 * cfgexpand.c (expand_return): Handle missing bounds.
21227 (expand_gimple_stmt_1): Likewise.
21228 * tree-chkp.c (chkp_expand_zero_bounds): New.
21229 * tree-chkp.h (chkp_expand_zero_bounds): New.
21230
21231 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21232
21233 PR middle-end/66567
21234 * ipa-chkp.c (chkp_maybe_create_clone): Require
21235 functions to be instrumentable.
21236 * tree-chkp.c (chkp_replace_function_pointer): Use
21237 chkp_instrumentable_p instead of attribute check.
21238
21239 2015-06-18 Richard Biener <rguenther@suse.de>
21240
21241 PR tree-optimization/66510
21242 * tree-vect-stmts.c (vectorizable_load): Properly compute the
21243 number of vector loads for SLP permuted loads.
21244 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21245 check the stride for loop vectorization.
21246 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21247 vectorization factor.
21248 (vect_analyze_group_access): If the group size is not a power
21249 of two require a epilogue loop.
21250 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21251 compute and optimizing and alias test pruning after final
21252 vectorization factor computation.
21253 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21254 vector alignment.
21255 (vect_transform_slp_perm_load): Properly compute the original
21256 number of vector load stmts.
21257
21258 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21259
21260 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21261 "unlikely character , in @var" warning.
21262
21263 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
21264
21265 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21266 (ix86_function_arg_advance): Ditto.
21267 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
21268
21269 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21270
21271 * function.h (struct rtl_data): Remove struct and accessor macros.
21272 * emit-rtl.h (struct rtl_data): Relocate to here.
21273 * Makefile.in (GTFILES): Add emit-rtl.h.
21274 * df-core.c: Include emit-rtl.h.
21275 * genattrtab.c: Likewise.
21276 * genconditions.c: Likewise.
21277 * genpreds.c: Likewise.
21278 * genrecog.c: Likewise.
21279 * regcprop.c: Likewise.
21280 * resource.c: Likewise.
21281 * sched-rgn.c: Likewise.
21282 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21283 * config/i386/winnt.c: Likewise.
21284
21285 2015-06-17 Jakub Jelinek <jakub@redhat.com>
21286
21287 PR middle-end/66429
21288 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21289 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
21290 and has_force_vectorize_loops flags from cfun into
21291 child_cfun.
21292 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21293 if simduid is non-NULL.
21294 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21295 * passes.def (pass_simduid_cleanup): Add new pass after loop
21296 passes.
21297 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21298 indirection from htab argument's type.
21299 (shrink_simd_arrays): New function.
21300 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
21301 Don't call adjust_simduid_builtins if there are no loops.
21302 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21303 (pass_simduid_cleanup::execute): New method.
21304 (make_pass_simduid_cleanup): New function.
21305
21306 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
21307
21308 * tree-core.h (tree_target_option): Make opts field a pointer to a
21309 cl_target_option instead of an instance of the struct.
21310 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21311 the structure.
21312 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21313 TARGET_OPTION_NODE.
21314 (copy_node_stat): Allocate and copy struct cl_target_option.
21315
21316 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21317
21318 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21319 Remove conditional exposure of prototypes.
21320 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21321 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
21322 definitions in tree.h with functions.
21323 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21324 anon_aggrname_p.
21325 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21326
21327 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
21328
21329 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21330 (*cmp<mode>_signed): ... this.
21331 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21332 (*cmp<mode>_unsigned): ... this. Remove %b.
21333
21334 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21335
21336 * coretypes.h: Include input.h and as-a.h.
21337 * rtl.h: Include input.h and as-a.h for generator files.
21338 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21339 * vec.c: Don't include diagnostic-core.h.
21340 * alias.c: Do not include input.h, line-map.h or is-a.h.
21341 * asan.c: Likewise.
21342 * attribs.c: Likewise.
21343 * auto-inc-dec.c: Likewise.
21344 * auto-profile.c: Likewise.
21345 * bb-reorder.c: Likewise.
21346 * bt-load.c: Likewise.
21347 * builtins.c: Likewise.
21348 * caller-save.c: Likewise.
21349 * calls.c: Likewise.
21350 * ccmp.c: Likewise.
21351 * cfg.c: Likewise.
21352 * cfganal.c: Likewise.
21353 * cfgbuild.c: Likewise.
21354 * cfgcleanup.c: Likewise.
21355 * cfgexpand.c: Likewise.
21356 * cfghooks.c: Likewise.
21357 * cfgloop.c: Likewise.
21358 * cfgloop.h: Likewise.
21359 * cfgloopanal.c: Likewise.
21360 * cfgloopmanip.c: Likewise.
21361 * cfgrtl.c: Likewise.
21362 * cgraph.c: Likewise.
21363 * cgraphbuild.c: Likewise.
21364 * cgraphclones.c: Likewise.
21365 * cgraphunit.c: Likewise.
21366 * cilk-common.c: Likewise.
21367 * combine-stack-adj.c: Likewise.
21368 * combine.c: Likewise.
21369 * compare-elim.c: Likewise.
21370 * convert.c: Likewise.
21371 * coverage.c: Likewise.
21372 * cppbuiltin.c: Likewise.
21373 * cprop.c: Likewise.
21374 * cse.c: Likewise.
21375 * cselib.c: Likewise.
21376 * data-streamer-in.c: Likewise.
21377 * data-streamer-out.c: Likewise.
21378 * data-streamer.c: Likewise.
21379 * dbxout.c: Likewise.
21380 * dce.c: Likewise.
21381 * ddg.c: Likewise.
21382 * debug.c: Likewise.
21383 * df-core.c: Likewise.
21384 * df-problems.c: Likewise.
21385 * df-scan.c: Likewise.
21386 * df.h: Likewise.
21387 * dfp.c: Likewise.
21388 * diagnostic-core.h: Likewise.
21389 * diagnostic.c: Likewise.
21390 * dojump.c: Likewise.
21391 * dominance.c: Likewise.
21392 * domwalk.c: Likewise.
21393 * double-int.c: Likewise.
21394 * dse.c: Likewise.
21395 * dumpfile.c: Likewise.
21396 * dumpfile.h: Likewise.
21397 * dwarf2asm.c: Likewise.
21398 * dwarf2cfi.c: Likewise.
21399 * dwarf2out.c: Likewise.
21400 * emit-rtl.c: Likewise.
21401 * et-forest.c: Likewise.
21402 * except.c: Likewise.
21403 * explow.c: Likewise.
21404 * expmed.c: Likewise.
21405 * expr.c: Likewise.
21406 * final.c: Likewise.
21407 * fixed-value.c: Likewise.
21408 * fold-const.c: Likewise.
21409 * function.c: Likewise.
21410 * fwprop.c: Likewise.
21411 * gcc-plugin.h: Likewise.
21412 * gcse.c: Likewise.
21413 * generic-match-head.c: Likewise.
21414 * ggc-page.c: Likewise.
21415 * gimple-builder.c: Likewise.
21416 * gimple-expr.c: Likewise.
21417 * gimple-fold.c: Likewise.
21418 * gimple-iterator.c: Likewise.
21419 * gimple-low.c: Likewise.
21420 * gimple-match-head.c: Likewise.
21421 * gimple-pretty-print.c: Likewise.
21422 * gimple-ssa-isolate-paths.c: Likewise.
21423 * gimple-ssa-strength-reduction.c: Likewise.
21424 * gimple-streamer-in.c: Likewise.
21425 * gimple-streamer-out.c: Likewise.
21426 * gimple-streamer.h: Likewise.
21427 * gimple-walk.c: Likewise.
21428 * gimple.c: Likewise.
21429 * gimplify-me.c: Likewise.
21430 * gimplify.c: Likewise.
21431 * godump.c: Likewise.
21432 * graph.c: Likewise.
21433 * graphite-blocking.c: Likewise.
21434 * graphite-dependences.c: Likewise.
21435 * graphite-interchange.c: Likewise.
21436 * graphite-isl-ast-to-gimple.c: Likewise.
21437 * graphite-optimize-isl.c: Likewise.
21438 * graphite-poly.c: Likewise.
21439 * graphite-scop-detection.c: Likewise.
21440 * graphite-sese-to-poly.c: Likewise.
21441 * graphite.c: Likewise.
21442 * haifa-sched.c: Likewise.
21443 * hw-doloop.c: Likewise.
21444 * ifcvt.c: Likewise.
21445 * init-regs.c: Likewise.
21446 * input.c: Likewise.
21447 * internal-fn.c: Likewise.
21448 * ipa-chkp.c: Likewise.
21449 * ipa-comdats.c: Likewise.
21450 * ipa-cp.c: Likewise.
21451 * ipa-devirt.c: Likewise.
21452 * ipa-icf-gimple.c: Likewise.
21453 * ipa-icf.c: Likewise.
21454 * ipa-inline-analysis.c: Likewise.
21455 * ipa-inline-transform.c: Likewise.
21456 * ipa-inline.c: Likewise.
21457 * ipa-polymorphic-call.c: Likewise.
21458 * ipa-profile.c: Likewise.
21459 * ipa-prop.c: Likewise.
21460 * ipa-pure-const.c: Likewise.
21461 * ipa-ref.c: Likewise.
21462 * ipa-reference.c: Likewise.
21463 * ipa-split.c: Likewise.
21464 * ipa-utils.c: Likewise.
21465 * ipa-visibility.c: Likewise.
21466 * ipa.c: Likewise.
21467 * ira-build.c: Likewise.
21468 * ira-color.c: Likewise.
21469 * ira-conflicts.c: Likewise.
21470 * ira-costs.c: Likewise.
21471 * ira-emit.c: Likewise.
21472 * ira-lives.c: Likewise.
21473 * ira.c: Likewise.
21474 * jump.c: Likewise.
21475 * langhooks.c: Likewise.
21476 * lcm.c: Likewise.
21477 * loop-doloop.c: Likewise.
21478 * loop-init.c: Likewise.
21479 * loop-invariant.c: Likewise.
21480 * loop-iv.c: Likewise.
21481 * loop-unroll.c: Likewise.
21482 * lower-subreg.c: Likewise.
21483 * lra-assigns.c: Likewise.
21484 * lra-coalesce.c: Likewise.
21485 * lra-constraints.c: Likewise.
21486 * lra-eliminations.c: Likewise.
21487 * lra-lives.c: Likewise.
21488 * lra-remat.c: Likewise.
21489 * lra-spills.c: Likewise.
21490 * lra.c: Likewise.
21491 * lto-cgraph.c: Likewise.
21492 * lto-compress.c: Likewise.
21493 * lto-opts.c: Likewise.
21494 * lto-section-in.c: Likewise.
21495 * lto-section-out.c: Likewise.
21496 * lto-streamer-in.c: Likewise.
21497 * lto-streamer-out.c: Likewise.
21498 * lto-streamer.c: Likewise.
21499 * mcf.c: Likewise.
21500 * mode-switching.c: Likewise.
21501 * modulo-sched.c: Likewise.
21502 * omega.c: Likewise.
21503 * omp-low.c: Likewise.
21504 * optabs.c: Likewise.
21505 * opts-global.c: Likewise.
21506 * opts.h: Likewise.
21507 * passes.c: Likewise.
21508 * plugin.c: Likewise.
21509 * postreload-gcse.c: Likewise.
21510 * postreload.c: Likewise.
21511 * predict.c: Likewise.
21512 * pretty-print.h: Likewise.
21513 * print-rtl.c: Likewise.
21514 * print-tree.c: Likewise.
21515 * profile.c: Likewise.
21516 * real.c: Likewise.
21517 * realmpfr.c: Likewise.
21518 * recog.c: Likewise.
21519 * ree.c: Likewise.
21520 * reg-stack.c: Likewise.
21521 * regcprop.c: Likewise.
21522 * reginfo.c: Likewise.
21523 * regrename.c: Likewise.
21524 * regstat.c: Likewise.
21525 * reload.c: Likewise.
21526 * reload1.c: Likewise.
21527 * reorg.c: Likewise.
21528 * resource.c: Likewise.
21529 * rtl-chkp.c: Likewise.
21530 * rtl-error.c: Likewise.
21531 * rtlanal.c: Likewise.
21532 * rtlhooks.c: Likewise.
21533 * sanopt.c: Likewise.
21534 * sched-deps.c: Likewise.
21535 * sched-ebb.c: Likewise.
21536 * sched-rgn.c: Likewise.
21537 * sched-vis.c: Likewise.
21538 * sdbout.c: Likewise.
21539 * sel-sched-dump.c: Likewise.
21540 * sel-sched-ir.c: Likewise.
21541 * sel-sched.c: Likewise.
21542 * sese.c: Likewise.
21543 * shrink-wrap.c: Likewise.
21544 * simplify-rtx.c: Likewise.
21545 * stack-ptr-mod.c: Likewise.
21546 * statistics.c: Likewise.
21547 * stmt.c: Likewise.
21548 * stor-layout.c: Likewise.
21549 * store-motion.c: Likewise.
21550 * streamer-hooks.c: Likewise.
21551 * stringpool.c: Likewise.
21552 * symtab.c: Likewise.
21553 * target-globals.c: Likewise.
21554 * targhooks.c: Likewise.
21555 * toplev.c: Likewise.
21556 * tracer.c: Likewise.
21557 * trans-mem.c: Likewise.
21558 * tree-affine.c: Likewise.
21559 * tree-browser.c: Likewise.
21560 * tree-call-cdce.c: Likewise.
21561 * tree-cfg.c: Likewise.
21562 * tree-cfgcleanup.c: Likewise.
21563 * tree-chkp-opt.c: Likewise.
21564 * tree-chkp.c: Likewise.
21565 * tree-chrec.c: Likewise.
21566 * tree-complex.c: Likewise.
21567 * tree-data-ref.c: Likewise.
21568 * tree-dfa.c: Likewise.
21569 * tree-diagnostic.c: Likewise.
21570 * tree-dump.c: Likewise.
21571 * tree-eh.c: Likewise.
21572 * tree-emutls.c: Likewise.
21573 * tree-if-conv.c: Likewise.
21574 * tree-inline.c: Likewise.
21575 * tree-into-ssa.c: Likewise.
21576 * tree-iterator.c: Likewise.
21577 * tree-loop-distribution.c: Likewise.
21578 * tree-nested.c: Likewise.
21579 * tree-nrv.c: Likewise.
21580 * tree-object-size.c: Likewise.
21581 * tree-outof-ssa.c: Likewise.
21582 * tree-parloops.c: Likewise.
21583 * tree-phinodes.c: Likewise.
21584 * tree-predcom.c: Likewise.
21585 * tree-pretty-print.c: Likewise.
21586 * tree-profile.c: Likewise.
21587 * tree-scalar-evolution.c: Likewise.
21588 * tree-sra.c: Likewise.
21589 * tree-ssa-address.c: Likewise.
21590 * tree-ssa-alias.c: Likewise.
21591 * tree-ssa-ccp.c: Likewise.
21592 * tree-ssa-coalesce.c: Likewise.
21593 * tree-ssa-copy.c: Likewise.
21594 * tree-ssa-copyrename.c: Likewise.
21595 * tree-ssa-dce.c: Likewise.
21596 * tree-ssa-dom.c: Likewise.
21597 * tree-ssa-dse.c: Likewise.
21598 * tree-ssa-forwprop.c: Likewise.
21599 * tree-ssa-ifcombine.c: Likewise.
21600 * tree-ssa-live.c: Likewise.
21601 * tree-ssa-loop-ch.c: Likewise.
21602 * tree-ssa-loop-im.c: Likewise.
21603 * tree-ssa-loop-ivcanon.c: Likewise.
21604 * tree-ssa-loop-ivopts.c: Likewise.
21605 * tree-ssa-loop-manip.c: Likewise.
21606 * tree-ssa-loop-niter.c: Likewise.
21607 * tree-ssa-loop-prefetch.c: Likewise.
21608 * tree-ssa-loop-unswitch.c: Likewise.
21609 * tree-ssa-loop.c: Likewise.
21610 * tree-ssa-math-opts.c: Likewise.
21611 * tree-ssa-operands.c: Likewise.
21612 * tree-ssa-phiopt.c: Likewise.
21613 * tree-ssa-phiprop.c: Likewise.
21614 * tree-ssa-pre.c: Likewise.
21615 * tree-ssa-propagate.c: Likewise.
21616 * tree-ssa-reassoc.c: Likewise.
21617 * tree-ssa-sccvn.c: Likewise.
21618 * tree-ssa-scopedtables.c: Likewise.
21619 * tree-ssa-sink.c: Likewise.
21620 * tree-ssa-strlen.c: Likewise.
21621 * tree-ssa-structalias.c: Likewise.
21622 * tree-ssa-tail-merge.c: Likewise.
21623 * tree-ssa-ter.c: Likewise.
21624 * tree-ssa-threadedge.c: Likewise.
21625 * tree-ssa-threadupdate.c: Likewise.
21626 * tree-ssa-uncprop.c: Likewise.
21627 * tree-ssa-uninit.c: Likewise.
21628 * tree-ssa.c: Likewise.
21629 * tree-ssanames.c: Likewise.
21630 * tree-stdarg.c: Likewise.
21631 * tree-streamer-in.c: Likewise.
21632 * tree-streamer-out.c: Likewise.
21633 * tree-streamer.c: Likewise.
21634 * tree-switch-conversion.c: Likewise.
21635 * tree-tailcall.c: Likewise.
21636 * tree-vect-data-refs.c: Likewise.
21637 * tree-vect-generic.c: Likewise.
21638 * tree-vect-loop-manip.c: Likewise.
21639 * tree-vect-loop.c: Likewise.
21640 * tree-vect-patterns.c: Likewise.
21641 * tree-vect-slp.c: Likewise.
21642 * tree-vect-stmts.c: Likewise.
21643 * tree-vectorizer.c: Likewise.
21644 * tree-vrp.c: Likewise.
21645 * tree.c: Likewise.
21646 * tsan.c: Likewise.
21647 * ubsan.c: Likewise.
21648 * valtrack.c: Likewise.
21649 * value-prof.c: Likewise.
21650 * var-tracking.c: Likewise.
21651 * varasm.c: Likewise.
21652 * varpool.c: Likewise.
21653 * vmsdbgout.c: Likewise.
21654 * vtable-verify.c: Likewise.
21655 * web.c: Likewise.
21656 * wide-int.cc: Likewise.
21657 * xcoffout.c: Likewise.
21658 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21659 * common/common-targhooks.c: Likewise.
21660 * config/aarch64/aarch64-builtins.c: Likewise.
21661 * config/aarch64/aarch64.c: Likewise.
21662 * config/alpha/alpha.c: Likewise.
21663 * config/arc/arc.c: Likewise.
21664 * config/arm/aarch-common.c: Likewise.
21665 * config/arm/arm-builtins.c: Likewise.
21666 * config/arm/arm-c.c: Likewise.
21667 * config/arm/arm.c: Likewise.
21668 * config/avr/avr-c.c: Likewise.
21669 * config/avr/avr-log.c: Likewise.
21670 * config/avr/avr.c: Likewise.
21671 * config/bfin/bfin.c: Likewise.
21672 * config/c6x/c6x.c: Likewise.
21673 * config/cr16/cr16.c: Likewise.
21674 * config/cris/cris.c: Likewise.
21675 * config/darwin-c.c: Likewise.
21676 * config/darwin.c: Likewise.
21677 * config/default-c.c: Likewise.
21678 * config/epiphany/epiphany.c: Likewise.
21679 * config/epiphany/mode-switch-use.c: Likewise.
21680 * config/epiphany/resolve-sw-modes.c: Likewise.
21681 * config/fr30/fr30.c: Likewise.
21682 * config/frv/frv.c: Likewise.
21683 * config/ft32/ft32.c: Likewise.
21684 * config/glibc-c.c: Likewise.
21685 * config/h8300/h8300.c: Likewise.
21686 * config/i386/i386-c.c: Likewise.
21687 * config/i386/i386.c: Likewise.
21688 * config/i386/msformat-c.c: Likewise.
21689 * config/i386/winnt-cxx.c: Likewise.
21690 * config/i386/winnt-stubs.c: Likewise.
21691 * config/i386/winnt.c: Likewise.
21692 * config/ia64/ia64-c.c: Likewise.
21693 * config/ia64/ia64.c: Likewise.
21694 * config/iq2000/iq2000.c: Likewise.
21695 * config/lm32/lm32.c: Likewise.
21696 * config/m32c/m32c-pragma.c: Likewise.
21697 * config/m32c/m32c.c: Likewise.
21698 * config/m32r/m32r.c: Likewise.
21699 * config/m68k/m68k.c: Likewise.
21700 * config/mcore/mcore.c: Likewise.
21701 * config/mep/mep-pragma.c: Likewise.
21702 * config/mep/mep.c: Likewise.
21703 * config/microblaze/microblaze-c.c: Likewise.
21704 * config/microblaze/microblaze.c: Likewise.
21705 * config/mips/mips.c: Likewise.
21706 * config/mmix/mmix.c: Likewise.
21707 * config/mn10300/mn10300.c: Likewise.
21708 * config/moxie/moxie.c: Likewise.
21709 * config/msp430/msp430-c.c: Likewise.
21710 * config/msp430/msp430.c: Likewise.
21711 * config/nds32/nds32-cost.c: Likewise.
21712 * config/nds32/nds32-fp-as-gp.c: Likewise.
21713 * config/nds32/nds32-intrinsic.c: Likewise.
21714 * config/nds32/nds32-isr.c: Likewise.
21715 * config/nds32/nds32-md-auxiliary.c: Likewise.
21716 * config/nds32/nds32-memory-manipulation.c: Likewise.
21717 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21718 * config/nds32/nds32-predicates.c: Likewise.
21719 * config/nds32/nds32.c: Likewise.
21720 * config/nios2/nios2.c: Likewise.
21721 * config/nvptx/nvptx.c: Likewise.
21722 * config/pa/pa.c: Likewise.
21723 * config/pdp11/pdp11.c: Likewise.
21724 * config/rl78/rl78-c.c: Likewise.
21725 * config/rl78/rl78.c: Likewise.
21726 * config/rs6000/rs6000-c.c: Likewise.
21727 * config/rs6000/rs6000.c: Likewise.
21728 * config/rx/rx.c: Likewise.
21729 * config/s390/s390-c.c: Likewise.
21730 * config/s390/s390.c: Likewise.
21731 * config/sh/sh-c.c: Likewise.
21732 * config/sh/sh-mem.cc: Likewise.
21733 * config/sh/sh.c: Likewise.
21734 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21735 * config/sh/sh_treg_combine.cc: Likewise.
21736 * config/sol2-c.c: Likewise.
21737 * config/sol2-cxx.c: Likewise.
21738 * config/sol2-stubs.c: Likewise.
21739 * config/sol2.c: Likewise.
21740 * config/sparc/sparc-c.c: Likewise.
21741 * config/sparc/sparc.c: Likewise.
21742 * config/spu/spu-c.c: Likewise.
21743 * config/spu/spu.c: Likewise.
21744 * config/stormy16/stormy16.c: Likewise.
21745 * config/tilegx/mul-tables.c: Likewise.
21746 * config/tilegx/tilegx-c.c: Likewise.
21747 * config/tilegx/tilegx.c: Likewise.
21748 * config/tilepro/mul-tables.c: Likewise.
21749 * config/tilepro/tilepro-c.c: Likewise.
21750 * config/tilepro/tilepro.c: Likewise.
21751 * config/v850/v850-c.c: Likewise.
21752 * config/v850/v850.c: Likewise.
21753 * config/vax/vax.c: Likewise.
21754 * config/visium/visium.c: Likewise.
21755 * config/vms/vms-c.c: Likewise.
21756 * config/vms/vms.c: Likewise.
21757 * config/vxworks.c: Likewise.
21758 * config/winnt-c.c: Likewise.
21759 * config/xtensa/xtensa.c: Likewise.
21760
21761 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
21762
21763 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
21764 function.
21765 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
21766
21767 2015-06-17 Richard Biener <rguenther@suse.de>
21768
21769 PR tree-optimization/66251
21770 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
21771 stmts for SLP strided stores.
21772
21773 Revert
21774 2015-05-22 Richard Biener <rguenther@suse.de>
21775
21776 PR tree-optimization/66251
21777 * tree-vect-stmts.c (vectorizable_conversion): Properly
21778 set STMT_VINFO_VEC_STMT even for the SLP case.
21779
21780 2015-05-26 Michael Matz <matz@suse.de>
21781
21782 PR middle-end/66251
21783 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
21784 STMT_VINFO_VEC_STMT, also with SLP.
21785
21786 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
21787
21788 PR target/56766
21789 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
21790 (*avx_addsubv4df3_1s): Ditto.
21791 (*sse3_addsubv2df3_1): Ditto.
21792 (*sse3_addsubv2df3_1s): Ditto.
21793 (*avx_addsubv8sf3_1): Ditto.
21794 (*avx_addsubv8sf3_1s): Ditto.
21795 (*sse3_addsubv4sf3_1): Ditto.
21796 (*sse3_addsubv4sf3_1s): Ditto.
21797
21798 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
21799
21800 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
21801 (SYSROOT_SUFFIX_SPEC): Update.
21802 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
21803 (STARTFILE_PREFIX_SPEC): Update.
21804 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
21805 (MULTILIB_REQUIRED): New.
21806 (MULTILIB_OSDIRNAMES): New.
21807 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
21808 (MULTILIB_REQUIRED): New.
21809 (MULTILIB_OSDIRNAMES): New.
21810
21811 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
21812
21813 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
21814 * config/aarch64/aarch64-options-extensions.def: Update "fP",
21815 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
21816 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
21817 (AARCH64_FL_PAN): New.
21818 (AARCH64_FL_LOR): New.
21819 (AARCH64_FL_RDMA): New.
21820 (AARCH64_FL_FOR_ARCH8_1): New.
21821 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
21822 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
21823
21824 2015-06-16 Martin Liska <mliska@suse.cz>
21825
21826 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
21827 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
21828 guard.
21829
21830 2015-06-16 Richard Biener <rguenther@suse.de>
21831
21832 * tree-vect-stmts.c (vectorizable_store): Adjust.
21833 (vectorizable_load): Likewise.
21834 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21835 Simplify.
21836 (vect_create_data_ref_ptr): Likewise.
21837 (bump_vector_ptr): Adjust.
21838
21839 2015-06-16 Richard Biener <rguenther@suse.de>
21840
21841 * tree-vect-stmts.c (vectorizable_load): Properly start loads
21842 with the first element if this is grouped loads.
21843
21844 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
21845
21846 * config/arm/arm-protos.h (struct tune_params): Rename
21847 log_op_non_sc to log_op_non_short_circuit, and rename enum
21848 values to expand SC to SHORT_CIRCUIT.
21849 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
21850 to LOG_OP_NON_SHORT_CIRCUIT.
21851 (arm_fastmul_tune):Likewise
21852 (arm_strongarm_tune): Likewise.
21853 (arm_xscale_tune): Likewise.
21854 (arm_9e_tune): Likewise.
21855 (arm_marvell_pj4_tune): Likewise.
21856 (arm_v6t2_tune): Likewise.
21857 (arm_cortex_tune): Likewise.
21858 (arm_cortex_a8_tune): Likewise.
21859 (arm_cortex_a7_tune): Likewise.
21860 (arm_cortex_a15_tune): Likewise.
21861 (arm_cortex_a53_tune): Likewise.
21862 (arm_cortex_a57_tune): Likewise.
21863 (arm_xgene1_tune): Likewise.
21864 (arm_cortex_a5_tune): Likewise.
21865 (arm_cortex_a9_tune): Likewise.
21866 (arm_cortex_a12_tune): Likewise.
21867 (arm_v7m_tune): Likewise.
21868 (arm_cortex_m7_tune): Likewise.
21869 (arm_v6m_tune): Likewise.
21870 (arm_fa726te_tune): Likewise.
21871
21872 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
21873
21874 * altivec.md: Delete UNSPEC_VMLADDUHM.
21875 (mulv4si3_p8): New pattern.
21876 (mulv4si3): Use it for POWER8.
21877 (mulv8hi3): Use vmladduhm with zero addend.
21878 (altivec_vmladduhm): Descriptive RTL.
21879
21880 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
21881
21882 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
21883 to use neon_move instead of mov_imm.
21884 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
21885 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
21886
21887 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
21888 aarch64_float_const_zero_rtx_p check before TFmode check.
21889 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
21890 an fp zero.
21891 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
21892 code and attributes to match. Change condition from register_operand
21893 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
21894 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
21895 to store2.
21896
21897 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
21898
21899 PR debug/66535
21900 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
21901 there is no parent.
21902
21903 2015-06-14 Shiva Chen <shiva0217@gmail.com>
21904
21905 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
21906 HOST_WIDE_INT parameter.
21907
21908 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
21909
21910 PR ipa/66181
21911 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
21912 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
21913 TYPE_NO_FORCE_BLK.
21914 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
21915
21916 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
21917
21918 * rtl.h (classify_insn): Declare.
21919 * emit-rtl.c (classify_insn): Move to...
21920 * rtl.c: ...here and add generator support.
21921 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
21922 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
21923 * genemit.c (gen_emit_seq): New function.
21924 (gen_expand, gen_split): Use it.
21925
21926 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
21927
21928 * tree.c (make_vector_stat): Fix comment to state that the
21929 function returns a VECTOR_CST.
21930
21931 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
21932
21933 * gensupport.h (add_implicit_parallel): Declare.
21934 * genrecog.c (add_implicit_parallel): Move to...
21935 * gensupport.c (add_implicit_parallel): ...here.
21936 (process_one_cond_exec): Use it.
21937 * genemit.c (gen_insn): Likewise.
21938
21939 2015-06-13 Iain Sandoe <iain@codesourcery.com>
21940
21941 PR bootstrap/66448
21942 * passes.c (rest_of_decl_compilation): Do not register globals for
21943 early debug if they are declared in built-ins.
21944
21945 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
21946
21947 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
21948
21949 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21950
21951 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
21952 manually swapping.
21953 (noce_try_cmove_arith): Likewise.
21954 (noce_get_alt_condition): Likewise.
21955
21956 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21957
21958 * common/config/i386/i386-common.c
21959 (OPTION_MASK_ISA_MWAITX_SET): New.
21960 (ix86_handle_option): Handle mwaitx.
21961 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
21962 (x86_64-*-*): Likewise.
21963 * config/i386/mwaitxintrin.h: New header.
21964 * config/i386/cpuid.h (bit_MWAITX): Define.
21965 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21966 MWAITX support.
21967 * config/i386/i386.opt (mwaitx): New.
21968 * config/i386/i386-builtin-types.def
21969 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
21970 * config/i386/i386-c.c: Define __MWAITX__ if needed.
21971 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
21972 (PTA_MWAITX): New.
21973 (ix86_option_override_internal): Handle new option.
21974 (processor_alias_table): Added PTA_MWAITX.
21975 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
21976 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
21977 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
21978 IX86_BUILTIN_MONITORX built-ins.
21979 * config/i386/i386.h (TARGET_MWAITX): New.
21980 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
21981 UNSPEC_MONITORX.
21982 (mwaitx): New pattern.
21983 (monitorx_<mode>): New pattern.
21984 * config/i386/x86intrin.h: Include mwaitxintrin.h.
21985 * doc/extend.texi: Document monitorx and mwaitx builtins.
21986 * doc/invoke.texi: Document -mmwaitx option.
21987
21988 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
21989
21990 * emit-rtl.c (need_atomic_barrier_p): Mask model with
21991 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
21992
21993 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21994
21995 * dbxout.c (xcoff_debug_hooks): Provide a function for
21996 register_main_translation_unit hook.
21997
21998 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
21999
22000 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
22001 variants cases from switch.
22002 (rs6000_post_atomic_barrier): Same.
22003 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
22004 (rs6000_expand_atomic_exchange): Same.
22005 (rs6000_expand_atomic_op): Same.
22006 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
22007 SYNC variants cases from switch.
22008 (atomic_load): Same.
22009 (atomic_store): Same.
22010
22011 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
22012
22013 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
22014 CONST_INT for goto.
22015
22016 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
22017
22018 PR bootstrap/66448
22019 * dwarf2out.c (check_die): Check for common duplicate attributes.
22020 (add_location_or_const_value_attribute): Do not add duplicate
22021 attributes.
22022 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
22023 time around.
22024 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
22025 (gen_type_die_with_usage): Call check_die.
22026 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
22027
22028 2015-06-11 Jason Merrill <jason@redhat.com>
22029
22030 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
22031 dies.
22032
22033 2015-06-11 Marek Polacek <polacek@redhat.com>
22034
22035 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
22036
22037 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
22038
22039 PR bootstrap/66252
22040 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
22041 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
22042 (*addx_extend_sp32): Fix pasto.
22043 (*subx_extend): Rename into...
22044 (*subx_extend_sp32): ...this.
22045 (*adddi3_extend_sp32): Add earlyclobber.
22046 (*subdi3_insn_sp32): Likewise.
22047 (*subdi3_extend_sp32): Likewise.
22048 (*and_not_di_sp32): Likewise.
22049 (*or_not_di_sp32): Likewise.
22050 (*xor_not_di_sp32): Likewise.
22051 (*negdi2_sp32): Likewise.
22052 (*one_cmpldi2_sp32): Likewise.
22053
22054 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
22055
22056 * debug.h (struct gcc_debug_hooks): Add a
22057 register_main_translation_unit hook.
22058 * debug.c (do_nothing_debug_hooks): Provide a function for this
22059 new hook.
22060 * dbxout.c (dbx_debug_hooks): Likewise.
22061 * sdbout.c (sdb_debug_hooks): Likewise.
22062 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22063 * dwarf2out.c (main_translation_unit): New global variable.
22064 (dwarf2out_register_main_translation_unit): New function
22065 implementing the new hook.
22066 (dwarf2_debug_hooks): Assign
22067 dwarf2out_register_main_translation_unit to this new hook.
22068 (dwarf2out_init): Associate any main translation unit to
22069 comp_unit_die ().
22070
22071 2015-06-11 Marek Polacek <polacek@redhat.com>
22072
22073 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
22074
22075 2015-06-11 Marek Polacek <polacek@redhat.com>
22076
22077 * match.pd: Use single_use throughout.
22078
22079 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22080
22081 * config/arm/arm.c (arm_option_params_internal): When optimising
22082 for speed set max_insns_skipped when arm_restrict_it.
22083
22084 2015-06-11 Christian Bruel <christian.bruel@st.com>
22085
22086 PR target/52144
22087 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
22088 macros in ...
22089 (arm_cpu_builtins): New function.
22090 (arm_pragma_target_parse): Call arm_cpu_builtins.
22091 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
22092 (arm_register_target_pragmas): Likewise.
22093 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
22094 Call arm_register_target_pragmas.
22095 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
22096 (arm_pragma_target_parse): Likewise.
22097
22098 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
22099
22100 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
22101 of the second operand.
22102
22103 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
22104
22105 PR target/66473
22106 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
22107 to prepare mask operand for AVX512 modes.
22108
22109 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22110
22111 PR target/66474
22112 * doc/md.texi (Machine Constraints): Document that on the PowerPC
22113 if you use a constraint that targets a VSX register, you must use
22114 %x<n> in the template.
22115
22116 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
22117
22118 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
22119 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
22120 (define_insn "trap"): New definition.
22121
22122 2015-06-10 Richard Biener <rguenther@suse.de>
22123
22124 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
22125 out from ...
22126 (vect_supported_load_permutation_p): ... here. Handle
22127 supportable permutations in reductions.
22128 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
22129 for vectorizing strided group loads.
22130
22131 2015-06-10 Jakub Jelinek <jakub@redhat.com>
22132
22133 PR target/66470
22134 * config/i386/i386.c (ix86_split_long_move): For collisions
22135 involving direct tls segment refs, move the UNSPEC_TP possibly
22136 wrapped in ZERO_EXTEND out of the address for lea, to each of
22137 the memory loads.
22138
22139 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22140
22141 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22142 dmb sy. Adjust tabs.
22143
22144 2015-06-10 Tom de Vries <tom@codesourcery.com>
22145
22146 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22147
22148 2015-06-10 Martin Liska <mliska@suse.cz>
22149
22150 PR bootstrap/66471
22151 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22152 all enum values in mem_alloc_origin.
22153 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22154 name.
22155 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22156 * bitmap.c (bitmap_register): Likewise.
22157 (dump_bitmap_statistics): Likewise.
22158 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22159 (ggc_record_overhead): Likewise.
22160 * hash-map.h: Likewise.
22161 * hash-set.h: Likewise.
22162 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22163 * hash-table.h: Likewise.
22164 * vec.c (vec_prefix::register_overhead): Likewise.
22165 (vec_prefix::release_overhead): Likewise.
22166 (dump_vec_loc_statistics): Likewise.
22167
22168 2015-06-09 Christian Bruel <christian.bruel@st.com>
22169
22170 PR target/52144
22171 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22172 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22173 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22174 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22175 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22176 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22177 (arm_valid_target_attribute_p): Likewise.
22178 (arm_set_current_function, arm_can_inline_p): Likewise.
22179 (arm_valid_target_attribute_rec): Likewise.
22180 (arm_previous_fndecl): New variable.
22181 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22182 (TARGET_CAN_INLINE_P): Define.
22183 (arm_asm_trampoline_template): Emit mode.
22184 (arm_file_start): Don't set unified syntax.
22185 (arm_declare_function_name): Set unified syntax and mode.
22186 (arm_option_override): Init target_option_default_node.
22187 and target_option_current_node.
22188 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22189 (*call_symbol): Likewise.
22190 * doc/extend.texi: Document ARM/Thumb target attribute.
22191 * doc/invoke.texi: Likewise.
22192
22193 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22194
22195 Revert:
22196 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22197 PR rtl-optimization/64164
22198 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22199 * tree-ssa-copyrename.c: Removed.
22200 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22201 -ftree-coalesce-vars.
22202 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22203 * common.opt (ftree-copyrename): Ignore.
22204 (ftree-coalesce-inlined-vars): Likewise.
22205 * doc/invoke.texi: Remove the ignored options above.
22206 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22207 * tree-ssa-coalesce.h: ... here.
22208 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22209 headers required by it.
22210 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22211 across variables when flag_tree_coalesce_vars. Check register
22212 use and promoted modes to allow coalescing. Moved to
22213 tree-ssa-coalesce.c.
22214 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22215 with its member functions to tree-ssa-coalesce.c.
22216 (var_map_base_init): Likewise. Renamed to
22217 compute_samebase_partition_bases.
22218 (partition_view_normal): Drop want_bases parameter.
22219 (partition_view_bitmap): Likewise.
22220 * tree-ssa-live.h: Adjust declarations.
22221 * tree-ssa-coalesce.c: Include explow.h.
22222 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22223 default defs at the entry point.
22224 (dump_part_var_map): New.
22225 (compute_optimized_partition_bases): New, called by...
22226 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22227 of compute_samebase_partition_bases. Adjust.
22228 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22229 * cfgexpand.c (leader_merge): New.
22230 (get_rtl_for_parm_ssa_default_def): New.
22231 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22232 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22233 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22234 redundant MEM attr setting.
22235 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22236 from...
22237 (expand_one_stack_var): ... this. New wrapper to check and
22238 skip already expanded SSA partitions.
22239 (record_alignment_for_reg_var): New, factored out of...
22240 (expand_one_var): ... this.
22241 (expand_one_ssa_partition): New.
22242 (adjust_one_expanded_partition_var): New.
22243 (expand_one_register_var): Check and skip already expanded SSA
22244 partitions.
22245 (expand_used_vars): Don't create DECLs for anonymous SSA
22246 names. Expand all SSA partitions, then adjust all SSA names.
22247 (pass::execute): Replace the loops that set
22248 SA.partition_to_pseudo from partition leaders and cleared
22249 DECL_RTL for multi-location variables, and that which used to
22250 rename vars and set attrs, with one that clears DECL_RTL and
22251 checks that PARMs and RESULTs default_defs match DECL_RTL.
22252 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22253 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22254 * explow.c (promote_ssa_mode): New.
22255 * explow.h (promote_ssa_mode): Declare.
22256 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22257 * function.c: Include cfgexpand.h.
22258 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22259 (use_register_for_parm_decl): Wrapper for the above to
22260 special-case the result_ptr.
22261 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22262 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22263 multiple locations.
22264 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22265 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22266 (assign_parm_setup_block): Prefer SSA-assigned location.
22267 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22268 if stack_parm is NULL.
22269 (assign_parm_setup_stack): Prefer SSA-assigned location.
22270 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22271 rtl before testing for pointer bounds. Special-case result_ptr.
22272 (expand_function_start): Maybe reset DECL_RTL of result.
22273 Prefer SSA-assigned location for result and static chain.
22274 Factor out DECL_RESULT and SET_DECL_RTL.
22275 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22276 anonymous SSA names. Use promote_ssa_mode.
22277 (get_temp_reg): Likewise.
22278 (remove_ssa_form): Adjust.
22279 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22280 and get its reg_usage for reg invalidation.
22281 (compute_bb_dataflow): Pass it insn.
22282 (emit_notes_in_bb): Likewise.
22283 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22284 fail assert on conversion between unsigned types.
22285
22286 2015-06-09 Tom de Vries <tom@codesourcery.com>
22287
22288 PR tree-optimization/65460
22289 * omp-low.c (expand_omp_target): Set parallelized_function on
22290 cgraph_node for child_fn.
22291
22292 2015-06-09 Tom de Vries <tom@codesourcery.com>
22293
22294 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22295 parallelized_function before add_new_function.
22296
22297 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
22298
22299 * gcc-plugin.h: Move decls to plugin.h and include it.
22300 * plugin.h: Relocate decls from gcc-plugin.h
22301 * ggc-page.c: Include required header files.
22302 * passes.c: Likewise.
22303 * cgraphunit.c: Likewise.
22304
22305 2015-06-09 Tom de Vries <tom@codesourcery.com>
22306
22307 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22308
22309 2015-06-09 Jason Merrill <jason@redhat.com>
22310
22311 PR bootstrap/66448
22312 * toplev.c (check_global_declaration): Don't warn about a clone.
22313
22314 2015-06-09 Marek Polacek <polacek@redhat.com>
22315
22316 PR tree-optimization/66299
22317 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22318 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22319 patterns.
22320
22321 2015-06-09 Richard Biener <rguenther@suse.de>
22322
22323 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22324 (vect_analyze_slp_instance): Instead do not falsely drop
22325 load permutations.
22326
22327 2015-06-09 Richard Biener <rguenther@suse.de>
22328
22329 PR middle-end/66423
22330 * match.pd: Handle A % (unsigned)(1 << B).
22331
22332 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
22333
22334 * varasm.c (output_object_block_htab): Remove.
22335 (output_object_block_compare): New.
22336 (output_object_blocks): Sort named object_blocks before outputting
22337 them.
22338
22339 2015-06-09 Richard Biener <rguenther@suse.de>
22340
22341 PR tree-optimization/66419
22342 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22343 consider GROUP_GAP when detecting a perfect subchain.
22344
22345 2015-06-09 Nick Clifton <nickc@redhat.com>
22346
22347 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22348 place read only data in the .frodata section.
22349
22350 2015-06-09 Shiva Chen <shiva0217@gmail.com>
22351
22352 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22353 (atomic_store<mode>): Likewise.
22354
22355 2015-06-09 Richard Biener <rguenther@suse.de>
22356
22357 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22358
22359 2015-06-09 Richard Biener <rguenther@suse.de>
22360
22361 PR middle-end/66413
22362 * tree-inline.c (insert_init_debug_bind): Unshare value.
22363
22364 2015-06-09 Richard Biener <rguenther@suse.de>
22365
22366 PR tree-optimization/66396
22367 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22368 Rename virtual operands.
22369
22370 2015-06-09 Tom de Vries <tom@codesourcery.com>
22371
22372 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22373 always return false.
22374
22375 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22376
22377 PR rtl-optimization/64164
22378 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22379 * tree-ssa-copyrename.c: Removed.
22380 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22381 -ftree-coalesce-vars.
22382 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22383 * common.opt (ftree-copyrename): Ignore.
22384 (ftree-coalesce-inlined-vars): Likewise.
22385 * doc/invoke.texi: Remove the ignored options above.
22386 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22387 * tree-ssa-coalesce.h: ... here.
22388 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22389 headers required by it.
22390 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22391 across variables when flag_tree_coalesce_vars. Check register
22392 use and promoted modes to allow coalescing. Moved to
22393 tree-ssa-coalesce.c.
22394 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22395 with its member functions to tree-ssa-coalesce.c.
22396 (var_map_base_init): Likewise. Renamed to
22397 compute_samebase_partition_bases.
22398 (partition_view_normal): Drop want_bases parameter.
22399 (partition_view_bitmap): Likewise.
22400 * tree-ssa-live.h: Adjust declarations.
22401 * tree-ssa-coalesce.c: Include explow.h.
22402 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22403 default defs at the entry point.
22404 (dump_part_var_map): New.
22405 (compute_optimized_partition_bases): New, called by...
22406 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22407 of compute_samebase_partition_bases. Adjust.
22408 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22409 * cfgexpand.c (leader_merge): New.
22410 (get_rtl_for_parm_ssa_default_def): New.
22411 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22412 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22413 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22414 redundant MEM attr setting.
22415 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22416 from...
22417 (expand_one_stack_var): ... this. New wrapper to check and
22418 skip already expanded SSA partitions.
22419 (record_alignment_for_reg_var): New, factored out of...
22420 (expand_one_var): ... this.
22421 (expand_one_ssa_partition): New.
22422 (adjust_one_expanded_partition_var): New.
22423 (expand_one_register_var): Check and skip already expanded SSA
22424 partitions.
22425 (expand_used_vars): Don't create DECLs for anonymous SSA
22426 names. Expand all SSA partitions, then adjust all SSA names.
22427 (pass::execute): Replace the loops that set
22428 SA.partition_to_pseudo from partition leaders and cleared
22429 DECL_RTL for multi-location variables, and that which used to
22430 rename vars and set attrs, with one that clears DECL_RTL and
22431 checks that PARMs and RESULTs default_defs match DECL_RTL.
22432 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22433 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22434 * explow.c (promote_ssa_mode): New.
22435 * explow.h (promote_ssa_mode): Declare.
22436 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22437 * function.c: Include cfgexpand.h.
22438 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22439 (use_register_for_parm_decl): Wrapper for the above to
22440 special-case the result_ptr.
22441 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22442 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22443 multiple locations.
22444 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22445 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22446 (assign_parm_setup_block): Prefer SSA-assigned location.
22447 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22448 if stack_parm is NULL.
22449 (assign_parm_setup_stack): Prefer SSA-assigned location.
22450 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22451 rtl before testing for pointer bounds. Special-case result_ptr.
22452 (expand_function_start): Maybe reset DECL_RTL of result.
22453 Prefer SSA-assigned location for result and static chain.
22454 Factor out DECL_RESULT and SET_DECL_RTL.
22455 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22456 anonymous SSA names. Use promote_ssa_mode.
22457 (get_temp_reg): Likewise.
22458 (remove_ssa_form): Adjust.
22459 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22460 and get its reg_usage for reg invalidation.
22461 (compute_bb_dataflow): Pass it insn.
22462 (emit_notes_in_bb): Likewise.
22463 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22464 fail assert on conversion between unsigned types.
22465
22466 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22467
22468 PR debug/58315
22469 * tree-inline.c (reset_debug_binding): New.
22470 (reset_debug_bindings): Likewise.
22471 (expand_call_inline): Call it.
22472
22473 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22474
22475 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22476 TYPE_STRING_FLAG.
22477
22478 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22479
22480 * lto-streamer-out.c (lto_output_location): Stream
22481 reserved locations correctly.
22482 * lto-streamer-in.c (lto_output_location): Likewise.
22483
22484 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
22485
22486 * coretypes.h: Include hash-table.h and hash-set.h for host files.
22487 * ggc.h: Don't include statistics.h>
22488 * hash-map.h: Remove all includes.
22489 * hash-set.h: Likewise.
22490 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22491 the include list. Remove <new>.
22492 * inchash.h: Remove all includes.
22493 * mem-stats.h: Likewise.
22494 * vec.h: No special processing for generators or ggc.
22495 * alias.c : Adjust include files.
22496 * alloc-pool.c : Likewise.
22497 * alloc-pool.h : Likewise.
22498 * asan.c : Likewise.
22499 * attribs.c : Likewise.
22500 * auto-inc-dec.c : Likewise.
22501 * auto-profile.c : Likewise.
22502 * bb-reorder.c : Likewise.
22503 * bitmap.c : Likewise.
22504 * bitmap.h : Likewise.
22505 * bt-load.c : Likewise.
22506 * builtins.c : Likewise.
22507 * caller-save.c : Likewise.
22508 * calls.c : Likewise.
22509 * ccmp.c : Likewise.
22510 * cfg.c : Likewise.
22511 * cfganal.c : Likewise.
22512 * cfgbuild.c : Likewise.
22513 * cfgcleanup.c : Likewise.
22514 * cfgexpand.c : Likewise.
22515 * cfghooks.c : Likewise.
22516 * cfgloop.c : Likewise.
22517 * cfgloop.h : Likewise.
22518 * cfgloopanal.c : Likewise.
22519 * cfgloopmanip.c : Likewise.
22520 * cfgrtl.c : Likewise.
22521 * cgraph.c : Likewise.
22522 * cgraphbuild.c : Likewise.
22523 * cgraphclones.c : Likewise.
22524 * cgraphunit.c : Likewise.
22525 * cilk-common.c : Likewise.
22526 * combine-stack-adj.c : Likewise.
22527 * combine.c : Likewise.
22528 * compare-elim.c : Likewise.
22529 * context.c : Likewise.
22530 * convert.c : Likewise.
22531 * coverage.c : Likewise.
22532 * cppbuiltin.c : Likewise.
22533 * cprop.c : Likewise.
22534 * cse.c : Likewise.
22535 * cselib.c : Likewise.
22536 * data-streamer-in.c : Likewise.
22537 * data-streamer-out.c : Likewise.
22538 * data-streamer.c : Likewise.
22539 * data-streamer.h : Likewise.
22540 * dbxout.c : Likewise.
22541 * dce.c : Likewise.
22542 * ddg.c : Likewise.
22543 * debug.c : Likewise.
22544 * df-core.c : Likewise.
22545 * df-problems.c : Likewise.
22546 * df-scan.c : Likewise.
22547 * df.h : Likewise.
22548 * dfp.c : Likewise.
22549 * dojump.c : Likewise.
22550 * dominance.c : Likewise.
22551 * domwalk.c : Likewise.
22552 * double-int.c : Likewise.
22553 * dse.c : Likewise.
22554 * dumpfile.c : Likewise.
22555 * dwarf2asm.c : Likewise.
22556 * dwarf2cfi.c : Likewise.
22557 * dwarf2out.c : Likewise.
22558 * emit-rtl.c : Likewise.
22559 * et-forest.c : Likewise.
22560 * except.c : Likewise.
22561 * except.h : Likewise.
22562 * explow.c : Likewise.
22563 * expmed.c : Likewise.
22564 * expr.c : Likewise.
22565 * final.c : Likewise.
22566 * fixed-value.c : Likewise.
22567 * fold-const.c : Likewise.
22568 * function.c : Likewise.
22569 * fwprop.c : Likewise.
22570 * gcc-plugin.h : Likewise.
22571 * gcc.c : Likewise.
22572 * gcse-common.c : Likewise.
22573 * gcse.c : Likewise.
22574 * genattrtab.c : Likewise.
22575 * genautomata.c : Likewise.
22576 * genconditions.c : Likewise.
22577 * genemit.c : Likewise.
22578 * generic-match-head.c : Likewise.
22579 * genextract.c : Likewise.
22580 * gengtype-state.c : Likewise.
22581 * gengtype.c : Likewise.
22582 * genhooks.c : Likewise.
22583 * genmatch.c : Likewise.
22584 * genmodes.c : Likewise.
22585 * genrecog.c : Likewise.
22586 * gensupport.c : Likewise.
22587 * ggc-common.c : Likewise.
22588 * ggc-internal.h : Likewise.
22589 * ggc-none.c : Likewise.
22590 * ggc-page.c : Likewise.
22591 * gimple-builder.c : Likewise.
22592 * gimple-expr.c : Likewise.
22593 * gimple-fold.c : Likewise.
22594 * gimple-iterator.c : Likewise.
22595 * gimple-low.c : Likewise.
22596 * gimple-match-head.c : Likewise.
22597 * gimple-pretty-print.c : Likewise.
22598 * gimple-ssa-isolate-paths.c : Likewise.
22599 * gimple-ssa-strength-reduction.c : Likewise.
22600 * gimple-ssa.h : Likewise.
22601 * gimple-streamer-in.c : Likewise.
22602 * gimple-streamer-out.c : Likewise.
22603 * gimple-streamer.h : Likewise.
22604 * gimple-walk.c : Likewise.
22605 * gimple.c : Likewise.
22606 * gimplify-me.c : Likewise.
22607 * gimplify.c : Likewise.
22608 * godump.c : Likewise.
22609 * graph.c : Likewise.
22610 * graphds.c : Likewise.
22611 * graphite-blocking.c : Likewise.
22612 * graphite-dependences.c : Likewise.
22613 * graphite-interchange.c : Likewise.
22614 * graphite-isl-ast-to-gimple.c : Likewise.
22615 * graphite-optimize-isl.c : Likewise.
22616 * graphite-poly.c : Likewise.
22617 * graphite-scop-detection.c : Likewise.
22618 * graphite-sese-to-poly.c : Likewise.
22619 * graphite.c : Likewise.
22620 * haifa-sched.c : Likewise.
22621 * hard-reg-set.h : Likewise.
22622 * hw-doloop.c : Likewise.
22623 * ifcvt.c : Likewise.
22624 * inchash.c : Likewise.
22625 * incpath.c : Likewise.
22626 * init-regs.c : Likewise.
22627 * input.c : Likewise.
22628 * internal-fn.c : Likewise.
22629 * ipa-chkp.c : Likewise.
22630 * ipa-comdats.c : Likewise.
22631 * ipa-cp.c : Likewise.
22632 * ipa-devirt.c : Likewise.
22633 * ipa-icf-gimple.c : Likewise.
22634 * ipa-icf.c : Likewise.
22635 * ipa-inline-analysis.c : Likewise.
22636 * ipa-inline-transform.c : Likewise.
22637 * ipa-inline.c : Likewise.
22638 * ipa-polymorphic-call.c : Likewise.
22639 * ipa-profile.c : Likewise.
22640 * ipa-prop.c : Likewise.
22641 * ipa-pure-const.c : Likewise.
22642 * ipa-ref.c : Likewise.
22643 * ipa-reference.c : Likewise.
22644 * ipa-split.c : Likewise.
22645 * ipa-utils.c : Likewise.
22646 * ipa-visibility.c : Likewise.
22647 * ipa.c : Likewise.
22648 * ira-build.c : Likewise.
22649 * ira-color.c : Likewise.
22650 * ira-conflicts.c : Likewise.
22651 * ira-costs.c : Likewise.
22652 * ira-emit.c : Likewise.
22653 * ira-lives.c : Likewise.
22654 * ira.c : Likewise.
22655 * jump.c : Likewise.
22656 * langhooks.c : Likewise.
22657 * lcm.c : Likewise.
22658 * libfuncs.h : Likewise.
22659 * lists.c : Likewise.
22660 * loop-doloop.c : Likewise.
22661 * loop-init.c : Likewise.
22662 * loop-invariant.c : Likewise.
22663 * loop-iv.c : Likewise.
22664 * loop-unroll.c : Likewise.
22665 * lower-subreg.c : Likewise.
22666 * lra-assigns.c : Likewise.
22667 * lra-coalesce.c : Likewise.
22668 * lra-constraints.c : Likewise.
22669 * lra-eliminations.c : Likewise.
22670 * lra-lives.c : Likewise.
22671 * lra-remat.c : Likewise.
22672 * lra-spills.c : Likewise.
22673 * lra.c : Likewise.
22674 * lto-cgraph.c : Likewise.
22675 * lto-compress.c : Likewise.
22676 * lto-opts.c : Likewise.
22677 * lto-section-in.c : Likewise.
22678 * lto-section-out.c : Likewise.
22679 * lto-streamer-in.c : Likewise.
22680 * lto-streamer-out.c : Likewise.
22681 * lto-streamer.c : Likewise.
22682 * lto-streamer.h : Likewise.
22683 * mcf.c : Likewise.
22684 * mode-switching.c : Likewise.
22685 * modulo-sched.c : Likewise.
22686 * omega.c : Likewise.
22687 * omp-low.c : Likewise.
22688 * optabs.c : Likewise.
22689 * opts-global.c : Likewise.
22690 * opts.h : Likewise.
22691 * passes.c : Likewise.
22692 * plugin.c : Likewise.
22693 * postreload-gcse.c : Likewise.
22694 * postreload.c : Likewise.
22695 * predict.c : Likewise.
22696 * print-rtl.c : Likewise.
22697 * print-tree.c : Likewise.
22698 * profile.c : Likewise.
22699 * read-md.c : Likewise.
22700 * read-md.h : Likewise.
22701 * read-rtl.c : Likewise.
22702 * real.c : Likewise.
22703 * realmpfr.c : Likewise.
22704 * recog.c : Likewise.
22705 * ree.c : Likewise.
22706 * reg-stack.c : Likewise.
22707 * regcprop.c : Likewise.
22708 * reginfo.c : Likewise.
22709 * regrename.c : Likewise.
22710 * regstat.c : Likewise.
22711 * reload.c : Likewise.
22712 * reload1.c : Likewise.
22713 * reorg.c : Likewise.
22714 * resource.c : Likewise.
22715 * rtl-chkp.c : Likewise.
22716 * rtl.c : Likewise.
22717 * rtl.h : Likewise.
22718 * rtlanal.c : Likewise.
22719 * rtlhash.c : Likewise.
22720 * rtlhash.h : Likewise.
22721 * rtlhooks.c : Likewise.
22722 * sanopt.c : Likewise.
22723 * sched-deps.c : Likewise.
22724 * sched-ebb.c : Likewise.
22725 * sched-rgn.c : Likewise.
22726 * sched-vis.c : Likewise.
22727 * sdbout.c : Likewise.
22728 * sel-sched-dump.c : Likewise.
22729 * sel-sched-ir.c : Likewise.
22730 * sel-sched-ir.h : Likewise.
22731 * sel-sched.c : Likewise.
22732 * sese.c : Likewise.
22733 * shrink-wrap.c : Likewise.
22734 * shrink-wrap.h : Likewise.
22735 * simplify-rtx.c : Likewise.
22736 * stack-ptr-mod.c : Likewise.
22737 * statistics.c : Likewise.
22738 * stmt.c : Likewise.
22739 * stor-layout.c : Likewise.
22740 * store-motion.c : Likewise.
22741 * stringpool.c : Likewise.
22742 * symtab.c : Likewise.
22743 * target-globals.c : Likewise.
22744 * targhooks.c : Likewise.
22745 * tlink.c : Likewise.
22746 * toplev.c : Likewise.
22747 * tracer.c : Likewise.
22748 * trans-mem.c : Likewise.
22749 * tree-affine.c : Likewise.
22750 * tree-affine.h : Likewise.
22751 * tree-browser.c : Likewise.
22752 * tree-call-cdce.c : Likewise.
22753 * tree-cfg.c : Likewise.
22754 * tree-cfgcleanup.c : Likewise.
22755 * tree-chkp-opt.c : Likewise.
22756 * tree-chkp.c : Likewise.
22757 * tree-chrec.c : Likewise.
22758 * tree-complex.c : Likewise.
22759 * tree-data-ref.c : Likewise.
22760 * tree-dfa.c : Likewise.
22761 * tree-diagnostic.c : Likewise.
22762 * tree-dump.c : Likewise.
22763 * tree-eh.c : Likewise.
22764 * tree-eh.h : Likewise.
22765 * tree-emutls.c : Likewise.
22766 * tree-hasher.h : Likewise.
22767 * tree-if-conv.c : Likewise.
22768 * tree-inline.c : Likewise.
22769 * tree-inline.h : Likewise.
22770 * tree-into-ssa.c : Likewise.
22771 * tree-iterator.c : Likewise.
22772 * tree-loop-distribution.c : Likewise.
22773 * tree-nested.c : Likewise.
22774 * tree-nrv.c : Likewise.
22775 * tree-object-size.c : Likewise.
22776 * tree-outof-ssa.c : Likewise.
22777 * tree-parloops.c : Likewise.
22778 * tree-phinodes.c : Likewise.
22779 * tree-predcom.c : Likewise.
22780 * tree-pretty-print.c : Likewise.
22781 * tree-profile.c : Likewise.
22782 * tree-scalar-evolution.c : Likewise.
22783 * tree-sra.c : Likewise.
22784 * tree-ssa-address.c : Likewise.
22785 * tree-ssa-alias.c : Likewise.
22786 * tree-ssa-ccp.c : Likewise.
22787 * tree-ssa-coalesce.c : Likewise.
22788 * tree-ssa-copy.c : Likewise.
22789 * tree-ssa-copyrename.c : Likewise.
22790 * tree-ssa-dce.c : Likewise.
22791 * tree-ssa-dom.c : Likewise.
22792 * tree-ssa-dse.c : Likewise.
22793 * tree-ssa-forwprop.c : Likewise.
22794 * tree-ssa-ifcombine.c : Likewise.
22795 * tree-ssa-live.c : Likewise.
22796 * tree-ssa-loop-ch.c : Likewise.
22797 * tree-ssa-loop-im.c : Likewise.
22798 * tree-ssa-loop-ivcanon.c : Likewise.
22799 * tree-ssa-loop-ivopts.c : Likewise.
22800 * tree-ssa-loop-manip.c : Likewise.
22801 * tree-ssa-loop-niter.c : Likewise.
22802 * tree-ssa-loop-prefetch.c : Likewise.
22803 * tree-ssa-loop-unswitch.c : Likewise.
22804 * tree-ssa-loop.c : Likewise.
22805 * tree-ssa-math-opts.c : Likewise.
22806 * tree-ssa-operands.c : Likewise.
22807 * tree-ssa-phiopt.c : Likewise.
22808 * tree-ssa-phiprop.c : Likewise.
22809 * tree-ssa-pre.c : Likewise.
22810 * tree-ssa-propagate.c : Likewise.
22811 * tree-ssa-reassoc.c : Likewise.
22812 * tree-ssa-sccvn.c : Likewise.
22813 * tree-ssa-scopedtables.c : Likewise.
22814 * tree-ssa-sink.c : Likewise.
22815 * tree-ssa-strlen.c : Likewise.
22816 * tree-ssa-structalias.c : Likewise.
22817 * tree-ssa-tail-merge.c : Likewise.
22818 * tree-ssa-ter.c : Likewise.
22819 * tree-ssa-threadedge.c : Likewise.
22820 * tree-ssa-threadupdate.c : Likewise.
22821 * tree-ssa-uncprop.c : Likewise.
22822 * tree-ssa-uninit.c : Likewise.
22823 * tree-ssa.c : Likewise.
22824 * tree-ssanames.c : Likewise.
22825 * tree-stdarg.c : Likewise.
22826 * tree-streamer-in.c : Likewise.
22827 * tree-streamer-out.c : Likewise.
22828 * tree-streamer.c : Likewise.
22829 * tree-streamer.h : Likewise.
22830 * tree-switch-conversion.c : Likewise.
22831 * tree-tailcall.c : Likewise.
22832 * tree-vect-data-refs.c : Likewise.
22833 * tree-vect-generic.c : Likewise.
22834 * tree-vect-loop-manip.c : Likewise.
22835 * tree-vect-loop.c : Likewise.
22836 * tree-vect-patterns.c : Likewise.
22837 * tree-vect-slp.c : Likewise.
22838 * tree-vect-stmts.c : Likewise.
22839 * tree-vectorizer.c : Likewise.
22840 * tree-vectorizer.h : Likewise.
22841 * tree-vrp.c : Likewise.
22842 * tree.c : Likewise.
22843 * tsan.c : Likewise.
22844 * ubsan.c : Likewise.
22845 * valtrack.c : Likewise.
22846 * valtrack.h : Likewise.
22847 * value-prof.c : Likewise.
22848 * var-tracking.c : Likewise.
22849 * varasm.c : Likewise.
22850 * varpool.c : Likewise.
22851 * vec.c: Likewise.
22852 * vmsdbgout.c : Likewise.
22853 * vtable-verify.c : Likewise.
22854 * vtable-verify.h : Likewise.
22855 * web.c : Likewise.
22856 * wide-int.cc : Likewise.
22857 * xcoffout.c : Likewise.
22858 * config/aarch64/aarch64-builtins.c : Likewise.
22859 * config/aarch64/aarch64.c : Likewise.
22860 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
22861 * config/alpha/alpha.c : Likewise.
22862 * config/arc/arc.c : Likewise.
22863 * config/arm/aarch-common.c : Likewise.
22864 * config/arm/arm-builtins.c : Likewise.
22865 * config/arm/arm-c.c : Likewise.
22866 * config/arm/arm.c : Likewise.
22867 * config/avr/avr-c.c : Likewise.
22868 * config/avr/avr-log.c : Likewise.
22869 * config/avr/avr.c : Likewise.
22870 * config/bfin/bfin.c : Likewise.
22871 * config/c6x/c6x.c : Likewise.
22872 * config/cr16/cr16.c : Likewise.
22873 * config/cris/cris.c : Likewise.
22874 * config/darwin-c.c : Likewise.
22875 * config/darwin.c : Likewise.
22876 * config/default-c.c : Likewise.
22877 * config/epiphany/epiphany.c : Likewise.
22878 * config/epiphany/mode-switch-use.c : Likewise.
22879 * config/epiphany/resolve-sw-modes.c : Likewise.
22880 * config/fr30/fr30.c : Likewise.
22881 * config/frv/frv.c : Likewise.
22882 * config/ft32/ft32.c : Likewise.
22883 * config/glibc-c.c : Likewise.
22884 * config/h8300/h8300.c : Likewise.
22885 * config/i386/i386-c.c : Likewise.
22886 * config/i386/i386.c : Likewise.
22887 * config/i386/msformat-c.c : Likewise.
22888 * config/i386/winnt-cxx.c : Likewise.
22889 * config/i386/winnt-stubs.c : Likewise.
22890 * config/i386/winnt.c : Likewise.
22891 * config/ia64/ia64-c.c : Likewise.
22892 * config/ia64/ia64.c : Likewise.
22893 * config/iq2000/iq2000.c : Likewise.
22894 * config/lm32/lm32.c : Likewise.
22895 * config/m32c/m32c-pragma.c : Likewise.
22896 * config/m32c/m32c.c : Likewise.
22897 * config/m32r/m32r.c : Likewise.
22898 * config/m68k/m68k.c : Likewise.
22899 * config/mcore/mcore.c : Likewise.
22900 * config/mep/mep-pragma.c : Likewise.
22901 * config/mep/mep.c : Likewise.
22902 * config/microblaze/microblaze-c.c : Likewise.
22903 * config/microblaze/microblaze.c : Likewise.
22904 * config/mips/mips.c : Likewise.
22905 * config/mmix/mmix.c : Likewise.
22906 * config/mn10300/mn10300.c : Likewise.
22907 * config/moxie/moxie.c : Likewise.
22908 * config/msp430/msp430-c.c : Likewise.
22909 * config/msp430/msp430.c : Likewise.
22910 * config/nds32/nds32-cost.c : Likewise.
22911 * config/nds32/nds32-fp-as-gp.c : Likewise.
22912 * config/nds32/nds32-intrinsic.c : Likewise.
22913 * config/nds32/nds32-isr.c : Likewise.
22914 * config/nds32/nds32-md-auxiliary.c : Likewise.
22915 * config/nds32/nds32-memory-manipulation.c : Likewise.
22916 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
22917 * config/nds32/nds32-predicates.c : Likewise.
22918 * config/nds32/nds32.c : Likewise.
22919 * config/nios2/nios2.c : Likewise.
22920 * config/nvptx/nvptx.c : Likewise.
22921 * config/pa/pa.c : Likewise.
22922 * config/pdp11/pdp11.c : Likewise.
22923 * config/rl78/rl78-c.c : Likewise.
22924 * config/rl78/rl78.c : Likewise.
22925 * config/rs6000/rs6000-c.c : Likewise.
22926 * config/rs6000/rs6000.c : Likewise.
22927 * config/rx/rx.c : Likewise.
22928 * config/s390/s390-c.c : Likewise.
22929 * config/s390/s390.c : Likewise.
22930 * config/sh/sh-c.c : Likewise.
22931 * config/sh/sh-mem.cc : Likewise.
22932 * config/sh/sh.c : Likewise.
22933 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
22934 * config/sh/sh_treg_combine.cc : Likewise.
22935 * config/sol2-c.c : Likewise.
22936 * config/sol2-cxx.c : Likewise.
22937 * config/sol2-stubs.c : Likewise.
22938 * config/sol2.c : Likewise.
22939 * config/sparc/sparc-c.c : Likewise.
22940 * config/sparc/sparc.c : Likewise.
22941 * config/spu/spu-c.c : Likewise.
22942 * config/spu/spu.c : Likewise.
22943 * config/stormy16/stormy16.c : Likewise.
22944 * config/tilegx/mul-tables.c : Likewise.
22945 * config/tilegx/tilegx-c.c : Likewise.
22946 * config/tilegx/tilegx.c : Likewise.
22947 * config/tilepro/mul-tables.c : Likewise.
22948 * config/tilepro/tilepro-c.c : Likewise.
22949 * config/tilepro/tilepro.c : Likewise.
22950 * config/v850/v850-c.c : Likewise.
22951 * config/v850/v850.c : Likewise.
22952 * config/vax/vax.c : Likewise.
22953 * config/visium/visium.c : Likewise.
22954 * config/vms/vms-c.c : Likewise.
22955 * config/vms/vms.c : Likewise.
22956 * config/vxworks.c : Likewise.
22957 * config/winnt-c.c : Likewise.
22958 * config/xtensa/xtensa.c : Likewise.
22959
22960 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22961
22962 PR lto/65378
22963 * ipa-utils.h (warn_types_mismatch): Update prototype.
22964 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
22965 parameters.
22966 (type_mismatch_p): New function.
22967 (warn_types_mismatch): Reorg to work better on non-C++ types.
22968 (odr_types_equivalent_p): Add loc1/loc2 parameters.
22969 (add_type_duplicate): Update.
22970
22971 2015-06-08 Tom de Vries <tom@codesourcery.com>
22972
22973 PR rtl-optimization/66444
22974 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
22975 call_used_regs.
22976
22977 2015-06-08 Richard Biener <rguenther@suse.de>
22978
22979 PR tree-optimization/66422
22980 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
22981 block after inserted gcc_unreachable.
22982
22983 2015-06-08 Nick Clifton <nickc@redhat.com>
22984
22985 * config/rx/rx.c (rx_function_value): Do not promote vector types.
22986 (rx_promote_function_mode): Likewise.
22987 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
22988
22989 2015-06-08 Jakub Jelinek <jakub@redhat.com>
22990
22991 * genattrtab.c (insn_alternatives): Change type from int *
22992 to uint64_t *.
22993 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
22994 (get_attr_value): Change type of num_alt to uint64_t.
22995 (compute_alternative_mask): Change return type from
22996 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
22997 (make_alternative_compare, mk_attr_alt): Change argument type
22998 from int to uint64_t.
22999 (simplify_test_exp): Change type of i from int to uint64_t.
23000 Shift ((uint64_t) 1) instead of 1 up.
23001 (main): Adjust oballocvec first argument from int to uint64_t.
23002 Shift ((uint64_t) 1) instead of 1 up.
23003
23004 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
23005
23006 PR other/65366
23007 * gdbhooks.py: Import sys.
23008 (intptr): New function. Replace int(...) by intptr(...).
23009
23010 2015-06-08 Richard Biener <rguenther@suse.de>
23011
23012 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
23013 adjustment for gaps at the end of a SLP load group properly.
23014 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
23015 all permutations we can generate.
23016 (vect_transform_slp_perm_load): Use the correct group-size.
23017
23018 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
23019
23020 * genmatch.c (expr::gen_transform): For conditions, guess the type
23021 from the second operand.
23022
23023 2015-06-08 Tom de Vries <tom@codesourcery.com>
23024
23025 PR tree-optimization/66442
23026 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
23027 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
23028 if the loop latch is not a singleton. Use
23029 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
23030
23031 2015-06-08 Marek Polacek <polacek@redhat.com>
23032
23033 PR sanitizer/66452
23034 * toplev.c (check_global_declaration): Don't warn about artificial
23035 decls.
23036
23037 2015-06-08 Tom de Vries <tom@codesourcery.com>
23038
23039 PR tree-optimization/66436
23040 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
23041 dump file.
23042 * gimplify.c: Add tree-dump.h include.
23043 (gimplify_function_tree): Dump function to gimple dump file.
23044 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23045 dump file.
23046
23047 2015-06-08 Tom de Vries <tom@codesourcery.com>
23048
23049 PR tree-optimization/66435
23050 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
23051 function.
23052
23053 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
23054
23055 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
23056 of ptr_type_node to not be ptr_to_node.
23057 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
23058 TREE_TYPE of pointers.
23059 * gimple-expr.c (useless_type_conversion): Reorder the check for
23060 function pointers and TYPE_CANONICAL.
23061
23062 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
23063
23064 PR bootstrap/66319
23065 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
23066 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
23067 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
23068 later.
23069 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
23070 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
23071 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
23072 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
23073 and non iso if unix2003.
23074
23075 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
23076
23077 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
23078
23079 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
23080
23081 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
23082 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
23083 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
23084 except.c, final.c, function.c, gcse-common.c, genemit.c,
23085 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
23086 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
23087 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
23088 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
23089 more derived ones.
23090
23091 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
23092
23093 * combine.c (combine_split_insns): Remove cast.
23094 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
23095 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
23096 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
23097 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
23098 * genemit.c (gen_split): Change return type of generated functions to
23099 rtx_insn.
23100 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
23101 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
23102 gen_peephole2_* functions.
23103 (print_subroutine, main): Likewise.
23104 * recog.c (peephole2_optimize): Remove cast.
23105 (peep2_next_insn): Promote return type to rtx_insn.
23106 * recog.h (peep2_next_insn): Fix prototype.
23107 * rtl.h (try_split, split_insns): Likewise.
23108
23109 2015-06-06 DJ Delorie <dj@redhat.com>
23110
23111 * config/msp430/msp430.c (msp430_asm_integer): Support addition
23112 and subtraction too.
23113
23114 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
23115
23116 PR target/66410
23117 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
23118 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
23119 instead of Snd. Disparage Sid/z alternative with '^'.
23120
23121 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
23122
23123 * dwarf2out.c: Remove deferred_locations*.
23124 (dwarf2_debug_hooks): Add early_finish hook.
23125 Remove global_decl hook.
23126 Add early_global_decl and late_global_decl hook.
23127 New global early_dwarf.
23128 New structure set_early_dwarf.
23129 (output_die): Indicate whether a DIE was generated early
23130 when generating assembly with -dA.
23131 (struct limbo_die_struct): Document created_for field.
23132 Remove file_table_last_lookup.
23133 (remove_AT): Return TRUE if successful.
23134 (remove_child_TAG): Clear die_parent.
23135 (reparent_child): New function abstracted from...
23136 (splice_child_die): ...here.
23137 (new_die): ICE if a DIE ends up in limbo too late.
23138 (check_die): New.
23139 (defer_location): Remove.
23140 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23141 (fill_variable_array_bounds): New.
23142 (decl_start_label): Call fill_variable_array_bounds.
23143 (gen_formal_parameter_die): Rewrite to reuse previously generated
23144 DIEs.
23145 (gen_subprogram_die): Same.
23146 (gen_variable_die): Same.
23147 (gen_const_die): Same.
23148 (gen_label_die): Same.
23149 (gen_lexical_block_die): Same.
23150 (decl_will_get_specification_p): New.
23151 (local_function_static): New.
23152 (gen_struct_or_union_type_die): Fill in variable-length fields.
23153 (gen_typedef_die): Fill in variable-length typedefs.
23154 (gen_tagged_type_die): Gracefully return on error_mark_node.
23155 Handle re-entrancy.
23156 (gen_type_die_with_usage): Handle variable-length types.
23157 Remove duplicate code for ARRAY_TYPE case.
23158 (process_scope_var): Only process imported modules during early
23159 dwarf.
23160 (dwarf2out_early_global_decl): New.
23161 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23162 (dwarf2out_type_decl): Set early_dwarf while calling
23163 dwarf2out_decl.
23164 (dwarf2out_decl): Verify that we did not recreate a previously
23165 generated DIE.
23166 Do not return on DECL_EXTERNALs in VAR_DECLs.
23167 Abstract some code to local_function_static.
23168 (lookup_filename): Remove use of file_table_last_lookup.
23169 Gracefully exit on missing file_name.
23170 (dwarf2out_finish): Verify limbo list.
23171 Remove deferred_locations_list use.
23172 Move deferred_asm_name and limbo flushing to...
23173 (dwarf2out_early_finish): ...here. New.
23174 (dwarf2out_c_finalize): Remove set of deferred_location_list,
23175 deferred_asm_name, and file_table_last_lookup.
23176 * cgraph.h (referred_to_p): Add default argument.
23177 * cgraphunit.c (referred_to_p): Add and handle include_self
23178 argument.
23179 (analyze_functions): Add first_time argument.
23180 Call check_global_declaration for all symbols.
23181 Call late_global_decl for nodes for moribund nodes.
23182 (finalize_compilation_unit): Add new argument to
23183 analyze_functions.
23184 Call early_global_decl for functions.
23185 Call early_finish debug hook.
23186 * dbxout.c (dbxout_early_global_decl): New.
23187 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
23188 (dbx_debug_hooks): Add new hooks.
23189 (xcoff_debug_hooks): Same.
23190 * debug.c (do_nothing_debug_hooks): Add early_finish field.
23191 Add early and late debug hooks.
23192 Remove global_decl hook.
23193 * debug.h (struct gcc_debug_hooks): Add early_finish,
23194 early_global_decl, and late_global_decl fields.
23195 Remove global_decl field.
23196 Document gcc_debug_hooks.
23197 * gengtype.c (output_typename): Remove.
23198 * godump.c (go_early_global_decl): New.
23199 (go_late_global_decl): New.
23200 (go_global_decl): Remove.
23201 (dump_go_spec_init): Remove global_decl. Add
23202 {early,late}_global_decl.
23203 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23204 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23205 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23206 (write_global_declarations): Remove.
23207 (global_decl_processing): New.
23208 * langhooks.h (struct lang_hooks_for_decls): Remove
23209 final_write_globals field.
23210 Add post_compilation_parsing_cleanups field.
23211 * passes.c (rest_of_decl_compilation): Call early_global_decl.
23212 * sdbout.c: Add early and late_global_decl hooks. Remove
23213 sdbout_global_decl hook.
23214 Add early_finish field for sdb_debug_hooks.
23215 (sdbout_global_decl): Remove.
23216 (sdbout_early_global_decl): New.
23217 (sdbout_late_global_decl): New.
23218 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23219 * toplev.c (check_global_declaration): Rename from
23220 check_global_declaration_1.
23221 Adapt to use symtab infrastructure.
23222 (check_global_declarations): Remove.
23223 (emit_debug_global_declarations): Remove.
23224 (compile_file): Remove call to final_write_globals langhook.
23225 Run the actual compilation process.
23226 Perform any post compilation parser cleanups.
23227 Generate late debug info.
23228 * toplev.h (check_global_declaration): New.
23229 (check_global_declaration_1): Remove.
23230 (check_global_declarations): Remove.
23231 (write_global_declarations): Remove.
23232 (emit_debug_global_declarations): Remove.
23233 (global_decl_processing): New.
23234 * tree-core.h (struct tree_block): Add DIE field.
23235 * tree.h (BLOCK_DIE): New.
23236 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23237 throughout.
23238 (vmsdbgout_early_global_decl): New.
23239 (vmsdbgout_late_global_decl): New.
23240 Add early_finish debug hook field to vmsdbg_debug_hooks.
23241 Remove vmsdbgout_decl to vmsdbgout_function_decl.
23242 Add early and late_global_decl debug hooks.
23243
23244 2015-06-05 Julian Brown <julian@codesourcery.com>
23245 Sandra Loosemore <sandra@codesourcery.com>
23246
23247 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23248 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23249 to print-sysroot-suffix.sh script.
23250
23251 2015-06-05 Tom de Vries <tom@codesourcery.com>
23252
23253 merge from gomp4 branch:
23254 2015-05-28 Tom de Vries <tom@codesourcery.com>
23255
23256 PR tree-optimization/65443
23257 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23258 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23259 (try_transform_to_exit_first_loop_alt): New function.
23260 (transform_to_exit_first_loop): Use
23261 try_transform_to_exit_first_loop_alt.
23262
23263 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
23264
23265 * builtins.c (expand_builtin_atomic_compare_exchange): Call
23266 emit_cmp_and_jump_insns with the mode of target.
23267
23268 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23269
23270 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23271
23272 2015-06-04 DJ Delorie <dj@redhat.com>
23273
23274 * config/msp430/msp430.md (movsi_s): New. Special case for
23275 storing a 20-bit symbol into a 32-bit register.
23276 * config/msp430/msp430.c (msp430_subreg): Add support for it.
23277 * config/msp430/predicates.md (msp430_symbol_operand): New.
23278
23279 2015-06-04 Sriraman Tallam <tmsriram@google.com>
23280
23281 * c-family/c-common.c (noplt): New attribute.
23282 (handle_noplt_attribute): New handler.
23283 * calls.c (prepare_call_address): Check for noplt
23284 attribute.
23285 * config/i386/i386.c (ix86_expand_call): Check
23286 for noplt attribute.
23287 (ix86_nopic_noplt_attribute_p): New function.
23288 (ix86_output_call_insn): Output indirect call for non-pic
23289 no plt calls.
23290 * doc/extend.texi (noplt): Document new attribute.
23291 * doc/invoke.texi: Document new attribute.
23292
23293 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
23294
23295 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23296 real.h, and fixed-value.h when included in host source files.
23297 * double-int.h: Remove redundant #includes listed above.
23298 * fixed-value.h: Likewise.
23299 * real.h: Likewise.
23300 * wide-int.h: Likewise.
23301 * inchash.h: Likewise.
23302 * rtl.h: Add some include files When included from a generator file.
23303 * target.h: Remove wide-int.h and insn-modes.h from the include list.
23304 * internal-fn.h: Don't include coretypes.h.
23305 * alias.c: Adjust includes for restructured coretypes.h.
23306 * asan.c: Likewise.
23307 * attribs.c: Likewise.
23308 * auto-inc-dec.c: Likewise.
23309 * auto-profile.c: Likewise.
23310 * bb-reorder.c: Likewise.
23311 * bt-load.c: Likewise.
23312 * builtins.c: Likewise.
23313 * caller-save.c: Likewise.
23314 * calls.c: Likewise.
23315 * ccmp.c: Likewise.
23316 * cfg.c: Likewise.
23317 * cfganal.c: Likewise.
23318 * cfgbuild.c: Likewise.
23319 * cfgcleanup.c: Likewise.
23320 * cfgexpand.c: Likewise.
23321 * cfghooks.c: Likewise.
23322 * cfgloop.c: Likewise.
23323 * cfgloop.h: Likewise.
23324 * cfgloopanal.c: Likewise.
23325 * cfgloopmanip.c: Likewise.
23326 * cfgrtl.c: Likewise.
23327 * cgraph.c: Likewise.
23328 * cgraphbuild.c: Likewise.
23329 * cgraphclones.c: Likewise.
23330 * cgraphunit.c: Likewise.
23331 * cilk-common.c: Likewise.
23332 * combine-stack-adj.c: Likewise.
23333 * combine.c: Likewise.
23334 * compare-elim.c: Likewise.
23335 * convert.c: Likewise.
23336 * coverage.c: Likewise.
23337 * cppbuiltin.c: Likewise.
23338 * cprop.c: Likewise.
23339 * cse.c: Likewise.
23340 * cselib.c: Likewise.
23341 * data-streamer-in.c: Likewise.
23342 * data-streamer-out.c: Likewise.
23343 * data-streamer.c: Likewise.
23344 * dbxout.c: Likewise.
23345 * dce.c: Likewise.
23346 * ddg.c: Likewise.
23347 * debug.c: Likewise.
23348 * df-core.c: Likewise.
23349 * df-problems.c: Likewise.
23350 * df-scan.c: Likewise.
23351 * df.h: Likewise.
23352 * dfp.c: Likewise.
23353 * dojump.c: Likewise.
23354 * dominance.c: Likewise.
23355 * domwalk.c: Likewise.
23356 * double-int.c: Likewise.
23357 * dse.c: Likewise.
23358 * dumpfile.c: Likewise.
23359 * dwarf2asm.c: Likewise.
23360 * dwarf2cfi.c: Likewise.
23361 * dwarf2out.c: Likewise.
23362 * dwarf2out.h: Likewise.
23363 * emit-rtl.c: Likewise.
23364 * et-forest.c: Likewise.
23365 * except.c: Likewise.
23366 * explow.c: Likewise.
23367 * expmed.c: Likewise.
23368 * expr.c: Likewise.
23369 * final.c: Likewise.
23370 * fixed-value.c: Likewise.
23371 * fold-const.c: Likewise.
23372 * function.c: Likewise.
23373 * fwprop.c: Likewise.
23374 * gcc-plugin.h: Likewise.
23375 * gcse.c: Likewise.
23376 * generic-match-head.c: Likewise.
23377 * ggc-page.c: Likewise.
23378 * gimple-builder.c: Likewise.
23379 * gimple-expr.c: Likewise.
23380 * gimple-fold.c: Likewise.
23381 * gimple-iterator.c: Likewise.
23382 * gimple-low.c: Likewise.
23383 * gimple-match-head.c: Likewise.
23384 * gimple-pretty-print.c: Likewise.
23385 * gimple-ssa-isolate-paths.c: Likewise.
23386 * gimple-ssa-strength-reduction.c: Likewise.
23387 * gimple-streamer-in.c: Likewise.
23388 * gimple-streamer-out.c: Likewise.
23389 * gimple-streamer.h: Likewise.
23390 * gimple-walk.c: Likewise.
23391 * gimple.c: Likewise.
23392 * gimplify-me.c: Likewise.
23393 * gimplify.c: Likewise.
23394 * godump.c: Likewise.
23395 * graph.c: Likewise.
23396 * graphite-blocking.c: Likewise.
23397 * graphite-dependences.c: Likewise.
23398 * graphite-interchange.c: Likewise.
23399 * graphite-isl-ast-to-gimple.c: Likewise.
23400 * graphite-optimize-isl.c: Likewise.
23401 * graphite-poly.c: Likewise.
23402 * graphite-scop-detection.c: Likewise.
23403 * graphite-sese-to-poly.c: Likewise.
23404 * graphite.c: Likewise.
23405 * haifa-sched.c: Likewise.
23406 * hooks.h: Likewise.
23407 * hw-doloop.c: Likewise.
23408 * ifcvt.c: Likewise.
23409 * incpath.c: Likewise.
23410 * init-regs.c: Likewise.
23411 * internal-fn.c: Likewise.
23412 * ipa-chkp.c: Likewise.
23413 * ipa-comdats.c: Likewise.
23414 * ipa-cp.c: Likewise.
23415 * ipa-devirt.c: Likewise.
23416 * ipa-icf-gimple.c: Likewise.
23417 * ipa-icf.c: Likewise.
23418 * ipa-inline-analysis.c: Likewise.
23419 * ipa-inline-transform.c: Likewise.
23420 * ipa-inline.c: Likewise.
23421 * ipa-polymorphic-call.c: Likewise.
23422 * ipa-profile.c: Likewise.
23423 * ipa-prop.c: Likewise.
23424 * ipa-pure-const.c: Likewise.
23425 * ipa-ref.c: Likewise.
23426 * ipa-reference.c: Likewise.
23427 * ipa-split.c: Likewise.
23428 * ipa-utils.c: Likewise.
23429 * ipa-visibility.c: Likewise.
23430 * ipa.c: Likewise.
23431 * ira-build.c: Likewise.
23432 * ira-color.c: Likewise.
23433 * ira-conflicts.c: Likewise.
23434 * ira-costs.c: Likewise.
23435 * ira-emit.c: Likewise.
23436 * ira-lives.c: Likewise.
23437 * ira.c: Likewise.
23438 * jump.c: Likewise.
23439 * langhooks.c: Likewise.
23440 * lcm.c: Likewise.
23441 * loop-doloop.c: Likewise.
23442 * loop-init.c: Likewise.
23443 * loop-invariant.c: Likewise.
23444 * loop-iv.c: Likewise.
23445 * loop-unroll.c: Likewise.
23446 * lower-subreg.c: Likewise.
23447 * lra-assigns.c: Likewise.
23448 * lra-coalesce.c: Likewise.
23449 * lra-constraints.c: Likewise.
23450 * lra-eliminations.c: Likewise.
23451 * lra-lives.c: Likewise.
23452 * lra-remat.c: Likewise.
23453 * lra-spills.c: Likewise.
23454 * lra.c: Likewise.
23455 * lto-cgraph.c: Likewise.
23456 * lto-compress.c: Likewise.
23457 * lto-opts.c: Likewise.
23458 * lto-section-in.c: Likewise.
23459 * lto-section-out.c: Likewise.
23460 * lto-streamer-in.c: Likewise.
23461 * lto-streamer-out.c: Likewise.
23462 * lto-streamer.c: Likewise.
23463 * mcf.c: Likewise.
23464 * mode-switching.c: Likewise.
23465 * modulo-sched.c: Likewise.
23466 * omega.c: Likewise.
23467 * omp-low.c: Likewise.
23468 * optabs.c: Likewise.
23469 * opts-global.c: Likewise.
23470 * passes.c: Likewise.
23471 * plugin.c: Likewise.
23472 * postreload-gcse.c: Likewise.
23473 * postreload.c: Likewise.
23474 * predict.c: Likewise.
23475 * print-rtl.c: Likewise.
23476 * print-tree.c: Likewise.
23477 * profile.c: Likewise.
23478 * real.c: Likewise.
23479 * realmpfr.c: Likewise.
23480 * realmpfr.h: Likewise.
23481 * recog.c: Likewise.
23482 * ree.c: Likewise.
23483 * reg-stack.c: Likewise.
23484 * regcprop.c: Likewise.
23485 * reginfo.c: Likewise.
23486 * regrename.c: Likewise.
23487 * regs.h: Likewise.
23488 * regstat.c: Likewise.
23489 * reload.c: Likewise.
23490 * reload1.c: Likewise.
23491 * reorg.c: Likewise.
23492 * resource.c: Likewise.
23493 * rtl-chkp.c: Likewise.
23494 * rtlanal.c: Likewise.
23495 * rtlhooks.c: Likewise.
23496 * sanopt.c: Likewise.
23497 * sched-deps.c: Likewise.
23498 * sched-ebb.c: Likewise.
23499 * sched-rgn.c: Likewise.
23500 * sched-vis.c: Likewise.
23501 * sdbout.c: Likewise.
23502 * sel-sched-dump.c: Likewise.
23503 * sel-sched-ir.c: Likewise.
23504 * sel-sched.c: Likewise.
23505 * sese.c: Likewise.
23506 * shrink-wrap.c: Likewise.
23507 * shrink-wrap.h: Likewise.
23508 * simplify-rtx.c: Likewise.
23509 * stack-ptr-mod.c: Likewise.
23510 * statistics.c: Likewise.
23511 * stmt.c: Likewise.
23512 * stor-layout.c: Likewise.
23513 * store-motion.c: Likewise.
23514 * stringpool.c: Likewise.
23515 * symtab.c: Likewise.
23516 * target-globals.c: Likewise.
23517 * targhooks.c: Likewise.
23518 * toplev.c: Likewise.
23519 * tracer.c: Likewise.
23520 * trans-mem.c: Likewise.
23521 * tree-affine.c: Likewise.
23522 * tree-affine.h: Likewise.
23523 * tree-browser.c: Likewise.
23524 * tree-call-cdce.c: Likewise.
23525 * tree-cfg.c: Likewise.
23526 * tree-cfgcleanup.c: Likewise.
23527 * tree-chkp-opt.c: Likewise.
23528 * tree-chkp.c: Likewise.
23529 * tree-chrec.c: Likewise.
23530 * tree-complex.c: Likewise.
23531 * tree-data-ref.c: Likewise.
23532 * tree-dfa.c: Likewise.
23533 * tree-diagnostic.c: Likewise.
23534 * tree-dump.c: Likewise.
23535 * tree-eh.c: Likewise.
23536 * tree-emutls.c: Likewise.
23537 * tree-if-conv.c: Likewise.
23538 * tree-inline.c: Likewise.
23539 * tree-into-ssa.c: Likewise.
23540 * tree-iterator.c: Likewise.
23541 * tree-loop-distribution.c: Likewise.
23542 * tree-nested.c: Likewise.
23543 * tree-nrv.c: Likewise.
23544 * tree-object-size.c: Likewise.
23545 * tree-outof-ssa.c: Likewise.
23546 * tree-parloops.c: Likewise.
23547 * tree-phinodes.c: Likewise.
23548 * tree-predcom.c: Likewise.
23549 * tree-pretty-print.c: Likewise.
23550 * tree-pretty-print.h: Likewise.
23551 * tree-profile.c: Likewise.
23552 * tree-scalar-evolution.c: Likewise.
23553 * tree-sra.c: Likewise.
23554 * tree-ssa-address.c: Likewise.
23555 * tree-ssa-alias.c: Likewise.
23556 * tree-ssa-ccp.c: Likewise.
23557 * tree-ssa-coalesce.c: Likewise.
23558 * tree-ssa-copy.c: Likewise.
23559 * tree-ssa-copyrename.c: Likewise.
23560 * tree-ssa-dce.c: Likewise.
23561 * tree-ssa-dom.c: Likewise.
23562 * tree-ssa-dse.c: Likewise.
23563 * tree-ssa-forwprop.c: Likewise.
23564 * tree-ssa-ifcombine.c: Likewise.
23565 * tree-ssa-live.c: Likewise.
23566 * tree-ssa-loop-ch.c: Likewise.
23567 * tree-ssa-loop-im.c: Likewise.
23568 * tree-ssa-loop-ivcanon.c: Likewise.
23569 * tree-ssa-loop-ivopts.c: Likewise.
23570 * tree-ssa-loop-manip.c: Likewise.
23571 * tree-ssa-loop-niter.c: Likewise.
23572 * tree-ssa-loop-prefetch.c: Likewise.
23573 * tree-ssa-loop-unswitch.c: Likewise.
23574 * tree-ssa-loop.c: Likewise.
23575 * tree-ssa-loop.h: Likewise.
23576 * tree-ssa-math-opts.c: Likewise.
23577 * tree-ssa-operands.c: Likewise.
23578 * tree-ssa-phiopt.c: Likewise.
23579 * tree-ssa-phiprop.c: Likewise.
23580 * tree-ssa-pre.c: Likewise.
23581 * tree-ssa-propagate.c: Likewise.
23582 * tree-ssa-reassoc.c: Likewise.
23583 * tree-ssa-sccvn.c: Likewise.
23584 * tree-ssa-scopedtables.c: Likewise.
23585 * tree-ssa-sink.c: Likewise.
23586 * tree-ssa-strlen.c: Likewise.
23587 * tree-ssa-structalias.c: Likewise.
23588 * tree-ssa-tail-merge.c: Likewise.
23589 * tree-ssa-ter.c: Likewise.
23590 * tree-ssa-threadedge.c: Likewise.
23591 * tree-ssa-threadupdate.c: Likewise.
23592 * tree-ssa-uncprop.c: Likewise.
23593 * tree-ssa-uninit.c: Likewise.
23594 * tree-ssa.c: Likewise.
23595 * tree-ssanames.c: Likewise.
23596 * tree-stdarg.c: Likewise.
23597 * tree-streamer-in.c: Likewise.
23598 * tree-streamer-out.c: Likewise.
23599 * tree-streamer.c: Likewise.
23600 * tree-switch-conversion.c: Likewise.
23601 * tree-tailcall.c: Likewise.
23602 * tree-vect-data-refs.c: Likewise.
23603 * tree-vect-generic.c: Likewise.
23604 * tree-vect-loop-manip.c: Likewise.
23605 * tree-vect-loop.c: Likewise.
23606 * tree-vect-patterns.c: Likewise.
23607 * tree-vect-slp.c: Likewise.
23608 * tree-vect-stmts.c: Likewise.
23609 * tree-vectorizer.c: Likewise.
23610 * tree-vrp.c: Likewise.
23611 * tree.c: Likewise.
23612 * tsan.c: Likewise.
23613 * ubsan.c: Likewise.
23614 * valtrack.c: Likewise.
23615 * value-prof.c: Likewise.
23616 * var-tracking.c: Likewise.
23617 * varasm.c: Likewise.
23618 * varpool.c: Likewise.
23619 * vmsdbgout.c: Likewise.
23620 * vtable-verify.c: Likewise.
23621 * web.c: Likewise.
23622 * wide-int-print.cc: Likewise.
23623 * wide-int-print.h: Likewise.
23624 * wide-int.cc: Likewise.
23625 * xcoffout.c: Likewise.
23626 * config/aarch64/aarch64-builtins.c: Likewise.
23627 * config/aarch64/aarch64.c: Likewise.
23628 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23629 * config/alpha/alpha.c: Likewise.
23630 * config/arc/arc.c: Likewise.
23631 * config/arm/aarch-common.c: Likewise.
23632 * config/arm/arm-builtins.c: Likewise.
23633 * config/arm/arm-c.c: Likewise.
23634 * config/arm/arm.c: Likewise.
23635 * config/avr/avr-c.c: Likewise.
23636 * config/avr/avr-log.c: Likewise.
23637 * config/avr/avr.c: Likewise.
23638 * config/bfin/bfin.c: Likewise.
23639 * config/c6x/c6x.c: Likewise.
23640 * config/cr16/cr16.c: Likewise.
23641 * config/cris/cris.c: Likewise.
23642 * config/darwin-c.c: Likewise.
23643 * config/darwin.c: Likewise.
23644 * config/default-c.c: Likewise.
23645 * config/epiphany/epiphany.c: Likewise.
23646 * config/epiphany/mode-switch-use.c: Likewise.
23647 * config/epiphany/resolve-sw-modes.c: Likewise.
23648 * config/fr30/fr30.c: Likewise.
23649 * config/frv/frv.c: Likewise.
23650 * config/ft32/ft32.c: Likewise.
23651 * config/glibc-c.c: Likewise.
23652 * config/h8300/h8300.c: Likewise.
23653 * config/i386/i386-c.c: Likewise.
23654 * config/i386/i386.c: Likewise.
23655 * config/i386/msformat-c.c: Likewise.
23656 * config/i386/winnt-cxx.c: Likewise.
23657 * config/i386/winnt-stubs.c: Likewise.
23658 * config/i386/winnt.c: Likewise.
23659 * config/ia64/ia64-c.c: Likewise.
23660 * config/ia64/ia64.c: Likewise.
23661 * config/iq2000/iq2000.c: Likewise.
23662 * config/lm32/lm32.c: Likewise.
23663 * config/m32c/m32c-pragma.c: Likewise.
23664 * config/m32c/m32c.c: Likewise.
23665 * config/m32r/m32r.c: Likewise.
23666 * config/m68k/m68k.c: Likewise.
23667 * config/mcore/mcore.c: Likewise.
23668 * config/mep/mep-pragma.c: Likewise.
23669 * config/mep/mep.c: Likewise.
23670 * config/microblaze/microblaze-c.c: Likewise.
23671 * config/microblaze/microblaze.c: Likewise.
23672 * config/mips/mips.c: Likewise.
23673 * config/mmix/mmix.c: Likewise.
23674 * config/mn10300/mn10300.c: Likewise.
23675 * config/moxie/moxie.c: Likewise.
23676 * config/msp430/msp430-c.c: Likewise.
23677 * config/msp430/msp430.c: Likewise.
23678 * config/nds32/nds32-cost.c: Likewise.
23679 * config/nds32/nds32-fp-as-gp.c: Likewise.
23680 * config/nds32/nds32-intrinsic.c: Likewise.
23681 * config/nds32/nds32-isr.c: Likewise.
23682 * config/nds32/nds32-md-auxiliary.c: Likewise.
23683 * config/nds32/nds32-memory-manipulation.c: Likewise.
23684 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23685 * config/nds32/nds32-predicates.c: Likewise.
23686 * config/nds32/nds32.c: Likewise.
23687 * config/nios2/nios2.c: Likewise.
23688 * config/nvptx/nvptx.c: Likewise.
23689 * config/pa/pa.c: Likewise.
23690 * config/pdp11/pdp11.c: Likewise.
23691 * config/rl78/rl78-c.c: Likewise.
23692 * config/rl78/rl78.c: Likewise.
23693 * config/rs6000/rs6000-c.c: Likewise.
23694 * config/rs6000/rs6000.c: Likewise.
23695 * config/rx/rx.c: Likewise.
23696 * config/s390/s390-c.c: Likewise.
23697 * config/s390/s390.c: Likewise.
23698 * config/sh/sh-c.c: Likewise.
23699 * config/sh/sh-mem.cc: Likewise.
23700 * config/sh/sh.c: Likewise.
23701 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23702 * config/sh/sh_treg_combine.cc: Likewise.
23703 * config/sol2-c.c: Likewise.
23704 * config/sol2-cxx.c: Likewise.
23705 * config/sol2-stubs.c: Likewise.
23706 * config/sol2.c: Likewise.
23707 * config/sparc/sparc-c.c: Likewise.
23708 * config/sparc/sparc.c: Likewise.
23709 * config/spu/spu-c.c: Likewise.
23710 * config/spu/spu.c: Likewise.
23711 * config/stormy16/stormy16.c: Likewise.
23712 * config/tilegx/mul-tables.c: Likewise.
23713 * config/tilegx/tilegx-c.c: Likewise.
23714 * config/tilegx/tilegx.c: Likewise.
23715 * config/tilepro/mul-tables.c: Likewise.
23716 * config/tilepro/tilepro-c.c: Likewise.
23717 * config/tilepro/tilepro.c: Likewise.
23718 * config/v850/v850-c.c: Likewise.
23719 * config/v850/v850.c: Likewise.
23720 * config/vax/vax.c: Likewise.
23721 * config/visium/visium.c: Likewise.
23722 * config/vms/vms-c.c: Likewise.
23723 * config/vms/vms.c: Likewise.
23724 * config/vxworks.c: Likewise.
23725 * config/winnt-c.c: Likewise.
23726 * config/xtensa/xtensa.c: Likewise.
23727 * common/config/bfin/bfin-common.c: Likewise.
23728
23729 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
23730
23731 * tree.h (tree_code_for_canonical_type_merging): New function.
23732 * tree.c (gimple_canonical_types_compatible_p): Use
23733 tree_code_for_canonical_type_merging..
23734
23735 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23736
23737 PR c++/66192
23738 PR target/66200
23739 * doc/tm.texi: Regenerate.
23740 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
23741 * target.def (TARGET_RELAXED_ORDERING): Likewise.
23742 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
23743 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
23744 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
23745 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
23746 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
23747 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
23748 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
23749
23750 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23751
23752 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
23753 register fma steering pass.
23754 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
23755 AARCH64_TUNE_FMA_STEERING.
23756
23757 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
23758
23759 * tree.c (verify_type_variant): Verify that type and variant is
23760 compatible.
23761 (gimple_canonical_types_compatible_p): Look for main variants.
23762
23763 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23764
23765 * config.gcc (powerpc*-*-*): Add support for a new configure
23766 option --with-advance-toolchain=<xxx> which overrides using the
23767 default header files, libraries and dynamic linker.
23768
23769 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
23770 specs to support the configure --with-advance-toolchain=<xxx>
23771 option.
23772 (INCLUDE_EXTRA_SPEC): Likewise.
23773 (LINK_OS_EXTRA_SPEC32): Likewise.
23774 (LINK_OK_EXTRA_SPEC64): Likewise.
23775 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
23776 (DYNAMIC_LINKER_PREFIX): Likewise.
23777 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
23778 toolchain support.
23779 (GLIBC_DYNAMIC_LINKER32): Likewise.
23780 (GLIBC_DYNAMIC_LINKER64): Likewise.
23781 (LINK_OS_LINUX_SPEC32): Likewise.
23782 (LINK_OS_LINUX_SPEC64): Likewise.
23783
23784 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
23785 configuration option.
23786
23787 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
23788
23789 PR target/66275
23790 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
23791 to determine current function ABI.
23792 (ix86_function_value_regno_p): Ditto.
23793
23794 2015-06-03 Martin Liska <mliska@suse.cz>
23795
23796 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
23797 * bitmap.h (struct bitmap_usage): Likewise.
23798 * ggc-common.c (struct ggc_usage): Likewise.
23799 * mem-stats.h (struct mem_location): Likewise.
23800 (struct mem_usage): Likewise.
23801 * vec.c (struct vec_usage): Likewise.
23802
23803 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
23804
23805 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
23806 -Bsymbolic.
23807
23808 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
23809
23810 * doc/plugins.texi (enum plugin_event): New event.
23811 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
23812 and PLUGIN_FINISH_FUNCTION.
23813 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
23814 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
23815
23816 2015-06-03 Richard Biener <rguenther@suse.de>
23817
23818 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23819 compute GROUP_GAP for the first element.
23820 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
23821 on in-group gaps.
23822
23823 2015-06-03 Nick Clifton <nickc@redhat.com>
23824
23825 * config/rl78/rl78-real.md: Add peepholes to avoid a register
23826 copy when calling a function.
23827 * config/rl78/rl78.c (need_to_save): Do not push the frame
23828 pointer in an interrupt handler prologue if it is never used.
23829
23830 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23831
23832 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
23833
23834 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23835
23836 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
23837 reference when cloning alias node.
23838
23839 2015-06-03 Martin Liska <mliska@suse.cz>
23840
23841 * alloc-pool.h (struct pool_usage): Correct space padding.
23842 * ggc-page.c (ggc_print_statistics): Align columns in a report.
23843 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
23844 * tree.c (dump_tree_statistics): Align columns in a report.
23845
23846 2015-06-03 Martin Liska <mliska@suse.cz>
23847
23848 * alloc-pool.c (allocate_pool_descriptor): Remove.
23849 (struct pool_output_info): Likewise.
23850 (print_alloc_pool_statistics): Likewise.
23851 (dump_alloc_pool_statistics): Likewise.
23852 * alloc-pool.h (struct pool_usage): New struct.
23853 (pool_allocator::initialize): Change usage of memory statistics
23854 to a new interface.
23855 (pool_allocator::release): Likewise.
23856 (pool_allocator::allocate): Likewise.
23857 (pool_allocator::remove): Likewise.
23858 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
23859 for a pool allocator.
23860 * mem-stats.h (struct mem_location): Add new ctor.
23861 (struct mem_usage): Add counter for number of
23862 instances.
23863 (mem_alloc_description::register_descriptor): New overload of
23864 * mem-stats.h (mem_location::to_string): New function.
23865 * bitmap.h (struct bitmap_usage): Use this new function.
23866 * ggc-common.c (struct ggc_usage): Likewise.
23867 the function.
23868
23869 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23870
23871 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
23872 of GCC_INSN_FLAGS_H block.
23873
23874 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23875
23876 * explow.c (plus_constant): Update check after force_const_mem call
23877 to see if the value returned is not a NULL_RTX.
23878
23879 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
23880
23881 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
23882 remove instumentation thunks calling reachable functions.
23883 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
23884 * lto/lto-partition.c (privatize_symbol_name_1): New.
23885 (privatize_symbol_name): Privatize both decl and orig_decl
23886 names for instrumented functions.
23887 * cgraph.c (cgraph_node::verify_node): Add transparent
23888 alias chain check for instrumented node.
23889
23890 2015-06-03 Marek Polacek <polacek@redhat.com>
23891
23892 PR c/64223
23893 PR c/29358
23894 * tree.c (attribute_value_equal): Handle attribute format.
23895 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
23896
23897 2015-06-03 Richard Biener <rguenther@suse.de>
23898
23899 PR tree-optimization/63916
23900 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
23901 Forward-propagate non-invariant addresses by splicing their
23902 reference ops if the result isn't going to be used by PRE.
23903 (vn_reference_lookup_3): Remove pointless assert.
23904
23905 2015-06-03 Richard Biener <rguenther@suse.de>
23906
23907 PR tree-optimization/66375
23908 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
23909 add to the evolution before following SSA edges.
23910
23911 2015-06-03 Bin Cheng <bin.cheng@arm.com>
23912
23913 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
23914 (dump_use, dump_cand, find_induction_variables): Pass new argument
23915 to dump_iv.
23916 (record_use): Preserve the ssa name information in IV.
23917
23918 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
23919
23920 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
23921 NO_MODE_TEST.
23922 (add_mode_tests): Don't add mode tests if the predicate only
23923 accepts scalar constant integers. Otherwise, allow the mode
23924 of "op" to be VOIDmode if the predicate does accept such integers.
23925
23926 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
23927
23928 PR target/66258
23929 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
23930 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
23931 (aarch64_secondary_reload): Likewise
23932 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
23933 to !TARGET_FLOAT.
23934 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
23935 Likewise.
23936
23937 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
23938 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23939
23940 PR target/65768
23941 * cprop.c (try_replace_reg): Check cost of constants before propagating.
23942
23943 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23944
23945 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
23946 provide access to the IBM extended double floating point mode if
23947 long double is IEEE 128-bit floating point.
23948 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
23949 point if long double is the IBM extended double type.
23950
23951 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
23952 enable adding IEEE 128-bit floating point support.
23953 (-mfloat128-software): Likewise.
23954 (-mfloat128-sw): Likewise.
23955
23956 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
23957 128-bit floating point types to occupy any register if
23958 -mlong-double-64. Do not allow use of IFmode/KFmode unless
23959 -mfloat128-software is enabled.
23960 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
23961 support.
23962 (rs6000_option_override_internal): Add -mfloat128-* support.
23963 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
23964
23965 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
23966 and float128 type nodes.
23967 (ieee128_float_type_node): Likewise.
23968 (ibm128_float_type_node): Likewise.
23969
23970 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23971
23972 PR target/66136
23973 * config/aarch64/geniterators.sh: Rewrite in awk.
23974
23975 2015-06-02 Martin Liska <mliska@suse.cz>
23976
23977 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
23978 values to avoid -Wmaybe-uninitialized errors.
23979
23980 2015-06-02 Richard Biener <rguenther@suse.de>
23981
23982 PR debug/65549
23983 * dwarf2out.c (lookup_context_die): New function.
23984 (resolve_addr): Avoid forcing a full DIE for the
23985 target of a DW_TAG_GNU_call_site during late compilation.
23986 Instead create a stub DIE without a type if we have a
23987 context DIE present.
23988
23989 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
23990
23991 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
23992
23993 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23994
23995 PR tree-optimization/48052
23996 * cfgloop.h (struct control_iv): New.
23997 (struct loop): New field control_ivs.
23998 * tree-ssa-loop-niter.c : Include "stor-layout.h".
23999 (number_of_iterations_lt): Set no_overflow information.
24000 (number_of_iterations_exit): Init control iv in niter struct.
24001 (record_control_iv): New.
24002 (estimate_numbers_of_iterations_loop): Call record_control_iv.
24003 (loop_exits_before_overflow): New. Interface factored out of
24004 scev_probably_wraps_p.
24005 (scev_probably_wraps_p): Factor loop niter related code into
24006 loop_exits_before_overflow.
24007 (free_numbers_of_iterations_estimates_loop): Free control ivs.
24008 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
24009
24010 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
24011
24012 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
24013 the target doesn't belong to the current function.
24014
24015 2015-06-02 Marek Polacek <polacek@redhat.com>
24016
24017 PR middle-end/66345
24018 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
24019 get_maxval_strlen does not produce an INTEGER_CST.
24020
24021 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
24022
24023 * config/arc/constraints.md: Use lower-case names in match_code.
24024 * config/mmix/constraints.md: Likewise.
24025
24026 2015-06-02 Richard Biener <rguenther@suse.de>
24027
24028 PR tree-optimization/65961
24029 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
24030 check and clarify dump message.
24031 (vect_build_slp_tree): If all children are built up from scalars
24032 build up the parent from scalars instead.
24033 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
24034
24035 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
24036
24037 PR other/65366
24038 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
24039 instead of print ... .
24040
24041 2015-06-02 Alan Modra <amodra@gmail.com>
24042
24043 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
24044 2014-08-11 change.
24045
24046 2015-06-02 Bin Cheng <bin.cheng@arm.com>
24047
24048 PR tree-optimization/52563
24049 PR tree-optimization/62173
24050 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
24051 (alloc_iv, set_iv): New parameter.
24052 (determine_biv_step): Delete.
24053 (find_bivs): Inline original determine_biv_step. Pass new
24054 argument to set_iv.
24055 (idx_find_step): Use no_overflow information for conversion.
24056 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
24057 resolve_mixers handle folded_casts.
24058 (instantiate_scev_name): Change bool parameter to bool pointer.
24059 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
24060 (instantiate_array_ref, instantiate_scev_not): Ditto.
24061 (instantiate_scev_3, instantiate_scev_2): Ditto.
24062 (instantiate_scev_1, instantiate_scev_r): Ditto.
24063 (instantiate_scev_convert, ): Change parameter. Pass argument
24064 to chrec_convert_aggressive.
24065 (instantiate_scev): Change argument.
24066 (resolve_mixers): New parameter and set it.
24067 (scev_const_prop): New argument.
24068 * tree-scalar-evolution.h (resolve_mixers): New parameter.
24069 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
24070 of chrec_conert_1.
24071 (chrec_convert): New parameter. Move definition below.
24072 (chrec_convert_aggressive): New parameter and set it. Call
24073 convert_affine_scev.
24074 * tree-chrec.h (chrec_convert): New parameter.
24075 (chrec_convert_aggressive): Ditto.
24076
24077 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24078
24079 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
24080 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
24081 the LHS of a no-return call if its type has variable size.
24082 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
24083 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
24084
24085 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
24086
24087 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
24088 * config.in: Regenerate.
24089
24090 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24091
24092 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
24093 consecutive accesses within outer-loop with force_vectorize
24094 for references with zero step in inner-loop.
24095
24096 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
24097
24098 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
24099 rather than from gcc/build directory.
24100
24101 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
24102
24103 PR target/65697
24104 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
24105 for __sync memory models, emit initial loads and final barriers as
24106 appropriate.
24107
24108 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
24109
24110 PR target/65697
24111 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
24112 (aarch64_split_atomic_op): Check for __sync memory models, emit
24113 appropriate initial loads and final barriers.
24114
24115 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
24116
24117 * Makefile.in: Fix gcov dependencies that should
24118 not point to a build folder.
24119
24120 2015-06-01 Richard Biener <rguenther@suse.de>
24121
24122 Revert
24123 2015-05-29 Richard Biener <rguenther@suse.de>
24124
24125 PR tree-optimization/66314
24126 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24127 parameter that says which loop the new block belongs to.
24128 (ssa_create_duplicates): Blocks duplicated for the threaded
24129 path belong to the loop of the thread destination.
24130
24131 2015-06-01 Martin Liska <mliska@suse.cz>
24132
24133 * sched-deps.c: Include pool-alloc.h before
24134 cselib.h header file is included.
24135
24136 2015-06-01 Richard Biener <rguenther@suse.de>
24137
24138 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24139 functions.
24140
24141 2015-06-01 Martin Liska <mliska@suse.cz>
24142
24143 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24144 a function local variable.
24145
24146 2015-06-01 Martin Liska <mliska@suse.cz>
24147
24148 * alloc-pool.c (create_alloc_pool): Remove.
24149 (empty_alloc_pool): Likewise.
24150 (free_alloc_pool): Likewise.
24151 (free_alloc_pool_if_empty): Likewise.
24152 (pool_alloc): Likewise.
24153 (pool_free): Likewise.
24154 * alloc-pool.h: Remove old declarations.
24155
24156 2015-06-01 Martin Liska <mliska@suse.cz>
24157
24158 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24159 (ira_create_object): Likewise.
24160 (ira_create_allocno): Likewise.
24161 (ira_create_live_range): Likewise.
24162 (copy_live_range): Likewise.
24163 (ira_finish_live_range): Likewise.
24164 (ira_free_allocno_costs): Likewise.
24165 (finish_allocno): Likewise.
24166 (finish_allocnos): Likewise.
24167 (initiate_prefs): Likewise.
24168 (ira_create_pref): Likewise.
24169 (finish_pref): Likewise.
24170 (finish_prefs): Likewise.
24171 (initiate_copies): Likewise.
24172 (ira_create_copy): Likewise.
24173 (finish_copy): Likewise.
24174 (finish_copies): Likewise.
24175 (finish_prefs): Likewise.
24176
24177 2015-06-01 Martin Liska <mliska@suse.cz>
24178
24179 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24180 (allocate_and_init_ipcp_value): Likewise.
24181 (ipcp_lattice::add_value): Likewise.
24182 (merge_agg_lats_step): Likewise.
24183 (ipcp_driver): Likewise.
24184 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24185 (ipa_free_all_structures_after_iinln): Likewise.
24186 * ipa-prop.h: Likewise.
24187
24188 2015-06-01 Martin Liska <mliska@suse.cz>
24189
24190 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24191 pool allocator.
24192 (set_hint_predicate): Likewise.
24193 (inline_summary_alloc): Likewise.
24194 (reset_inline_edge_summary): Likewise.
24195 (reset_inline_summary): Likewise.
24196 (set_cond_stmt_execution_predicate): Likewise.
24197 (set_switch_stmt_execution_predicate): Likewise.
24198 (compute_bb_predicates): Likewise.
24199 (estimate_function_body_sizes): Likewise.
24200 (inline_free_summary): Likewise.
24201
24202 2015-06-01 Martin Liska <mliska@suse.cz>
24203
24204 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24205 (ipa_edge_duplication_hook): Likewise.
24206 (ipa_free_all_structures_after_ipa_cp): Likewise.
24207 (ipa_free_all_structures_after_iinln): Likewise.
24208
24209 2015-06-01 Martin Liska <mliska@suse.cz>
24210
24211 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24212 (ipa_profile_generate_summary): Likewise.
24213 (ipa_profile_read_summary): Likewise.
24214 (ipa_profile): Likewise.
24215
24216 2015-06-01 Martin Liska <mliska@suse.cz>
24217
24218 * tree-ssa-structalias.c (new_var_info): Use new type-based
24219 pool allocator.
24220 (new_constraint): Likewise.
24221 (init_alias_vars): Likewise.
24222 (delete_points_to_sets): Likewise.
24223
24224 2015-06-01 Martin Liska <mliska@suse.cz>
24225
24226 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24227 (free_strinfo): Likewise.
24228 (pass_strlen::execute): Likewise.
24229
24230 2015-06-01 Martin Liska <mliska@suse.cz>
24231
24232 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24233 pool allocator.
24234 (vn_reference_insert_pieces): Likewise.
24235 (vn_phi_insert): Likewise.
24236 (visit_reference_op_call): Likewise.
24237 (copy_phi): Likewise.
24238 (copy_reference): Likewise.
24239 (process_scc): Likewise.
24240 (allocate_vn_table): Likewise.
24241 (free_vn_table): Likewise.
24242
24243 2015-06-01 Martin Liska <mliska@suse.cz>
24244
24245 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24246 pool allocator.
24247 (add_repeat_to_ops_vec): Likewise.
24248 (get_ops): Likewise.
24249 (maybe_optimize_range_tests): Likewise.
24250 (init_reassoc): Likewise.
24251 (fini_reassoc): Likewise.
24252
24253 2015-06-01 Martin Liska <mliska@suse.cz>
24254
24255 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24256 pool allocator.
24257 (bitmap_set_new): Likewise.
24258 (get_or_alloc_expr_for_constant): Likewise.
24259 (get_or_alloc_expr_for): Likewise.
24260 (phi_translate_1): Likewise.
24261 (compute_avail): Likewise.
24262 (init_pre): Likewise.
24263 (fini_pre): Likewise.
24264
24265 2015-06-01 Martin Liska <mliska@suse.cz>
24266
24267 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24268 (delete_dep_node): Likewise.
24269 (create_deps_list): Likewise.
24270 (free_deps_list): Likewise.
24271 (sched_deps_init): Likewise.
24272 (sched_deps_finish): Likewise.
24273
24274 2015-06-01 Martin Liska <mliska@suse.cz>
24275
24276 * regcprop.c (free_debug_insn_changes): Use new type-based
24277 pool allocator.
24278 (replace_oldest_value_reg): Likewise.
24279 (pass_cprop_hardreg::execute): Likewise.
24280
24281 2015-06-01 Martin Liska <mliska@suse.cz>
24282
24283 * ira-build.c (initiate_cost_vectors): Use new type-based
24284 pool allocator.
24285 (ira_allocate_cost_vector): Likewise.
24286 (ira_free_cost_vector): Likewise.
24287 (finish_cost_vectors): Likewise.
24288
24289 2015-06-01 Martin Liska <mliska@suse.cz>
24290
24291 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24292 pool allocator.
24293 (free_sched_pools): Likewise.
24294 * sel-sched-ir.h (_list_alloc): Likewise.
24295 (_list_remove): Likewise.
24296
24297 2015-06-01 Martin Liska <mliska@suse.cz>
24298
24299 * stmt.c (add_case_node): Use new type-based pool allocator.
24300 (expand_case): Likewise.
24301 (expand_sjlj_dispatch_table): Likewise.
24302
24303 2015-06-01 Martin Liska <mliska@suse.cz>
24304
24305 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24306 (free_bb): Likewise.
24307 (pass_cse_reciprocals::execute): Likewise.
24308
24309 2015-06-01 Martin Liska <mliska@suse.cz>
24310
24311 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24312 (sra_deinitialize) Likewise.
24313 (create_access_1) Likewise.
24314 (build_accesses_from_assign) Likewise.
24315 (create_artificial_child_access) Likewise.
24316
24317 2015-06-01 Martin Liska <mliska@suse.cz>
24318
24319 * dse.c (get_group_info):Use new type-based pool allocator.
24320 (dse_step0) Likewise.
24321 (free_store_info) Likewise.
24322 (delete_dead_store_insn) Likewise.
24323 (free_read_records) Likewise.
24324 (record_store) Likewise.
24325 (replace_read) Likewise.
24326 (check_mem_read_rtx) Likewise.
24327 (scan_insn) Likewise.
24328 (dse_step1) Likewise.
24329 (dse_step7) Likewise.
24330
24331 2015-06-01 Martin Liska <mliska@suse.cz>
24332
24333 * df-scan.c (struct df_scan_problem_data):Use new type-based
24334 pool allocator.
24335 (df_scan_free_internal) Likewise.
24336 (df_scan_alloc) Likewise.
24337 (df_grow_reg_info) Likewise.
24338 (df_free_ref) Likewise.
24339 (df_insn_create_insn_record) Likewise.
24340 (df_mw_hardreg_chain_delete) Likewise.
24341 (df_insn_info_delete) Likewise.
24342 (df_free_collection_rec) Likewise.
24343 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24344 (df_sort_and_compress_mws) Likewise.
24345 (df_ref_create_structure) Likewise.
24346 (df_ref_record) Likewise.
24347
24348 2015-06-01 Martin Liska <mliska@suse.cz>
24349
24350 * df-problems.c (df_chain_create):Use new type-based pool allocator.
24351 (df_chain_unlink_1) Likewise.
24352 (df_chain_unlink) Likewise.
24353 (df_chain_remove_problem) Likewise.
24354 (df_chain_alloc) Likewise.
24355 (df_chain_free) Likewise.
24356 * df.h (struct dataflow) Likewise.
24357
24358 2015-06-01 Martin Liska <mliska@suse.cz>
24359
24360 * cselib.c (new_elt_list):Use new type-based pool allocator.
24361 (new_elt_loc_list) Likewise.
24362 (unchain_one_elt_list) Likewise.
24363 (unchain_one_elt_loc_list) Likewise.
24364 (unchain_one_value) Likewise.
24365 (new_cselib_val) Likewise.
24366 (cselib_init) Likewise.
24367 (cselib_finish) Likewise.
24368
24369 2015-06-01 Martin Liska <mliska@suse.cz>
24370
24371 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24372 (sh_reorg) Likewise.
24373
24374 2015-06-01 Martin Liska <mliska@suse.cz>
24375
24376 * cfg.c (initialize_original_copy_tables):Use new type-based
24377 pool allocator.
24378 (free_original_copy_tables) Likewise.
24379 (copy_original_table_clear) Likewise.
24380 (copy_original_table_set) Likewise.
24381
24382 2015-06-01 Martin Liska <mliska@suse.cz>
24383
24384 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24385 pool allocator.
24386 (asan_mem_ref_new) Likewise.
24387 (free_mem_ref_resources) Likewise.
24388
24389 2015-06-01 Martin Liska <mliska@suse.cz>
24390
24391 * var-tracking.c (variable_htab_free):Use new type-based
24392 pool allocator.
24393 (attrs_list_clear) Likewise.
24394 (attrs_list_insert) Likewise.
24395 (attrs_list_copy) Likewise.
24396 (shared_hash_unshare) Likewise.
24397 (shared_hash_destroy) Likewise.
24398 (unshare_variable) Likewise.
24399 (var_reg_delete_and_set) Likewise.
24400 (var_reg_delete) Likewise.
24401 (var_regno_delete) Likewise.
24402 (drop_overlapping_mem_locs) Likewise.
24403 (variable_union) Likewise.
24404 (insert_into_intersection) Likewise.
24405 (canonicalize_values_star) Likewise.
24406 (variable_merge_over_cur) Likewise.
24407 (dataflow_set_merge) Likewise.
24408 (remove_duplicate_values) Likewise.
24409 (variable_post_merge_new_vals) Likewise.
24410 (dataflow_set_preserve_mem_locs) Likewise.
24411 (dataflow_set_remove_mem_locs) Likewise.
24412 (variable_from_dropped) Likewise.
24413 (variable_was_changed) Likewise.
24414 (set_slot_part) Likewise.
24415 (clobber_slot_part) Likewise.
24416 (delete_slot_part) Likewise.
24417 (loc_exp_insert_dep) Likewise.
24418 (notify_dependents_of_changed_value) Likewise.
24419 (emit_notes_for_differences_1) Likewise.
24420 (vt_emit_notes) Likewise.
24421 (vt_initialize) Likewise.
24422 (vt_finalize) Likewise.
24423
24424 2015-06-01 Martin Liska <mliska@suse.cz>
24425
24426 * ira-color.c (init_update_cost_records):Use new type-based
24427 pool allocator.
24428 (get_update_cost_record) Likewise.
24429 (free_update_cost_record_list) Likewise.
24430 (finish_update_cost_records) Likewise.
24431 (initiate_cost_update) Likewise.
24432
24433 2015-06-01 Martin Liska <mliska@suse.cz>
24434
24435 * lra.c (init_insn_regs): Use new type-based pool allocator.
24436 (new_insn_reg) Likewise.
24437 (free_insn_reg) Likewise.
24438 (free_insn_regs) Likewise.
24439 (finish_insn_regs) Likewise.
24440 (init_insn_recog_data) Likewise.
24441 (init_reg_info) Likewise.
24442 (finish_reg_info) Likewise.
24443 (lra_free_copies) Likewise.
24444 (lra_create_copy) Likewise.
24445 (invalidate_insn_data_regno_info) Likewise.
24446
24447 2015-06-01 Martin Liska <mliska@suse.cz>
24448
24449 * lra-lives.c (free_live_range): Use new type-based pool allocator.
24450 (free_live_range_list) Likewise.
24451 (create_live_range) Likewise.
24452 (copy_live_range) Likewise.
24453 (lra_merge_live_ranges) Likewise.
24454 (remove_some_program_points_and_update_live_ranges) Likewise.
24455 (lra_live_ranges_init) Likewise.
24456 (lra_live_ranges_finish) Likewise.
24457
24458 2015-06-01 Martin Liska <mliska@suse.cz>
24459
24460 * et-forest.c (et_new_occ): Use new type-based pool allocator.
24461 (et_new_tree): Likewise.
24462 (et_free_tree): Likewise.
24463 (et_free_tree_force): Likewise.
24464 (et_free_pools): Likewise.
24465 (et_split): Likewise.
24466
24467 2015-06-01 Martin Liska <mliska@suse.cz>
24468
24469 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24470 to header file.
24471 * alloc-pool.h (pool_allocator::pool_allocator): New function.
24472 (pool_allocator::release): Likewise.
24473 (inline pool_allocator::release_if_empty): Likewise.
24474 (inline pool_allocator::~pool_allocator): Likewise.
24475 (pool_allocator::allocate): Likewise.
24476 (pool_allocator::remove): Likewise.
24477
24478 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24479
24480 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24481 in comment.
24482
24483 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24484
24485 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24486 to fusible_ops.
24487 * config/arm/arm.c (arm_print_tune_info): Likewise.
24488 (arm_macro_fusion_p): Likewise.
24489 (arm_macro_fusion_pair_p): Likewise.
24490
24491 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24492
24493 * config/aarch64/aarch64-protos.h (tune_params): Rename
24494 fuseable_ops to fusible_ops.
24495 * config/aarch64/aarch64.c (generic_tunings): Rename
24496 fuseable_ops to fusible_ops.
24497 (cortexa53_tunings): Likewise.
24498 (cortexa57_tunings): Likewise.
24499 (thunderx_tunings): Likewise.
24500 (xgene1_tunings): Likewise.
24501 (aarch64_macro_fusion_p): Likewise.
24502 (aarch64_macro_fusion_pair_p): Likewise.
24503
24504 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
24505
24506 * config/s390/driver-native.c: New file.
24507 * config/s390/x-native: New file.
24508 * config.host: Add new files for s390.
24509 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24510 and -march=native
24511 * config.gcc: Likewise.
24512 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24513 * config/s390/s390-opts.h (enum processor_type): Ditto.
24514 * config/s390/s390.c (s390_option_override): Catch unhandled
24515 PROCESSOR_NATIVE
24516
24517 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
24518
24519 PR target/65527
24520 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24521 redirection for instrumented calls.
24522 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24523 (append_compiler_options): Append -fcheck-pointer-bounds.
24524 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24525 (chkp_redirect_edge): New.
24526 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24527 (chkp_redirect_edge): New.
24528
24529 2015-06-01 Richard Biener <rguenther@suse.de>
24530
24531 PR tree-optimization/66280
24532 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24533 def-use walking.
24534
24535 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24536
24537 * config/aarch64/aarch64.md
24538 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24539 logic_shift_imm.
24540
24541 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24542
24543 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24544 Remove obsolete kludge.
24545
24546 2015-06-01 Richard Biener <rguenther@suse.de>
24547
24548 * tree-ssa-reassoc.c (get_rank): Simplify.
24549
24550 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
24551
24552 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24553 * configure: Regenerated.
24554
24555 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
24556
24557 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24558 issue (add space between string literal and macro).
24559 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24560
24561 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
24562
24563 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24564 implict or explicit -fPIE or -fpie.
24565
24566 2015-05-30 Mike Frysinger <vapier@gentoo.org>
24567
24568 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24569
24570 2015-05-28 DJ Delorie <dj@redhat.com>
24571
24572 * expmed.c (extract_bit_field_1): Avoid clobbering a
24573 yet-to-be-used base/index register.
24574
24575 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
24576
24577 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24578 (alias_stats): Add num_universal.
24579 (alias_set_subset_of): Special case pointers; be ready for NULL
24580 children.
24581 (alias_sets_conflict_p): Special case pointers; be ready for NULL
24582 children.
24583 (init_alias_set_entry): Break out from ...
24584 (record_alias_subset): ... here; propagate new fields;
24585 allocate children only when really needed.
24586 (get_alias_set): Do less generous pointer globbing.
24587 (dump_alias_stats_in_alias_c): Update statistics.
24588
24589 2015-05-30 Alan Modra <amodra@gmail.com>
24590
24591 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24592 correct block for use of r12.
24593 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24594
24595 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24596
24597 PR target/66215
24598 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24599 with -mhotpatch=.
24600
24601 2015-05-29 Jakub Jelinek <jakub@redhat.com>
24602
24603 PR tree-optimization/66142
24604 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24605 virtual phis that feed themselves.
24606
24607 2015-05-29 Richard Biener <rguenther@suse.de>
24608
24609 PR tree-optimization/66314
24610 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24611 parameter that says which loop the new block belongs to.
24612 (ssa_create_duplicates): Blocks duplicated for the threaded
24613 path belong to the loop of the thread destination.
24614
24615 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24616
24617 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24618 to cleanup-saved-temps.
24619 * doc/sourcebuild.texi (Clean up generated test files): Expand
24620 introduction.
24621 (dg-keep-saved-temps): Document new proc.
24622 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24623 cleanup-saved-temps): Remove.
24624
24625 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
24626
24627 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24628 gcc_AC_CHECK_DECLS.
24629 * configure: Regenerate.
24630
24631 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24632
24633 * config/nios2/linux.h (CPP_SPEC): Define.
24634
24635 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24636
24637 * config/microblaze/linux.h (CPP_SPEC): Define.
24638
24639 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24640
24641 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24642 -pthread is specified.
24643
24644 2015-05-28 Richard Biener <rguenther@suse.de>
24645
24646 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24647 (vect_fixup_scalar_cycles_with_patterns): Likewise.
24648 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24649 after pattern recog.
24650 (vect_create_epilog_for_reduction): Properly handle reductions
24651 with patterns.
24652 (vectorizable_reduction): Likewise.
24653 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24654 reduction chains.
24655 (vect_get_constant_vectors): Create the correct number of
24656 initial values for reductions.
24657 (vect_schedule_slp_instance): Handle reduction chains that are
24658 type changing properly.
24659 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24660
24661 2015-05-28 Richard Biener <rguenther@suse.de>
24662
24663 PR tree-optimization/66142
24664 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24665 values better in memcpy destination handling. Handle non-aliasing
24666 we discover here.
24667
24668 2015-05-28 Lawrence Velázquez <vq@larryv.me>
24669
24670 PR target/63810
24671 * config/darwin-c.c (version_components): New global enum.
24672 (parse_version, version_as_legacy_macro)
24673 (version_as_modern_macro, macosx_version_as_macro): New functions.
24674 (version_as_macro): Remove.
24675 (darwin_cpp_builtins): Use new function.
24676
24677 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
24678
24679 * builtins.c (expand_builtin_acc_on_device): Mark parameters
24680 with ATTRIBUTE_UNUSED.
24681
24682 2015-05-28 Julian Brown <julian@codesourcery.com>
24683
24684 PR libgomp/65742
24685
24686 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24687 sequence for !ACCEL_COMPILER.
24688
24689 2015-05-28 Nick Clifton <nickc@redhat.com>
24690
24691 * config/rx/rx.c (push_regs): New function. Extracts code from...
24692 (rx_expand_prologue): ... here. Use push_regs to push even small
24693 spans of registers.
24694 (pop_regs): New function.
24695 (rx_expand_epilogue): Use pop_regs to pop even small spans of
24696 registers.
24697
24698 2015-05-28 Richard Biener <rguenther@suse.de>
24699
24700 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24701 member.
24702 (SLP_INSTANCE_BODY_COST_VEC): Remove.
24703 (vect_update_slp_costs_according_to_vf): Likewise.
24704 (vect_slp_analyze_operations): Update prototype.
24705 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24706 vect_update_slp_costs_according_to_vf, adjust.
24707 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24708 (vect_analyze_slp_cost_1): Likewise.
24709 (vect_analyze_slp_cost): Likewise. Properly deal with
24710 widening reduction ops. Commit body costs.
24711 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
24712 cost for loops from here.
24713 (vect_slp_analyze_operations): But do it from here when
24714 the vectorization factor is known and stmts are analyzed.
24715 (vect_bb_vectorization_profitable_p): Simplify.
24716 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24717 (vect_update_slp_costs_according_to_vf): Remove.
24718
24719 2015-05-27 Magnus Granberg <zorry@gentoo.org>
24720 H.J. Lu <hongjiu.lu@intel.com>
24721
24722 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24723 (BUILD_CFLAGS): Likewise.
24724 (BUILD_CXXFLAGS): Likewise.
24725 (LINKER): Add @NO_PIE_FLAG@.
24726 (BUILD_LDFLAGS): Likewise.
24727 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24728 --enable-default-pie.
24729 * common.opt (fPIE): Initialize to -1.
24730 (fpie): Likewise.
24731 (no-pie): New option.
24732 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
24733 * configure.ac: Add --enable-default-pie.
24734 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
24735 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
24736 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
24737 * gcc.c (NO_PIE_SPEC): New.
24738 (PIE_SPEC): Likewise.
24739 (NO_FPIE1_SPEC): Likewise.
24740 (FPIE1_SPEC): Likewise.
24741 (NO_FPIE2_SPEC): Likewise.
24742 (FPIE2_SPEC): Likewise.
24743 (NO_FPIE2_SPEC): Likewise.
24744 (FPIE_SPEC): Likewise.
24745 (NO_FPIE_SPEC): Likewise.
24746 (NO_FPIC1_SPEC): Likewise.
24747 (FPIC1_SPEC): Likewise.
24748 (NO_FPIC2_SPEC): Likewise.
24749 (FPIC2_SPEC): Likewise.
24750 (NO_FPIC2_SPEC): Likewise.
24751 (FPIC_SPEC): Likewise.
24752 (NO_FPIC_SPEC): Likewise.
24753 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
24754 (FPIE1_OR_FPIC1_SPEC): Likewise.
24755 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
24756 (FPIE2_OR_FPIC2_SPEC): Likewise.
24757 (NO_FPIE_AND_FPIC_SPEC): Likewise.
24758 (FPIE_OR_FPIC_SPEC): Likewise.
24759 (LD_PIE_SPEC): Likewise.
24760 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
24761 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
24762 * config/darwin.h (PIE_SPEC): Renamed to ...
24763 (DARWIN_PIE_SPEC): This.
24764 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
24765 * config/darwin9.h (PIE_SPEC): Renamed to ...
24766 (DARWIN_PIE_SPEC): This.
24767 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
24768 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24769 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
24770 FPIE2_OR_FPIC2_SPEC.
24771 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
24772 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
24773 * config/sol2.h (ASM_PIC_SPEC): Likewise.
24774 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24775 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24776 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
24777 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
24778 * config/m32r/m32r.h (ASM_SPEC): Likewise.
24779 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
24780 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24781 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
24782 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
24783 * config/sparc/linux.h (ASM_SPEC): Likewise.
24784 * config/sparc/linux64.h (ASM_SPEC): Likewise.
24785 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
24786 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
24787 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24788 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24789 * config/sparc/sparc.h (ASM_SPEC): Likewise.
24790 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
24791 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
24792 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
24793 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
24794 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
24795 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
24796 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
24797 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
24798 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
24799 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
24800 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
24801 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
24802 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24803 * config/vax/linux.h (ASM_SPEC): Likewise.
24804 * doc/install.texi: Document --enable-default-pie.
24805 * doc/invoke.texi: Document -no-pie.
24806 * config.in: Regenerated.
24807 * configure: Likewise.
24808
24809 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
24810
24811 PR rtl-optimization/66168
24812 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
24813 can_move_invariant_reg.
24814
24815 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
24816
24817 PR target/66148
24818 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
24819 REG_EQUAL note when doing insert.
24820
24821 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
24822 instead of "%d" for 'o' operand.
24823
24824 2015-05-27 Nathan Sidwell <nathan@acm.org>
24825
24826 PR c++/66270
24827 * tree.c (build_pointer_type_for_mode): Canonical type does not
24828 inherit can_alias_all.
24829 (build_reference_type_for_mode): Likewise.
24830
24831 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
24832
24833 * expr.h (array_at_struct_end_p): Move to...
24834 (array_ref_element_size): Likewise.
24835 (component_ref_field_offset): Likewise.
24836 * tree.h (array_ref_element_size): ...here.
24837 (array_at_struct_end_p): Likewise.
24838 (component_ref_field_offset): Likewise.
24839 * expr.c (array_ref_element_size): Move to...
24840 (array_ref_low_bound): Likewise.
24841 (array_at_struct_end_p): Likewise.
24842 (array_ref_up_bound): Likewise.
24843 (component_ref_field_offset): Likewise.
24844 * tree.c (array_ref_element_size): ...here.
24845 (array_ref_low_bound): Likewise.
24846 (array_ref_up_bound): Likewise.
24847 (array_at_struct_end_p): Likewise.
24848 (component_ref_field_offset): Likewise.
24849
24850 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24851 Szabolcs Nagy <szabolcs.nagy@arm.com>
24852
24853 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
24854
24855 2015-05-27 Jason Merrill <jason@redhat.com>
24856
24857 PR bootstrap/66304
24858 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
24859 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
24860 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
24861
24862 2015-05-22 Aditya Kumar <hiraditya@msn.com>
24863
24864 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
24865 is true.
24866
24867 * statistics.c (statistics_fini_pass): Print pass name.
24868
24869 2015-05-27 Richard Biener <rguenther@suse.de>
24870
24871 PR tree-optimization/66272
24872 Revert parts of
24873 2014-08-15 Richard Biener <rguenther@suse.de>
24874
24875 PR tree-optimization/62031
24876 * tree-data-ref.c (dr_analyze_indices): Do not set
24877 DR_UNCONSTRAINED_BASE.
24878 (dr_may_alias_p): All indirect accesses have to go the
24879 formerly DR_UNCONSTRAINED_BASE path.
24880 * tree-data-ref.h (struct indices): Remove
24881 unconstrained_base member.
24882 (DR_UNCONSTRAINED_BASE): Remove.
24883
24884 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
24885
24886 * dwarf2out.c: Remove block_map.
24887 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
24888 (gen_lexical_block_die): Same.
24889 (dwarf2out_function_decl): Remove block_map use.
24890 (dwarf2out_c_finalize): Same.
24891 * tree-core.h (struct tree_block): Add die field.
24892 * tree.h (BLOCK_DIE): New.
24893
24894 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24895
24896 PR target/65358
24897 * expr.c (memory_load_overlap): New function.
24898 (emit_push_insn): When pushing partial args to the stack would
24899 clobber the register part load the overlapping part into a pseudo
24900 and put it into the hard reg after pushing. Change return type
24901 to bool. Add bool argument.
24902 * expr.h (emit_push_insn): Change return type to bool.
24903 Add bool argument.
24904 * calls.c (expand_call): Cancel sibcall optimization when encountering
24905 partial argument on targets with ARGS_GROW_DOWNWARD and
24906 !STACK_GROWS_DOWNWARD.
24907 (emit_library_call_value_1): Update callsite of emit_push_insn.
24908 (store_one_arg): Likewise.
24909
24910 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
24911
24912 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
24913
24914 2015-05-27 Martin Liska <mliska@suse.cz>
24915
24916 * Makefile.in: Add additional dependencies related to memory report
24917 enhancement.
24918 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
24919 * bitmap.c (struct bitmap_descriptor_d): Remove.
24920 (struct loc): Likewise.
24921 (struct bitmap_desc_hasher): Likewise.
24922 (bitmap_desc_hasher::hash): Likewise.
24923 (bitmap_desc_hasher::equal): Likewise.
24924 (get_bitmap_descriptor): Likewise.
24925 (bitmap_register): User new memory descriptor API.
24926 (register_overhead): Likewise.
24927 (bitmap_find_bit): Register nsearches and search_iter statistics.
24928 (struct bitmap_output_info): Remove.
24929 (print_statistics): Likewise.
24930 (dump_bitmap_statistics): Use new memory descriptor.
24931 * bitmap.h (struct bitmap_usage): New class.
24932 * genmatch.c: Extend header file inclusion.
24933 * genpreds.c: Likewise.
24934 * ggc-common.c (struct ggc_usage): New class.
24935 (struct ggc_loc_desc_hasher): Remove.
24936 (ggc_loc_desc_hasher::hash): Likewise.
24937 (ggc_loc_desc_hasher::equal): Likewise.
24938 (struct ggc_ptr_hash_entry): Likewise.
24939 (struct ptr_hash_hasher): Likewise.
24940 (ptr_hash_hasher::hash): Likewise.
24941 (ptr_hash_hasher::equal): Likewise.
24942 (make_loc_descriptor): Likewise.
24943 (ggc_prune_ptr): Likewise.
24944 (dump_ggc_loc_statistics): Use new memory descriptor.
24945 (ggc_record_overhead): Likewise.
24946 (ggc_free_overhead): Likewise.
24947 (final_cmp_statistic): Remove.
24948 (cmp_statistic): Likewise.
24949 (ggc_add_statistics): Liekwise.
24950 (ggc_prune_overhead_list): Likewise.
24951 * hash-map-traits.h: New file.
24952 * hash-map.h (struct default_hashmap_traits): Move the traits to a
24953 separate header file.
24954 * hash-set.h: Pass memory statistics info to ctor.
24955 * hash-table.c (void dump_hash_table_loc_statistics): New function.
24956 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
24957 (hash_table::~hash_table): Register memory release operation.
24958 (hash_table::alloc_entries): Handle memory allocation operation.
24959 (hash_table::expand): Likewise.
24960 * inchash.c (iterative_hash_hashval_t): Move implementation to header
24961 file.
24962 (iterative_hash_host_wide_int): Likewise.
24963 * inchash.h (class hash): Likewise.
24964 * mem-stats-traits.h: New file.
24965 * mem-stats.h: New file.
24966 (mem_location): Add new class.
24967 (mem_usage): Likewise.
24968 (mem_alloc_description): Likewise.
24969 * sese.c: Add new header file inclusision.
24970 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
24971 and hash_set.
24972 * tree-sra.c: Add new header file inclusision.
24973 * vec.c (struct vec_descriptor): Remove.
24974 (hash_descriptor): Likewise.
24975 (struct vec_usage): Likewise.
24976 (struct ptr_hash_entry): Likewise.
24977 (hash_ptr): Likewise.
24978 (eq_ptr): Likewise.
24979 (vec_prefix::register_overhead): Use new memory descriptor API.
24980 (vec_prefix::release_overhead): Likewise.
24981 (add_statistics): Remove.
24982 (dump_vec_loc_statistics): Use new memory descriptor API.
24983 * vec.h (struct vec_prefix): Likewise.
24984 (va_heap::reserve): Likewise.
24985 (va_heap::release): Likewise.
24986 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
24987
24988 2015-05-27 Richard Biener <rguenther@suse.de>
24989
24990 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
24991 earlier and remove ??? comment.
24992 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
24993 and got called from loop analysis bail out. Always pass the SLP
24994 node to the vectorizable_* functions.
24995 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
24996 the premature SLP check here.
24997 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
24998 detected SLP stmts.
24999 (vect_detect_hybrid_slp_1): Likewise.
25000
25001 2015-05-26 Jeff Law <law@redhat.com>
25002
25003 * combine.c (find_split_point): Verify that the shift count is a
25004 constant when choosing (plus (ashift ...)) as a split point.
25005
25006 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
25007 No functional changes.
25008
25009 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
25010
25011 * ipa-polymorphic-call.c
25012 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
25013 case when call target is already known.
25014
25015 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
25016
25017 PR target/65979
25018 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
25019 take into account the case that operands[1] and operands[2]
25020 are the same register.
25021
25022 2015-05-26 Michael Matz <matz@suse.de>
25023
25024 PR middle-end/66251
25025
25026 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
25027 stores.
25028 (vect_create_vectorized_demotion_stmts): Always set
25029 STMT_VINFO_VEC_STMT, also with SLP.
25030 (vectorizable_store): Handle strided group stores.
25031
25032 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25033
25034 PR target/66049
25035 * config/aarch64/aarch64.md
25036 (*adds_shift_imm_<mode>): New pattern.
25037 (*subs_shift_imm_<mode>): Likewise.
25038 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25039 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25040 (*add_uxt<mode>_shift2): Likewise.
25041 (*add_uxtsi_shift2_uxtw): Likewise.
25042 (*sub_uxt<mode>_shift2): Likewise.
25043 (*sub_uxtsi_shift2_uxtw): Likewise.
25044
25045 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
25046
25047 * config/rs6000/constraints.md (Y, U): Use match_test.
25048
25049 2015-05-26 Christian Bruel <christian.bruel@st.com>
25050
25051 PR target/52144
25052 * config/arm/arm.c (arm_option_check_internal)
25053 (arm_option_params_internal): Check opts->target_flags to set macros.
25054 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25055 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
25056 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25057 (builtin_define): Replaced with def_or_undef_macro.
25058 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25059 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
25060 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25061 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
25062 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
25063 (TARGET_ARM_FEATURE_LDREX_P)
25064 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
25065 * config/arm/arm-c.c (def_or_undef_macro): New function.
25066 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
25067
25068 2015-05-26 Christian Bruel <christian.bruel@st.com>
25069
25070 * c-common.h (builtin_define_with_int_value)
25071 (builtin_define_type_sizeof): Declare.
25072 * c-cppbuiltin.c (builtin_define_with_int_value)
25073 (builtin_define_type_sizeof): Externalize.
25074 (builtin_define_std): Cleanup declaration.
25075 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
25076 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
25077 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
25078 (builtin_define, builtin_assert): New macros.
25079
25080 2015-05-26 Richard Biener <rguenther@suse.de>
25081
25082 PR tree-optimization/66142
25083 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
25084 MEM_REFs for the same base address.
25085
25086 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25087
25088 PR ipa/66181
25089 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
25090
25091 2015-05-26 Jason Merrill <jason@redhat.com>
25092
25093 * configure.ac: Set CXXFLAGS for ISL test.
25094 * configure: Regenerate.
25095
25096 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
25097 strstr and basename.
25098 * configure: Regenerate.
25099
25100 2015-05-26 Richard Biener <rguenther@suse.de>
25101
25102 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
25103 X % C -> X & (C - 1) for C being a power-of two to ...
25104 * match.pd: ... patterns.
25105
25106 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
25107
25108 * match.pd (swapped_tcc_comparison): New operator list.
25109 (-A CMP -B): New simplification.
25110 * fold-const.c (fold_comparison): Remove corresponding code.
25111
25112 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
25113
25114 * caller-save.c (init_caller_save): Base temporary register numbers
25115 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
25116 * cfgloopanal.c (init_set_costs): Likewise.
25117 * dojump.c (prefer_and_bit_test): Likewise.
25118 * expr.c (init_expr_target): Likewise.
25119 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25120 * lower-subreg.c (init_lower_subreg): Likewise.
25121 * postreload.c (reload_cse_regs_1): Likewise.
25122
25123 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
25124
25125 * gensupport.h (compute_test_codes): Declare.
25126 * gensupport.c (compute_predicate_codes): Rename to...
25127 (compute_test_codes): ...this. Generalize error message.
25128 (process_define_predicate): Update accordingly.
25129 * genpreds.c (compute_maybe_allows): Delete.
25130 (add_constraint): Use compute_test_codes to determine whether
25131 something can accept a SUBREG, REG or MEM.
25132
25133 2015-05-26 Torvald Riegel <triegel@redhat.com>
25134
25135 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25136 'memory model' to align with C++11; fix description of memory orders;
25137 fix a few typos.
25138
25139 2015-05-26 Richard Biener <rguenther@suse.de>
25140
25141 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25142 (vect_analyze_loop_operations): ... here. Remove slp parameter,
25143 detect whether we apply SLP. Remove call to
25144 vect_update_slp_costs_according_to_vf.
25145 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25146 vect_update_slp_costs_according_to_vf from here. Dispatch
25147 to vect_slp_analyze_operations to analyze SLP stmts.
25148 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25149 unused bb_vec_info parameter, adjust assert.
25150 (vect_slp_analyze_operations): Pass in the slp instance tree
25151 instead of bb_vec_info.
25152 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25153 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25154
25155 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25156
25157 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25158 Q_REGS. Expand comment.
25159 (REG_CLASS_NAMES): Ditto.
25160 (REG_CLASS_CONTENTS): Ditto.
25161
25162 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
25163
25164 PR target/66274
25165 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25166 when LEGACY_INT_REGNO_P is processed.
25167
25168 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25169
25170 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25171
25172 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25173
25174 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25175 register if not marked dead/unused, before return.
25176
25177 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25178
25179 PR lto/66180
25180 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25181 is set; check for assembler name at LTO time.
25182 (type_in_anonymous_namespace): Remove hacks, check that all
25183 anonymous types are called "<anon>"
25184 (odr_type_p): Simplify; add check for "<anon>"
25185 (odr_subtypes_equivalent): Add odr_type_p check.
25186 * tree.c (need_assembler_name_p): Even anonymous namespace needs
25187 assembler name.
25188
25189 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25190
25191 * ipa-utils.h (method_class_type): Remove.
25192 * cgraphunit.c (walk_polymorphic_call_targets): Use
25193 TYPE_METHOD_BASETYPE.
25194 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25195 on main variants only.
25196 (method_class_type): Remove.
25197 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25198 (build_type_inheritance_graph): Likewise.
25199 * ipa-icf.c (sem_function::equals_wpa): Likewise.
25200 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25201 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25202
25203 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25204
25205 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25206 is_typedef_decl, typedef_variant_p): Constify.
25207 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25208 is_typedef_decl, typedef_variant_p): Constify.
25209
25210 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25211
25212 * defaults.h (gen_tablejump): New function.
25213 (HAVE_tablejump): Add default value.
25214 * expr.c: Adjust.
25215 * stmt.c: Likewise.
25216
25217 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25218
25219 * defaults.h (gen_store_multiple): New function.
25220 (HAVE_store_multiple): Add default value.
25221 * expr.c (move_block_from_reg): Adjust.
25222
25223 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25224
25225 * defaults.h (gen_load_multiple): New function.
25226 (HAVE_load_multiple): Add default value.
25227 * expr.c (move_block_to_reg): Adjust.
25228
25229 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25230
25231 * defaults.h (gen_mem_signal_fence): New function.
25232 (HAVE_mem_signal_fence): Add default value.
25233 * optabs.c: Adjust.
25234
25235 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25236
25237 * defaults.h (gen_memory_barrier): New function.
25238 (HAVE_memory_barrier): Add default value.
25239 * optabs.c: Adjust.
25240
25241 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25242
25243 * defaults.h (gen_mem_thread_fence): New function.
25244 (HAVE_mem_thread_fence): Add default definition.
25245 * optabs.c: Adjust.
25246
25247 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25248
25249 * combine.c (find_split_point): Check the value of HAVE_lo_sum
25250 instead of if it is defined.
25251 (combine_simplify_rtx): Likewise.
25252 * lra-constraints.c (process_address_1): Likewise.
25253 * config/darwin.c: Adjust.
25254 * genconfig.c (main): Always define HAVE_lo_sum.
25255
25256 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25257
25258 * genmatch.c (parser::parse_operation): Reject expanding
25259 operator-list inside 'for'.
25260
25261 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25262
25263 * genmatch.c (parser::parse_for): Reject iterator if used as
25264 operator-list.
25265
25266 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25267
25268 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25269 after end of id-list.
25270
25271 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25272
25273 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25274 we do not try to compute canonical type for type that does not need
25275 alias set.
25276 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25277 FUNCITON_TYPE.
25278 * tree.h (type_with_alias_set_p): New.
25279
25280 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25281
25282 * tree.c (gimple_canonical_types_compatible_p): Do not compare
25283 function attributes.
25284 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25285
25286 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
25287
25288 * Makefile.in (check_gcc_parallelize): Delete.
25289 (lang_checks_parallelized): Update comment.
25290
25291 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
25292
25293 PR rtl-optimization/66237
25294 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25295 location of an "as_a" cast.
25296
25297 2015-05-22 Jeff Law <law@redhat.com>
25298
25299 * config/pa/pa.md (non-canonical shift-add insns): Remove.
25300 (peepholes with non-canonical RTL sources): Remove.
25301 (peepholes for indexed stores of FP regs in integer modes): Match and
25302 generate canonical RTL.
25303
25304 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25305
25306 PR tree-optimization/63387
25307 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25308 ((x ord x) & (y ord y) -> (x ord y),
25309 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25310 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25311 vectors like scalars.
25312
25313 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25314
25315 * convert.c (convert_to_integer, convert_to_vector): Include the
25316 types in the error message.
25317
25318 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25319
25320 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25321 simplifications.
25322
25323 2015-05-22 Jeff Law <law@redhat.com>
25324
25325 * config/pa/pa.md (integer_indexed_store splitters): Use
25326 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
25327 insns -- adjusting the constant 2nd operand accordingly.
25328
25329 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25330 (plus (ashift X log2) Y) if it is a split point.
25331
25332 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25333 out of hppa_legitimize_address to handle both forms of a multiply
25334 by 2, 4 or 8.
25335 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25336 Always generate the ASHIFT variant as the result is not directly
25337 used in a MEM. Update comments and refactor slightly to improve
25338 readability.
25339
25340 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25341
25342 PR target/65491
25343 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25344 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
25345 (aarch64_composite_type_p): Return false if given type and mode are
25346 for a short vector.
25347
25348 2015-05-22 Richard Biener <rguenther@suse.de>
25349
25350 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25351 member.
25352 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25353 patterns when determining whether SLP is pure.
25354 (vect_is_slp_reduction): Remove check for pattern stmts.
25355 (vect_is_simple_reduction_1): Remove dead code.
25356 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25357 (vect_get_and_check_slp_defs): Pass in the stmt number.
25358 Allow the first def in a reduction to be not a pattern stmt when
25359 the rest of the stmts def are patterns.
25360 (vect_build_slp_tree_1): Allow tcc_expression codes like
25361 SAD_EXPR and DOT_PROD_EXPR.
25362 (vect_build_slp_tree): Adjust.
25363 (vect_analyze_slp): Refactor and move BB vect error message ...
25364 (vect_slp_analyze_bb_1): ... here.
25365
25366 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
25367
25368 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25369 for CSWTCH temporary.
25370
25371 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25372
25373 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25374 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
25375 unknown unspecs.
25376
25377 2015-05-22 Richard Biener <rguenther@suse.de>
25378
25379 PR tree-optimization/66251
25380 * tree-vect-stmts.c (vectorizable_conversion): Properly
25381 set STMT_VINFO_VEC_STMT even for the SLP case.
25382
25383 2015-05-22 Marek Polacek <polacek@redhat.com>
25384
25385 * doc/extend.texi: Use @pxref instead of @xref.
25386
25387 2015-05-22 hiraditya <hiraditya@msn.com>
25388
25389 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25390 redundant if.
25391
25392 2015-05-22 Richard Biener <rguenther@suse.de>
25393
25394 PR tree-optimization/65701
25395 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25396 Move peeling cost models into one place. Peel for alignment
25397 for single loads only if an aligned load is cheaper than
25398 an unaligned load.
25399
25400 2015-05-22 Marek Polacek <polacek@redhat.com>
25401
25402 PR c/47043
25403 * doc/extend.texi (Enumerator Attributes): New section.
25404 Document syntax of enumerator attributes.
25405
25406 2015-05-22 Richard Biener <rguenther@suse.de>
25407
25408 * tree-vect-loop.c (get_reduction_op): New function.
25409 (vect_model_reduction_cost): Use it, add reduc_index parameter.
25410 Make ready for BB reductions.
25411 (vect_create_epilog_for_reduction): Use get_reduction_op.
25412 (vectorizable_reduction): Init reduc_index to a valid value.
25413 Adjust vect_model_reduction_cost call.
25414 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25415 operand for reduction defaults. Add SAD_EXPR support.
25416 Assert we have a neutral op for SLP reductions.
25417 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25418 walking pattern stmt ops only recurse to SSA names.
25419
25420 2015-05-22 Richard Biener <rguenther@suse.de>
25421
25422 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25423 assert with guard, remove check on detected reduction.
25424 (vect_recog_sad_pattern): Likewise.
25425 (vect_recog_widen_sum_pattern): Likewise.
25426
25427 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25428
25429 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25430 __always_inline__ attribute.
25431 (vaesdq_u8): Likewise.
25432 (vaesmcq_u8): Likewise.
25433 (vaesimcq_u8): Likewise.
25434 (vsha1cq_u32): Likewise.
25435 (vsha1mq_u32): Likewise.
25436 (vsha1pq_u32): Likewise.
25437 (vsha1h_u32): Likewise.
25438 (vsha1su0q_u32): Likewise.
25439 (vsha1su1q_u32): Likewise.
25440 (vsha256hq_u32): Likewise.
25441 (vsha256h2q_u32): Likewise.
25442 (vsha256su0q_u32): Likewise.
25443 (vsha256su1q_u32): Likewise.
25444 (vmull_p64): Likewise.
25445 (vmull_high_p64): Likewise.
25446
25447 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25448
25449 * final.c (final_scan_insn): Don't check HAVE_peephole with the
25450 preprocessor.
25451 * output.h: Likewise.
25452 * genconfig.c (main): Alwways define HAVE_peephole.
25453 * genpeep.c: Don't emit checks of HAVE_peephole.
25454
25455 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25456
25457 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25458 check HAVE_conditional_move with the preprocessor.
25459
25460 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25461
25462 * genconfig.c (main): Always define HAVE_conditional_move.
25463 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25464 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25465 is defined.
25466
25467 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25468
25469 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25470 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25471 and FRAME_POINTER_REGNUM with the preprocessor.
25472
25473 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25474
25475 * defaults.h: Add default for STACK_PUSH_CODE.
25476 * expr.c: Don't redefine STACK_PUSH_CODE.
25477 * recog.c: Likewise.
25478
25479 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25480
25481 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25482 sched-deps.c: Use if instead of preprocessor checks with
25483 STACK_GROWS_DOWNWARD.
25484
25485 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25486
25487 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25488 is defined.
25489 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25490 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25491 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25492 * doc/tm.texi: Regenerate.
25493
25494 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
25495
25496 PR target/66232
25497 * config/i386/constraints.md (Bg): New constraint for GOT memory
25498 operand.
25499 * config/i386/i386.md (*call_got_x32): New pattern.
25500 (*call_value_got_x32): Likewise.
25501 * config/i386/predicates.md (GOT_memory_operand): New predicate.
25502
25503 2015-05-21 Jakub Jelinek <jakub@redhat.com>
25504
25505 PR tree-optimization/66233
25506 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25507 Simplify.
25508
25509 2015-05-21 Jeff Law <law@redhat.com>
25510
25511 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25512 than MULT for shadd sequences.
25513
25514 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
25515
25516 * alias.c (alias_stats): New static var.
25517 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25518 (dump_alias_stats_in_alias_c): New function.
25519 * alias.h (dump_alias_stats_in_alias_c): Declare.
25520 * tree-ssa-alias.c (dump_alias_stats): Call it.
25521
25522 2015-05-08 Michael Matz <matz@suse.de>
25523
25524 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25525 to strided_p.
25526 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25527 (STMT_VINFO_STRIDED_P): ... this.
25528 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25529 (vect_verify_datarefs_alignment): Likewise.
25530 (vect_enhance_data_refs_alignment): Likewise.
25531 (vect_analyze_data_ref_access): Likewise.
25532 (vect_analyze_data_refs): Accept strided stores.
25533 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25534 (vect_model_load_cost): Adjust for macro rename.
25535 (vectorizable_mask_load_store): Likewise.
25536 (vectorizable_load): Likewise.
25537 (vectorizable_store): Open code strided stores.
25538
25539 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25540
25541 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25542 Document sqrt_insn.
25543
25544 2015-05-21 Richard Biener <rguenther@suse.de>
25545
25546 PR c++/66211
25547 * match.pd: Guard pattern optimzing (int)(float)int
25548 conversions to apply only on GIMPLE.
25549
25550 2015-05-21 Jeff Law <law@redhat.com>
25551
25552 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25553 multiply-accumulate/shift-add insn generation.
25554
25555 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
25556
25557 PR target/54236
25558 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25559 operands[1] are the same.
25560
25561 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
25562
25563 PR middle-end/66221
25564 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25565 build_distinct_type_copy to copy bounds.
25566
25567 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
25568
25569 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25570 Change to unsigned int.
25571
25572 2015-05-20 Jeff Law <law@redhat.com>
25573
25574 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25575 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25576 (pa_shadd_constant_p): Allow constants for shadd insns rather
25577 than valid scaling constants for memory addresses.
25578 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25579 * config/pa/predicates.md (mem_shadd_operand): New predicate.
25580 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25581 (shift-add insns using ASHIFT): New patterns.
25582
25583 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
25584
25585 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25586 feasible.
25587 (fix_up_fall_thru_edges): Likewise.
25588 (fix_crossing_conditional_branches): Likewise. Promote jump targets
25589 from to rtx_insn to rtx_code_label where feasible.
25590 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25591 gen_move_insn (returned type changed to rtx_insn).
25592 * builtins.c (expand_errno_check): Fix arguments of
25593 do_compare_rtx_and_jump (now expects rtx_code_label).
25594 (expand_builtin_acc_on_device): Likewise.
25595 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25596 invert_jump (now exprects rtx_jump_insn).
25597 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25598 (construct_init_block): Use rtx_code_label.
25599 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25600 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25601 calling redirect_jump.
25602 (patch_jump_insn): Likewise.
25603 (redirect_branch_edge): Likewise.
25604 (force_nonfallthru_and_redirect): Likewise.
25605 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25606 when suitable.
25607 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25608 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25609 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25610 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25611 to store the value retured by gen_label_rtx.
25612 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25613 rtx_jump_insn.
25614 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25615 (split_branches): Fix calls of redirect_jump.
25616 * dojump.c (jumpifnot): Promote argument type from rtx to
25617 rtx_code_label.
25618 (jumpifnot_1): Likewise.
25619 (jumpif): Likewise.
25620 (jumpif_1): Likewise.
25621 (do_jump_1): Likewise.
25622 (do_jump): Likewise. Use rtx_code_label when feasible.
25623 (do_jump_by_parts_greater_rtx): Likewise.
25624 (do_jump_by_parts_zero_rtx): Likewise.
25625 (do_jump_by_parts_equality_rtx): Likewise.
25626 (do_compare_rtx_and_jump): Likewise.
25627 * dojump.h: Update function prototypes.
25628 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25629 returns rtx_insn).
25630 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25631 rtx_jump_insn.
25632 (emit_label_before): Likewise.
25633 (emit_jump_insn_after_noloc): Likewise.
25634 (emit_jump_insn_after_setloc): Likewise.
25635 (emit_jump_insn_after): Likewise
25636 (emit_jump_insn_before_setloc): Likewise.
25637 (emit_jump_insn_before): Likewise.
25638 (emit_label_before): Promote return type to rtx_code_label.
25639 (emit_label): Likewise.
25640 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25641 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25642 gen_move_insn.
25643 (emit_stack_restore): Likewise.
25644 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25645 (do_cmp_and_jump): Likewise.
25646 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25647 from rtx to rtx_code_label.
25648 (gen_move_insn_uncast): New function.
25649 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25650 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25651 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25652 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25653 invert_jump_1 and redirect_jump_1.
25654 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25655 do_compare_rtx_and_jump.
25656 (expand_addsub_overflow): Likewise.
25657 (expand_neg_overflow): Likewise.
25658 (expand_mul_overflow): Likewise.
25659 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25660 return value of gen_move_insn.
25661 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25662 * loop-doloop.c (add_test): Use rtx_code_label.
25663 (doloop_modify): Likewise.
25664 (doloop_optimize): Likewise.
25665 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25666 * lra-constraints.c (emit_spill_move): Remove cast of value returned
25667 by gen_move_insn.
25668 (inherit_reload_reg): Add cast when calling dump_insn_slim.
25669 (split_reg): Likewise.
25670 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25671 gen_move_insn.
25672 * optabs.c (expand_binop_directly): Remove casts of values returned by
25673 maybe_gen_insn.
25674 (expand_unop_direct): Likewise.
25675 (expand_abs): Likewise.
25676 (maybe_emit_unop_insn): Likewise.
25677 (maybe_gen_insn): Promote return type to rtx_insn.
25678 * optabs.h: Update prototype of maybe_gen_insn.
25679 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25680 redundant cast.
25681 * recog.c (struct peep2_insn_data): Promote type of insn field to
25682 rtx_insn.
25683 (peep2_reinit_state): Use NULL instead of NULL_RTX.
25684 (peep2_attempt): Remove casts of insn in peep2_insn_data.
25685 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25686 * recog.h (struct insn_gen_fn): Promote return types of function
25687 pointers and operator ().from rtx to rtx_insn.
25688 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25689 (fill_eager_delay_slots): Likewise.
25690 (relax_delay_slots): Likewise.
25691 (make_return_insns): Likewise.
25692 (dbr_schedule): Likewise.
25693 (optimize_skips): Likewise.
25694 (reorg_redirect_jump): Likewise.
25695 (fill_slots_from_thread): Likewise.
25696 * reorg.h: Update prototypes.
25697 * resource.c (find_dead_or_set_registers): Use dyn_cast to
25698 rtx_jump_insn instead of check. Use it's jump_target method.
25699 * rtl.h (rtx_jump_insn::jump_label): Define new method.
25700 (rtx_jump_insn::jump_target): Define new method.
25701 (rtx_jump_insn::set_jump_target): Define new method.
25702 * rtlanal.c (tablejump_p): Promote type of one local variable.
25703 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25704 (sched_analyze_insn): Likewise.
25705 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25706 (print_insn): Likewise.
25707 * stmt.c (label_rtx): Promote return type to rtx_insn.
25708 (force_label_rtx): Likewise.
25709 (jump_target_rtx): Define new function.
25710 (expand_label): Use it, get rid of one cast.
25711 (expand_naked_return): Promote rtx to rtx_code_label.
25712 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25713 (expand_case): Use rtx_code_label instread of rtx where feasible.
25714 (expand_sjlj_dispatch_table): Likewise.
25715 (emit_case_nodes): Likewise.
25716 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
25717 * store-motion.c (insert_store): Make use of new return type of
25718 gen_move_insn and remove a cast.
25719 (replace_store_insn): Likewise.
25720
25721 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
25722
25723 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25724 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25725
25726 2015-05-20 Jeff Law <law@redhat.com>
25727
25728 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
25729 dispose of the jump thread path when the jump threading
25730 opportunity is cancelled.
25731
25732 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
25733
25734 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
25735 when printing the caret character.
25736
25737 2015-05-20 Marek Polacek <polacek@redhat.com>
25738
25739 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
25740
25741 2015-05-20 Marek Polacek <polacek@redhat.com>
25742
25743 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
25744 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
25745 * gimple-fold.c (canonicalize_bool): Likewise.
25746 (same_bool_result_p): Likewise.
25747 * tree-if-conv.c (parse_predicate): Likewise.
25748
25749 2015-05-20 Marek Polacek <polacek@redhat.com>
25750
25751 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
25752 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
25753
25754 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25755
25756 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
25757 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
25758 values.
25759
25760 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
25761
25762 * config/mips/mips.h (micromips_globals): Declare.
25763
25764 2015-05-20 David Malcolm <dmalcolm@redhat.com>
25765
25766 * timevar.def (TV_INITIALIZE_RTL): New.
25767 * toplev.c (initialize_rtl): Use an auto_timevar to account this
25768 function's time to TV_INITIALIZE_RTL.
25769
25770 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25771
25772 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
25773 gimple_build_nop calls.
25774 (chkp_find_bounds_for_elem): Likewise.
25775 (chkp_get_zero_bounds): Likewise.
25776 (chkp_get_none_bounds): Likewise.
25777 (chkp_get_bounds_by_definition): Likewise.
25778 (chkp_generate_extern_var_bounds): Likewise.
25779 (chkp_get_bounds_for_decl_addr): Likewise.
25780 (chkp_get_bounds_for_string_cst): Likewise.
25781
25782 2015-05-20 Bin Cheng <bin.cheng@arm.com>
25783
25784 PR tree-optimization/65447
25785 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
25786 (dump_use, dump_uses): Support to dump sub use.
25787 (record_use): New parameters to support sub use. Remove call to
25788 dump_use.
25789 (record_sub_use, record_group_use): New functions.
25790 (compute_max_addr_offset, split_all_small_groups): New functions.
25791 (group_address_uses, rewrite_use_address): New functions.
25792 (strip_offset): New declaration.
25793 (find_interesting_uses_address): Call record_group_use.
25794 (add_candidate): New assertion.
25795 (infinite_cost_p): Move definition forward.
25796 (add_costs): Check INFTY cost and return immediately.
25797 (get_computation_cost_at): Clear setup cost and dependent bitmap
25798 for sub uses.
25799 (determine_use_iv_cost_address): Compute cost for sub uses.
25800 (rewrite_use_address_1): Rename from old rewrite_use_address.
25801 (free_loop_data): Free sub uses.
25802 (tree_ssa_iv_optimize_loop): Call group_address_uses.
25803
25804 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25805 Jim Wilson <jim.wilson@linaro.org>
25806
25807 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
25808 new fields loadv and storev.
25809 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
25810 Initialize loadv and storev.
25811 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
25812 (cortexa53_extra_costs): Likewise.
25813 (cortexa57_extra_costs): Likewise.
25814 (xgene1_extra_costs): Likewise.
25815 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
25816 rtx_costs.
25817
25818 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25819
25820 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
25821 storev.
25822 (cortexa8_extra_costs): Likewise.
25823 (cortexa5_extra_costs): Likewise.
25824 (cortexa7_extra_costs): Likewise.
25825 (cortexa12_extra_costs): Likewise.
25826 (cortexa15_extra_costs): Likewise.
25827 (v7m_extra_costs): Likewise.
25828
25829 2015-05-20 Jeff Law <law@redhat.com>
25830
25831 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
25832 instead of open-coded version. Also delete the jump thread created
25833 within this function.
25834
25835 2015-05-20 Alan Modra <amodra@gmail.com>
25836
25837 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
25838 stack adjusting insn. Formatting.
25839 (rs6000_emit_prologue): Track stack adjusting insn, and use of
25840 r12. If possible, emit first -fsplit-stack arg pointer insn
25841 before stack adjust. Don't use r12 to save cr if split-stack.
25842
25843 2015-05-20 Alan Modra <amodra@gmail.com>
25844
25845 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
25846 Define.
25847 (rs6000_supports_split_stack): New function.
25848 * config/rs6000/rs6000.c (machine_function): Add
25849 split_stack_arg_pointer.
25850 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
25851 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
25852 rather than virtual_incoming_args_rtx.
25853 (rs6000_va_start): Likewise.
25854 (split_stack_arg_pointer_used_p): New function.
25855 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
25856 (morestack_ref): New var.
25857 (gen_add3_const, rs6000_expand_split_stack_prologue,
25858 rs6000_internal_arg_pointer, rs6000_live_on_entry,
25859 rs6000_split_stack_space_check): New functions.
25860 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
25861 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
25862 (UNSPECV_SPLIT_STACK_RETURN): Define.
25863 (split_stack_prologue, load_split_stack_limit,
25864 load_split_stack_limit_di, load_split_stack_limit_si,
25865 split_stack_return, split_stack_space_check): New expands and insns.
25866 * config/rs6000/rs6000-protos.h
25867 (rs6000_expand_split_stack_prologue): Declare.
25868 (rs6000_split_stack_space_check): Declare.
25869
25870 2015-05-20 Alan Modra <amodra@gmail.com>
25871
25872 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
25873 (direct_return): Test vrsave_size rather than vrsave_mask.
25874 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
25875 (rs6000_emit_epilogue): Likewise.
25876
25877 2015-05-20 Alan Modra <amodra@gmail.com>
25878
25879 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
25880 when not saving registers.
25881 (debug_stack_info): Adjust to omit printing unused offsets,
25882 as before.
25883 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
25884 expression.
25885
25886 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25887
25888 PR c++/65835
25889 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
25890 value_type to const char *.
25891
25892 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
25893
25894 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
25895 to build a biarch toolchain again.
25896
25897 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25898
25899 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
25900 or implicit declarations.
25901 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
25902 into it.
25903 (get_odr_type): Check type has linkage before adding bases.
25904 (register_odr_type): Check that type has linkage before adding it.
25905 (type_known_to_have_no_deriavations_p): Rename to ..
25906 (type_known_to_have_no_derivations_p): This one.
25907 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
25908 (type_known_to_have_no_derivations_p): This one.
25909 * ipa-polymorphic-call.c
25910 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
25911 type has linkage.
25912
25913 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25914
25915 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
25916 (layout_type): Use RECORD_OR_UNION_TYPE_P.
25917
25918 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25919
25920 * config/s390/s390.c (s390_vector_bool_type_p): New function.
25921 (s390_invalid_binary_op): New function.
25922 (TARGET_INVALID_BINARY_OP): Define macro.
25923
25924 2015-05-19 David Sherwood <david.sherwood@arm.com>
25925
25926 * loop-invariant.c (create_new_invariant): Don't calculate address cost
25927 if mode is not a scalar integer.
25928 (get_inv_cost): Increase computational cost for unused invariants.
25929
25930 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25931
25932 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
25933 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
25934 * config/s390/s390-builtin-types.def: New file.
25935 * config/s390/s390-builtins.def: New file.
25936 * config/s390/s390-builtins.h: New file.
25937 * config/s390/s390-c.c: New file.
25938 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
25939 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
25940 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
25941 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
25942 prototypes.
25943 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
25944 Include.
25945 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
25946 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
25947 variable definitions.
25948 (s390_const_operand_ok): New function.
25949 (s390_expand_builtin): Rewrite.
25950 (s390_init_builtins): New function.
25951 (s390_handle_vectorbool_attribute): New function.
25952 (s390_attribute_table): Add s390_vector_bool attribute.
25953 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
25954 (s390_branch_condition_mask): Generate masks for new modes.
25955 (s390_expand_vec_compare_cc): New function.
25956 (s390_mangle_type): Add mangling for vector bool types.
25957 (enum s390_builtin): Remove.
25958 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
25959 efpc builtins.
25960 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
25961 s390_cpu_cpp_builtins.
25962 (REGISTER_TARGET_PRAGMAS): New macro.
25963 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
25964 (insn_cmp mode attribute): Add new CC modes.
25965 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
25966 (lcbb): New pattern definition.
25967 * config/s390/s390intrin.h: Include vecintrin.h.
25968 * config/s390/t-s390: New file.
25969 * config/s390/vecintrin.h: New file.
25970 * config/s390/vector.md: Include vx-builtins.md.
25971 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
25972 support.
25973
25974 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25975
25976 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
25977 CCVFHE.
25978 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
25979 (s390_select_ccmode): Likewise.
25980 (s390_canonicalize_comparison): Swap operands if necessary.
25981 (s390_expand_vec_compare_scalar): Expand DFmode compare using
25982 single element vector instructions.
25983 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
25984 (s390_branch_condition_mask): Generate CC masks for the new modes.
25985 * config/s390/s390.md (v0, vf, vd): New mode attributes.
25986 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
25987 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
25988 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
25989 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
25990 (*extend<DSF:mode><BFP:mode>2): New insn definition.
25991 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
25992 (extend<DSF:mode><BFP:mode>2): Turn into expander.
25993 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
25994 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
25995 (sqrt<mode>2): Add vector instruction.
25996
25997 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25998
25999 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
26000 constraints.
26001 * config/s390/predicates.md (const0_operand, constm1_operand)
26002 (constable_operand): Accept vector operands.
26003 * config/s390/s390-modes.def: Add supported vector modes.
26004 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
26005 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
26006 (s390_bytemask_vector_p, s390_expand_vec_strlen)
26007 (s390_expand_vec_compare, s390_expand_vcond)
26008 (s390_expand_vec_init): Add prototypes.
26009 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
26010 (s390_vector_mode_supported_p): New function.
26011 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
26012 (s390_contiguous_bitmask_vector_p): New function.
26013 (s390_bytemask_vector_p): New function.
26014 (s390_split_ok_p): Vector regs don't work either.
26015 (regclass_map): Add VEC_REGS.
26016 (s390_legitimate_constant_p): Handle vector constants.
26017 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
26018 (legitimate_reload_vector_constant_p): New function.
26019 (s390_preferred_reload_class): Handle CONST_VECTOR.
26020 (s390_reload_symref_address): Likewise.
26021 (s390_secondary_reload): Vector memory instructions only support
26022 short displacements. Rename reload*_nonoffmem* to reload*_la*.
26023 (s390_emit_ccraw_jump): New function.
26024 (s390_expand_vec_strlen): New function.
26025 (s390_expand_vec_compare): New function.
26026 (s390_expand_vcond): New function.
26027 (s390_expand_vec_init): New function.
26028 (s390_dwarf_frame_reg_mode): New function.
26029 (print_operand): Handle addresses with 'O' and 'R' constraints.
26030 (NR_C_MODES, constant_modes): Add vector modes.
26031 (s390_output_pool_entry): Handle vector constants.
26032 (s390_hard_regno_mode_ok): Handle vector registers.
26033 (s390_class_max_nregs): Likewise.
26034 (s390_cannot_change_mode_class): New function.
26035 (s390_invalid_arg_for_unprototyped_fn): New function.
26036 (s390_function_arg_vector): New function.
26037 (s390_function_arg_float): Remove size variable.
26038 (s390_pass_by_reference): Handle vector arguments.
26039 (s390_function_arg_advance): Likewise.
26040 (s390_function_arg): Likewise.
26041 (s390_return_in_memory): Vector values are returned in a VR if
26042 possible.
26043 (s390_function_and_libcall_value): Handle vector arguments.
26044 (s390_gimplify_va_arg): Likewise.
26045 (s390_call_saved_register_used): Consider the arguments named.
26046 (s390_conditional_register_usage): Disable v16-v31 for non-vec
26047 targets.
26048 (s390_preferred_simd_mode): New function.
26049 (s390_support_vector_misalignment): New function.
26050 (s390_vector_alignment): New function.
26051 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
26052 (TARGET_VECTOR_MODE_SUPPORTED_P)
26053 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
26054 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26055 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
26056 (TARGET_VECTOR_ALIGNMENT): Define target macro.
26057 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
26058 (FIRST_PSEUDO_REGISTER): Increase value.
26059 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
26060 (VECTOR_REG_P): Define macros.
26061 (FIXED_REGISTERS, CALL_USED_REGISTERS)
26062 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
26063 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
26064 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
26065 Add vector registers.
26066 (CANNOT_CHANGE_MODE_CLASS): Call C function.
26067 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
26068 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
26069 memory.
26070 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
26071 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
26072 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
26073 (VR*_REGNUM): New constants.
26074 (ALL): New mode iterator.
26075 (INTALL): Remove mode iterator.
26076 Include vector.md.
26077 (movti): Implement TImode moves for VRs.
26078 Disable TImode splitter for VR targets.
26079 Implement splitting TImode GPR<->VR moves.
26080 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
26081 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
26082 reload<mode>_la_in, reload<mode>_la_out.
26083 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
26084 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
26085 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
26086 (mov<mode> SF SD): Prefer lder, lde for loading.
26087 Add lrl and strl instructions.
26088 Add vector instructions.
26089 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
26090 Call s390_expand_vec_strlen on z13.
26091 (*cc_to_int): Change predicate to nonimmediate_operand.
26092 (addti3): Rename to *addti3. New expander.
26093 (subti3): Rename to *subti3. New expander.
26094 * config/s390/vector.md: New file.
26095
26096 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26097
26098 * common/config/s390/s390-common.c (processor_flags_table): Add
26099 z13.
26100 * config.gcc: Add z13.
26101 * config/s390/s390-opts.h (enum processor_type): Add
26102 PROCESSOR_2964_Z13.
26103 * config/s390/s390.c (s390_adjust_priority): Check for
26104 PROCESSOR_2964_Z13.
26105 (s390_reorg): Likewise.
26106 (s390_sched_reorder): Likewise.
26107 (s390_sched_variable_issue): Likewise.
26108 (s390_loop_unroll_adjust): Likewise.
26109 (s390_option_override): Likewise. Default to -mvx when available.
26110 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
26111 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
26112 (TARGET_VX_ABI): Define macros.
26113 macros.
26114 (TARGET_DEFAULT): Add MASK_OPT_VX.
26115 * config/s390/s390.md ("cpu" attribute): Add z13.
26116 ("cpu_facility" attribute): Add vec.
26117 * config/s390/s390.opt (processor_type): Add z13.
26118 (mvx): New options.
26119 * doc/invoke.texi: Add z13 option for -march.
26120
26121 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26122
26123 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
26124 mode check to make sure that only scalar integer values are
26125 accepted.
26126
26127 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
26128
26129 * tree.c (verify_type_variant): Fix #undef.
26130 (gimple_canonical_types_compatible_p): Move here from lto.c
26131 (verify_type): Verify TYPE_CANONICAL compatibility.
26132 * tree.h (gimple_canonical_types_compatible_p): Declare.
26133
26134 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26135
26136 PR middle-end/66199
26137 * tree.h (OMP_TEAMS_COMBINED): Define.
26138 * gimplify.c (enum gimplify_omp_var_data): Add
26139 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26140 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26141 (omp_notice_variable): Accept both ORT_TEAMS
26142 and ORT_COMBINED_TEAMS. Don't recurse if
26143 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26144 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26145 GOVD_FIRSTPRIVATE.
26146 (omp_no_lastprivate): New function.
26147 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26148 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26149 notice_outer and set appropriate bits, otherwise make
26150 sure default(none) combined constructs won't complain.
26151 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26152 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26153 omp_no_lastprivate either remove the clause or turn it
26154 into OMP_CLAUSE_PRIVATE.
26155 (gimplify_omp_for): Fix up handling of implicit
26156 lastprivate or linear iterators.
26157 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26158 ORT_COMBINED_TEAMS.
26159 * omp-low.c (lower_omp_for_lastprivate): For combined
26160 for simd use fd.loop.n2 from the for rather than simd.
26161
26162 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26163
26164 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26165 instead of gen_rtx_raw_REG.
26166 (cris_expand_epilogue): Likewise.
26167 * config/microblaze/microblaze.c (microblaze_classify_address):
26168 Likewise.
26169 * config/sparc/sparc.md: Likewise.
26170
26171 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
26172
26173 * config/alpha/alpha.c (alpha_legitimize_reload_address)
26174 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26175 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26176 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26177 Use CASE_CONST_SCALAR_INT.
26178 (print_operand) <case 'M'>: Use mode_width_operand to check the
26179 value of the constant.
26180 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26181 * config/alpha/predicates.md (input_operand): Use general_operand
26182 instead of match_code as operand check.
26183 (symbolic_operand): Use match_code with subexpression digits.
26184 * config/alpha/constraints.md (Q): Ditto.
26185
26186 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26187
26188 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26189
26190 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26191
26192 * config/s390/s390.c (s390_secondary_reload): Fix check for
26193 load/store relative.
26194
26195 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26196
26197 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
26198 alternative_mask to uint64_t.
26199
26200 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26201
26202 PR tree-optimization/66187
26203 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26204 Pass TYPE_SIGN to tree_int_cst_min_precision. If
26205 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26206
26207 2015-05-19 David Malcolm <dmalcolm@redhat.com>
26208
26209 * diagnostic.c (diagnostic_report_current_module): Strengthen
26210 local "new_map" from const line_map * to
26211 const line_map_ordinary *.
26212 * genmatch.c (error_cb): Likewise for local "map".
26213 (output_line_directive): Likewise for local "map".
26214 * input.c (expand_location_1): Likewise for local "map".
26215 Pass NULL rather than &map to
26216 linemap_unwind_to_first_non_reserved_loc, since the value is never
26217 read from there, and the value written back not read from here.
26218 (is_location_from_builtin_token): Strengthen local "map" from
26219 const line_map * to const line_map_ordinary *.
26220 (dump_location_info): Strengthen locals "map" from
26221 line_map *, one to const line_map_ordinary *, the other
26222 to const line_map_macro *.
26223 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26224 const line_map * to const line_map_macro *.
26225 (maybe_unwind_expanded_macro_loc): Add a call to
26226 linemap_check_macro when writing to the "map" field of the
26227 loc_map_pair.
26228 Introduce local const line_map_ordinary * "ord_map", using it in
26229 place of "map" in the part of the function where we know we have
26230 an ordinary map. Strengthen local "m" from const line_map * to
26231 const line_map_ordinary *.
26232
26233 2015-05-19 Nick Clifton <nickc@redhat.com>
26234
26235 PR target/66156
26236 * config/msp430/msp430.md (zero_extendhisi2): Add support for
26237 separate source and destination registers.
26238
26239 2015-05-19 Richard Biener <rguenther@suse.de>
26240
26241 PR tree-optimization/66165
26242 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26243 for no load permutation.
26244
26245 PR tree-optimization/66185
26246 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26247 when building the SLP node from scalars.
26248
26249 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26250 Tristan Gingold <gingold@adacore.com>
26251
26252 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26253 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26254 (expand_stack_restore): Call record_new_stack_level.
26255 (expand_stack_save): Do not call do_pending_stack_adjust.
26256 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26257 * calls.c (expand_call): Call record_new_stack_level for alloca.
26258 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26259 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26260 (update_sjlj_context): New global function.
26261 * except.h (update_sjlj_context): Declare.
26262 * explow.c (record_new_stack_level): New global function.
26263 (allocate_dynamic_stack_space): Call record_new_stack_level.
26264 * explow.h (record_new_stack_level): Declare.
26265 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26266 * cfgrtl.c (duplicate_insn_chain): Likewise.
26267
26268 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26269
26270 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26271 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26272 STACK_GROWS_DOWNWARD as normal if.
26273 (expand_call): Likewise.
26274
26275 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
26276
26277 PR target/54236
26278 * config/sh/sh.md (*round_int_even): New insn_and_split and
26279 accompanying new unnamed split.
26280
26281 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26282
26283 * bitmap.c (bitmap_set_range): Handle count==1 specially.
26284 (bitmap_clear_range): Likewise.
26285 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26286 bitmap_set_range unconditionally.
26287 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26288 * df-scan.c (df_mark_reg): Likewise.
26289 * haifa-sched.c (setup_ref_regs): Likewise.
26290 * sched-rgn.c (update_live_1): Likewise.
26291
26292 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26293
26294 * regs.h (END_HARD_REGNO): Delete.
26295 (END_REGNO): Move to...
26296 * rtl.h: ...here.
26297 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26298 * caller-save.c (mark_set_regs): Likewise.
26299 * combine.c (move_deaths, distribute_notes): Likewise.
26300 * cse.c (invalidate, invalidate_for_call): Likewise.
26301 * df-scan.c (df_ref_record): Likewise.
26302 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26303 (record_last_reg_set_info): Likewise.
26304 * reg-stack.c (convert_regs_exit): Likewise.
26305 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26306 * resource.c (update_live_status): Likewise.
26307 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26308
26309 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26310
26311 * rtl.h (reg_info): Add an nregs field.
26312 (REG_NREGS): Use it.
26313 (SET_REGNO_RAW): Delete.
26314 (set_regno_raw): New function.
26315 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26316 (END_REGNO): Redefine in terms of REG_NREGS.
26317 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26318 SET_REGNO_RAW.
26319 * emit-rtl.c (set_mode_and_regno): Likewise.
26320 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26321 instead of SET_REGNO_RAW.
26322
26323 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26324
26325 * rtl.h (PUT_MODE_RAW): New macro.
26326 (PUT_REG_NOTE_KIND): Use it.
26327 (set_mode_and_regno): Declare.
26328 (gen_raw_REG): Change regno to "unsigned int".
26329 (gen_rtx_REG): Change "unsigned" to "unsigned int".
26330 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26331 use set_mode_and_regno to change the mode of registers.
26332 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26333 * emit-rtl.c (set_mode_and_regno): New function.
26334 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
26335 * caller-save.c (reg_save_code): Use set_mode_and_regno.
26336 * expr.c (init_expr_target): Likewise.
26337 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26338 * postreload.c (reload_cse_simplify_operands): Likewise.
26339
26340 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26341
26342 * caller-save.c (init_caller_save): Use word_mode and
26343 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26344 * expr.c (init_expr_target): Likewise.
26345 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26346 * postreload.c (reload_cse_regs_1): Likewise.
26347
26348 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26349
26350 * rtl.def (REG): Change format to "r".
26351 * rtl.h (rtunion): Remove rt_reg.
26352 (reg_info): New structure.
26353 (rtx_def): Add reg field to main union.
26354 (X0REGATTR): Delete.
26355 (REG_CHECK): New macro.
26356 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26357 * rtl.c (rtx_format): Document "r".
26358 (rtx_code_size): Handle REG specially.
26359 * gengenrtl.c (special_format): Return true for formats
26360 that include 'r'.
26361 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26362 Deal with REG_ATTRS after the field loop.
26363 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26364 * expmed.c (init_expmed): Call gen_raw_REG instead of
26365 gen_rtx_raw_REG.
26366 * expr.c (init_expr_target): Likewise.
26367 * regcprop.c (maybe_mode_change): Likewise.
26368 * varasm.c (make_decl_rtl): Likewise.
26369 * final.c (leaf_renumber_regs_insn): Return early after
26370 handling REGs.
26371 * genemit.c (gen_exp): Handle 'r' fields.
26372 * genpeep.c (match_rtx): Likewise.
26373 * gensupport.c (subst_pattern_match): Likewise.
26374 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26375 (alter_constraints, subst_dup): Likewise.
26376 * read-rtl.c (read_rtx_code): Likewise.
26377 * print-rtl.c (print_rtx): Likewise.
26378 * genrecog.c (find_operand, find_matching_operand): Likewise.
26379 (validate_pattern, match_pattern_2): Likewise.
26380 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26381 (rtx_test::regno_field): New function.
26382 (operator ==, safe_to_hoist_p, transition_parameter_type)
26383 (parameter_type_string, print_parameter_value)
26384 (print_nonbool_test, print_test): Handle new enum values.
26385 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26386 * lra-constraints.c (operands_match_p): Likewise.
26387
26388 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26389
26390 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26391 Change type of new_regno to unsigned int.
26392 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26393 new_regno to unsigned int.
26394 (df_ref_change_reg_with_loc): Remove old_regno parameter.
26395 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
26396 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26397 (SET_REGNO_RAW): Add space after ",".
26398
26399 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26400
26401 * rtl.h (REG_NREGS): New macro
26402 * alias.c (record_set): Use it.
26403 * cfgcleanup.c (mark_effect): Likewise.
26404 * combine.c (likely_spilled_retval_1): Likewise.
26405 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26406 (move_deaths, distribute_notes): Likewise.
26407 * cselib.c (cselib_record_set): Likewise.
26408 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26409 * df-scan.c (df_mark_reg): Likewise.
26410 * dse.c (look_for_hardregs): Likewise.
26411 * dwarf2out.c (reg_loc_descriptor): Likewise.
26412 (multiple_reg_loc_descriptor): Likewise.
26413 * expr.c (write_complex_part, read_complex_part): Likewise.
26414 (emit_move_complex): Likewise.
26415 * haifa-sched.c (setup_ref_regs): Likewise.
26416 * ira-lives.c (mark_hard_reg_live): Likewise.
26417 * lra.c (lra_set_insn_recog_data): Likewise.
26418 * mode-switching.c (create_pre_exit): Likewise.
26419 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26420 (reload_combine_recognize_pattern): Likewise.
26421 (reload_combine_note_use, move2add_record_mode): Likewise.
26422 (reload_cse_move2add): Likewise.
26423 * reg-stack.c (subst_stack_regs_pat): Likewise.
26424 * regcprop.c (kill_value, copy_value): Likewise.
26425 (copyprop_hardreg_forward_1): Likewise.
26426 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26427 (build_def_use): Likewise.
26428 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26429 (deps_analyze_insn): Likewise.
26430 * sched-rgn.c (check_live_1, update_live_1): Likewise.
26431 * sel-sched.c (count_occurrences_equiv): Likewise.
26432 * valtrack.c (dead_debug_insert_temp): Likewise.
26433
26434 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26435
26436 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26437 * dse.c (note_add_store): Likewise.
26438 * ira-lives.c (mark_hard_reg_dead): Likewise.
26439 * loop-invariant.c (mark_reg_store): Likewise.
26440 (mark_reg_death): Likewise.
26441 * postreload.c (reload_combine): Likewise.
26442 (reload_combine_note_store): Likewise.
26443 (reload_combine_note_use): Likewise.
26444 * recog.c (peep2_reg_dead_p): Likewise.
26445
26446 2015-05-19 Alan Modra <amodra@gmail.com>
26447
26448 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26449 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26450 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26451 unused predicates.
26452 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26453 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
26454 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26455 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26456
26457 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
26458
26459 * config/mips/mips.md (JOIN_MODE): New mode iterator.
26460 (join2_load_Store<JOIN_MODE:mode>): New pattern.
26461 (join2_loadhi): Likewise.
26462 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26463 load-load and store-stores.
26464 * config/mips/mips.opt (mload-store-pairs): New option.
26465 (TARGET_LOAD_STORE_PAIRS): New macro.
26466 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26467 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26468 * config/mips/mips.c (mips_load_store_bonding_p): New function.
26469
26470 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
26471
26472 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26473 explicit swaps.
26474 * dojump.c (do_compare_rtx_and_jump): Likewise.
26475 * expmed.c (emit_store_flag_1): Likewise.
26476 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26477 * final.c (sprint_ul): Use std::reverse for reversing a string.
26478 * fold-const.c (extract_muldiv_1): Use std::swap.
26479 * genmodes.c (emit_mode_int_n): Likewise.
26480 * ifcvt.c (dead_or_predicable): Likewise.
26481 * ira-build.c (ira_merge_live_ranges): Likewise.
26482 (swap_allocno_copy_ends_if_necessary): Likewise.
26483 * ira.c (ira_setup_alts): Likewise.
26484 * loop-iv.c (iv_analyze_expr): Likewise.
26485 (implies_p): Likewise.
26486 (canon_condition): Likewise.
26487 * lra-constraints.c (swap_operands): Likewise.
26488 * lra-lives.c (lra_merge_live_ranges): Likewise.
26489 * omega.c (swap): Remove.
26490 (bswap): Remove.
26491 (omega_unprotect_1): Use std::swap.
26492 (omega_solve_geq): Likewise.
26493 * optabs.c (expand_binop_directly): Likewise.
26494 (expand_binop): Likewise.
26495 (emit_conditional_move): Likewise.
26496 (emit_conditional_add): Likewise.
26497 * postreload.c (reload_cse_simplify_operands): Likewise.
26498 * reg-stack.c (emit_swap_insn): Likewise.
26499 (swap_to_top): Likewise.
26500 (compare_for_stack_reg): Likewise.
26501 (subst_asm_stack_regs): Likewise.
26502 * reload.c (find_reloads): Likewise.
26503 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26504 * sel-sched.c (invoke_reorder_hooks): Likewise.
26505 (create_block_for_bookkeeping): Likewise.
26506 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26507 (lambda_matrix_right_hermite): Use std::swap.
26508 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26509 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26510 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26511 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26512 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26513 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26514 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26515 * tree-vrp.c (compare_ranges): Likewise.
26516 * var-tracking.c (add_with_sets): Likewise.
26517 (vt_find_locations): Likewise.
26518
26519 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
26520
26521 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26522 pie executables.
26523 (FBSD_ENDFILE_SPEC): Likewise.
26524 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26525 config/freebsd-spec.h.
26526 (ENDFILE_SPEC): Likewise.
26527
26528 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
26529 Richard Henderson <rth@redhat.com>
26530
26531 PR target/57032
26532 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26533 Check for a memory location that is not a reference (using an AND)
26534 to an unaligned location here.
26535 * config/alpha/predicates.md (normal_memory_operand): Remove.
26536
26537 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
26538
26539 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26540 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26541
26542 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
26543
26544 * config/mips/mips.c (micromips_globals): New variable.
26545 (mips_set_compression_mode): Save and reinitialize target-dependent
26546 state for microMIPS.
26547
26548 2015-05-18 Martin Liska <mliska@suse.cz>
26549
26550 * dbgcnt.def: Add new counter.
26551 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26552
26553 2015-05-18 Martin Liska <mliska@suse.cz>
26554
26555 * dbgcnt.def: Sort counters.
26556 * opts.c (common_handle_option): Do not compile if
26557 -fdbg-cnt-list is enabled.
26558
26559 2015-05-18 Tom de Vries <tom@codesourcery.com>
26560
26561 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26562 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
26563 address operator to va_list operand.
26564 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26565 unconditionally.
26566 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26567 operand.
26568 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26569 * config/s390/s390.c (s390_gimplify_va_arg): Same.
26570 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26571
26572 2015-05-18 Tom de Vries <tom@codesourcery.com>
26573
26574 * tree-ssa-tail-merge.c: Fix whitespace.
26575
26576 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
26577
26578 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26579 cortex-a17, and cortex-a17.cortex-a7.
26580
26581 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
26582
26583 PR target/54236
26584 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26585
26586 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
26587
26588 PR target/66174
26589 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26590 QImode inner modes for TARGET_AVX512BW. Force mask operand
26591 to a register for AVX512F modes.
26592
26593 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26594
26595 * toplev.c (emit_debug_global_declarations): Do not output debug info
26596 when doing slim LTO objects.
26597
26598 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26599
26600 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26601 odr_types_equivalent_p): Declare.
26602 (odr_type_p): Use gcc_checking_assert.
26603 (type_in_anonymous_namespace_p) Declare.
26604 (type_with_linkage_p): Declare.
26605 * common.opt (Wlto-type-mismatch): New warning.
26606 * ipa-devirt.c (compound_type_base): New function.
26607 (odr_or_derived_type_p): New function.
26608 (odr_types_equivalent_p): New function.
26609 (add_type_duplicate): Simplify.
26610 (type_with_linkage_p): Add hack to prevent false positives on C types
26611 (type_in_anonymous_namespace_p): Likewise.
26612 * tree.c (need_assembler_name_p): Use type_with_linkage.
26613 * tree.h (type_in_anonymous_namespace_p): Remove.
26614 * doc/invoke.texi (-Wlto-type-mismatch): Document
26615
26616 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26617
26618 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26619 (verify_type): Verify STRING_FLAG.
26620
26621 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
26622
26623 PR fortran/44054
26624 * tree-pretty-print.c (percent_K_format): Replace locus pointer
26625 with accessor function.
26626 * tree-diagnostic.c (diagnostic_report_current_function): Use
26627 diagnostic_location function.
26628 (maybe_unwind_expanded_macro_loc): Likewise.
26629 (virt_loc_aware_diagnostic_finalizer): Likewise.
26630 (default_tree_printer): Replace locus pointer with accessor function.
26631 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26632 (diagnostic_set_info_translated): Initialize second location.
26633 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26634 (diagnostic_show_locus): Handle two locations. Call
26635 diagnostic_print_caret_line.
26636 (diagnostic_print_caret_line): New.
26637 (default_diagnostic_starter): Use diagnostic_location function.
26638 (diagnostic_report_diagnostic): Use diagnostic_location function.
26639 (verbatim): Do not set text.locus.
26640 * diagnostic.h (struct diagnostic_info): Remove location field.
26641 (struct diagnostic_context): Make caret_chars an array of two.
26642 (diagnostic_location): New inline.
26643 (diagnostic_expand_location): Handle two locations.
26644 (diagnostic_same_line): New inline.
26645 (diagnostic_print_caret_line): Declare.
26646 (CARET_LINE_MARGIN): New constant.
26647 * pretty-print.c (pp_printf): Do not set text.locus.
26648 (pp_verbatim): Do not set text.locus.
26649 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26650 (struct text_info): Replace locus pointer with locations
26651 array. Add accessor functions.
26652
26653 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
26654 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26655
26656 PR target/65768
26657 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26658 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26659 large constants in register instead of splitting them.
26660
26661 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
26662
26663 PR target/66140
26664 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26665 replacements in memory addresses.
26666 (get_unaligned_address): Ditto.
26667
26668 2015-05-16 James Bowman <james.bowman@ftdichip.com>
26669
26670 * config/ft32/*: New files for FT32 port.
26671 * doc/install.texi: Add FT32 information.
26672 * doc/invoke.texi: Add FT32 information.
26673 * doc/md.texi: Add FT32 information.
26674 * doc/contrib.texi: Self added.
26675
26676 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
26677
26678 PR tree-optimization/64454
26679 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26680 (-1 - A -> ~A): Remove unnecessary condition.
26681
26682 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
26683
26684 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26685 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26686 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26687
26688 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
26689
26690 * ipa-chkp.h (chkp_wrap_function): New.
26691 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26692 (chkp_wrap_function_name): New.
26693 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26694 to get wrapper name.
26695 * lto-cgraph.c: Include ipa-chkp.h.
26696 (input_cgraph_1): Avoid alias chain for wrappers.
26697
26698 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26699
26700 PR middle-end/66134
26701 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26702 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26703
26704 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26705
26706 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26707 (AARCH64_FL_SLOWMUL): Delete.
26708 (AARCH64_FL_CRC): Redefine to 1<<3.
26709 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26710
26711 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26712
26713 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26714 casting.
26715
26716 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26717
26718 * config/alpha/alpha.md (extendqidi2): Use general_operand
26719 instead of some_operand for operand[1] predicate.
26720 (extendhidi2): Ditto.
26721 (cbranchdi4): Use general_operand instead of some_operand
26722 for operand[1] and operands[2] predicates.
26723 (cstoredi4): Ditto.
26724 * config/alpha/predicates.md (some_operand): Remove unused predicate.
26725 (some_ni_operand): Ditto.
26726
26727 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26728
26729 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
26730 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
26731 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
26732 low part of the constant using alpha_emit_set_const_1.
26733 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
26734
26735 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
26736
26737 * varasm.c (output_constant_pool_1): Pass down alignment from
26738 constant pool entry's descriptor to output_constant_pool_2.
26739 (output_object_block): Add comment prior to call to
26740 output_constant_pool_1.
26741
26742 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
26743
26744 PR rtl-optimization/65862
26745 * target.def (ira_change_pseudo_allocno_class): New hook.
26746 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
26747 value of the hook.
26748 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
26749 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
26750 hook.
26751 * ira-costs.c (find_costs_and_classes): Call the hook and change
26752 classes when it is necessary.
26753 * doc/tm.texi: Update.
26754
26755 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
26756
26757 * config/i386/i386.md (sibcall_memory): Check that register with
26758 callee address is not also used as one of the arguments, instead
26759 of checking that it is not live after the sibcall.
26760 (sibcall_pop_memory): Ditto.
26761 (sibcall_value_memory): Ditto.
26762 (sibcall_value_pop_memory): Ditto.
26763
26764 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
26765
26766 * generic-match-head.c (types_match): Handle non-types.
26767 * gimple-match-head.c (types_match): Likewise.
26768 * match.pd: Remove unnecessary TREE_TYPE for types_match.
26769
26770 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
26771
26772 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
26773 (csneg3<mode>_insn): Enable expansion of pattern.
26774
26775 2015-05-14 Nick Clifton <nickc@redhat.com>
26776
26777 * config/rl78/rl78.c (rl78_select_section): Select the correct
26778 default section based upon the category of the decl.
26779
26780 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26781
26782 PR rtl-optimization/30967
26783 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
26784 destination mode for the cost of scc patterns.
26785
26786 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26787
26788 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
26789 using SWIM248 mode iterator.
26790 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
26791 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
26792 for operand[2] constraint.
26793 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
26794
26795 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26796
26797 PR middle-end/66133
26798 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
26799 make sure it is never noreturn, even when the task body does not
26800 return.
26801 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
26802 right before GIMPLE_OMP_RETURN.
26803 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
26804 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
26805 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
26806
26807 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26808
26809 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
26810 * tree-ssa-math-opts.c: Include params.h
26811 (pow_synth_sqrt_info): New struct.
26812 (representable_as_half_series_p): New function.
26813 (get_fn_chain): Likewise.
26814 (print_nested_fn): Likewise.
26815 (dump_fractional_sqrt_sequence): Likewise.
26816 (dump_integer_part): Likewise.
26817 (expand_pow_as_sqrts): Likewise.
26818 (gimple_expand_builtin_pow): Use above to attempt to expand
26819 pow as series of square roots. Removed now unused variables.
26820
26821 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
26822
26823 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
26824 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
26825 Remove *p0 and *p1 arguments. Rewrite function.
26826 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
26827 (alpha_split_const_mov): Update calls to alpha_extract_integer and
26828 alpha_emit_set_long_const.
26829 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
26830 (alpha_output_mi_thunk_osf): Ditto.
26831 * config/alpha/alpha.md (movti): Do not check operands[1]
26832 for CONST_DOUBLE.
26833
26834 2015-05-13 Richard Biener <rguenther@suse.de>
26835
26836 PR tree-optimization/66129
26837 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
26838 commutative.
26839 (vect_schedule_slp_instance): Fix typo.
26840
26841 2015-05-13 David Malcolm <dmalcolm@redhat.com>
26842
26843 * common.opt (fdump-internal-locations): New option.
26844 * input.c: Include diagnostic-core.h.
26845 (get_end_location): New function.
26846 (write_digit): New function.
26847 (write_digit_row): New function.
26848 (dump_location_range): New function.
26849 (dump_labelled_location_range): New function.
26850 (dump_location_info): New function.
26851 * input.h (dump_location_info): New prototype.
26852 * toplev.c (compile_file): Handle flag_dump_locations.
26853
26854 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
26855
26856 * gimple-expr.h (is_gimple_constant): Reorder.
26857 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
26858
26859 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
26860
26861 * combine.c (simplify_set): When generating a CC set, if the
26862 source already is in the correct mode, do not wrap it in a
26863 compare. Simplify the rest of that code.
26864
26865 2015-05-13 Richard Biener <rguenther@suse.de>
26866
26867 PR tree-optimization/66123
26868 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
26869 a taken edge.
26870
26871 2015-05-13 Richard Biener <rguenther@suse.de>
26872
26873 PR middle-end/66110
26874 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
26875 specially.
26876 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
26877
26878 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26879
26880 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
26881 * aclocal.m4: Regenerated with automake-1.11.6.
26882
26883 2015-05-13 Tom de Vries <tom@codesourcery.com>
26884
26885 PR tree-optimization/66010
26886 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
26887 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
26888 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
26889 and rval based on do_deref.
26890
26891 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26892
26893 PR target/65103
26894 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
26895 link time constants into adress expressions and therefore set
26896 their cost to 0.
26897
26898 2015-05-13 Jakub Jelinek <jakub@redhat.com>
26899
26900 PR target/66112
26901 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
26902 Use SWI248 iterator instead of SWI.
26903 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
26904 Use eq_attr "alternative" "0" instead of match_test in
26905 length_immediate attribute computation.
26906 (*mulvhi4, *mulvhi4_1): New define_insns.
26907
26908 PR target/66112
26909 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
26910 SIGNED to get precision of non-negative value.
26911
26912 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
26913
26914 PR target/66048
26915 * function.c (diddle_return_value_1): Process bounds first.
26916 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
26917 register.
26918
26919 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26920
26921 PR rtl-optimization/64616
26922 * loop-invariant.c (can_move_invariant_reg): New.
26923 (move_invariant_reg): Call above new function to decide whether
26924 instruction can just be moved, skipping creation of temporary
26925 register.
26926
26927 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26928
26929 PR target/pr66047.c
26930 * i386.c (ix86_function_sseregparm): Only return -1 if local function
26931 with implied regparm is called from -mno-sse function.
26932 (init_cumulative_args): Output error if ix86_function_sseregparm
26933 return -1 and SSE register would be needed.
26934 (function_arg_advance_32): Likewise.
26935 (function_arg_32): Likewise.
26936 * i386.h (ix86_args): Add decl field.
26937
26938 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26939
26940 PR ipa/65873
26941 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
26942 inlines across optimization boundary.
26943
26944 2015-05-12 Jason Merrill <jason@redhat.com>
26945
26946 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
26947 string literal and macro name.
26948
26949 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
26950
26951 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
26952 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
26953 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
26954
26955 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26956
26957 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
26958 (-Wmisleading-indentation): New option.
26959 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
26960
26961 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
26962
26963 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
26964 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
26965 (alpha_extract_integer): Ditto.
26966 (alpha_legitimate_constant_p): Ditto.
26967 (alpha_split_tmode_pair): Ditto.
26968 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
26969 (alpha_expand_mov): Ditto.
26970 (print_operand): Remove handling of 'H' modifier.
26971 <case 'm'>: Remove CONST_DOUBLE handling.
26972 (summarize_insn): Handle CONST_WIDE_INT.
26973 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
26974 (anddi3): Ditto.
26975 (movti): Handle CONST_WIDE_INT.
26976 * config/alpha/constraints.md ('H'): Remove constraint definition.
26977 ('G'): Do not match MODE_FLOAT class.
26978 * config/alpha/predicates.md (const0_operand): Also match
26979 const_wide_int.
26980 (non_add_const_operand): Ditto.
26981 (non_zero_const_operand): Ditto.
26982 (some_operand): Ditto.
26983 (input_operand): Ditto. Handle CONST_WIDE_INT.
26984 (and_operand): Do not match const_double.
26985 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
26986
26987 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
26988
26989 PR target/65697
26990 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
26991 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
26992 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
26993 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
26994 is_mm_seq_cst, is_mm_sync): New accessor functions.
26995 * builtins.c (expand_builtin_sync_operation,
26996 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
26997 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
26998 (get_memmodel, expand_builtin_atomic_compare_exchange,
26999 expand_builtin_atomic_load, expand_builtin_atomic_store,
27000 expand_builtin_atomic_clear): Use new accessor routines.
27001 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
27002 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
27003 (maybe_emit_sync_lock_test_and_set): Use new accessors and
27004 MEMMODEL_SYNC_ACQUIRE.
27005 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
27006 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
27007 expand_atomic_store): Use new accessors.
27008 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
27009 * tsan.c (instrument_builtin_call): Update check for memory model beyond
27010 final enum to use MEMMODEL_LAST.
27011 * c-family/c-common.c: Use new accessor for memmodel_base.
27012 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
27013 accessors.
27014 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
27015 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
27016 mem_thread_fence, *dmb): Likewise.
27017 * config/alpha/alpha.c (alpha_split_compare_and_swap,
27018 alpha_split_compare_and_swap_12): Likewise.
27019 * config/arm/arm.c (arm_expand_compare_and_swap,
27020 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
27021 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
27022 atomic_loaddi): Likewise.
27023 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
27024 Likewise.
27025 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
27026 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
27027 use new accessors.
27028 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
27029 atomic_store<mode>, atomic_compare_and_swap<mode>,
27030 atomic_exchange<mode>): Use new accessors.
27031 * config/mips/mips.c (mips_process_sync_loop): Likewise.
27032 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
27033 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
27034 rs6000_post_atomic_barrier): Add new cases.
27035 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
27036 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
27037 (atomic_load<mode>): Add new cases and use new accessors.
27038 (store_quadpti): Add new cases.
27039 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
27040 accessors.
27041 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
27042 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
27043 model, not 8.
27044
27045 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27046
27047 * ipa-devirt.c (type_with_linkage_p): New function.
27048 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
27049 type has linkage.
27050 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
27051 (can_be_name_hashed_p): Simplify.
27052 (hash_odr_name): Check that type has linkage before checking if it is
27053 anonymous.
27054 (types_same_for_odr): Likewise.
27055 (odr_name_hasher::equal): Likewise.
27056 (odr_subtypes_equivalent_p): Likewise.
27057 (warn_types_mismatch): Likewise.
27058 (get_odr_type): Likewise.
27059 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
27060 * ipa-utils.h (odr_type_p): Move offline.
27061 * tree.c (need_assembler_name_p): Fix handling of types
27062 without linkages.
27063 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
27064
27065 2015-05-12 David Malcolm <dmalcolm@redhat.com>
27066
27067 * timevar.c (timevar_enable): Delete in favor of...
27068 (g_timer): New global.
27069 (struct timevar_def): Move to timevar.h inside class timer.
27070 (struct timevar_stack_def): Likewise.
27071 (timevars): Delete global in favor of field "m_timevars" within
27072 class timer in timevar.h
27073 (stack): Likewise, in favor of field "m_stack".
27074 (unused_stack_instances): Likewise, in favor of field
27075 "m_unused_stack_instances".
27076 (start_time): Likewise, in favor of field "m_start_time".
27077 (get_time): Eliminate check for timevar_enable.
27078 (timer::timer): New function, built from part of timevar_init.
27079 (timevar_init): Rewrite idempotency test from using
27080 "timevar_enable" bool to using dynamic allocation of "g_timer".
27081 Move rest of implementation into timer's constructor.
27082 (timevar_push_1): Rename to...
27083 (timer::push): ...this, adding "m_" prefixes to variables that
27084 are now fields of timer.
27085 (timevar_pop_1): Likewise, rename to...
27086 (timer::pop): ...this, and add "m_" prefixes.
27087 (timevar_start): Replace test for "timevar_enable" with one for
27088 "g_timer", and move bulk of implementation to...
27089 (timer::start): ...here, adding "m_" prefixes.
27090 (timevar_stop): Likewise, from here...
27091 (timer::stop): ...to here.
27092 (timevar_cond_start): Likewise, from here...
27093 (timer::cond_start): ...to here.
27094 (timevar_cond_stop): Likewise, from here...
27095 (timer::cond_stop): ...to here.
27096 (validate_phases): Rename to...
27097 (timer::validate_phases): ...this, and add "m_" prefixes. Make
27098 locals "total" and "tv" const.
27099 (timevar_print): Rename to...
27100 (timer::print): ...this, and add "m_" prefixes. Make locals
27101 "total" and "tv" const. Eliminate test for timevar_enable.
27102 * timevar.h (timevar_enable): Eliminate.
27103 (g_timer): New declaration.
27104 (timevar_push_1): Eliminate.
27105 (timevar_pop_1): Eliminate.
27106 (timevar_print): Eliminate.
27107 (class timer): New class.
27108 (timevar_push): Rewrite to use g_timer.
27109 (timevar_pop): Likewise.
27110 * toplev.c (toplev::~toplev): Likewise.
27111
27112 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
27113
27114 * arm-protos.h (arm_sched_autopref): Delete.
27115 (tune_params): Re-organize, use enums for flag values.
27116 (FUSE_OPS): New macro.
27117 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
27118 (ARM_PREFETCH_BENEFICIAL): Likewise.
27119 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
27120 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
27121 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
27122 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
27123 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
27124 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
27125 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
27126 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
27127 format.
27128 (arm_option_override, thumb2_reorg, arm_print_tune_info)
27129 (aarch_macro_fusion_pair_p): Update uses of current_tune.
27130 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
27131
27132 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
27133
27134 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27135 "break".
27136
27137 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
27138 Sandra Loosemore <sandra@codesourcery.com>
27139
27140 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27141 value.
27142 (REG_CLASS_NAMES): Add "IJMP_REGS".
27143 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27144 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27145 use new "c" register constraint.
27146 * config/nios2/constraint.md (c): New register constraint
27147 corresponding to IJMP_REGS.
27148
27149 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27150
27151 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27152 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27153 define_splits): Delete, revamp, transmogrify into ...
27154 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27155 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27156 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27157 New.
27158
27159 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27160
27161 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27162 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27163
27164 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27165
27166 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27167 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27168 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27169 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27170 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27171 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27172 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27173 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27174 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27175 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27176 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27177 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27178 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27179 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27180 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27181 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27182 and 30 corresponding splitters): Delete.
27183
27184 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27185
27186 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27187 zero_extract.
27188
27189 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27190
27191 * combine.c (recog_for_combine_1): New function, factored out
27192 from recog_for_combine.
27193 (change_zero_ext): New function.
27194 (recog_for_combine): If recog fails, try again with the pattern
27195 modified by change_zero_ext; if that still fails, restore the
27196 pattern.
27197
27198 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27199
27200 * combine.c (get_undo_marker): New function.
27201 (undo_to_marker): New function, largely factored out from ...
27202 (undo_all): ... this. Adjust.
27203
27204 2015-05-12 Richard Biener <rguenther@suse.de>
27205
27206 PR tree-optimization/66101
27207 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27208 fixup if we turn a loop exit edge to a fallthru edge.
27209
27210 2015-05-12 Richard Biener <rguenther@suse.de>
27211
27212 PR tree-optimization/37021
27213 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27214 (SLP_TREE_TWO_OPERATORS): New define.
27215 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27216 SLP_TREE_TWO_OPERATORS.
27217 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27218 SLP node.
27219 (vect_build_slp_tree): Adjust.
27220 (vect_analyze_slp_cost_1): Likewise.
27221 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27222 emitting two vector stmts and mixing the results.
27223
27224 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27225
27226 * call.c (print_z_candidates): Remove dead code.
27227
27228 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27229
27230 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27231 and zEC12_simple_fp.
27232 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27233 to 1.
27234
27235 2015-05-12 Tom de Vries <tom@codesourcery.com>
27236
27237 PR tree-optimization/66010
27238 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27239 ifn_va_arg.
27240 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27241 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
27242 va_lists are passed, and remove corresponding handling.
27243 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
27244 do_deref argument to ifn_va_arg.
27245 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27246 ifn_va_arg.
27247
27248 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27249
27250 PR target/65955
27251 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27252 REG before taking its REGNO.
27253
27254 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
27255
27256 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27257 rsp->sign_bit_copies and rsp->nonzero_bits into ...
27258 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
27259 present to get more accurate information about the number of sign bit
27260 copies and non zero bits.
27261
27262 2015-05-12 Richard Biener <rguenther@suse.de>
27263
27264 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27265 do not allow unrolling.
27266
27267 2015-05-11 Richard Henderson <rth@redhat.com>
27268
27269 * config/i386/i386-modes.def (CCP): New.
27270 * config/i386/i386.c (put_condition_code): Handle it.
27271 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27272
27273 2015-05-11 Richard Henderson <rth@redhat.com>
27274
27275 * target.def (md_asm_clobbers): Replace with...
27276 (md_asm_adjust): this.
27277 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27278 (TARGET_MD_ASM_ADJUST): New.
27279 * tm.texi: Rebuild.
27280 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27281 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27282 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27283
27284 * cfgexpand.c (check_operand_nalternatives): Accept vector of
27285 constraints instead of lists of outputs and inputs.
27286 (expand_asm_stmt): Save and restore input_location around the
27287 body of the function. Move asm data into vectors instead of
27288 building tree lists. Generate cleanup sequences as needed,
27289 rather than waiting til the end. Use new md_asm_adjust hook.
27290
27291 * config/vxworks.c: Include vec.h before target.h.
27292 * gimple.c: Likewise.
27293 * incpath.c: Likewise.
27294 * mode-switching.c: Likewise.
27295
27296 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27297 (cris_md_asm_adjust): this.
27298 (TARGET_MD_ASM_CLOBBERS): Remove.
27299 (TARGET_MD_ASM_ADJUST): New.
27300 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27301 (ix86_md_asm_adjust): this.
27302 (TARGET_MD_ASM_CLOBBERS): Remove.
27303 (TARGET_MD_ASM_ADJUST): New.
27304 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27305 (mn10300_md_asm_adjust): this.
27306 (TARGET_MD_ASM_CLOBBERS): Remove.
27307 (TARGET_MD_ASM_ADJUST): New.
27308 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27309 (rs6000_md_asm_adjust): this.
27310 (TARGET_MD_ASM_CLOBBERS): Remove.
27311 (TARGET_MD_ASM_ADJUST): New.
27312 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27313 (visium_md_asm_adjust): this.
27314 (TARGET_MD_ASM_CLOBBERS): Remove.
27315 (TARGET_MD_ASM_ADJUST): New.
27316
27317 2015-05-11 Richard Henderson <rth@redhat.com>
27318
27319 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27320 if noutputs is zero.
27321 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27322
27323 * cfgexpand.c (expand_asm_operands): Merge into...
27324 (expand_asm_stmt): ... here.
27325
27326 * cfgexpand.c (expand_asm_operands): Don't call
27327 resolve_asm_operand_names.
27328 * stmt.c (resolve_asm_operand_names): Clarify block comment.
27329
27330 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
27331
27332 * dwarf2out.c (gen_member_die): Sanity check that we access
27333 TYPE_MAIN_VARIANT for TYPE_METHODS.
27334 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27335 checking TYPE_METHODS.
27336 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27337 if non-null.
27338 (build_distinct_type_copy): Clear TYPE_METHODS.
27339 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27340 (verify_type): Allow TYPE_METHODS to be error_mark_node.
27341 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27342
27343 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
27344
27345 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27346 (emit_pattern_before_setloc): Likewise.
27347
27348 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27349
27350 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27351 for define_peephole2s.
27352 (get_peephole2_pattern): New function.
27353 (main): Use it. Call validate_pattern.
27354
27355 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27356
27357 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27358 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27359 (Last callee saved reg is different for AVR_TINY architecture)
27360
27361 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27362
27363 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27364 when looking for memory references.
27365
27366 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27367
27368 PR target/65753
27369 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27370 via function pointers.
27371
27372 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27373
27374 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27375 indirect call by forcing address into a pseudo with -fno-plt.
27376 * common.opt (flag_plt): New option.
27377 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27378 ([-fno-plt]): Document.
27379
27380 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
27381
27382 PR bootstrap/66105
27383 * config/rs6000/option-defaults.h: Add space between string literal
27384 and macro name.
27385
27386 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27387
27388 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27389 accross ARM targets.
27390
27391 2015-05-11 Christian Bruel <christian.bruel@st.com>
27392
27393 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27394 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27395
27396 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27397
27398 PR rtl-optimization/66076
27399 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27400 Don't grow the heap array if it is already big enough from a
27401 previous iteration.
27402
27403 2015-05-11 Christian Bruel <christian.bruel@st.com>
27404
27405 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27406 (is_called_in_ARM_mode): Remove.
27407 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27408 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27409 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27410 arm_declare_function_name.
27411
27412 2015-05-11 Christian Bruel <christian.bruel@st.com>
27413
27414 * config/arm/arm.c (arm_option_override): Reoganized and split into :
27415 (arm_option_params_internal); New function.
27416 (arm_option_check_internal): New function.
27417 (arm_option_override_internal): New function.
27418 (thumb_code, thumb1_code): Remove.
27419 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27420 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27421 (thumb_code, thumb1_code): Remove.
27422 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27423
27424 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27425
27426 * config/alpha/alpha.c (alpha_emit_set_const_1)
27427 (alpha_emit_set_long_const, alpha_extract_integer)
27428 (alpha_legitimate_constant_p, alpha_split_const_mov)
27429 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27430 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27431 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27432 HOST_WIDE_INT_1U.
27433 * config/alpha/predicates.md (mode_mask_operand): Do not match
27434 const_double RTX.
27435 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27436 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27437 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27438 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27439 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27440
27441 2015-05-11 Jakub Jelinek <jakub@redhat.com>
27442
27443 PR target/65780
27444 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27445 default_binds_local_p_2.
27446 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27447 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27448
27449 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27450
27451 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27452
27453 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27454
27455 Patch by Richard Biener
27456 * coverage.c (coverage_obj_init): Delay building of type variant
27457 until the type is finished.
27458
27459 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27460
27461 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27462 mismatch between C and C++ type; compoare correctly ARG_TYPES
27463 for non-prototypes and output correctly parameter index for METHOD_TYPE.
27464 (odr_types_equivalent_p): Fix wording of warning about attributes;
27465 it is OK to match prototype and non-prototype.
27466
27467 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27468
27469 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27470 TYPE_ARG_TYPES list.
27471 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27472 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27473
27474 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27475
27476 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27477 * tree.h (is_lang_specific): Constify.
27478
27479 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
27480
27481 PR tree-optimization/64454
27482 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27483 Rewrite.
27484
27485 2015-05-08 Jason Merrill <jason@redhat.com>
27486
27487 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27488 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27489 config/darwin.h, config/darwin9.h, config/elfos.h,
27490 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27491 config/microblaze/microblaze.h, config/mips/mips.h,
27492 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27493 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27494 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27495 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27496 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27497 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27498 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27499 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27500 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27501 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27502 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27503 between string literal and macro name.
27504
27505 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27506
27507 * jump.c: Change argument types to rtx_insn *.
27508 * rtl.h: Adjust.
27509
27510 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27511
27512 * lra-constraints.c: Change argument type to rtx_insn *.
27513
27514 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27515
27516 * df-problems.c: Change argument type to rtx_insn *.
27517
27518 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27519
27520 * combine.c: Change argument type to rtx_insn *.
27521
27522 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27523
27524 * rtl.h: Adjust.
27525 * rtlanal.c: Change argument type to rtx_insn *.
27526
27527 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27528
27529 * sched-deps.c: Change argument types to rtx_insn *.
27530 * sched-int.h: Adjust.
27531
27532 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27533
27534 * dwarf2cfi.c: Change argument type to rtx_insn *.
27535
27536 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27537
27538 * ira.c (decrease_live_ranges_number): Changetype of local
27539 variable to rtx_insn *.
27540 * recog.c: Change argument types to rtx_insn *.
27541 * recog.h: Adjust.
27542
27543 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27544
27545 * reorg.c: Change argument types to rtx_insn *.
27546
27547 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27548
27549 * ira-color.c: Change argument types to rtx_insn *.
27550 * lra-eliminations.c: Likewise.
27551 * ira.h: Adjust.
27552
27553 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27554
27555 * gcse.c: Change argument types to rtx_insn *.
27556
27557 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27558
27559 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27560
27561 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27562
27563 * emit-rtl.c (emit_debug_insn_before): Change argument type to
27564 rtx_insn *.
27565 * rtl.h: Adjust.
27566
27567 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27568
27569 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27570 * rtl.h: Adjust.
27571
27572 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27573
27574 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27575 * rtl.h: Adjust.
27576
27577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27578
27579 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27580 * rtl.h: Adjust.
27581
27582 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27583
27584 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27585 * rtl.h: Adjust.
27586
27587 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27588
27589 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27590 to rtx_insn *.
27591 * rtl.h: Adjust.
27592
27593 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27594
27595 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27596 to rtx_insn *.
27597 * rtl.h: Likewise.
27598
27599 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27600
27601 * except.c (can_nonlocal_goto): Change type of argument to
27602 rtx_insn *.
27603 * rtl.h: Adjust.
27604
27605 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27606
27607 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27608 * rtl.h: Adjust.
27609
27610 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27611
27612 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27613 * cfgrtl.c (can_delete_label_p): Adjust.
27614 * rtl.h: likewise.
27615
27616 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27617
27618 * reorg.c (stop_search_p): Change argument to rtx_insn *.
27619
27620 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27621
27622 * except.c (make_reg_eh_region_note): Change argument to
27623 rtx_insn *.
27624 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27625 * except.h: Adjust.
27626
27627 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27628
27629 * mode-switching.c (commit_mode_sets): Change type of local
27630 variable from rtx to rtx_insn *.
27631
27632 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
27633
27634 * doc/install.texi (--enable-languages): Add missing jit and lto info.
27635 Add ^ to grep command.
27636 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27637 arg to last gimple_simplify declaration. Add missing gimple_build
27638 declaration for built-in function case with four tree args.
27639
27640 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27641 Szabolcs Nagy <szabolcs.nagy@arm.com>
27642
27643 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27644 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27645 (GNU_USER_DYNAMIC_LINKERN32): Update.
27646
27647 2015-05-08 Richard Biener <rguenther@suse.de>
27648
27649 PR tree-optimization/66036
27650 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27651 Handle strided group loads.
27652 (vect_verify_datarefs_alignment): Likewise.
27653 (vect_enhance_data_refs_alignment): Likewise.
27654 (vect_analyze_group_access): Likewise.
27655 (vect_analyze_data_ref_access): Likewise.
27656 (vect_analyze_data_ref_accesses): Likewise.
27657 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27658 (vectorizable_load): Likewise.
27659
27660 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
27661
27662 * config/rs6000/rs6000.md: Require operand inequality in one
27663 of the peepholes.
27664
27665 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
27666 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27667
27668 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27669 from (set ...).
27670 * config/rx/rx.md (movdi, movdf): Likewise.
27671 Likewise for define_peephole2s.
27672
27673 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27674
27675 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27676 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27677 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27678 vtst_u64): Rewrite using gcc vector extensions.
27679
27680 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27681
27682 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27683 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27684
27685 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27686
27687 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27688
27689 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
27690
27691 * config/glibc-stdint.h (OPTION_MUSL): Define.
27692 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27693 Change the definition based on OPTION_MUSL for 64 bit targets.
27694 * config/linux.h (OPTION_MUSL): Redefine.
27695 * config/alpha/linux.h (OPTION_MUSL): Redefine.
27696 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27697 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27698
27699 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27700 Szabolcs Nagy <szabolcs.nagy@arm.com>
27701
27702 * config.gcc (LIBC_MUSL): New tm_defines macro.
27703 * config/linux.h (OPTION_MUSL): Define.
27704 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27705 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27706 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27707 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27708 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27709 * config/linux.opt (mmusl): New option.
27710 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27711 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27712 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27713 * configure: Regenerate.
27714
27715 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
27716 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27717
27718 PR target/48904
27719 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27720 * config/i386/knetbsd-gnu64.h: New file.
27721
27722 2015-05-08 Marek Polacek <polacek@redhat.com>
27723
27724 PR c/64918
27725 * doc/invoke.texi: Document -Woverride-init-side-effects.
27726
27727 2015-05-07 Marek Polacek <polacek@redhat.com>
27728
27729 PR c/65179
27730 * doc/invoke.texi: Document -Wshift-negative-value.
27731
27732 2015-05-06 Aditya Kumar <hiraditya@msn.com>
27733
27734 * gcov-tool.c (do_merge): Refactore to remove int ret.
27735 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
27736 !type == FUNC to type != FUNC.
27737 * reload.h (struct target_reload): Changee to type of
27738 x_spill_indirect_levels from bool to unsigned char.
27739
27740 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
27741
27742 * rtl.h (always_void_p): New function.
27743 * gengenrtl.c (always_void_p): Likewise.
27744 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
27745 with code foo are always VOIDmode.
27746 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
27747 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
27748 compare-elim.c, config/aarch64/aarch64.c,
27749 config/aarch64/aarch64.md, config/alpha/alpha.c,
27750 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
27751 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
27752 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
27753 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
27754 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
27755 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
27756 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
27757 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
27758 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
27759 config/ia64/vect.md, config/iq2000/iq2000.c,
27760 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
27761 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
27762 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
27763 config/mep/mep.c, config/microblaze/microblaze.c,
27764 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
27765 config/mn10300/mn10300.c, config/msp430/msp430.c,
27766 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
27767 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
27768 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
27769 config/rs6000/altivec.md, config/rs6000/rs6000.c,
27770 config/rs6000/rs6000.md, config/rs6000/vector.md,
27771 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
27772 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
27773 config/sh/sh.md, config/sh/sh_treg_combine.cc,
27774 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
27775 config/spu/spu.md, config/stormy16/stormy16.c,
27776 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
27777 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
27778 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
27779 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
27780 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
27781 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
27782 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
27783 var-tracking.c: Update calls accordingly.
27784
27785 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27786
27787 PR middle-end/192
27788 PR middle-end/54303
27789 * varasm.c (function_mergeable_rodata_prefix): New function.
27790 (mergeable_string_section): Use it.
27791 (mergeable_constant_section): Use it.
27792
27793 2015-05-07 Jeff Law <law@redhat.com>
27794
27795 PR target/39726
27796 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27797 simplifier to narrow arithmetic.
27798 * generic-match-head.c: (types_match, single_use): New functions.
27799 * gimple-match-head.c: (types_match, single_use): New functions.
27800
27801 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27802
27803 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
27804 rtx type.
27805
27806 2015-05-07 Richard Biener <rguenther@suse.de>
27807
27808 PR tree-optimization/66002
27809 * passes.def: Schedule another pass_merge_phi after ifcombine, right
27810 before phiopt.
27811
27812 2015-05-07 Marek Polacek <polacek@redhat.com>
27813 Martin Uecker <uecker@eecs.berkeley.edu>
27814
27815 * doc/invoke.texi: Document -fsanitize=bounds-strict.
27816 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
27817 into SANITIZE_NONDEFAULT.
27818 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
27819
27820 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
27821
27822 PR target/66015
27823 * config/alpha/alpha.c (alpha_override_options_after_change): New.
27824 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
27825 (alpha_override_options): Move align_loops, align_jumps and
27826 align_functions handling into alpha_override_options_after_change.
27827
27828 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
27829 Chris Jones <chrisj@nvidia.com>
27830 Joshua Conner <jconner@nvidia.com>
27831
27832 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
27833 linking of crtfastmath.o.
27834 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
27835
27836 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27837
27838 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
27839 (cstore<mode>4_unsigned_imm): New expander.
27840 (cstore<mode>4): Remove empty constraint strings. Use the new
27841 expanders.
27842
27843 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
27844
27845 PR target/64208
27846 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
27847 alternatives.
27848
27849 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
27850
27851 * config/aarch64/geniterators.sh: Use standard BRE in sed.
27852
27853 2015-05-06 Alan Modra <amodra@gmail.com>
27854
27855 PR target/66033
27856 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
27857 (UNSPEC_NOP): Define.
27858 (reload_vsx_from_gpr<mode>): Add missing DONE.
27859 (reload_gpr_from_vsx<mode>): Likewise.
27860 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
27861 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
27862
27863 2015-05-06 Christian Bruel <christian.bruel@st.com>
27864
27865 PR target/66015
27866 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
27867 align_jumps, align_functions into aarch64_override_options_after_change.
27868
27869 2015-05-06 Richard Biener <rguenther@suse.de>
27870
27871 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
27872 vect_transform_slp_perm_load to check if we support a permutation
27873 for basic-block vectorization.
27874
27875 2015-05-06 Nick Clifton <nickc@redhat.com>
27876
27877 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
27878 used, even if it is not being used as a frame pointer.
27879
27880 2015-05-05 Jason Merrill <jason@redhat.com>
27881
27882 * dwarf2out.c (gen_member_die): Don't emit anything for an
27883 anonymous class constructor.
27884
27885 2015-05-05 David Malcolm <dmalcolm@redhat.com>
27886
27887 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
27888 that it reflects the block structure.
27889 (afdo_propagate_edge): Likewise.
27890 (afdo_calculate_branch_prob): Likewise.
27891 (afdo_annotate_cfg): Likewise.
27892 * cfgcleanup.c (equal_different_set_p): Likewise.
27893 (try_crossjump_to_edge): Likewise.
27894 * cgraph.c (cgraph_node::verify_node): Likewise.
27895 * cgraphunit.c (expand_all_functions): Likewise.
27896 * config/i386/i386.c (ix86_expand_copysign): Likewise.
27897 (exact_dependency_1): Likewise.
27898 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
27899 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
27900 * gensupport.c (process_define_subst): Likewise.
27901 * lto-wrapper.c (merge_and_complain): Likewise.
27902 * tree-if-conv.c (if_convertible_bb_p): Likewise.
27903 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
27904 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
27905 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
27906 * tree-vect-loop.c (vectorizable_reduction): Likewise.
27907 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
27908 * tree-vect-stmts.c (vectorizable_shift): Likewise.
27909 * tree-vrp.c (vrp_finalize): Likewise.
27910 * tree.c (variably_modified_type_p): Likewise.
27911
27912 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
27913
27914 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
27915 on darwin12 and later.
27916 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
27917 file to pass -rdynamic on darwin12 and later.
27918 * config/darwin.opt (rdynamic): Add.
27919
27920 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27921
27922 * doc/extend.texi (C Extensions): Update menu for moved Variable
27923 Attributes and Type Attributes sections.
27924
27925 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27926
27927 PR target/65990
27928 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
27929 if rep_8byte stringop strategy was specified for 32-bit target.
27930
27931 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
27932
27933 PR target/65915
27934 * config/i386/i386.md (vector convert to float spltiter): Check for
27935 xmm16+, when splitting scalar float conversion.
27936 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
27937
27938 2015-05-05 Nick Clifton <nickc@redhat.com>
27939
27940 * config/msp430/msp430-opts.h (enum msp430_regions): New.
27941 * config/msp430/msp430.c (msp430_override_options): Complain if
27942 -mcode-region or -mdata-region is used on a non MSP430X.
27943 (msp430_section_attr): New function. Checks lower, upper and
27944 either attributes.
27945 (msp430_attribute_table): Add lower, upper and either.
27946 (gen_prefix): New function. Generates a prefix for a section
27947 name.
27948 (msp430_select_section): New function - handles the choice of
27949 section for an object. Takes into account memory region
27950 attributes and options.
27951 (msp430_function_section): Use gen_prefix.
27952 (TARGET_SECTION_TYPE_FLAGS): Define.
27953 (msp430_section_type_flags): New function.
27954 (TARGET_ASM_UNIQUE_SECTION): Define.
27955 (msp430_unique_section): New function.
27956 (msp430_output_aligned_decl_common): New function.
27957 (msp430_do_not_relax_short_jumps): New function.
27958 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
27959 Define.
27960 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
27961 * config/msp430/msp430-protos.h
27962 (msp430_do_not_relax_short_jumps): New prototype.
27963 (msp430_output_aligned_decl_common): New prototype.
27964 * config/msp430/msp430.md (length): New attribute.
27965 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
27966 then use a long code sequence for short jumps.
27967 * config/msp430/msp430.opt (mcode-region): New.
27968 (mdata-region): New.
27969 * doc/invoke.texi: Document new options.
27970 * doc/extend.texi: Document new attributes.
27971
27972 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27973
27974 * config/aarch64-protos.h (struct cpu_branch_cost): New.
27975 (tune_params): Add field branch_costs.
27976 (aarch64_branch_cost): Declare.
27977 * config/aarch64.c (generic_branch_cost): New.
27978 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
27979 (cortexa53_tunings): Likewise.
27980 (cortexa57_tunings): Likewise.
27981 (thunderx_tunings): Likewise.
27982 (xgene1_tunings): Likewise.
27983 (aarch64_branch_cost): Define.
27984 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
27985
27986 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27987
27988 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
27989 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
27990 * config/i386/i386.md: Ditto.
27991 * config/i386/winnt.c: Ditto.
27992
27993 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
27994
27995 * doc/extend.texi (__atomic Builtins): Move implementation details
27996 to the end of the description, rewrite opening paragraphs, state
27997 difference with __sync builtins, state C11/C++11 assumptions,
27998 weaken itemized descriptions, add explanation of memory model
27999 behaviour, expand description of compare-exchange, simplify text.
28000
28001 2015-05-05 Renlin Li <renlin.li@arm.com>
28002
28003 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
28004
28005 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
28006
28007 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
28008 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28009 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
28010 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28011 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
28012 * configure: Regenerate.
28013 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
28014 * doc/install.texi (aarch64*-*-*): Document new
28015 --enable-fix-cortex-a53-843419 option.
28016 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
28017 and -mno-fix-cortex-a53-843419 options.
28018
28019 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28020
28021 PR target/65871
28022 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
28023
28024 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
28025
28026 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
28027 fix overactive TYPE_MIN_VALUE check and add FIXME for type
28028 compatibility problems.
28029
28030 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
28031
28032 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
28033 constraints.
28034 (cbranchsi4_reg): New.
28035 * config/microblaze/microblaze.c
28036 (microblaze_expand_conditional_branch_reg): New.
28037 * config/microblaze/microblaze-protos.h
28038 (microblaze_expand_conditional_branch_reg): New prototype.
28039
28040 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
28041
28042 * config/microblaze/microblaze.md (peephole2): New.
28043
28044 2015-05-04 Jeff Law <law@redhat.com>
28045
28046 Revert:
28047 2015-05-04 Jeff Law <law@redhat.com>
28048
28049 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28050 simplifier to narrow arithmetic.
28051 * generic-match-head.c: (types_match, single_use): New functions.
28052 * gimple-match-head.c: (types_match, single_use): New functions.
28053
28054 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
28055
28056 PR target/65987
28057 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
28058 (split_branches): Likewise.
28059
28060 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
28061
28062 * common.opt (fdelete-null-pointer-checks): Init to -1.
28063 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
28064 override flag_delete_null_pointer_checks default.
28065 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
28066 behavior re address zero. Better document target-specific behavior.
28067 (-fisolate-errneous-paths-dereference): Mention relationship to
28068 -fdelete-null-pointer-checks.
28069
28070 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28071
28072 PR tree-optimization/65984
28073 * ubsan.c: Include tree-cfg.h.
28074 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
28075 stmt_could_throw_p test, rename can_throw variable to ends_bb.
28076
28077 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
28078
28079 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
28080 to CONST_DOUBLE_P predicate.
28081 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
28082 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
28083 allow only operands that satisfy standard_sse_constant_p predicate.
28084 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
28085 to CONST_DOUBLE_P predicate.
28086
28087 2015-05-04 Jeff Law <law@redhat.com>
28088
28089 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28090 simplifier to narrow arithmetic.
28091 * generic-match-head.c: (types_match, single_use): New functions.
28092 * gimple-match-head.c: (types_match, single_use): New functions.
28093
28094 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
28095
28096 * config/arm/arm.c: Restore bootstrap.
28097
28098 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
28099
28100 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
28101 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
28102 as CONST_WIDE_INT, not CONST_DOUBLE.
28103 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
28104 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
28105 (ix86_find_base_term): Do not check for CONST_DOUBLE.
28106 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
28107 (ix86_build_signbit_mask): Rewrite using wide ints.
28108 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
28109 (ix86_rtx_costs): Handle CONST_WIDE_INT.
28110 (find_constant): Ditto.
28111 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
28112 using gen_int_mode.
28113 * config/i386/predicates.md (x86_64_immediate_operand)
28114 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28115 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
28116 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28117 (const0_operand): Also match const_wide_int.
28118 (constm1_operand): Ditto.
28119 (const1_operand): Ditto.
28120
28121 2015-05-04 Richard Biener <rguenther@suse.de>
28122
28123 PR tree-optimization/65965
28124 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
28125 store groups at gaps.
28126
28127 2015-05-04 Richard Biener <rguenther@suse.de>
28128
28129 PR tree-optimization/65935
28130 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
28131 then make sure to apply that swapping to the IL.
28132
28133 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28134
28135 * Makefile.in (PATCHLEVEL_c): New variable.
28136 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28137 expand the same way as if DEVPHASE_c was non-empty.
28138
28139 2015-05-04 Kai Tietz <ktietz@redhat.com>
28140
28141 PR target/65559
28142 * lto-wrapper.c (run_gcc): Open filename
28143 in binary-mode.
28144
28145 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
28146
28147 * doc/extend.texi (Variable Attributes, Type Attributes): Move
28148 sections up in file, to immediately after the Function Attributes
28149 section.
28150
28151 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
28152
28153 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28154
28155 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28156
28157 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28158 (insert_partition_copy_on_edge): Adjust.
28159 (insert_rtx_to_part_on_edge): Likewise.
28160 (insert_part_to_rtx_on_edge): Likewise.
28161
28162 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28163
28164 * function.c (set_return_jump_label): Change type of argument to
28165 rtx_insn *.
28166 * function.h (set_return_jump_label): Adjust.
28167
28168 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28169
28170 * reload.h (struct reg_equivs_t): Change type of init to
28171 rtx_insn *.
28172 * ira.c (fix_reg_equiv_init): Adjust.
28173 * reload1.c (eliminate_regs_1): Likewise.
28174 (init_eliminable_invariants): Likewise.
28175
28176 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28177
28178 * cselib.c (fp_setter_insn): Take a rtx_insn *.
28179 * cselib.h (fp_setter_insn): Adjust.
28180
28181 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28182
28183 * recog.c (struct validate_replace_src_data): Change type of
28184 insn field to rtx_insn *.
28185 (validate_replace_src_group): Change type of argument to rtx_insn *.
28186 * recog.h (validate_replace_src_group): Adjust.
28187
28188 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28189
28190 * haifa-sched.c: Change the type of some variables to rtx_insn *.
28191 * sched-deps.c: Likewise.
28192 * sched-int.h: Likewise.
28193 * sched-rgn.c: Likewise.
28194 * sel-sched.c: Likewise.
28195
28196 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28197
28198 to rtx_insn *.
28199 * config/i386/i386.c: Change the type of some arguments to
28200 rtx_insn *.
28201 * config/arm/arm.c: Likewise.
28202
28203 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28204
28205 * lra-constraints.c: Change type of some arguments to rtx_insn *.
28206
28207 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28208
28209 * regcprop.c (kill_autoinc_value): Change type of argument to
28210 rtx_insn *.
28211
28212 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28213
28214 * genrecog.c (print_subroutine): Adjust.
28215 * recog.c (get_bool_attr_mask_uncached): Likewise.
28216 * recog.h (struct recog_data_d): Change the type of insn to
28217 rtx_insn *.
28218
28219 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28220
28221 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28222
28223 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28224
28225 * df-problems.c (df_set_note): Change type of argument to
28226 rtx_insn *.
28227
28228 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28229
28230 * builtins.c (expand_builtin_trap): Change type of local
28231 variable to rtx_insn *.
28232 (add_sched_insns_for_speculation): Likewise.
28233 (ix86_emit_save_regs): Likewise.
28234 (get_scratch_register_on_entry): Likewise.
28235 (ix86_emit_restore_reg_using_pop): Likewise.
28236 (ix86_emit_leave): Likewise.
28237 (ix86_emit_restore_regs_using_mov): Likewise.
28238 (ix86_expand_epilogue): Likewise.
28239 Likewise.
28240 (rl78_alloc_physical_registers_umul): Likewise.
28241 * cselib.c (discard_useless_locs): Likewise.
28242 (cselib_invalidate_regno): Likewise.
28243 (cselib_invalidate_mem): Likewise.
28244 * function.c (expand_function_start): Likewise.
28245 (emit_use_return_register_into_block): Likewise.
28246 * gcse.c: Likewise.
28247 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28248 * ifcvt.c (noce_get_alt_condition): Likewise.
28249 * loop-doloop.c (doloop_condition_get): Likewise.
28250 * lra-constraints.c (inherit_in_ebb): Likewise.
28251 * modulo-sched.c (sms_schedule_by_order): Likewise.
28252 * recog.c (next_insn_tests_no_inequality): Likewise.
28253 * reorg.c (emit_delay_sequence): Likewise.
28254 (update_reg_dead_notes): Likewise.
28255 (fix_reg_dead_note): Likewise.
28256 (fill_slots_from_thread): Likewise.
28257 (delete_computation): Likewise.
28258
28259 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
28260
28261 * doc/extend.texi (Variable Attributes): Add menu and proper
28262 @nodes to subsections. Move Microsoft Windows attributes to
28263 their own subsection.
28264 (Type Attributes): Reorganize introduction to remove duplicate
28265 list of attributes. Add menu and proper @nodes to subsections.
28266 Alphabetize the main table of common attributes.
28267
28268 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
28269
28270 * match.pd: New simplification patterns.
28271 (x + (x & 1)) -> ((x + 1) & ~1)
28272 (x & ~(x & y)) -> ((x & ~y))
28273 (x | ~(x | y)) -> ((x | ~y))
28274
28275 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28276
28277 * target.def (attribute_table): Mention that struct attribute_spec
28278 is defined in tree-core.h rather than tree.h
28279 * doc/tm.texi: Regenerate.
28280
28281 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
28282
28283 * genrecog.c (test): Rename to rtx_test. Update rest of file
28284 accordingly.
28285
28286 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
28287
28288 PR translation/65959
28289 * params.h (DEFPARAM): Rename msgid to nocmsgid.
28290
28291 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28292
28293 * config/aarch64/aarch64-protos.h (tune_params):
28294 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28295 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28296 Return value depending on target.
28297 (generic_tunings): Initialize new target settings.
28298 (cortexa53_tunings): Likewise.
28299 (cortexa57_tunings): Likewise.
28300 (thunderx_tunings): Likewise.
28301 (xgene1_tunings): Likewise.
28302
28303 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28304
28305 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28306 Make Cortex-A53 shift costs more accurate.
28307
28308 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28309
28310 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28311 UNSIGNED_FLOAT.
28312
28313 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28314
28315 * config/aarch64/aarch64.c (aarch64_rtx_costs):
28316 Calculate cost of op0 and op1 in PLUS and MINUS cases.
28317
28318 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28319
28320 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28321 Add cost of op0 in the compare-with-fpzero case.
28322
28323 2015-04-30 David Malcolm <dmalcolm@redhat.com>
28324
28325 * builtins.c (fold_builtin_1): Remove spurious second
28326 semicolon.
28327 * cgraph.h (symtab_node::get_availability): Likewise.
28328 * opts.c (common_handle_option): Remove spurious second semicolon.
28329 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28330 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28331
28332 2015-04-30 Caroline Tice <cmtice@google.com>
28333
28334 PR gcov-profile/65929
28335 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28336 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28337 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28338 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28339 * doc/tm.texi: Regenerate.
28340 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
28341 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28342 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
28343 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28344
28345 2015-04-30 Marek Polacek <polacek@redhat.com>
28346
28347 * varasm.c (handle_cache_entry): Fix logic.
28348
28349 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28350
28351 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28352 (*extrsi5_insn_uxtw_alt): Likewise.
28353 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28354 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28355 operations.
28356
28357 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28358
28359 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28360 fabd in ABS case.
28361
28362 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28363
28364 * config/aarch64/aarch64.md
28365 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28366 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28367 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28368 appropriately. Handle alternative EON form.
28369
28370 2015-04-30 Renlin Li <renlin.li@arm.com>
28371
28372 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28373 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28374
28375 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28376
28377 PR ipa/65873
28378 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28379 -fstrict-aliasing boundaries.
28380
28381 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28382
28383 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28384 and [SU]MNEGL patterns.
28385
28386 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28387
28388 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28389 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28390 combined arithmetic-shift ops. Properly handle all shift and extend
28391 operations that can occur in combination with PLUS/MINUS.
28392 Rename maybe_fma to compound_p.
28393 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28394 arithmetic and shift operations.
28395
28396 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28397
28398 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28399 rather than arith_shift cost when costing ADD/MINUS of an
28400 extended value.
28401
28402 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28403
28404 PR lto/65948
28405 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28406 to itself.
28407
28408 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
28409
28410 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28411 are for the same position.
28412
28413 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
28414
28415 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
28416 vectorize_loops.
28417 (vectorize_loops): Use it.
28418
28419 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28420
28421 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28422 for aggregate types.
28423 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28424 type to be non_ODR.
28425 * tree.c (need_assembler_name_p): Compute mangled name for
28426 non-fundamental types and integer types.
28427
28428 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
28429
28430 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28431 manual swaps.
28432 * expr.c (expand_expr_real_2): Likewise.
28433
28434 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28435
28436 * tree.c (build_common_builtin_nodes): Do not build
28437 __builtin_alloca_with_align as equivalent of library alloca.
28438
28439 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28440
28441 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28442 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28443 bugus variants.
28444 * tree.c: Include print-tree.h and ipa-utils.h
28445 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28446 (free_lang_data_in_cgraph): Call verify_type.
28447 (verify_type_variant): New function.
28448 (verify_type): New function.
28449 * tree.h (verify_type): Declare.
28450
28451 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
28452
28453 * config/mips/mips-cpus.def: (mips4): Change default processor
28454 from PROCESSOR_R8000 to PROCESSOR_R10000.
28455
28456 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
28457
28458 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28459 la/jalr instead of jal.
28460
28461 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
28462
28463 PR target/65871
28464 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28465 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28466 (setcc+movzbl peephole2): Check also clobbered reg.
28467 (setcc+andl peephole2): Ditto.
28468
28469 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28470
28471 PR libgomp/65099
28472 * config/nvptx/mkoffload.c (target_ilp32): New variable.
28473 (main): Set it depending on "-foffload-abi=[...]".
28474 (compile_native, main): Use it to pass "-m32" or "-m64" to the
28475 compiler.
28476
28477 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28478
28479 PR target/65770
28480 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28481 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28482 Flip lane index back at assembly time for bigendian.
28483
28484 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28485
28486 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28487 * gimplify.c (gimplify_omp_workshare): Use it.
28488
28489 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28490
28491 * Makefile.in (build/genrecog.o): Depend on inchash.h.
28492 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28493 build/inchash.o
28494 * genrecog.c: Rewrite most of the code except for the third page.
28495
28496 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28497
28498 * inchash.h, inchash.c: Include bconfig.h for build objects.
28499 * Makefile.in (build/inchash.o): New rule.
28500
28501 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
28502
28503 PR target/65924
28504 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28505 number in type attribute expression.
28506
28507 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28508
28509 * loop-iv.c (canon_condition): Generalize to all types of integer
28510 constant.
28511
28512 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
28513
28514 * gimple-walk.c: Prune duplicate or unneeded includes.
28515 (walk_gimple_asm): Only call parse_input_constraint or
28516 parse_output_constraint if their findings are used.
28517 Honour parse_input_constraint and parse_output_constraint
28518 result.
28519
28520 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28521
28522 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28523
28524 2015-04-29 Tom de Vries <tom@codesourcery.com>
28525
28526 PR tree-optimization/65893
28527 * passes.def (pass_all_optimizations): Move pass_stdarg to after
28528 pass_dce.
28529
28530 2015-04-29 Richard Biener <rguenther@suse.de>
28531
28532 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28533 compute GROUP_SIZE for basic-block SLP.
28534 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28535 take into account gaps.
28536 (vect_get_mask_element): Properly reject references to previous
28537 vectors.
28538 (vect_transform_slp_perm_load): Likewise.
28539
28540 2015-04-29 Christian Bruel <christian.bruel@st.com>
28541
28542 PR target/64835
28543 * config/i386/i386.c (ix86_default_align): New function.
28544 (ix86_override_options_after_change): Call ix86_default_align.
28545 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28546 (ix86_override_options_after_change): New function.
28547
28548 2015-04-28 Jeff Law <law@redhat.com>
28549
28550 * tree-ssa-dom.c (record_equality); Fix comment typos.
28551
28552 2015-04-28 Tom de Vries <tom@codesourcery.com>
28553
28554 PR tree-optimization/65887
28555 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28556
28557 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
28558
28559 * doc/extend.texi (Declaring Attributes of Functions): Split into
28560 subsections by target. Alphabetize the table of common attributes.
28561 Rewrite some of the introductory text to reflect the new structure.
28562 Update some cross-references to point to the new subsections.
28563 (Attribute Syntax): Put paragraph about "__" naming here. Remove
28564 duplicate copies in the discussion of function, label, and type
28565 attributes.
28566
28567 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
28568
28569 PR bootstrap/65910
28570 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28571
28572 2015-04-28 Jason Merrill <jason@redhat.com>
28573
28574 PR c++/65734
28575 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28576 (finalize_type_size): Respect TYPE_USER_ALIGN.
28577 (layout_type) [ARRAY_TYPE]: Likewise.
28578
28579 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
28580
28581 * config/arm/arm.md (*arm_movt): Fix type attribute.
28582 (*cmpsi_shiftsi): Likewise.
28583 (*cmpsi_shiftsi_swp): Likewise.
28584 (*movsicc_insn): Likewise.
28585 (*cond_move): Likewise.
28586 (*if_plus_move): Likewise.
28587 (*if_move_plus): Likewise.
28588 (*if_arith_move): Likewise.
28589 (*if_move_arith): Likewise.
28590 (*if_shift_move): Likewise.
28591 (*if_move_shift): Likewise.
28592 (*arm_movtas_ze): Likewise.
28593 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28594 redundancy and type attribute.
28595 (*thumb2_movsi_insn): Fix type attribute.
28596 (*thumb2_addsi_short): Likewise.
28597 (thumb2_addsi3_compare0): Likewise.
28598 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28599 attributes accordingly.
28600
28601 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
28602
28603 PR other/65911
28604 * function.c (pad_to_arg_alignment): Add parentheses.
28605
28606 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
28607
28608 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28609 libgcc/config/frv/elf-lib.h.
28610
28611 2015-04-28 Tom de Vries <tom@codesourcery.com>
28612
28613 * tree-call-cdce.c: Fix example in header comment.
28614
28615 2015-04-28 Richard Biener <rguenther@suse.de>
28616
28617 PR tree-optimization/62283
28618 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28619 fails fatally and we are vectorizing a basic-block simply
28620 cause the child to be constructed piecewise.
28621 (vect_analyze_slp_cost_1): Adjust.
28622 (vect_detect_hybrid_slp_stmts): Likewise.
28623 (vect_bb_slp_scalar_cost): Likewise.
28624 (vect_get_constant_vectors): For piecewise constructed
28625 constants place them after the last def.
28626 (vect_get_slp_defs): Adjust.
28627 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28628 externals for basic-block vectorization.
28629
28630 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28631
28632 PR target/63503
28633 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28634 aarch64-*-*.
28635 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28636 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28637 (AARCH64_TUNE_FMA_STEERING): Likewise.
28638 * config/aarch64/aarch64-cores.def: Set
28639 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28640 FMUL/FMADD instructions.
28641 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28642 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
28643 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28644 * config/aarch64/cortex-a57-fma-steering.h: New file.
28645 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28646
28647 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
28648
28649 * gensupport.c (std_preds): Add missing codes to address_operand entry.
28650
28651 2015-04-28 Richard Biener <rguenther@suse.de>
28652
28653 PR tree-optimization/65851
28654 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28655 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
28656 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
28657 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28658 (ccp_visit_phi_node): Adjust.
28659 (evaluate_stmt): For simplifications to SSA names return its
28660 lattice value if that isn't VARYING. Return immediately when
28661 simplified to a constant.
28662 (visit_assignment): Adjust.
28663 (ccp_visit_stmt): Likewise.
28664
28665 2015-04-28 Tom de Vries <tom@codesourcery.com>
28666
28667 PR tree-optimization/65818
28668 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28669 evaluated.
28670
28671 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28672
28673 * calls.c (save_fixed_argument_area): Don't check
28674 ARGS_GROW_DOWNWARD with the preprocessor.
28675 (restore_fixed_argument_area): Likewise.
28676 (mem_overlaps_already_clobbered_arg_p): Likewise.
28677 (check_sibcall_argument_overlap): Likewise.
28678 (expand_call): Likewise.
28679 (emit_library_call_value_1): Likewise.
28680 (store_one_arg): Likewise.
28681 * function.c (assign_parms): Likewise.
28682 (locate_and_pad_parm): Likewise.
28683 (pad_to_arg_alignment): Likewise.
28684 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28685
28686 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28687
28688 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28689 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28690 * calls.c (save_fixed_argument_area): Don't chekc if
28691 ARGS_GROW_DOWNWARD is defined.
28692 (restore_fixed_argument_area): Likewise.
28693 (mem_overlaps_already_clobbered_arg_p): Likewise.
28694 (check_sibcall_argument_overlap): Likewise.
28695 (expand_call): Likewise.
28696 (emit_library_call_value_1): Likewise.
28697 (store_one_arg): Likewise.
28698 * function.c (assign_parms): Likewise.
28699 (locate_and_pad_parm): Likewise.
28700 (pad_to_arg_alignment): Likewise.
28701 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28702
28703 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28704
28705 * defaults.h (gen_epilogue): New function.
28706 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28707 defined.
28708 * cfgrtl.c (cfg_layout_finalize): Likewise.
28709 * df-scan.c: Likewise.
28710 * function.c (thread_prologue_and_epilogue_insns): Likewise.
28711 (reposition_prologue_and_epilogue_notes): Likewise.
28712 * reorg.c (find_end_label): Likewise.
28713 * toplev.c: Likewise.
28714
28715 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28716
28717 * bb-reorder.c (HAVE_return): Don't check if its undefined.
28718 * defaults.h (gen_simple_return): New function.
28719 (gen_simple_return): Likewise.
28720 (HAVE_return): Add default definition to false.
28721 (HAVE_simple_return): Likewise.
28722 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28723 HAVE_return and HAVE_simple_return are defined.
28724 * function.c (gen_return_pattern): Likewise.
28725 (convert_jumps_to_returns): Likewise.
28726 (thread_prologue_and_epilogue_insns): Likewise.
28727 * reorg.c (find_end_label): Likewise.
28728 (dbr_schedule): Likewise.
28729 * shrink-wrap.c: Likewise.
28730 * shrink-wrap.h: Likewise.
28731
28732 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28733
28734 * defaults.h (EPILOGUE_USES): Add default definition of false.
28735 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
28736 * resource.c (init_resource_info): Likewise.
28737
28738 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28739
28740 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
28741 to false.
28742 * dwarf2out.c (field_byte_offset): REmove check if
28743 PCC_BITFIELD_TYPE_MATTERS is defined.
28744 * stor-layout.c (layout_decl): Likewise.
28745 (update_alignment_for_field): Likewise.
28746 (place_field): Likewise.
28747
28748 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28749
28750 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
28751 true.
28752 * regrename.c (check_new_reg_p): Remove check if
28753 HARD_REGNO_RENAME_OK is defined.
28754 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
28755
28756 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28757
28758 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
28759 * cse.c (fold_rtx): Likewise.
28760 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
28761 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
28762 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
28763 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
28764 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
28765 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
28766 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
28767 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
28768 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
28769 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
28770 * Likewise.
28771 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
28772 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
28773 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
28774 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
28775 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
28776 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
28777 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
28778 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
28779 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
28780 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
28781 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
28782 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
28783 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
28784 * doc/tm.texi: Regenerate.
28785 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
28786 either true or false.
28787
28788 2015-04-27 Jeff Law <law@redhat.com>
28789
28790 PR tree-optimization/65217
28791 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
28792 of them has a single use, make sure it is the LHS of the implied
28793 copy.
28794
28795 2015-04-28 Alan Modra <amodra@gmail.com>
28796
28797 PR target/65810
28798 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
28799 (offsettable_ok_by_alignment): Use minimum of decl and toc
28800 pointer alignment. Replace dead code with assertion.
28801 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
28802 case if size exceeds toc pointer alignment.
28803 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
28804 (rs6000_emit_move): Likewise.
28805 * configure.ac: Add linker toc pointer alignment check.
28806 * configure: Regenerate.
28807 * config.in: Regenerate.
28808
28809 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
28810
28811 * config.gcc: Add h8300-*-linux.
28812 * config/h8300/linux.h: New.
28813 * config/h8300/t-linux: New.
28814 * config/h8300/h8300.c (h8300_option_override): Normal mode
28815 is not supported for h8300-*-linux.
28816 (h8300_file_start): Target priority change.
28817 (get_shift_alg): Likewise.
28818 (h8300_shift_need_scratch_p): Likewise.
28819 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
28820 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
28821
28822 2015-04-27 Caroline Tice <cmtice@google.com>
28823
28824 * final.c (final_scan_insn): Output cold_function_name as function
28825 type.
28826 * varasm.c (cold_function_name): Make global.
28827 (assemble_start_function): Re-set cold_function_name.
28828 (assemble_end_function): Output cold partition size.
28829 * varasm.h (cold_function_name): Declare global.
28830
28831 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
28832
28833 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
28834 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
28835 constraint.
28836 (*movxi_internal_avx512f): Ditto.
28837 (define_split): Check for xmm16+, when splitting scalar float_extend.
28838 (*extendsfdf2_mixed): Use "v" constraint.
28839 (define_split): Check for xmm16+, when splitting scalar float_truncate.
28840 (*truncdfsf_fast_sse): Use "v" constraint.
28841 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
28842 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
28843 (define_peephole2): Check for xmm16+, when converting scalar
28844 float_truncate.
28845 (define_peephole2): Check for xmm16+, when converting scalar
28846 float_extend.
28847 (*fop_<mode>_comm_mixed): Use "v" constraint.
28848 (*fop_<mode>_comm_sse): Ditto.
28849 (*fop_<mode>_1_mixed): Ditto.
28850 (*sqrt<mode>2_sse): Ditto.
28851 (*ieee_s<ieee_maxmin><mode>3): Ditto.
28852
28853 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28854
28855 * combine.c (simplify_if_then_else): Use std::swap instead
28856 of manually swapping.
28857 (known_cond): Likewise.
28858 (simplify_comparison): Likewise.
28859
28860 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
28861
28862 PR target/64579
28863 * config/rs6000/htm.md: Remove all define_expands.
28864 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
28865 UNSPECV_HTM_TABORTWCI): Remove.
28866 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
28867 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
28868 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
28869 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
28870 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
28871 tabortwci_internal): Remove define_insns.
28872 (tabort<wd>c, tabort<wd>ci): New define_insns.
28873 (tabort): Use gpc_reg_operand.
28874 (tcheck): Remove operand.
28875 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
28876 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
28877 expected value.
28878 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
28879 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
28880 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
28881 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
28882 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
28883 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
28884 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
28885 (tcheck): Remove builtin argument.
28886 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
28887 not TARGET_64BIT.
28888 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
28889 tabortdc and tabortdci builtins when not in 64-bit mode.
28890 Modify code to handle the loss of the HTM define_expands.
28891 Emit code to copy the CR register to TARGET.
28892 (htm_init_builtins): Modify code to handle the loss of the HTM
28893 define_expands.
28894 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
28895 (RS6000_BTC_64BIT): Likewise.
28896 (RS6000_BTC_CR): New macro.
28897 * doc/extend.texi: Update documentation for htm builtins.
28898
28899 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28900
28901 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
28902 of manually swapping.
28903 (simplify_associative_operation): Likewise.
28904 (simplify_binary_operation): Likewise.
28905 (simplify_plus_minus): Likewise.
28906 (simplify_relational_operation): Likewise.
28907 (simplify_ternary_operation): Likewise.
28908
28909 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28910
28911 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
28912 (xs_hi_nonmemory_operand): Remove error.
28913 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
28914 general_operand rather than xs_hi_general_operand.
28915
28916 2015-04-27 Richard Biener <rguenther@suse.de>
28917
28918 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
28919 (record_equivalences_from_stmt): Valueize rhs.
28920 (record_equality): Canonicalize x and y order via
28921 tree_swap_operands_p. Do not swap operands for same loop depth.
28922
28923 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
28924
28925 PR target/65296
28926 PR target/65895
28927 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
28928 Add hint how to use own spec file.
28929
28930 2015-04-27 Jakub Jelinek <jakub@redhat.com>
28931
28932 PR tree-optimization/65875
28933 * tree-vrp.c (update_value_range): If in is_new case setting
28934 old_vr to VR_VARYING, also set new_vr to it. Remove
28935 old_vr->type == VR_VARYING test.
28936 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
28937 SSA_PROP_INTERESTING if update_value_range returned true,
28938 but new range is VR_VARYING.
28939
28940 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
28941
28942 * combine.c (sign_extend_short_imm): New.
28943 (set_nonzero_bits_and_sign_copies): Use above new function for sign
28944 extension of src short immediate.
28945 (reg_nonzero_bits_for_combine): Likewise for tem.
28946
28947 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28948
28949 * stor-layout.c (self_referential_component_ref_p): New predicate.
28950 (copy_self_referential_tree_r): Use it.
28951 (self_referential_size): Punt for simple operations directly involving
28952 self-referential component references.
28953 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
28954
28955 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
28956
28957 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
28958
28959 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
28960
28961 * vec.h (vec): Make splice arguments const. Update definitions
28962 accordingly.
28963
28964 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
28965
28966 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
28967 alternatives.
28968
28969 2015-04-26 Tom de Vries <tom@codesourcery.com>
28970
28971 PR tree-optimization/65826
28972 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
28973
28974 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
28975
28976 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
28977 (*madd3<mode>): Ditto.
28978 (*msub4<mode>): Ditto.
28979 (*msub3<mode>): Ditto.
28980 (*nmadd4<mode>): Ditto.
28981 (*nmadd3<mode>): Ditto.
28982 (*nmadd4<mode>_fastmath): Ditto.
28983 (*nmadd3<mode>_fastmath): Ditto.
28984 (*nmsub4<mode>): Ditto.
28985 (*nmsub3<mode>): Ditto.
28986 (*nmsub4<mode>_fastmath): Ditto.
28987 (*nmsub3<mode>_fastmath): Ditto.
28988
28989 2015-04-24 Jason Merrill <jason@redhat.com>
28990
28991 PR c++/50800
28992 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
28993 down when building TYPE_CANONICAL.
28994 (build_pointer_type_for_mode): Likewise.
28995
28996 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
28997
28998 * genrecog.c (validate_pattern): Check matching constraint refers
28999 to a lower numbered operand.
29000
29001 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29002
29003 PR target/65849
29004 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
29005 save to independent variables use the Save attribute. This will
29006 allow these options to be modified with the #pragma/attribute
29007 target support.
29008 (-mallow-movmisalign): Likewise.
29009 (-mallow-df-permute): Likewise.
29010 (-msched-groups): Likewise.
29011 (-malways-hint): Likewise.
29012 (-malign-branch-targets): Likewise.
29013 (-mvectorize-builtins): Likewise.
29014 (-msave-toc-indirect): Likewise.
29015
29016 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
29017 can be set via the #pragma/attribute target support.
29018 (rs6000_opt_vars): Likewise.
29019 (rs6000_inner_target_options): If VSX was set, also set
29020 -mno-avoid-indexed-addresses.
29021
29022 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29023
29024 * config/arm/iterators.md (shiftable_ops): Rename to...
29025 (SHIFTABLE_OPS): ... This. Update use in comments.
29026 (ior_xor): Rename to...
29027 (IOR_XOR): ... This.
29028 (vqh_ops): Rename to...
29029 (VQH_OPS): ... This.
29030 (vqhs_ops): Rename to...
29031 (VQHS_OPS): ... This.
29032 (rshifts): Rename to...
29033 (RSHIFTS): ... This.
29034 (returns): Rename to...
29035 (RETURNS): ... This.
29036 * config/arm/arm.md: Update uses of the above.
29037 * config/arm/neon.md: Likewise.
29038
29039 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29040
29041 * config.host (case ${host}): Add aarch64*-*-linux case.
29042 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
29043 fields to all the cores.
29044 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
29045 Add MCPU_MTUNE_NATIVE_SPECS.
29046 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
29047 field to all extensions.
29048 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
29049 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
29050 Adjust definition of AARCH64_OPT_EXTENSION.
29051 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
29052 (MCPU_MTUNE_NATIVE_SPECS): Define.
29053 * config/aarch64/driver-aarch64.c: New file.
29054 * config/aarch64/x-arch64: New file.
29055 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
29056 -mtune and -march.
29057
29058 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29059 Wei Mi <wmi@google.com>
29060
29061 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
29062 * config/i386/i386.c (extract_base_offset_in_addr): New function.
29063 (ix86_operands_ok_for_move_multiple): Ditto.
29064 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
29065 (movlpd/movhpd to movupd peephole2): Ditto.
29066
29067 2015-04-24 Marek Polacek <polacek@redhat.com>
29068
29069 PR c/61534
29070 * input.h (from_macro_expansion_at): Define.
29071
29072 PR c/63357
29073 * doc/invoke.texi: Update description of -Wlogical-op.
29074
29075 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
29076
29077 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
29078 ternary operator in fprintf and harmonize spacing.
29079
29080 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29081
29082 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
29083 Mark operand1 commutative.
29084
29085 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29086
29087 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
29088 input operands in memory.
29089 (*vec_concatv2si_sse4_1): Ditto.
29090 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
29091 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
29092 register_operand.
29093 (vec_extract_hi_v32hi): Ditto.
29094 (vec_extract_hi_v64hi): Ditto.
29095 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
29096
29097 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
29098 Steven Bosscher <steven@gcc.gnu.org>
29099
29100 PR rtl-optimization/34503
29101 * cprop.c (cprop_reg_p): New.
29102 (hash_scan_set): Use above function to check if register can be
29103 propagated.
29104 (find_avail_set): Return up to two sets, one whose source is a
29105 register and one whose source is a constant. Sets are returned in an
29106 array passed as parameter rather than as a return value.
29107 (cprop_insn): Use a do while loop rather than a goto. Try each of the
29108 sets returned by find_avail_set, starting with the one whose source is
29109 a constant. Use cprop_reg_p to check if register can be propagated.
29110 (do_local_cprop): Use cprop_reg_p to check if register can be
29111 propagated.
29112 (implicit_set_cond_p): Likewise.
29113
29114 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29115
29116 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
29117 (sem_function::equals): IGNORED_NODES parameter is now unused;
29118 update call of equals_private.
29119 (sem_function::equals_private): Do not call equals_wpa; skip
29120 gimple body matching if there is no body.
29121 (sem_function::init): Add logic to hash tthunk info.
29122 (sem_function::parse): Also parse thunks.
29123 * ipa-icf.h (equals_private): Update declaration.
29124
29125 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29126
29127 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
29128 asterisk from name so this can be generated directly.
29129 (*altivec_stvx_<mode>_internal): Likewise.
29130 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
29131 that this is never called during or after reload/lra.
29132 (rs6000_frame_related): Remove split_reg
29133 argument and logic that references it.
29134 (emit_frame_save): Remove last parameter from call to
29135 rs6000_frame_related.
29136 (rs6000_emit_prologue): Remove last parameter from eight calls to
29137 rs6000_frame_related. Force generation of stvx instruction for
29138 Altivec register saves. Remove split_reg handling, which is no
29139 longer needed.
29140 (rs6000_emit_epilogue): Force generation of lvx instruction for
29141 Altivec register restores.
29142
29143 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29144
29145 * config/rs6000/rs6000.opt (mcrypto): Change option description to
29146 match category changes in ISA 2.07B.
29147
29148 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29149
29150 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29151 iterators.
29152 (cmp_op, cmp_type): New code attributes.
29153 (NEON_VCMP, NEON_VACMP): New int iterators.
29154 (cmp_op_unsp): New int attribute.
29155 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29156 (neon_vceq<mode>): Delete.
29157 (neon_vc<cmp_op><mode>_insn): New pattern.
29158 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29159 (neon_vcgeu<mode>): Delete.
29160 (neon_vcle<mode>): Likewise.
29161 (neon_vclt<mode>: Likewise.
29162 (neon_vcage<mode>): Likewise.
29163 (neon_vcagt<mode>): Likewise.
29164 (neon_vca<cmp_op><mode>): New define_expand.
29165 (neon_vca<cmp_op><mode>_insn): New pattern.
29166 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29167
29168 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29169
29170 * tree.h (attribute_value_equal): Declare.
29171 * tree.c (attribute_value_equal): Export.
29172
29173 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29174
29175 * ipa-icf.c (sem_item::compare_attributes): New function.
29176 (sem_item::compare_referenced_symbol_properties): Compare variable
29177 attributes.
29178 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29179 (sem_function::param_used_p): New function.
29180 (sem_function::equals_wpa): Fix attribute comparsion; match
29181 parameter type codes; do not compare paremter flags when
29182 they are not used; compare edge flags; compare indirect calls.
29183 (sem_item::update_hash_by_addr_refs): Hash reference type.
29184 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29185 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29186 reference use type.
29187 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29188 * ipa-icf.h (compare_attributes, param_used_p): Declare.
29189
29190 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29191
29192 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29193 cleanup.
29194 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29195 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29196 (sem_item::compare_referenced_symbol_properties): New.
29197 (sem_item::hash_referenced_symbol_properties): New.
29198 (sem_item::compare_cgraph_references): Rename to ...
29199 (sem_item::compare_symbol_references): ... this one; use
29200 compare_referenced_symbol_properties.
29201 (sem_function::equals_wpa): Do not compare
29202 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29203 DECL_IS_OPERATOR_NEW; compare pointer sizes.
29204 (sem_item::update_hash_by_addr_refs): Call
29205 hash_referenced_symbol_properties.
29206 (sem_item::update_hash_by_local_refs): Cleanup.
29207 (sem_function::merge): Do not mix up symbol properties.
29208 (sem_variable::equals_wpa): Use compare_symbol_references.
29209 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29210 (sem_item::hash_referenced_symbol_properties): New.
29211 (sem_item::compare_symbol_references): New.
29212 (sem_item::compare_cgraph_references): Remove.
29213
29214 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
29215
29216 PR target/26702
29217 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29218 Emit size of local.
29219
29220 2015-04-23 Nick Clifton <nickc@redhat.com>
29221
29222 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29223 ATTRIBUTE_UNUSED to x parameter.
29224 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29225
29226 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29227
29228 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29229 TARGET_CRYPTO to TARGET_P8_VECTOR>
29230 (crypto_vpermxor_<mode>): Likewise.
29231 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29232 (BU_CRYPTO_3A): Likewise.
29233 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29234 (BU_CRYPTO_OVERLOAD_3A): New #define.
29235 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29236 (VPMSUMH): Likewise.
29237 (VPMSUMW): Likewise.
29238 (VPMSUMD): Likewise.
29239 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29240 (VPERMXOR_V4SI): Likewise.
29241 (VPERMXOR_V8HI): Likewise.
29242 (VPERMXOR_V16QI): Likewise.
29243 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29244 BU_CRYPTO_OVERLOAD_2A.
29245 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29246 BU_CRYPTO_OVERLOAD_3A.
29247 * config/rs6000/rs6000.opt (mcrypto): Change description of
29248 option.
29249
29250 2015-04-23 Richard Biener <rguenther@suse.de>
29251
29252 * passes.def: Remove copy propagation passes run directly after CCP.
29253 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29254 SSA names.
29255 (ccp_visit_phi_node): Rework to handle first executable edge
29256 specially.
29257
29258 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
29259
29260 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29261 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29262 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29263 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29264 (thumb_legimitimize_reload_address): Remove.
29265 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29266 Remove.
29267 (thumb_legimitimize_reload_address): Remove.
29268
29269 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29270
29271 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29272
29273 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29274
29275 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29276 MAX_LDM_STM_OPS.
29277 (store_multiple): Likewise.
29278
29279 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29280
29281 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29282 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29283 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29284 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29285 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29286 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29287 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29288 Specify issue_rate value.
29289 (arm_issue_rate): Look up issue rate from tuning structs. Remove
29290 large switch statement.
29291 (arm_marvell_pj4_tune): New struct.
29292 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29293 struct.
29294
29295 2015-04-23 Richard Biener <rguenther@suse.de>
29296
29297 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29298 (vect_find_last_store_in_slp_instance): Rename to ...
29299 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29300 (vect_analyze_slp_cost_1): Use vector_load for constant defs
29301 and vec_construct for external defs when estimating prologue cost.
29302 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29303 Compute costs here only when vectorizing loops.
29304 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29305 have been determined.
29306 (vect_schedule_slp_instance): Simplify vectorized code placement
29307 and prepare for in-BB external defs.
29308 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29309 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29310 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29311 guard.
29312 (vect_model_load_cost): Likewise.
29313 (vectorizable_store): Instead add it here.
29314 (vectorizable_load): Likewise.
29315 (vect_is_simple_use): Dump def type textually.
29316
29317 2015-04-23 Richard Biener <rguenther@suse.de>
29318
29319 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29320 * cfgloop.c (verify_loop_structure): Verify the root loop node.
29321 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29322 instead of get_eh_region_from_lp_number.
29323 * loop-init.c (fix_loop_structure): If we removed a loop, reset
29324 the SCEV cache.
29325
29326 2015-04-23 Anton Blanchard <anton@samba.org>
29327
29328 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29329 need for -mprofile-kernel to save LR to stack.
29330
29331 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29332
29333 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29334 adjustments.
29335 (insn_is_swappable_p): Return 1 for a convert from double to
29336 single precision when all of its uses are splats of BE element
29337 zero.
29338
29339 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
29340
29341 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29342
29343 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29344
29345 PR target/65456
29346 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
29347 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29348 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29349 option.
29350 (rs6000_builtin_mask_for_load): Return 0 for targets with
29351 efficient unaligned VSX accesses so that the vectorizer will use
29352 direct unaligned loads.
29353 (rs6000_builtin_support_vector_misalignment): Always return true
29354 for targets with efficient unaligned VSX accesses.
29355 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29356 stores on targets with efficient unaligned VSX accesses is almost
29357 always the same as the cost of an aligned load or store, so model
29358 it that way.
29359 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29360 unaligned vectors if we have efficient unaligned VSX accesses.
29361 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29362 undocumented option.
29363
29364 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29365
29366 Revert:
29367 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29368
29369 * config.gcc (LIBC_MUSL): New tm_defines macro.
29370 * config/linux.h (OPTION_MUSL): Define.
29371 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29372 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29373 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29374
29375 * config/linux.opt (mmusl): New option.
29376 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29377 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29378
29379 * configure: Regenerate.
29380
29381 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29382
29383 * config.gcc (LIBC_MUSL): New tm_defines macro.
29384 * config/linux.h (OPTION_MUSL): Define.
29385 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29386 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29387 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29388
29389 * config/linux.opt (mmusl): New option.
29390 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29391 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29392
29393 * configure: Regenerate.
29394
29395 2015-04-22 Yury Gribov <y.gribov@samsung.com>
29396
29397 * doc/invoke.texi (-fsanitize-sections): Update description.
29398 * asan.c (set_sanitized_sections): Parse incoming arg.
29399 (section_sanitized_p): Support wildcards.
29400
29401 2015-04-22 Tom de Vries <tom@codesourcery.com>
29402
29403 PR tree-optimization/65823
29404 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29405 equality between ap_copy and ap.
29406
29407 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29408
29409 PR target/47098
29410 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29411
29412 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29413
29414 PR target/47122
29415 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29416
29417 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29418
29419 PR target/55144
29420 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29421 remove already contained t-files.
29422
29423 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29424
29425 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29426 Remove unneeded forward declarations.
29427 (suitable_for_tail_call_opt_p): Commentary typo fix.
29428
29429 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29430
29431 * varasm.c (emit_bss): Remove redundant guard.
29432
29433 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29434
29435 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29436
29437 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29438
29439 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29440
29441 2015-04-22 Hale Wang <hale.wang@arm.com>
29442 Terry Guo <terry.guo@arm.com>
29443
29444 PR rtl-optimization/64818
29445 * combine.c (can_combine_p): Don't combine user-specified
29446 register if it is in an asm input.
29447
29448 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
29449
29450 PR ipa/65076
29451 * passes.def (early_optimizations): Add pass_dse.
29452
29453 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29454
29455 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29456 * reorg.c (redundant_insn): Remove ifdef
29457 INSN_REFERENCES_ARE_DELAYED.
29458 * resource.c (mark_referenced_resources): Likewise.
29459
29460 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29461
29462 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29463 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29464 * resource.c (mark_set_resources): Likewise.
29465
29466 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29467
29468 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29469 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29470 (flow_find_head_matching_sequence): Likewise.
29471 (try_head_merge_bb): Likewise.
29472 * combine.c (can_combine_p): Likewise.
29473 (try_combine): Likewise.
29474 (distribute_notes): Likewise.
29475 * df-problems.c (can_move_insns_across): Likewise.
29476 * final.c (final): Likewise.
29477 * gcse.c (insert_insn_end_basic_block): Likewise.
29478 * ira.c (find_moveable_pseudos): Likewise.
29479 * reorg.c (try_merge_delay_insns): Likewise.
29480 (fill_simple_delay_slots): Likewise.
29481 (fill_slots_from_thread): Likewise.
29482 * sched-deps.c (sched_analyze_2): Likewise.
29483
29484 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29485
29486 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29487 PIC_OFFSET_TABLE_REGNUM.
29488
29489 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29490
29491 * alias.c (init_alias_target): Remove ifdef
29492 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29493 * df-scan.c (df_insn_refs_collect): Likewise.
29494 (df_get_regular_block_artificial_uses): Likewise.
29495 (df_get_eh_block_artificial_uses): Likewise.
29496 (df_get_entry_block_def_set): Likewise.
29497 (df_get_exit_block_use_set): Likewise.
29498 * emit-rtl.c (gen_rtx_REG): Likewise.
29499 * ira.c (ira_setup_eliminable_regset): Likewise.
29500 * reginfo.c (init_reg_sets_1): Likewise.
29501 * regrename.c (rename_chains): Likewise.
29502 * reload1.c (reload): Likewise.
29503 (eliminate_regs_in_insn): Likewise.
29504 * resource.c (mark_referenced_resources): Likewise.
29505 (init_resource_info): Likewise.
29506
29507 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29508
29509 * defaults.h (MASK_RETURN_ADDR): New definition.
29510 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29511 MASK_RETURN_ADDR.
29512
29513 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29514
29515 * defaults.h (RETURN_ADDR_OFFSET): New definition.
29516 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29517 RETURN_ADDR_OFFSET.
29518 (expand_builtin_frob_return_addr): Likewise.
29519
29520 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29521
29522 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29523 (try_redirect_by_replacing_jump): Likewise.
29524 (rtl_tidy_fallthru_edge): Likewise.
29525 * combine.c (insn_a_feeds_b): Likewise.
29526 (find_split_point): Likewise.
29527 (simplify_set): Likewise.
29528 * cprop.c (cprop_jump): Likewise.
29529 * cse.c (cse_extended_basic_block): Likewise.
29530 * df-problems.c (can_move_insns_across): Likewise.
29531 * function.c (emit_use_return_register_into_block): Likewise.
29532 * haifa-sched.c (sched_init): Likewise.
29533 * ira.c (find_moveable_pseudos): Likewise.
29534 * loop-invariant.c (find_invariant_insn): Likewise.
29535 * lra-constraints.c (curr_insn_transform): Likewise.
29536 * postreload.c (reload_combine_recognize_const_pattern):
29537 * Likewise.
29538 * reload.c (find_reloads): Likewise.
29539 * reorg.c (delete_scheduled_jump): Likewise.
29540 (steal_delay_list_from_target): Likewise.
29541 (steal_delay_list_from_fallthrough): Likewise.
29542 (redundant_insn): Likewise.
29543 (fill_simple_delay_slots): Likewise.
29544 (fill_slots_from_thread): Likewise.
29545 (delete_computation): Likewise.
29546 * sched-rgn.c (add_branch_dependences): Likewise.
29547
29548 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29549
29550 * genconfig.c (main): Always define HAVE_cc0.
29551 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29552 HAVE_cc0.
29553 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29554 (flow_find_head_matching_sequence): Likewise.
29555 (try_head_merge_bb): Likewise.
29556 * cfgrtl.c (rtl_merge_blocks): Likewise.
29557 (try_redirect_by_replacing_jump): Likewise.
29558 (rtl_tidy_fallthru_edge): Likewise.
29559 * combine.c (do_SUBST_MODE): Likewise.
29560 (insn_a_feeds_b): Likewise.
29561 (combine_instructions): Likewise.
29562 (can_combine_p): Likewise.
29563 (try_combine): Likewise.
29564 (find_split_point): Likewise.
29565 (subst): Likewise.
29566 (simplify_set): Likewise.
29567 (distribute_notes): Likewise.
29568 * cprop.c (cprop_jump): Likewise.
29569 * cse.c (cse_extended_basic_block): Likewise.
29570 * df-problems.c (can_move_insns_across): Likewise.
29571 * final.c (final): Likewise.
29572 (final_scan_insn): Likewise.
29573 * function.c (emit_use_return_register_into_block): Likewise.
29574 * gcse.c (insert_insn_end_basic_block): Likewise.
29575 * haifa-sched.c (sched_init): Likewise.
29576 * ira.c (find_moveable_pseudos): Likewise.
29577 * loop-invariant.c (find_invariant_insn): Likewise.
29578 * lra-constraints.c (curr_insn_transform): Likewise.
29579 * optabs.c (prepare_cmp_insn): Likewise.
29580 * postreload.c (reload_combine_recognize_const_pattern):
29581 * Likewise.
29582 * reload.c (find_reloads): Likewise.
29583 (find_reloads_address_1): Likewise.
29584 * reorg.c (delete_scheduled_jump): Likewise.
29585 (steal_delay_list_from_target): Likewise.
29586 (steal_delay_list_from_fallthrough): Likewise.
29587 (try_merge_delay_insns): Likewise.
29588 (redundant_insn): Likewise.
29589 (fill_simple_delay_slots): Likewise.
29590 (fill_slots_from_thread): Likewise.
29591 (delete_computation): Likewise.
29592 (relax_delay_slots): Likewise.
29593 * sched-deps.c (sched_analyze_2): Likewise.
29594 * sched-rgn.c (add_branch_dependences): Likewise.
29595
29596 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29597
29598 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29599 that is trivially ded on non cc0 targets.
29600 (simplify_set): Likewise.
29601 (mark_used_regs_combine): Likewise.
29602 * cse.c (new_basic_block): Likewise.
29603 (fold_rtx): Likewise.
29604 (cse_insn): Likewise.
29605 (cse_extended_basic_block): Likewise.
29606 (set_live_p): Likewise.
29607 * rtlanal.c (canonicalize_condition): Likewise.
29608 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29609
29610 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29611
29612 * conditions.h: Define macros even if HAVE_cc0 is undefined.
29613 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29614 * final.c: Likewise.
29615 * jump.c: Likewise.
29616 * recog.c: Likewise.
29617 * recog.h: Declare functions even when HAVE_cc0 is undefined.
29618 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29619
29620 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29621
29622 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29623 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29624 * builtins.c (expand_builtin): Remove check if
29625 EH_RETURN_DATA_REGNO is defined.
29626 * df-scan.c (df_bb_refs_collect): Likewise.
29627 (df_get_exit_block_use_set): Likewise.
29628 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29629 * ira-lives.c (process_bb_node_lives): Likewise.
29630 * lra-lives.c (process_bb_lives): Likewise.
29631
29632 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29633
29634 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29635 FIRST_PSEUDO_REG): New.
29636 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29637 (ARG_POINTER_REGNUM): Define to ARGP_REG.
29638 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29639 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29640 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29641 (FIRST_INT_REG): New.
29642 (LAST_INT_REG): New.
29643 (FIRST_*_REG): Define using *_REG.
29644 (LAST_*_REG): Ditto.
29645 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29646 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29647 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29648
29649 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29650
29651 * expmed.c: (synth_mult): Only assume overlapping
29652 shift with previous steps in alg_sub_t_m2 case.
29653
29654 2015-04-21 Richard Biener <rguenther@suse.de>
29655
29656 PR tree-optimization/65650
29657 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29658 transitions involving copies.
29659 (set_lattice_value): Adjust for copy lattice state.
29660 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29661 if that doesn't dominate the merge point.
29662 (bit_value_unop): Adjust what we treat as varying mask.
29663 (bit_value_binop): Likewise.
29664 (bit_value_assume_aligned): Likewise.
29665 (evaluate_stmt): When we simplified to a SSA name record a copy
29666 instead of dropping to varying.
29667 (visit_assignment): Simplify.
29668
29669 * gimple-match.h (gimple_simplify): Add another callback.
29670 * gimple-fold.c (fold_stmt_1): Adjust caller.
29671 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29672 for the 2nd callback.
29673 * gimple-match-head.c (gimple_simplify): Add a callback that is
29674 used to valueize the stmt operands and use it that way.
29675
29676 2015-04-21 Richard Biener <rguenther@suse.de>
29677
29678 PR tree-optimization/65788
29679 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29680
29681 2015-04-21 Richard Biener <rguenther@suse.de>
29682
29683 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29684 vec_construct cost by vec_stmt_cost.
29685
29686 2015-04-21 Richard Biener <rguenther@suse.de>
29687
29688 * cfghooks.h (create_basic_block): Replace with two overloads
29689 for RTL and GIMPLE.
29690 (split_block): Likewise.
29691 * cfghooks.c (split_block): Rename to ...
29692 (split_block_1): ... this.
29693 (split_block): Add two type-safe overloads for RTL and GIMPLE.
29694 (split_block_after_labels): Call split_block_1.
29695 (create_basic_block): Rename to ...
29696 (create_basic_block_1): ... this.
29697 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29698 (create_empty_bb): Call create_basic_block_1.
29699 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29700 split_block_after_labels.
29701 * omp-low.c (expand_parallel_call): Likewise.
29702 (expand_omp_target): Likewise.
29703 (simd_clone_adjust): Likewise.
29704 * tree-chkp.c (chkp_get_entry_block): Likewise.
29705 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29706 create_basic_block overload.
29707 (cgraph_node::expand_thunk): Likewise.
29708 * tree-cfg.c (make_blocks): Likewise.
29709 (handle_abnormal_edges): Likewise.
29710 * tree-inline.c (copy_bb): Likewise.
29711
29712 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29713
29714 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29715 New pattern.
29716 (*xor_one_cmplsidi3_ze): Likewise.
29717
29718 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
29719
29720 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29721 use df_remove_problem rather than manually removing problems, leaving
29722 holes in df->problems_in_order[].
29723
29724 2015-04-21 Tom de Vries <tom@codesourcery.com>
29725
29726 PR tree-optimization/65802
29727 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
29728
29729 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29730
29731 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
29732 Increase to 128.
29733 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
29734 at '.'. Assert that there's enough space for everything.
29735
29736 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29737
29738 PR tree-optimization/64950
29739 Revert:
29740 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
29741
29742 PR target/41089
29743 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
29744 as volatile.
29745
29746 2015-04-20 Shiva Chen <shiva0217@gmail.com>
29747
29748 PR rtl-optimization/64916
29749 * cfgcleanup.c (values_equal_p): New function.
29750 (can_replace_by): Use it.
29751
29752 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
29753
29754 PR c++/65801
29755 * doc/invoke.texi ([-Wnarrowing]): Update.
29756
29757 2015-04-20 Jeff Law <law@redhat.com>
29758
29759 PR tree-optimization/65658
29760 * tree-ssa-threadupdate.c (redirection_block_p): Remove
29761 redundant test for GIMPLE_ASSIGN in last change.
29762
29763 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
29764
29765 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
29766 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
29767 (legitimize_tls_address): Ditto.
29768 (ix86_expand_move): Ditto.
29769 (ix86_expand_binary_operator): Remove reload_in_progress checks.
29770 (ix86_expand_unary_operator): Ditto.
29771 * config/i386/predicates.md (index_register_operand): Ditto.
29772
29773 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
29774
29775 * reorg.c (try_merge_delay_insns): Improve correctness checking
29776 for targets with multiple delay slots.
29777
29778 2015-04-20 Jeff Law <law@redhat.com>
29779
29780 PR tree-optimization/65658
29781 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
29782 statements too.
29783
29784 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29785
29786 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
29787 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
29788 Delete.
29789
29790 2015-04-20 Jakub Jelinek <jakub@redhat.com>
29791
29792 PR debug/65807
29793 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
29794
29795 2015-04-20 Richard Biener <rguenther@suse.de>
29796
29797 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
29798 * gimple-fold.c (gimple_build_valueize): New function.
29799 (gimple_build): Always use gimple_build_valueize as valueize hook.
29800
29801 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
29802
29803 PR target/64134
29804 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
29805 and overwrite variable parts if <= 1/2 the elements are variable.
29806
29807 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
29808
29809 PR rtl-optimization/65805
29810 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
29811 Don't use difference of offset and previous offset if
29812 update_sp_offset is non-zero.
29813 (eliminate_regs_in_insn): Ditto.
29814 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
29815 lra_eliminate_regs_1 call.
29816 * lra-constraints.c (get_equiv_with_elimination): Ditto.
29817
29818 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
29819
29820 * hash-table.h: Remove version of hash_table that stored value_type *.
29821 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
29822 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
29823 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
29824 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
29825 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
29826 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
29827 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
29828 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
29829 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
29830 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
29831 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
29832 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
29833 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
29834 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
29835 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
29836 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
29837
29838 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29839 Jakub Jelinek <jakub@redhat.com>
29840
29841 PR target/65787
29842 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
29843 subsequent SH_NONE operand does not overwrite an existing *special
29844 value.
29845 (adjust_extract): Handle case where a vec_extract operation is
29846 wrapped in a PARALLEL.
29847
29848 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29849
29850 PR target/65780
29851 * config/i386/i386.c (ix86_binds_local_p): Define only if
29852 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
29853
29854 2015-04-17 Jeff Law <law@redhat.com>
29855
29856 PR tree-optimization/47679
29857 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
29858 * tree-ssa-scopedtables.c: New file.
29859 * tree-ssa-scopedtables.h: New file.
29860 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
29861 (const_and_copies): Change name/type.
29862 (record_const_or_copy): Move into tree-ssa-scopedtables.c
29863 (record_const_or_copy_1): Similarly.
29864 (restore_vars_to_original_value): Similarly.
29865 (pass_dominator::execute): Create and destroy const_and_copies table.
29866 (thread_across_edge): Update passing of const_and_copies.
29867 (record_temporary_equivalence): Use method calls rather than
29868 manipulating const_and_copies directly.
29869 (record_equality, cprop_into_successor_phis): Similarly.
29870 (dom_opt_dom_walker::before_dom_children): Similarly.
29871 (dom_opt_dom_walker::after_dom_children): Similarly.
29872 (eliminate_redundant_computations): Similarly.
29873 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
29874 (record_temporary_equivalence): Likewise.
29875 (invalidate_equivalences): Likewise.
29876 (record_temporary_equivalences_from_phis): Update due to type
29877 change of const_and_copies. Use method calls rather than
29878 manipulating the stack directly.
29879 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
29880 (thread_through_normal_block, thread_across_edge): Likewise.
29881 (thread_across_edge): Likewise.
29882 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
29883 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
29884 of equiv_stack.
29885 (identify_jump_threads): Update due to type change of equiv_stack.
29886 (finalize_jump_threads): Delete the equiv_stack when complete.
29887
29888 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
29889
29890 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29891 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
29892 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
29893
29894 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
29895
29896 PR target/65535
29897 * config.gcc: Exit with a comment when we do not have a major version
29898 number for the FreeBSD target.
29899
29900 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29901
29902 PR target/65689
29903 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
29904 maybe_allows_mem bitfields.
29905 (maybe_allows_none_start, maybe_allows_none_end,
29906 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
29907 maybe_allows_mem_end): New variables.
29908 (compute_maybe_allows): New function.
29909 (add_constraint): Use it to initialize maybe_allows_reg and
29910 maybe_allows_mem fields.
29911 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
29912 is_address constraints such that those that allow neither mem nor
29913 reg come first, then those that only allow reg but not mem, then
29914 those that only allow mem but not reg, then the rest.
29915 (write_allows_reg_mem_function): New function.
29916 (write_tm_preds_h): Call it.
29917 * stmt.c (parse_output_constraint, parse_input_constraint): Use
29918 the generated insn_extra_constraint_allows_reg_mem function
29919 instead of always setting *allows_reg = true; *allows_mem = true;
29920 for unknown extra constraints.
29921
29922 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
29923
29924 PR target/65780
29925 * output.h (default_binds_local_p_3): New.
29926 * varasm.c (default_binds_local_p_3): Make it public. Take an
29927 argument to indicate if common symbol may be local. If common
29928 symbol may be local, treat non-external variable as defined
29929 locally.
29930 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
29931 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
29932 * config/i386/i386.c (ix86_binds_local_p): New.
29933 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
29934 ix86_binds_local_p.
29935
29936 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29937
29938 PR debug/65771
29939 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
29940 trying mem_loc_descriptor on XEXP (rtl, 0).
29941
29942 2015-04-17 Martin Liska <mliska@suse.cz>
29943
29944 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
29945 Release symbol_compare_collection.
29946 * ipa-reference.c: Add TODO that a vector should be released.
29947
29948 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
29949
29950 PR target/65296
29951 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
29952 to new AVR-LibC file layout (bug #44574).
29953 (*avrlibc_devicelib): Same.
29954 * config/avr/avr-mcus.def: Adjust comments.
29955 * config/avr/avr.opt (nodevicelib): Adjust help.
29956
29957 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
29958
29959 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
29960
29961 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
29962
29963 PR c++/64527
29964 * gimplify.c (gimplify_init_constructor): Always emit a
29965 side-effecting constructor.
29966
29967 2015-04-17 Tom de Vries <tom@codesourcery.com>
29968
29969 PR tree-optimization/64950
29970 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
29971 in cfun->curr_properties.
29972 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
29973 if we generate an IFN_VA_ARG.
29974 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
29975 function if PROP_gimple_lva is not set in src function.
29976
29977 2015-04-17 Tom de Vries <tom@codesourcery.com>
29978 Michael Matz <matz@suse.de>
29979
29980 PR tree-optimization/64950
29981 * gimple-iterator.c (update_modified_stmts): Remove static.
29982 * gimple-iterator.h (update_modified_stmts): Declare.
29983 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
29984 (gimplify_va_arg_internal): New function.
29985 (gimplify_va_arg_expr): Use IFN_VA_ARG.
29986 * gimplify.h (gimplify_va_arg_internal): Declare.
29987 * internal-fn.c (expand_VA_ARG): New unreachable function.
29988 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
29989 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
29990 (expand_ifn_va_arg): New function.
29991 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
29992 (pass_stdarg::execute): Call expand_ifn_va_arg.
29993 (pass_data_lower_vaarg): New pass_data.
29994 (pass_lower_vaarg): New gimple_opt_pass.
29995 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
29996 (make_pass_lower_vaarg): New function.
29997 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
29998 properties_required field.
29999 * passes.def (all_passes): Add pass_lower_vaarg.
30000 * tree-pass.h (PROP_gimple_lva): Add define.
30001 (make_pass_lower_vaarg): Declare.
30002
30003 2015-04-17 Tom de Vries <tom@codesourcery.com>
30004
30005 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
30006 * calls.c (call_expr_flags): Same.
30007
30008 2015-04-17 Tom de Vries <tom@codesourcery.com>
30009
30010 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
30011 (pass_stdarg::execute): ... here.
30012
30013 2015-04-17 Tom de Vries <tom@codesourcery.com>
30014 Michael Matz <matz@suse.de>
30015
30016 * tree-cfg.c (make_blocks_1): Factor out of ...
30017 (make_blocks): ... here.
30018 (make_edges_bb): Factor out of ...
30019 (make_edges): ... here.
30020 (gimple_find_sub_bbs): New function.
30021 * tree-cfg.h (gimple_find_sub_bbs): Declare.
30022
30023 2015-04-17 Tom de Vries <tom@codesourcery.com>
30024
30025 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
30026
30027 2015-04-17 Yury Gribov <y.gribov@samsung.com>
30028
30029 * asan.c (set_sanitized_sections): New function.
30030 (section_sanitized_p): Ditto.
30031 (asan_protect_global): Optionally sanitize user-defined
30032 sections.
30033 * asan.h (set_sanitized_sections): Declare new function.
30034 * common.opt (fsanitize-sections): New option.
30035 * doc/invoke.texi (-fsanitize-sections): Document new option.
30036 * opts-global.c (handle_common_deferred_options): Handle new
30037 option.
30038
30039 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30040
30041 PR debug/65771
30042 * dwarf2out.c (loc_list_from_tree): Return NULL
30043 for DEBUG_EXPR_DECL.
30044
30045 2015-04-17 Christian Bruel <christian.bruel@st.com>
30046
30047 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
30048 same attributes.
30049
30050 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30051
30052 * ira-color.c (setup_left_conflict_sizes_p): Do not process
30053 node itself when computing left conflict subnode size.
30054
30055 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
30056
30057 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
30058 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
30059 *fop_<mode>_1_sse using enabled attribute. Use
30060 register_mixssei387nonimm_operand operand 1 predicate. Change
30061 alternative 3 constraints from "x" to "v".
30062
30063 2015-04-16 Richard Biener <rguenther@suse.de>
30064
30065 PR tree-optimization/65774
30066 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
30067 bit-value tracking on.
30068
30069 2015-04-16 Richard Biener <rguenther@suse.de>
30070
30071 PR tree-optimization/64277
30072 * tree-vrp.c (check_array_ref): Fix anti-range handling,
30073 simplify upper bound handling.
30074 (search_for_addr_array): Simplify.
30075 (check_array_bounds): Handle ADDR_EXPRs here.
30076 (check_all_array_refs): Simplify.
30077
30078 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
30079
30080 * config/i386/i386.c (print_reg): Rewrite function.
30081
30082 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30083
30084 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
30085 Invert the condition.
30086
30087 2015-04-16 Renlin Li <renlin.li@arm.com>
30088
30089 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
30090 simplifications for UNSIGNED_FLOAT.
30091
30092 2015-04-16 Nick Clifton <nickc@redhat.com>
30093
30094 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
30095 MUL_UNINIT.
30096 (enum rl78_cpu_type): New.
30097 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
30098 (umulhi3_shift_virt): Remove m constraint from operand 1.
30099 (umulqihi3_virt): Likewise.
30100 * config/rl78/rl78.c (rl78_option_override): Add code to process
30101 -mcpu and -mmul options.
30102 (rl78_alloc_physical_registers): Add code to handle divhi and
30103 divsi valloc attributes.
30104 (set_origin): Likewise.
30105 * config/rl78/rl78.h (RL78_MUL_G14): Define.
30106 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
30107 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
30108 __RL78_Gxx__.
30109 (ASM_SPEC): Pass -mcpu on to assembler.
30110 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
30111 (mulqi3_rl78): Likewise.
30112 (mulhi3_g13): Likewise.
30113 (mulhi3): Generate the G13 or G14 versions of the insn directly.
30114 (mulsi3): Likewise.
30115 (mulhi3_g14): Add clobbers of AX and BC.
30116 (mulsi3_g14): Likewise.
30117 (mulsi3_g13): Likewise.
30118 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
30119 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
30120 * config/rl78/rl78.opt (mmul): Initialise value to
30121 RL78_MUL_UNINIT.
30122 (mcpu): New option.
30123 (m13, m14, mrl78): New option aliases.
30124 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
30125 (MULTILIB_DIRNAMES): Add g13 and g14.
30126 * doc/invoke.texi: Document -mcpu and -mmul options.
30127
30128 2015-04-16 Richard Biener <rguenther@suse.de>
30129
30130 * tree-ssa-ccp.c (likely_value): See if we have operands that
30131 are marked as never simulate again and return CONSTANT in this
30132 case.
30133 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
30134 not have any operands that will be simulated again as
30135 not being simulated again.
30136
30137 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
30138
30139 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30140 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30141 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30142 attribute.
30143 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30144 enabled attribute.
30145 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30146 *float<SWI48:mode><MODEF:mode>2_sse.
30147 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30148 enabled attribute.
30149 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30150 enabled attribute.
30151
30152 2015-04-15 Tom de Vries <tom@codesourcery.com>
30153
30154 PR other/65487
30155 * function.c (push_dummy_function): New function.
30156 (init_dummy_function_start): Use push_dummy_function.
30157 (pop_dummy_function): New function. Factored out of ...
30158 (expand_dummy_function_end): ... here.
30159 * function.h (push_dummy_function, pop_dummy_function): Declare.
30160 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30161 pop_dummy_function.
30162 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30163
30164 2015-04-15 Jeff Law <law@redhat.com>
30165
30166 PR tree-optimization/47679
30167 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30168 need for forward declaration in upcoming changes.
30169 (record_conditions, record_edge_info): Likewise.
30170
30171 PR rtl-optimization/42522
30172 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30173 SIGN_EXTRACT as a whole object rather than simplifying
30174 its operand.
30175
30176 2015-04-15 Jakub Jelinek <jakub@redhat.com>
30177
30178 PR ipa/65765
30179 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30180 and GIMPLE_PREDICT use break instead of return true. For
30181 GIMPLE_EH_DISPATCH, compare dispatch region.
30182
30183 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
30184
30185 * doc/extend.texi (__sync Builtins): Simplify some text. Update
30186 details about the implementation. Make clear preference for
30187 __atomic builtins. Reduce possibility of future change.
30188
30189 2015-04-15 Nick Clifton <nickc@redhat.com>
30190
30191 * config/rx/rx.opt (mallow-string-insns): New option.
30192 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30193 builtin if string instructions are denied.
30194 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30195 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30196 appropriate.
30197 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30198 * config/rx/rx.md (movstr): Enable pattern only if string
30199 instructions are allowed.
30200 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30201 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30202 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30203 (MULTILIB_DIRNAMES): Add no-strings.
30204 * doc/invoke.texi: Document -mno-allow-string-insns.
30205
30206 2015-04-15 Alan Modra <amodra@gmail.com>
30207
30208 PR target/65408
30209 PR target/58744
30210 PR middle-end/36043
30211 * calls.c (load_register_parameters): Don't load past end of
30212 mem unless suitably aligned.
30213
30214 2015-04-15 Nick Clifton <nickc@redhat.com>
30215
30216 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30217 decrement instruction as being frame related.
30218 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30219 based addresses.
30220 If zero extending a function address enclose the operation in
30221 %code(...).
30222 (rl78_preferred_reload_class): New function.
30223 (TARGET_PREFERRED_RELOAD_CLASS): Define.
30224 * config/rl78/rl78.md: Remove useless constraints in expanders.
30225 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30226 (mulhi3_rl78): Likewise.
30227 (mulhi3_g13): Likewise.
30228 (mulsi3_rl78): Likewise.
30229 (es_addr): Move to before the multiply patterns.
30230
30231 2015-04-15 Alan Modra <amodra@gmail.com>
30232
30233 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30234 and sequence_stack. Add seq.
30235 (seq_stack): Delete.
30236 * function.c (prepare_function_start): Don't access x_last_insn.
30237 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30238 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30239 * emit_rtl.c (start_sequence, push_topmost_sequence,
30240 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30241 sequence accessors.
30242 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30243 remove_insn): Likewise. Simplify.
30244 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30245 and pop_topmost_sequence.
30246 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
30247 debug insns.
30248 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30249
30250 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
30251
30252 PR target/65729
30253 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30254 the assertiion.
30255
30256 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30257
30258 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30259 (LEGACY_INT_REGNO_P): Ditto.
30260 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30261 (ANY_MASK_REG_P): Remove.
30262 (BND_REG_P): Rename from ANY_BND_REG_P.
30263 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30264 legacy integer registers. Do not handle MMX_REG_P in a special way.
30265 Merge 64byte and 32byte SSE handling.
30266
30267 2015-04-14 Nick Clifton <nickc@redhat.com>
30268
30269 * expr.c (expand_assignment): Force an address offset computation
30270 into a register before changing its mode.
30271 (expand_expr_real_1): Likewise.
30272
30273 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
30274
30275 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30276 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30277 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30278 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30279 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30280 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30281 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30282 and __aarch64_vget_lane_any.
30283
30284 2015-04-14 Jakub Jelinek <jakub@redhat.com>
30285
30286 PR rtl-optimization/65761
30287 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30288 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30289
30290 2015-04-14 Richard Biener <rguenther@suse.de>
30291
30292 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30293 (graphite_can_represent_scev): Use POINTER_TYPE_P.
30294
30295 2015-04-14 Richard Biener <rguenther@suse.de>
30296
30297 PR tree-optimization/65758
30298 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30299 against -1.
30300 (ccp_lattice_meet): Likewise.
30301 (bit_value_unop): Likewise.
30302 (bit_value_binop): Likewise.
30303 (bit_value_assume_aligned): Likewise.
30304
30305 2015-04-14 Christian Bruel <christian.bruel@st.com>
30306
30307 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30308 function.
30309
30310 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
30311
30312 PR tree-optimization/63387
30313 * match.pd ((x unord x) | (y unord y) -> (x unord y),
30314 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30315
30316 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30317
30318 * config/i386/predicates.md (any_QIreg_operand): Rename from
30319 q_regs_operand. Do not process subregs.
30320 (QIreg_operand): Use QI_REGNO_P predicate.
30321 (ext_QIreg_operand): Ditto.
30322 (ext_register_operand): Ditto.
30323 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30324 (AND splitters): Ditto.
30325 (AND with -65536 splitter): Add SWI48 mode for operand 0.
30326 (AND with -256 splitter): Use any_QIreg_operand predicate and
30327 SWI248 mode for operand 0.
30328 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30329 mode for operand 0.
30330 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30331
30332 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
30333
30334 * doc/plugins.texi: Rewrite first introductory paragraph.
30335
30336 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30337
30338 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30339 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30340
30341 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30342
30343 * ipa-profie.c (ipa_profile): Check number of parameters
30344 and possible polymorphic call targets before
30345 devirtualizing.
30346
30347 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
30348
30349 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30350 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30351
30352 2015-04-13 Richard Biener <rguenther@suse.de>
30353
30354 PR tree-optimization/65204
30355 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30356 takens for bit-CCP.
30357
30358 2015-04-13 Richard Biener <rguenther@suse.de>
30359
30360 PR target/65660
30361 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30362 and cond_not_taken_branch_cost to 4 and 2.
30363 (bdver2_cost): Likewise.
30364 (bdver3_cost): Likewise.
30365 (bdver4_cost): Likewise.
30366
30367 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30368
30369 * hash-table.h (hash_table constructor): Add mem stats.
30370 (alloc_entries): Likewise.
30371
30372 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30373
30374 * ipa-cp.c (ipcp_driver): Relase prev_edge.
30375 * passes.c (execute_one_pass): Only add transform if pass has one.
30376
30377 2015-04-12 Joseph Myers <joseph@codesourcery.com>
30378
30379 * config/i386/i386.c (ix86_option_override_internal): Don't set
30380 -fprefetch-loop-arrays if optimizing for size.
30381
30382 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30383 Gerald Pfeifer <gerald@pfeifer.com>
30384
30385 * doc/contrib.texi (Contributors): Add Martin Jambor and
30386 Michael Matz.
30387
30388 2015-04-12 Jakub Jelinek <jakub@redhat.com>
30389
30390 * BASE-VER: Set to 6.0.0.
30391
30392 PR tree-optimization/65747
30393 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30394 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30395
30396 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30397
30398 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30399 sentence. Improve grammar.
30400
30401 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30402
30403 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30404
30405 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30406
30407 PR ipa/65743
30408 * ipa-inline-transform.c (speculation_removed): Remove static var.
30409 (check_speculations): New function.
30410 (clone_inlined_nodes): Do not check spculations.
30411 (inline_call): Call check_speculations.
30412 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30413 consider non-invariants.
30414
30415 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30416 Martin Liska <mliska@suse.cz>
30417
30418 PR ipa/65722
30419 * ipa-icf.c (sem_item::compare_cgraph_references): function and
30420 variable can not match.
30421 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30422 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30423
30424 2015-04-11 Jakub Jelinek <jakub@redhat.com>
30425
30426 PR tree-optimization/65735
30427 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30428 Remove visited_phis argument, add visited_bbs, avoid recursing into the
30429 same bb rather than just into the same phi node.
30430 (thread_through_normal_block): Adjust caller.
30431
30432 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30433
30434 * doc/contrib.texi (Contributors): Add Ira Rosen.
30435
30436 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
30437
30438 * gcov.c (find_source): Fix miswording in error message.
30439 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30440 (ix86_expand_sse_comi_round): Fix typo in error message.
30441
30442 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30443
30444 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30445
30446 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
30447
30448 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30449
30450 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30451
30452 PR target/65710
30453 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30454 Print bad_spills_num and insn_pseudos_num.
30455
30456 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30457
30458 PR target/65694
30459 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30460 when creating +1 values for SImode.
30461
30462 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30463
30464 PR target/65729
30465 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30466 assert.
30467
30468 2015-04-10 Jakub Jelinek <jakub@redhat.com>
30469 Iain Sandoe <iain@codesourcery.com>
30470
30471 PR target/65351
30472 * configure: Regenerate.
30473
30474 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30475
30476 PR target/65671
30477 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30478
30479 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
30480
30481 * doc/contrib.texi (Contributors): Add John Marino.
30482
30483 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30484
30485 PR tree-optimization/65709
30486 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30487 TREE_TYPE (TREE_TYPE (t)).
30488
30489 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
30490
30491 PR target/65710
30492 * lra-int.h (lra_bad_spill_regno_start): New.
30493 * lra.c (lra_bad_spill_regno_start): New.
30494 (lra): Set up lra_bad_spill_regno_start. Set up
30495 lra_constraint_new_regno_start unconditionally.
30496 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30497 spill preferences.
30498
30499 2015-04-09 Marek Polacek <polacek@redhat.com>
30500 Jakub Jelinek <jakub@redhat.com>
30501
30502 PR middle-end/65554
30503 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30504 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30505 of STRIP_NOPS.
30506
30507 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
30508
30509 PR rtl-optimization/65693
30510 * combine.c (is_parallel_of_n_reg_sets): Move outside of
30511 #ifndef HAVE_cc0.
30512
30513 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
30514
30515 PR target/65296
30516 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30517 device specs file if "device-specs%s" didn't resolve to a path.
30518
30519 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30520
30521 PR target/65676
30522 * config/i386/i386.c (fixup_modeless_constant): New.
30523 (ix86_expand_args_builtin): Fixup modeless constant operand.
30524 (ix86_expand_round_builtin): Ditto.
30525 (ix86_expand_special_args_builtin): Ditto.
30526 (ix86_expand_builtin): Ditto.
30527
30528 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30529
30530 PR target/65693
30531 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30532 any pow2 integer in between 2 and 0x80000000U inclusive.
30533
30534 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
30535
30536 PR rtl-optimization/65693
30537 * combine.c (is_parallel_of_n_reg_sets): Change first argument
30538 from an rtx_insn * to an rtx.
30539 (try_combine): Adjust both callers. Use it once more.
30540
30541 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30542
30543 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30544 (chkp_make_static_const_bounds): Search existing
30545 symbol by assembler name. Use make_decl_one_only.
30546 (chkp_get_zero_bounds_var): Remove node search which
30547 is now performed in chkp_make_static_const_bounds.
30548 (chkp_get_none_bounds_var): Likewise.
30549
30550 2015-04-08 Michael Witten <mfwitten@gmail.com>
30551
30552 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30553 to an example.
30554
30555 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30556
30557 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30558
30559 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30560
30561 * doc/extend.texi (__sync Builtins): Fix grammar.
30562
30563 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30564
30565 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30566
30567 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30568
30569 * varasm.c (emit_local): Move definition of align.
30570
30571 2015-04-08 Julian Brown <julian@codesourcery.com>
30572
30573 * config/nvptx/mkoffload.c (process): Support variable mapping.
30574
30575 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
30576
30577 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30578 alpha_links **.
30579 (alpha_write_one_linkage): Correct typo.
30580
30581 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30582
30583 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30584
30585 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30586
30587 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30588
30589 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30590
30591 * tree-chkp.h (chkp_insert_retbnd_call): New.
30592 * tree-chkp.c (chkp_insert_retbnd_call): New.
30593 * ipa-split.c (insert_bndret_call_after): Remove.
30594 (split_function): Use chkp_insert_retbnd_call.
30595 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30596 bounds for instrumented functions.
30597
30598 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
30599
30600 PR ipa/65540
30601 * calls.c (initialize_argument_information): When producing tail
30602 call also turn SSA_NAMES passed by references to original PARM_DECLs
30603
30604 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
30605
30606 PR target/65648
30607 * lra-remat.c (do_remat): Process input and non-input insn
30608 registers separately.
30609
30610 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30611
30612 PR debug/65678
30613 * valtrack.c (debug_lowpart_subreg): New function.
30614 (dead_debug_insert_temp): Use it.
30615
30616 PR middle-end/65680
30617 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30618 into signed HOST_WIDE_INT the same as negative bit_offset.
30619
30620 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
30621
30622 * ipa-comdats.c (ipa_comdats): Visit all thunks
30623 to set proper comdat group.
30624
30625 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30626
30627 PR target/65489
30628 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30629 on constants for NEON VSTRUCT modes.
30630
30631 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30632 Iain Sandoe <iain@codesourcery.com>
30633
30634 PR target/65351
30635 * configure: Regenerate.
30636
30637 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30638
30639 PR target/65614
30640 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30641 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30642 that LFD is used to load double constants instead of LFS. Add
30643 defaults for all costs structures. Add comments for missing
30644 initialization fields.
30645 (size32_cost): Likewise.
30646 (size64_cost): Likewise.
30647 (rs64a_cost): Likewise.
30648 (mpccore_cost): Likewise.
30649 (ppc403_cost): Likewise.
30650 (ppc405_cost): Likewise.
30651 (ppc440_cost): Likewise.
30652 (ppc476_cost): Likewise.
30653 (ppc601_cost): Likewise.
30654 (ppc603_cost): Likewise.
30655 (ppc604_cost): Likewise.
30656 (ppc604e_cost): Likewise.
30657 (ppc620_cost): Likewise.
30658 (ppc630_cost): Likewise.
30659 (ppccell_cost): Likewise.
30660 (ppc750_cost): Likewise.
30661 (ppc7450_cost): Likewise.
30662 (ppc8540_cost): Likewise.
30663 (ppce300c2c3_cost): Likewise.
30664 (ppce500mc_cost): Likewise.
30665 (ppce500mc64_cost): Likewise.
30666 (ppce5500_cost): Likewise.
30667 (ppce6500_cost): Likewise.
30668 (titan_cost): Likewise.
30669 (power4_cost): Likewise.
30670 (power6_cost): Likewise.
30671 (power7_cost): Likewise.
30672 (power8_cost): Likewise.
30673 (ppca2_cost): Likewise.
30674 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30675
30676 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30677 instead of XXLOR to copy SFmode to clear out dirty bits created
30678 when SFmode denormals are generated.
30679 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30680 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30681
30682 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30683
30684 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30685 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30686 * config/aarch64/aarch64-tune.md: Regenerate.
30687
30688 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30689
30690 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30691 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30692 * config/arm/arm-cores.def (exynos-m1): New core.
30693 * config/arm/arm-tune.md: Regenerate.
30694 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30695 * config/arm/bpabi.h: Likewise.
30696
30697 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30698
30699 * ipa-cp (set_single_call_flag): Remove too
30700 restrictive assert.
30701
30702 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
30703
30704 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30705 GOMP_offload_unregister from the destructor.
30706
30707 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30708
30709 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30710 flags for instrumentation thunk.
30711 (chkp_produce_thunks): Likewise.
30712
30713 2015-04-05 Martin Liska <mliska@suse.cz>
30714
30715 PR ipa/65665
30716 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30717 has computed data structure.
30718 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30719
30720 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
30721
30722 * invoke.texi (inline-unit-growth): Increase growth to 20%
30723 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30724
30725 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
30726
30727 PR target/65647
30728 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
30729 value checking.
30730 (lra_rematerialization_iter): New.
30731 * lra.c (lra): Initialize lra_rematerialization_iter.
30732 Stop updating lra_constraint_new_regno_start after switching of
30733 inheritance and rematerialization.
30734 * lra-remat.c (lra_rematerialization_iter): New.
30735 (lra_remat): Add printing pass iteration. Do rematerialization
30736 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
30737
30738 2015-04-04 Richard Biener <rguenther@suse.de>
30739
30740 PR tree-optimization/64909
30741 PR tree-optimization/65660
30742 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
30743 to take a cost vector for scalar iteration cost.
30744 (vect_get_single_scalar_iteration_cost): Likewise.
30745 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
30746 Compute the scalar iteration cost into a cost vector.
30747 (vect_get_known_peeling_cost): Use the scalar cost vector to
30748 account for the cost of the peeled iterations.
30749 (vect_estimate_min_profitable_iters): Likewise.
30750 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
30751 Likewise.
30752
30753 2015-04-04 Alan Modra <amodra@gmail.com>
30754
30755 PR target/65576
30756 PR target/65240
30757 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
30758 0.0 constant unless TARGET_VSX.
30759 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
30760 alternative.
30761
30762 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30763
30764 PR ipa/65654
30765 * ipa-inline-transform.c (inline_call): Skip sanity check to work
30766 around the ICE
30767
30768 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30769
30770 PR ipa/65655
30771 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
30772 speculative indirect edges to avoid ordering issue.
30773
30774 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
30775
30776 PR ipa/65076
30777 * ipa-inline.c (edge_badness): Add combined size to the denominator.
30778
30779 2015-04-03 Jakub Jelinek <jakub@redhat.com>
30780
30781 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
30782 TYPE_ARTIFICIAL on the .omp_data* types.
30783
30784 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30785
30786 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
30787 instrumentation thunks.
30788
30789 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30790
30791 * config/i386/i386.c (ix86_expand_call): Avoid nested
30792 PARALLEL in returned call value.
30793
30794 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30795
30796 * lto-cgraph.c (input_cgraph_1): Always link instrumented
30797 assembler name with original one.
30798
30799 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30800
30801 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
30802
30803 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30804
30805 Revert parts of r216820.
30806 * config/i386/i386.md (movqi_internal): Correct type calculation
30807 for alternatives 3 and 5.
30808
30809 2015-04-02 Jakub Jelinek <jakub@redhat.com>
30810
30811 PR preprocessor/61977
30812 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
30813 predefine __vector/__bool/__pixel macros nor context sensitive
30814 macros for CLK_ASM.
30815 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
30816
30817 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
30818
30819 * config/pa/pa.c (pa_output_move_double): Directly handle register
30820 indexed memory operand. Simplify handling of scaled register indexed
30821 memory operands.
30822
30823 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
30824
30825 PR driver/65444
30826 * config/i386/linux-common.h (MPX_SPEC): New.
30827 (CHKP_SPEC): Add MPX_SPEC.
30828 * doc/invoke.texi (-fcheck-pointer-boudns): Document
30829 possible issues with '-z bndplt' support in linker.
30830
30831 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
30832
30833 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
30834 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
30835 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
30836 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
30837 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
30838
30839 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
30840
30841 * config/i386/sync.md (UNSPEC_MOVA): Remove.
30842 (atomic_load<mode>): Change operand 0 predicate to
30843 nonimmediate_operand and fix up the destination when needed.
30844 Use UNSPEC_LDA.
30845 (atomic_loaddi_fpu): Use UNSPEC_LDA.
30846 (atomic_store<mode>): Change operand 1 predicate to
30847 nonimmendate_operand and move the source to register when needed.
30848 Use UNSPEC_STA.
30849 (atomic_store<mode>_1): Use UNSPEC_STA.
30850 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
30851 Fix moves from memory operand. Use UNSPEC_STA.
30852
30853 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
30854
30855 * expmed.c (strict_volatile_bitfield_p): Check that the access will
30856 not cross a MODESIZE boundary.
30857 (store_bit_field, extract_bit_field): Added assertions in the
30858 strict volatile bitfields code path.
30859
30860 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
30861
30862 PR target/65624
30863 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
30864 Increase args array size by one to avoid buffer overflow.
30865
30866 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30867
30868 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30869 split_part.
30870 * ipa-inline.c (edge_badness): Add wrapper penalty.
30871 (sum_callers): Move up.
30872 (inline_small_functions): Set single_caller.
30873 * ipa-inline.h (inline_summary): Add single_caller.
30874 * ipa-split.c (split_function): Set split_part.
30875 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
30876 * cgraph.h (cgraph_node): Add split_part.
30877
30878 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
30879
30880 PR target/58945
30881 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
30882 Do not split operands 0 and operands 2 to halfmode.
30883 (atomic_compare_and_swap<mode>): Update for
30884 atomic_compare_and_swap<dwi>_doubleword changes.
30885
30886 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
30887
30888 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
30889 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
30890 no caching is done.
30891
30892 2015-03-31 Martin Liska <mliska@suse.cz>
30893
30894 PR ipa/65557
30895 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
30896 has already filled up function summary.
30897 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30898
30899 2015-03-31 Richard Biener <rguenther@suse.de>
30900
30901 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
30902 of types.
30903
30904 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
30905
30906 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
30907 nested functions.
30908 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
30909 (s390_asm_output_function_label): Adapt to new signature of
30910 s390_function_num_hotpatch_hw
30911 Optimise the code generating assembler output.
30912 Add comments to assembler file.
30913
30914 2015-03-31 Richard Biener <rguenther@suse.de>
30915
30916 PR middle-end/65626
30917 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
30918 of the noreturn call so it is last and cleanup_control_flow_bb
30919 can do the CFG part.
30920
30921 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
30922
30923 PR target/65531
30924 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
30925 same_comdat_group for external symbols.
30926 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
30927 infinite same_comdat_group traversal loop.
30928
30929 2015-03-31 Jakub Jelinek <jakub@redhat.com>
30930
30931 PR plugins/61176
30932 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
30933 automatically to $headers.
30934
30935 2015-03-30 Jakub Jelinek <jakub@redhat.com>
30936
30937 PR ipa/65610
30938 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
30939 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
30940 function.
30941 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
30942 Use it.
30943 * ipa-prop.c (param_type_may_change_p): Likewise.
30944 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
30945 (remove_unused_scope_block_p): Add in_ctor_dtor_block
30946 argument. Before inlining, preserve
30947 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
30948 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
30949 recursive calls.
30950 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
30951
30952 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30953
30954 PR ipa/65076
30955 * ipa-inline.c (edge_badness): Base denominator on callee's
30956 grwoth squared.
30957
30958 2015-03-27 Martin Jambor <mjambor@suse.cz>
30959
30960 PR ipa/65478
30961 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
30962 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
30963 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
30964 node_calling_single_call.
30965 * ipa-cp.c (count_callers): New function.
30966 (set_single_call_flag): Likewise.
30967 (initialize_node_lattices): Count callers and set single_flag_call if
30968 necessary.
30969 (incorporate_penalties): New function.
30970 (good_cloning_opportunity_p): Use it, dump new flags.
30971 (propagate_constants_topo): Set node_within_scc flag if appropriate.
30972 * doc/invoke.texi (ipa-cp-recursion-penalty,
30973 ipa-cp-single-call-pentalty): Document.
30974
30975 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30976
30977 PR ipa/65588
30978 * symtab.c (symtab_node::get_partitioning_class): Register vars
30979 are duplicated.
30980 * varpool.c (symbol_table::output_variables) Do not assemble unefined
30981 decls for non-symbols.
30982
30983 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
30984
30985 PR target/65248
30986 * output.h (default_binds_local_p_2): New.
30987 * varasm.c (default_binds_local_p_2): Renamed to ...
30988 (default_binds_local_p_3): This. Don't return true on protected
30989 data symbol if protected data may be external.
30990 (default_binds_local_p): Use default_binds_local_p_3.
30991 (default_binds_local_p_1): Likewise.
30992 (default_binds_local_p_2): New.
30993 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
30994 default_binds_local_p_2 if TARGET_MACHO is undefined.
30995
30996 2015-03-27 Jakub Jelinek <jakub@redhat.com>
30997
30998 PR target/65593
30999 * config/i386/i386.c (legitimize_pic_address): If base
31000 is SYMBOL_REF or LABEL_REF using %rip addressing, force
31001 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
31002
31003 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31004
31005 PR target/65531
31006 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
31007 comdat groups.
31008
31009 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31010
31011 PR ipa/65600
31012 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
31013 of optimized out indirect call.
31014 (redirect_to_unreachable): Always build symbol table node for
31015 BUILT_IN_UNREACHABLE
31016
31017 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
31018
31019 PR target/65407
31020 * ira-costs.c (record_reg_classes): Process all constraint string
31021 containing 0-9.
31022
31023 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
31024
31025 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
31026 memory_operand.
31027
31028 PR target/65052
31029 * config/c6x/constraints.md (S3): New constraint.
31030 * config/c6x/c6x.md (real_jump): Use it.
31031
31032 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31033
31034 PR middle-end/65595
31035 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
31036 do redirection if the call is not optimized out.
31037
31038 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
31039
31040 PR target/65495
31041 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
31042 (fchkp-check-incomplete-type): Add LTO.
31043 (fchkp-zero-input-bounds-for-main): Likewise.
31044 (fchkp-first-field-has-own-bounds): Likewise.
31045 (fchkp-narrow-bounds): Likewise.
31046 (fchkp-narrow-to-innermost-array): Likewise.
31047 (fchkp-use-static-bounds): Likewise.
31048 (fchkp-use-static-const-bounds): Likewise.
31049 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31050
31051 2015-03-27 Marek Polacek <polacek@redhat.com>
31052
31053 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
31054
31055 2015-03-27 Marek Polacek <polacek@redhat.com>
31056
31057 PR sanitizer/65583
31058 * ubsan.c (ubsan_create_edge): New function.
31059 (instrument_bool_enum_load): Call it.
31060 (instrument_nonnull_arg): Likewise.
31061 (instrument_nonnull_return): Likewise.
31062 (instrument_object_size): Likewise.
31063
31064 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31065
31066 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
31067 auto_vec.
31068
31069 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31070
31071 PR lto/65536
31072 * lto-streamer.h (class lto_location_cache): New.
31073 (struct data_in): Add location_cache.
31074 (lto_input_location): Update prototype.
31075 (stream_input_location_now): New.
31076 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
31077 pointer to location.
31078 (stream_input_location): Update.
31079 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
31080 (warn_odr): Apply location cache before warning.
31081 (lto_input_location): Update prototype.
31082 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
31083 Use stream_input_location_now.
31084 * lto-streamer-in.c (lto_location_cache::current_cache): New static
31085 variable.
31086 (lto_location_cache::cmp_loc): New function.
31087 (lto_location_cache::apply_location_cache): New function.
31088 (lto_location_cache::accept_location_cache): New function.
31089 (lto_location_cache::revert_location_cache): New function.
31090 (lto_location_cache::input_location): New function.
31091 (lto_input_location): Do location caching.
31092 (stream_input_location_now): New function.
31093 (input_eh_region, input_struct_function_base): Use
31094 stream_input_location_now.
31095 (lto_data_in_create): use new.
31096 (lto_data_in_delete): Use delete.
31097 * tree-streamer-in.c (unpack_ts_block_value_fields,
31098 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
31099 lto_input_ts_exp_tree_pointers): Update for cached location api.
31100
31101 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31102
31103 PR ipa/65076
31104 * passes.def: Add pass_nothrow.
31105 * ipa-pure-const.c: (pass_data_nothrow): New.
31106 (pass_nothrow): New.
31107 (pass_nothrow::execute): New.
31108 (make_pass_nothrow): New.
31109 * tree-pass.h (make_pass_nothrow): Declare.
31110
31111 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31112
31113 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
31114 edge to change by speculation resolution or redirection.
31115 (edge_set_predicate): Likewise.
31116 (inline_summary_t::duplicate): Likewise.
31117 (remap_edge_summaries): Likewise.
31118
31119 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31120
31121 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
31122 New macros.
31123 (can_inline_edge_p): Relax option matching for always inline functions.
31124
31125 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
31126
31127 PR target/65561
31128 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
31129 Check operand 4 and operand 0 for equality.
31130 (avx512f_vextract<shuffletype>32x4_1_maskm):
31131 Check operand 6 and operand 0 for equality.
31132 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
31133 for equality.
31134 (vec_extract_hi_<mode>_maskm): Ditto.
31135
31136 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31137
31138 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31139 dead calls back to live.
31140 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31141 cross check to ...
31142 (cgraph_node::verify_node): ... here; verify only callee edges,
31143 not caller.
31144 * cif-code.def (CILK_SPAWN): New code.
31145
31146 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31147
31148 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31149 (edge_set_predicate): Use it to mark unreachable edges.
31150 (inline_summary_t::duplicate): Remove unnecesary code.
31151 (remap_edge_summaries): Likewise.
31152 (dump_inline_summary): Report contains_cilk_spawn.
31153 (compute_inline_parameters): Compute contains_cilk_spawn.
31154 (inline_read_section, inline_write_summary): Stream
31155 contains_cilk_spawn.
31156 * ipa-inline.c (can_inline_edge_p): Do not touch
31157 DECL_STRUCT_FUNCTION that may not be available;
31158 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31159 remove check for callee_fun->can_throw_non_call_exceptions and
31160 replace it by optimization attribute check; check for flag_exceptions.
31161 * ipa-inline-transform.c (inline_call): Maintain
31162 DECL_FUNCTION_PERSONALITY
31163 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31164
31165 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31166
31167 PR tree-optimization/65551
31168 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31169 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31170
31171 2015-03-26 Richard Biener <rguenther@suse.de>
31172
31173 PR middle-end/65555
31174 * tree-cfg.c (verify_gimple_call): Do not require a call to
31175 have no LHS if it wasn't recognized as control altering yet.
31176
31177 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31178
31179 PR tree-optimization/64715
31180 * passes.def: Add another instance of pass_object_sizes before ccp1.
31181 * tree-object-size.c (pass_object_sizes::execute): In
31182 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31183 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31184 __bos result and the computed constant. Remove redundant
31185 checks, obsoleted by gimple_call_builtin_p test.
31186
31187 * var-tracking.c (variable_tracking_main_1): Don't track
31188 variables for targetm.no_register_allocation targets.
31189
31190 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
31191
31192 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31193 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31194
31195 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31196
31197 PR target/65569
31198 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31199 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
31200 0.0 is correctly setup.
31201 (extenddftf2_internal): Likewise.
31202
31203 2015-03-25 Sebastian Pop <s.pop@samsung.com>
31204
31205 PR tree-optimization/65177
31206 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31207 (bb_in_bbs): New.
31208 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
31209 edges not adjacent on the path to the original code.
31210
31211 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
31212
31213 PR bootstrap/65537
31214 * doc/install.texi (Building a native compiler): Document new
31215 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
31216 configuration assumes that the host supports the linker plugin.
31217
31218 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
31219
31220 PR target/65508
31221 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31222 chain for generated call.
31223
31224 2015-03-25 Richard Biener <rguenther@suse.de>
31225
31226 * passes.c (pass_manager::execute_early_local_passes): Guard
31227 execution of pass_chkp_instrumentation_passes with
31228 flag_check_pointer_bounds.
31229 (pass_chkp_instrumentation_passes::gate): Likewise.
31230
31231 2015-03-25 Martin Liska <mliska@suse.cz>
31232
31233 PR tree-optimization/65538
31234 * symbol-summary.h (function_summary::~function_summary):
31235 Relese memory for allocated summaries.
31236 (function_summary::release): New function.
31237
31238 2015-03-25 Jakub Jelinek <jakub@redhat.com>
31239
31240 PR lto/65515
31241 * lto-streamer-out.c (DFS::worklist): New struct.
31242 (DFS::worklist_vec): New data member.
31243 (DFS::next_dfs_num): Remove.
31244 (DFS::DFS): Rewritten using worklist instead of recursion,
31245 using most of code from DFS::DFS_write_tree.
31246 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31247 pass it to DFS_write_tree calls.
31248 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31249 quick initial checks push it into worklist_vec and return.
31250
31251 2015-03-25 Richard Biener <rguenther@suse.de>
31252
31253 PR middle-end/65519
31254 * genmatch.c (expr::gen_transform): Re-write to avoid
31255 using gimple_build.
31256
31257 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31258
31259 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31260
31261 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31262
31263 * config/arm/arm.opt (print_tune_info): New option.
31264 * config/arm/arm.c (arm_print_tune_info): New function.
31265 (arm_file_start): Call arm_print_tune_info.
31266 * config/arm/arm-protos.h (struct tune_params): Add comment.
31267 * doc/invoke.texi (@item -mprint-tune-info): New item.
31268 (-mtune): mention it in ARM Option Summary.
31269
31270 2015-03-25 DJ Delorie <dj@redhat.com>
31271
31272 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31273 correct clause.
31274
31275 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
31276 Martin Liska <mliska@suse.cz>
31277
31278 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31279 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31280 (sem_item::add_type): New function.
31281 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31282 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31283 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31284 (sem_function::equals_wpa): Fix typo.
31285 * ipa-icf.h (sem_item::add_type): New function.
31286 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31287 order.
31288
31289 2015-03-24 Jakub Jelinek <jakub@redhat.com>
31290
31291 PR tree-optimization/65533
31292 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31293 with swapped operands, call vect_free_slp_tree on
31294 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31295 vector.
31296
31297 2015-03-24 Richard Biener <rguenther@suse.de>
31298
31299 PR middle-end/65517
31300 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31301 for fixup if necessary.
31302
31303 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
31304
31305 * doc/extend.texi (Function Attributes): Add @cindex entries
31306 for all attributes and regularize their format. Delete text
31307 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
31308 information about "eightbit_data", "tiny_data", and "model"
31309 variable attributes to the Variable Attributes section. Fix
31310 some obvious typos and copy-editing issues.
31311 (Variable Attributes, Type Attributes): Likewise add/fix
31312 @cindex entries for all attributes.
31313
31314 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31315
31316 PR target/65523
31317 * tree-chkp.c (chkp_build_returned_bound): Ignore
31318 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31319
31320 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
31321
31322 PR target/65505
31323 * config/sh/predicates.md (simple_mem_operand,
31324 displacement_mem_operand): Add test for reg.
31325 (short_displacement_mem_operand): Test for displacement_mem_operand
31326 before invoking sh_disp_addr_displacement.
31327 * config/sh/constraints.md (Sdd, Sra): Simplify.
31328 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31329 Remove redundant displacement_mem_operand tests.
31330
31331 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
31332
31333 PR target/65296
31334 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31335 the same -mmcu=MCU more than once.
31336
31337 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31338
31339 PR bootstrap/65522
31340 * ipa-devirt.c: Remove duplicate demangle.h include.
31341
31342 PR target/65504
31343 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31344 on the pseudo.
31345 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31346 REG_POINTER on *destptr after adjusting it for prologue size.
31347
31348 PR ipa/65521
31349 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31350 ultimate_alias_target ()->order ints instead of
31351 ultimate_alias_target () pointers.
31352
31353 2015-03-23 Richard Biener <rguenther@suse.de>
31354
31355 PR tree-optimization/65518
31356 * tree-vect-stmts.c (vectorizable_load): Reject single-element
31357 interleaving cases we generate absymal code for.
31358
31359 2015-03-23 Richard Biener <rguenther@suse.de>
31360
31361 PR tree-optimization/65494
31362 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31363 matches here.
31364 (vect_analyze_slp_instance): But do that here, always and once.
31365
31366 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31367
31368 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31369 adding T or multiplying by T+1 and subracting T.
31370
31371 2015-03-22 Jeff Law <law@redhat.com>
31372
31373 PR rtl-optimization/64317
31374 * Makefile.in (OBJS): Add gcse-common.c
31375 * gcse.c: Include gcse-common.h
31376 (struct modify_pair_s): Move structure definition to gcse-common.h
31377 (compute_transp): Move function to gcse-common.c.
31378 (canon_list_insert): Similarly.
31379 (record_last_mem_set_info): Break out some code and put it into
31380 gcse-common.c. Call into the new common code.
31381 (compute_local_properties): Pass additional arguments to compute_transp.
31382 * postreload-gcse.c: Include gcse-common.h and df.h
31383 (modify_mem_list_set, blocks_with_calls): New variables.
31384 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31385 (get_bb_avail_insn): Pass in the expression index too.
31386 (alloc_mem): Allocate memory for the new bitmaps and lists.
31387 (free_mem): Free memory for the new bitmaps and lists.
31388 (insert_expr_in_table): Record a bitmap index for each entry we
31389 add to the table.
31390 (record_last_mem_set_info): Call into common code in gcse-common.c.
31391 (get_bb_avail_insn): If no available insn was found in the requested
31392 BB. If BB has a single predecessor, see if the expression is
31393 transparent in BB and available in that single predecessor.
31394 (compute_expr_transp): New wrapper for compute_transp.
31395 (eliminate_partially_redundant_load): Pass expression's bitmap_index
31396 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
31397 (gcse_after_reload_main): If there are elements in the hash table,
31398 then compute transparency for all the elements in the hash table.
31399 * gcse-common.h: New file.
31400 * gcse-common.c: New file.
31401
31402 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
31403
31404 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31405 as an adjective.
31406 (System Headers): Likewise.
31407 (Ifdef): Likewise.
31408 (Traditional macros): Likewise.
31409 (Invocation): Likewise.
31410 (Option Index): Likewise.
31411 * doc/cppopts.texi (-M): Likewise.
31412 (-finput-charset): Likewise.
31413 (--help): Likewise.
31414 * doc.invoke.texi (AVR Options): Likewise.
31415 (V850 Options): Likewise.
31416
31417 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
31418
31419 PR ipa/65475
31420 * ipa-devirt.c: Include demangle.h
31421 (odr_type_d): Add field rtti_broken.
31422 (odr_subtypes_equivalent_p): Do not require name to match.
31423 (compare_virtual_tables): Fix typo; if type already has ODR violation,
31424 bypass the tests; be ready for function referneces in vtables that are
31425 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31426 (warn_odr): Give up for nameless types.
31427 (warn_types_mismatch): Report mismatch in mangled names;
31428 report mismatch in anonymous namespaces; look into component types to
31429 give useful error; report when mismatch is dragged in from other ODR
31430 type.
31431 (odr_types_equivalent_p): Match types for being polymorphic; avoid
31432 duplicated diagnostics.
31433 (add_type_duplicate): Reorder checks so more informative ones come
31434 first; fix typo; do not output "the extra base is defined here" when
31435 we did not warn.
31436 (BINFO_N_BASE_BINFOS): Relax sanity check.
31437
31438 2015-03-22 Martin Liska <mliska@suse.cz>
31439 Jakub Jelinek <jakub@redhat.com>
31440
31441 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31442 masks that can potentially include a builtin.
31443 (ix86_add_new_builtins): Introduce fast filter for isa values
31444 that cannot trigger builtin inclusion.
31445
31446 2015-03-22 Martin Liska <mliska@suse.cz>
31447
31448 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31449 (sem_item::update_hash_by_local_refs): Likewise.
31450 (sem_variable::get_hash): Empty line is fixed.
31451 (sem_item_optimizer::execute): Include adding of hash references.
31452 (sem_item_optimizer::update_hash_by_addr_refs): New function.
31453 (sem_item_optimizer::build_hash_based_classes): Use local hash.
31454 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31455 (sem_item::update_hash_by_local_refs): Likewise.
31456
31457 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31458
31459 PR ipa/65502
31460 * ipa-comdats.c (enqueue_references): Walk through thunks.
31461 (ipa_comdats): Likewise.
31462 (set_comdat_group_1): New function.
31463
31464 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31465
31466 PR ipa/65475
31467 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31468 non-polymorphic
31469
31470 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
31471 Gerald Pfeifer <gerald@pfeifer.com>
31472
31473 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31474
31475 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
31476 Sandra Loosemore <sandra@codesourcery.com>
31477
31478 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31479 function parameter declaration.
31480 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31481 Update arguments to nios2_adjust_call_address().
31482 (sibcall_internal): Rename from *sibcall.
31483 (sibcall_value_internal): Rename from *sibcall_value.
31484 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31485 (nios2_large_got_address): Add target temp reg parameter.
31486 (nios2_got_address): Adjust call to nios2_large_got_address, add
31487 force_reg around it.
31488 (nios2_load_pic_address): Add target temp reg parameter, replace call
31489 to nios2_got_address with corresponding code.
31490 (nios2_legitimize_constant_address): Update call to
31491 nios2_load_pic_address.
31492 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31493 to use temp reg for PIC loading purposes.
31494 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31495 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31496 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31497
31498 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31499
31500 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31501 usage of "the @option{...}".
31502 (-Wopenmp-simd): Likewise.
31503 (-fsanitize-recover): Likewise.
31504 (-fsanitize-undefined-trap-on-error): Likewise.
31505 (-flto): Likewise.
31506 (tracer-dynamic-coverage-feedback): Likewise.
31507 (reorder-block-duplicate-feedback): Likewise.
31508 (loop-unroll-jam-size): Likewise.
31509 (-B): Likewise.
31510 (-I-): Likewise.
31511 (-mabs=legacy): Likewise.
31512 (-mupper-regs-df): Likewise.
31513 (-mupper-regs-sf): Likewise.
31514 (-mpointers-to-nested-functions): Likewise.
31515
31516 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31517
31518 * doc/extend.texi (Cilk Plus Builtins): Add markup.
31519
31520 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31521
31522 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31523 additional index entries and cross-references.
31524 (-fchkp-check-incomplete-type): Likewise.
31525 (-fchkp-first-field-has-own-bounds): Likewise.
31526 (-fchkp-narrow-to-innermost-array): Likewise.
31527 (-fchkp-use-fast-string-functions): Likewise.
31528 (-fchkp-use-nochk-string-functions): Likewise.
31529 (-fchkp-use-static-const-bounds): Likewise.
31530 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31531 (-fchkp-instrument-marked-only): Likewise.
31532 (-fchkp-use-wrappers): Likewise.
31533 (-static-libmpx): Likewise.
31534 (-static-libmpxwrappers): Likewise.
31535 * doc/extend.texi (bnd_legacy): Likewise.
31536 (bnd_instrument): Likewise.
31537 (bnd_variable_size): Likewise.
31538 (Pointer Bounds Checker builtins): Likewise.
31539
31540 2015-03-21 Tom de Vries <tom@codesourcery.com>
31541
31542 PR tree-optimization/65458
31543 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31544 * cgraph.h (cgraph_node): Add parallelized_function field.
31545 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31546 (input_overwrite_node): Read parallelized_function field.
31547 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31548 parallelized_function on cgraph_node for child_fn.
31549 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31550 Remove include of gt-tree-parloops.h.
31551 (parallelized_functions): Remove static variable.
31552 (parallelized_function_p): Rewrite using parallelized_function field of
31553 cgraph_node.
31554 (create_loop_fn): Remove adding to parallelized_functions.
31555 * Makefile.in (GTFILES): Remove tree-parloops.c
31556
31557 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
31558
31559 PR rtl-optimization/64366
31560 * lra.c (lra_update_insn_regno_info): Consider regs in
31561 CALL_INSN_FUNCTION_USAGE memory.
31562
31563 2015-03-20 Richard Biener <rguenther@suse.de>
31564
31565 PR middle-end/64715
31566 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31567 for type comparison and gcc_checking_assert.
31568 (chrec_fold_plus_poly_poly): Likewise.
31569 (chrec_fold_multiply_poly_poly): Likewise.
31570 (chrec_convert_1): Likewise.
31571 * gimplify.c (gimplify_expr): Remove premature folding of
31572 &X + CST to &MEM[&X, CST].
31573
31574 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31575
31576 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31577 already is final.
31578 (ipa_inline): Recompute inline_failed codes.
31579 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31580 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31581 CIF_FINAL_ERROR.
31582
31583 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
31584
31585 PR rtl-optimization/60851
31586 * recog.c (constrain_operands): Accept a pseudo register before reload
31587 for LRA enabled targets.
31588
31589 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
31590
31591 PR target/65240
31592 * config/rs6000/predicates.md (easy_fp_constant): Remove special
31593 -ffast-math handling that kept non-0 constants live in the RTL
31594 until reload. Remove logic testing the number of instructions it
31595 took to create a constant in a GPR that was never used, due to a
31596 test for soft-float earlier.
31597 (memory_fp_constant): Delete, no longer used.
31598
31599 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31600 alternatives for loading non-0 constants into GPRs for hard
31601 floating point that is no longer needed due to changes in
31602 easy_fp_constant. Add support for loading 0.0 into GPRs.
31603 (mov<mode>_hardfloat32): Likewise.
31604 (mov<mode>_hardfloat64): Likewise.
31605 (mov<mode>_64bit_dm): Likewise.
31606 (movtd_64bit_nodm): Likewise.
31607 (pre-reload move FP constant define_split): Delete define_split,
31608 since it is no longer used.
31609 (extenddftf2_internal): Remove GHF constraints that are not valid
31610 for extenddftf2.
31611
31612 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
31613
31614 PR rtl-optimization/63491
31615 * lra-constraints.c (check_and_process_move): Use src instead of
31616 sreg. Remove some dead code.
31617
31618 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
31619
31620 PR ipa/65380
31621 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31622 (sem_variable::merge): Likewise.
31623
31624 2015-03-19 Martin Liska <mliska@suse.cz>
31625
31626 PR ipa/65465
31627 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31628 all fields of cgraph_thunk_info.
31629
31630 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
31631
31632 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31633 clone instrumented thunks.
31634
31635 2015-03-19 Richard Biener <rguenther@suse.de>
31636
31637 Revert
31638 2015-03-10 Richard Biener <rguenther@suse.de>
31639
31640 PR middle-end/63155
31641 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31642 * tree-ssa-coalesce.c: Include timevar.h.
31643 (attempt_coalesce): Handle graph being NULL.
31644 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31645 Split out abnormal coalescing to ...
31646 (perform_abnormal_coalescing): ... this function.
31647 (coalesce_ssa_name): Perform abnormal coalescing without computing
31648 live/conflict.
31649 (verify_ssa_coalescing_worker): New function.
31650 (verify_ssa_coalescing): Likewise.
31651
31652 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
31653 Jakub Jelinek <jakub@redhat.com>
31654
31655 PR sanitizer/65400
31656 * tsan.c (instrument_gimple): Clear tail call flag on
31657 calls.
31658
31659 2015-03-19 Jakub Jelinek <jakub@redhat.com>
31660
31661 PR sanitizer/65400
31662 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31663 call in the return bb.
31664 (find_split_points): Add RETURN_BB argument, don't call
31665 find_return_bb.
31666 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
31667 if true append TSAN_FUNC_EXIT internal call after the call to
31668 the split off function.
31669 (execute_split_functions): Call find_return_bb here.
31670 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31671 Adjust find_split_points and split_function calls.
31672
31673 2015-03-18 DJ Delorie <dj@redhat.com>
31674
31675 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31676 (iorqi3_virt): Likewise.
31677
31678 2015-03-18 Tom de Vries <tom@codesourcery.com>
31679
31680 * tree-parloops.c (parallelize_loops): Make static.
31681 * tree-parloops.h (parallelize_loops): Remove extern declaration.
31682
31683 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
31684
31685 PR middle-end/64491
31686 Revert:
31687 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
31688
31689 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31690 condition would be removed due to undefined behaviour.
31691
31692 2015-03-18 Martin Liska <mliska@suse.cz>
31693
31694 PR ipa/65432
31695 * cgraph.c (cgraph_node::get_create): Remove unnecessary
31696 xstrdup_for_dump wrapper.
31697 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31698 sem_item::name.
31699 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31700 with xstrdup_for_dump.
31701 (sem_variable::equals): Likewise.
31702 (sem_item_optimizer::read_section): Use symtab_node::name instead of
31703 sem_item::name.
31704 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31705 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31706 symtab_node::asm_name with xstrdup_for_dump.
31707 (congruence_class::dump): Use symtab_node::name instead of
31708 sem_item::name.
31709 * ipa-icf.h (symtab_node::name): Remove.
31710 (symtab_node::asm_name): Likewise.
31711
31712 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31713
31714 PR tree-optimization/65450
31715 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31716 function.
31717 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31718 it instead of duplicate_ssa_name_ptr_info.
31719
31720 PR target/65222
31721 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31722
31723 2015-03-18 Richard Biener <rguenther@suse.de>
31724
31725 * tree-data-ref.h (struct access_matrix): Remove.
31726 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31727 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31728 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
31729 (am_vector_index_for_loop): Likewise.
31730 (struct data_reference): Remove access_matrix member.
31731 (DR_ACCESS_MATRIX): Remove.
31732 (lambda_vector_new): Add comment.
31733 (lambda_matrix_new): Use XOBNEWVEC.
31734
31735 2015-03-18 Richard Biener <rguenther@suse.de>
31736
31737 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
31738 (pass_ch::execute): Cleanup the CFG only if we did sth.
31739 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
31740
31741 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31742
31743 * expmed.c (synth_mult): Use std::swap instead of manually
31744 swapping algorithms.
31745
31746 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31747
31748 PR target/65078
31749 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
31750
31751 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
31752
31753 PR target/65296
31754 * config/avr/avr.opt (-nodevicelib): New option.
31755 * doc/invoke.texi (AVR Options): Document it.
31756 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
31757 libgcc.a, libc.a, libm.a.
31758 * config/avr/specs.h: Same.
31759 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
31760 which don't (directly) depend on the device. Print more help.
31761 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
31762 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
31763 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
31764 case of an error.
31765 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
31766 for specs file name.
31767 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
31768 * config/avr/avr-mcus.def: Adjust initializers and comments.
31769
31770 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
31771
31772 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
31773 DECL_ONE_ONLY to check if decl is one only.
31774 * ipa-split.c (consider_split): Limit splitt of one only functions.
31775
31776 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31777
31778 PR tree-optimization/65427
31779 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
31780 functions.
31781 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
31782
31783 2015-03-16 Marek Polacek <polacek@redhat.com>
31784
31785 * cgraph.h (add_new_static_var): Remove declaration.
31786 * varpool.c (add_new_static_var): Remove function.
31787
31788 2015-03-16 Jakub Jelinek <jakub@redhat.com>
31789
31790 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
31791 instead of vec<tree> * with vec_alloc and release for args.
31792 Adjust all users.
31793
31794 PR middle-end/65431
31795 * omp-low.c (delete_omp_context): Only splay_tree_delete
31796 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
31797 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
31798
31799 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
31800
31801 PR sanitizer/64820
31802 * cfgexpand.c (align_base): New function.
31803 (alloc_stack_frame_space): Call it.
31804 (expand_stack_vars): Align prev_frame to be sure
31805 data->asan_vec elements aligned properly.
31806
31807 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
31808
31809 PR middle-end/65409
31810 * expr.c (store_field): Do not do a direct block copy if the source is
31811 a PARALLEL with BLKmode.
31812
31813 2015-03-16 Tom de Vries <tom@codesourcery.com>
31814
31815 PR middle-end/65414
31816 Revert:
31817 2015-03-12 Tom de Vries <tom@codesourcery.com>
31818
31819 PR rtl-optimization/64895
31820 * lra-lives.c (check_pseudos_live_through_calls): Use
31821 actual_call_used_reg_set instead of call_used_reg_set, if available.
31822
31823 2015-03-16 Alan Modra <amodra@gmail.com>
31824
31825 PR target/63150
31826 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
31827 Modify Z->r bswapdi splitter to use dest in place of scratch.
31828 In r->Z and Z->r bswapdi splitter rename word_high, word_low
31829 to word1, word2 and rearrange logic to suit.
31830 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
31831 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
31832 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
31833 Add one '?' on r->r. Modify Z->r splitter to avoid need for
31834 early clobber.
31835
31836 2015-03-14 Jakub Jelinek <jakub@redhat.com>
31837
31838 PR tree-optimization/65369
31839 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
31840 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
31841 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
31842
31843 PR tree-optimization/65418
31844 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
31845 are casts in the first PLUS_EXPR operand, ensure tbias and
31846 *totallowp are in the inner type.
31847
31848 PR rtl-optimization/65401
31849 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
31850 argument. If true, adjust_address_nv of x with big-endian
31851 correction for the mode widening to GET_MODE (y).
31852 (make_field_assignment): Don't do MEM mode widening here.
31853 Use MEM_P instead of GET_CODE == MEM.
31854
31855 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
31856
31857 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
31858 the external decls.
31859
31860 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31861
31862 PR target/64600
31863 * config/arm/arm.c (arm_gen_constant, AND case): Use
31864 ARM_SIGN_EXTEND when constructing AND mask.
31865
31866 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31867
31868 * graph.c (print_graph_cfg): Make function names visible and append
31869 parenthesis to it. Also make groups of basic blocks belonging to the
31870 same function visible.
31871
31872 2015-03-12 Richard Biener <rguenther@suse.de>
31873
31874 PR middle-end/44563
31875 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
31876 to avoid quadratic behavior with inline expansion splitting blocks.
31877 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
31878 with the successor if the predecessor will be merged with it.
31879 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
31880 entry block with its successor.
31881
31882 2015-03-13 Richard Biener <rguenther@suse.de>
31883
31884 PR middle-end/44563
31885 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
31886 (cleanup_tree_cfg_1): Do not call it.
31887 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
31888 (fixup_noreturn_call): Mark the stmt as control altering.
31889 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
31890 here.
31891 (pass_data_fixup_cfg): Produce a dump file.
31892 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
31893 (need_noreturn_fixup): New global.
31894 (pass_dominator::execute): Fixup queued noreturn calls.
31895 (optimize_stmt): Queue calls that became noreturn for fixup.
31896 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
31897 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
31898 (el_to_fixup): New global.
31899 (eliminate_dom_walker::before_dom_childre): Queue calls that
31900 became noreturn for fixup.
31901 (eliminate): Fixup queued noreturn calls.
31902 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
31903 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
31904 (substitute_and_fold_dom_walker::before_dom_children): Queue
31905 alls that became noreturn for fixup.
31906 (substitute_and_fold): Fixup queued noreturn calls.
31907
31908 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
31909
31910 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
31911 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31912 are building; for methods check ODR type of class they belong to if
31913 they may lead to a polymorphic call.
31914 (sem_function::compare_polymorphic_p): Be bit smarter about testing
31915 when function may lead to a polymorphic call.
31916 (sem_function::compare_type_list): Remove.
31917 (sem_variable::equals): Update use of compatible_types_p.
31918 (sem_variable::parse_tree_refs): Remove.
31919 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
31920 cdtor.
31921 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
31922 matching here.
31923 (func_checker::compatible_polymorphic_types_p): Break out from ...
31924 (unc_checker::compatible_types_p): ... here.
31925 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
31926 Declare.
31927 (unc_checker::compatible_types_p): Update.
31928 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
31929 Remove.
31930
31931 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31932
31933 PR rtl-optimization/65235
31934 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
31935 When first element of vec_concat is const_int, calculate its size
31936 using second element.
31937
31938 2015-03-12 Richard Biener <rguenther@suse.de>
31939
31940 PR middle-end/65270
31941 * fold-const.c (operand_equal_p): Fix ordering of resetting
31942 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
31943
31944 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31945
31946 * config/s390/s390.c (s390_reorg): Move code to output nops after label
31947 to s390_reorg ().
31948 (s390_asm_output_function_label): Likewise.
31949 * config/s390/s390.c (s390_asm_output_function_label):
31950 Fix function label alignment with -mhtopatch.
31951 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
31952 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
31953 ("nop_2_byte"): New define_insn.
31954 ("nop_4_byte"): Likewise.
31955 ("nop_6_byte"): Likewise.
31956 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
31957 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
31958
31959 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31960
31961 PR target/65103
31962 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
31963 register.
31964
31965 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
31966
31967 PR target/65044
31968 * toplev.c (process_options): Restrict Pointer Bounds Checker
31969 usage with Address Sanitizer.
31970
31971 2015-03-12 Richard Biener <rguenther@suse.de>
31972
31973 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
31974 to split on.
31975 * omp-low.c (expand_omp_taskreg): Split block before removing
31976 the stmt.
31977 (expand_omp_target): Likewise.
31978 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
31979 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
31980 stmt to split_block.
31981
31982 2015-03-12 Tom de Vries <tom@codesourcery.com>
31983
31984 PR rtl-optimization/64895
31985 * lra-lives.c (check_pseudos_live_through_calls): Use
31986 actual_call_used_reg_set instead of call_used_reg_set, if available.
31987
31988 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31989
31990 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
31991 (cgraph_node::remove): Likewise.
31992 (cgraph_node::get_untransformed_body): Likewise.
31993 * varpool.c (varpool_node::remove): Likewise.
31994 (varpool_node::get_constructor): Add sanity check.
31995
31996 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
31997
31998 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
31999 old GCC versions.
32000 (-fabi-compat-version): Likewise.
32001 (-ffriend-injection): Likewise.
32002 (-Wdeclaration-after-statement): Likewise.
32003 (-fomit-frame-pointer): Likewise.
32004 (-ftree-coalesce-inlined-vars): Likewise.
32005 (-fvisibility=): Likewise.
32006 * doc/extend.texi (Typeof): Likewise.
32007 (Zero Length): Likewise.
32008 (Escaped Newlines): Likewise.
32009 (Compound Literals): Likewise.
32010 (Function Attributes): Likewise.
32011 (Label Attributes): Likewise.
32012 (Type Attributes): Likewise.
32013 (Function Names): Likewise.
32014 (Other Builtins): Likewise.
32015 (Function Specific Option Pragmas): Likewise.
32016 (C++ Interface): Likewise.
32017
32018 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
32019
32020 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
32021
32022 2015-03-11 Marek Polacek <polacek@redhat.com>
32023
32024 PR tree-optimization/65388
32025 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
32026
32027 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32028
32029 PR target/65296
32030 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
32031 * configure: Regenerate.
32032 * config.in: Regenerate.
32033 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
32034 [-mn-flash]: Document it.
32035 [__AVR_ARCH__]: Document avrtiny.
32036
32037 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
32038 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
32039 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
32040
32041 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32042
32043 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
32044
32045 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32046
32047 PR target/65242
32048 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
32049 allow reloads of PLUS in floating point/VSX registers.
32050
32051 2015-03-11 Junmo Park <junmoz.park@samsung.com>
32052
32053 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
32054 crypto_sha256_fast.
32055 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
32056
32057 2015-03-11 Richard Biener <rguenther@suse.de>
32058
32059 PR tree-optimization/65310
32060 * tree-sra.c (build_ref_for_offset): Also preserve larger
32061 alignment.
32062
32063 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
32064
32065 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
32066
32067 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32068
32069 PR target/65368
32070 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
32071 new define_expand.
32072 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
32073
32074 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32075
32076 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
32077 (sem_function::equals_wpa): ... here.
32078
32079 2015-03-10 Marek Polacek <polacek@redhat.com>
32080 Jakub Jelinek <jakub@redhat.com>
32081
32082 PR sanitizer/65367
32083 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
32084 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
32085 separately.
32086
32087 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32088
32089 PR target/65286
32090 * config/rs6000/t-linux: For powerpc64* target set
32091 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
32092
32093 2015-03-10 Richard Biener <rguenther@suse.de>
32094
32095 PR middle-end/44563
32096 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
32097 for redirect_all_calls.
32098
32099 2015-03-10 Marek Polacek <polacek@redhat.com>
32100
32101 * gdbinit.in (pcfun): Define and document.
32102
32103 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
32104
32105 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
32106 of libgomp-plugin.h.
32107 (find_target_compiler): Support a case when the path to gcc is
32108 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
32109 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
32110 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
32111 libgomp-plugin.h.
32112 (main): Use GCC_INSTALL_NAME as target_driver_name.
32113 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
32114 define.
32115 (mkoffload.o): Remove obsolete include path and defines.
32116 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
32117
32118 2015-03-10 Richard Biener <rguenther@suse.de>
32119
32120 PR middle-end/63155
32121 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32122 * tree-ssa-coalesce.c: Include timevar.h.
32123 (attempt_coalesce): Handle graph being NULL.
32124 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32125 Split out abnormal coalescing to ...
32126 (perform_abnormal_coalescing): ... this function.
32127 (coalesce_ssa_name): Perform abnormal coalescing without computing
32128 live/conflict.
32129 (verify_ssa_coalescing_worker): New function.
32130 (verify_ssa_coalescing): Likewise.
32131
32132 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32133
32134 PR target/65296
32135 * config.gcc (extra_options) [avr]: Remove.
32136 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32137 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32138 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32139
32140 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32141 (-mmcu=): Add Var and MissingArgError properties.
32142 (-march=): Remove.
32143 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32144 * config/avr/t-multilib: Regenerate.
32145 * config/avr/specs.h: New file.
32146 * config/avr/driver-avr.c: New file.
32147 * config/avr/genopt.sh: Remove file.
32148 * config/avr/avr-tables.opt: Remove file.
32149 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32150 * config/avr/avr-c.c: Same.
32151 * avr-arch.h: Same.
32152 (avr_current_device): Remove proto.
32153 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32154 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32155 (EXTRA_SPEC_FUNCTIONS): Define.
32156 (avr_devicespecs_file): New specs function proto.
32157 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32158 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32159 (avr_current_device): Remove definition and usage.
32160 (avr_set_core_architecture): New static function.
32161 (avr_option_override): Use it.
32162 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32163 (mcu_name): New static array.
32164 (comparator, avr_archs_str, avr_mcus_str): New static functions.
32165 (avr_inform_devices, avr_inform_core_architectures): New functions.
32166 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32167 (avrlibc.h) [WITH_AVRLIBC]: Include.
32168 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32169 (print_mcu): Rewrite from scratch.
32170 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32171 Forward to avr-specific specs defined in device-specs file.
32172 * config/avr/t-avr (driver-avr.o): New rule.
32173 (avr-devices.o): Depend on avr-arch.h.
32174 (avr-mcus): No more depend on avr-tables.opt.
32175 (avr-tables.opt): Remove rule.
32176 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32177
32178 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32179
32180 * c-family/c.opt (fchkp-use-wrappers): New.
32181 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32182 (chkp_wrap_function): New.
32183 (chkp_build_instrumented_fndecl): Support wrapped
32184 functions.
32185 * doc/invoke.texi (-fcheck-pointer-bounds): New.
32186 (-fchkp-check-incomplete-type): New.
32187 (-fchkp-first-field-has-own-bounds): New.
32188 (-fchkp-narrow-bounds): New.
32189 (-fchkp-narrow-to-innermost-array): New.
32190 (-fchkp-optimize): New.
32191 (-fchkp-use-fast-string-functions): New.
32192 (-fchkp-use-nochk-string-functions): New.
32193 (-fchkp-use-static-bounds): New.
32194 (-fchkp-use-static-const-bounds): New.
32195 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32196 (-fchkp-check-read): New.
32197 (-fchkp-check-write): New.
32198 (-fchkp-store-bounds): New.
32199 (-fchkp-instrument-calls): New.
32200 (-fchkp-instrument-marked-only): New.
32201 (-fchkp-use-wrappers): New.
32202 (-static-libmpx): New.
32203 (-static-libmpxwrappers): New.
32204
32205 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32206
32207 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32208 (CHKP_SPEC): Add wrappers library.
32209 * c-family/c.opt (static-libmpxwrappers): New.
32210
32211 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32212
32213 * config/i386/linux-common.h (LIBMPX_LIBS): New.
32214 (LIBMPX_SPEC): New.
32215 (CHKP_SPEC): New.
32216 * gcc.c (CHKP_SPEC): New.
32217 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32218 * c-family/c.opt (static-libmpx): New.
32219
32220 2015-03-10 Richard Biener <rguenther@suse.de>
32221
32222 PR middle-end/44563
32223 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32224 for compare_type.
32225 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32226 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32227 (cgraph_add_edge_to_call_site_hash): Likewise.
32228 (cgraph_node::get_edge): Likewise.
32229 (cgraph_edge::set_call_stmt): Likewise.
32230 (cgraph_edge::remove_caller): Likewise.
32231
32232 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
32233
32234 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32235 (callee_saved_gpr_regs_size): ... this.
32236 (callee_saved_regs_first_regno): Rename to ...
32237 (callee_saved_first_gpr_regno): ... this.
32238 (callee_saved_regs_last_regno) Rename to ...
32239 (callee_saved_last_gpr_regno): ... this.
32240 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32241 variables.
32242 (nds32_initial_elimination_offset): Likewise.
32243 (nds32_expand_prologue): Likewise.
32244 (nds32_expand_epilogue): Likewise.
32245 (nds32_expand_prologue_v3push): Likewise.
32246 (nds32_expand_epilogue_v3pop): Likewise.
32247 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32248 Adjust renamed variables.
32249 (nds32_output_stack_pop): Likewise.
32250
32251 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
32252
32253 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32254 code in comment.
32255
32256 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32257
32258 PR rtl-optimization/65321
32259 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32260 than shift mode.
32261 * var-tracking.c (use_narrower_mode): Likewise.
32262
32263 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32264
32265 PR tree-optimization/65355
32266 * varasm.c (notice_global_symbol): Do not produce RTL.
32267 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32268 anchor.
32269 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32270 check for section anchors.
32271
32272 2015-03-10 Alan Modra <amodra@gmail.com>
32273
32274 PR target/65286
32275 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32276 to be single-arch by default. Set cpu_is_64bit for powerpc64
32277 given --with-cpu=native.
32278 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32279 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32280 and powerpc64le.
32281 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32282 rs6000_isa_flags rather than TARGET_64BIT.
32283
32284 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
32285 Kaz Kojima <kkojima@gcc.gnu.org>
32286
32287 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32288
32289 2015-03-09 Jakub Jelinek <jakub@redhat.com>
32290
32291 PR lto/65361
32292 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32293 on a TREE_BINFO, instead use BINFO_TYPE.
32294
32295 2015-03-09 Richard Biener <rguenther@suse.de>
32296
32297 PR middle-end/65270
32298 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32299 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32300 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
32301 of that. When comparing dereferences compare alignment.
32302 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32303
32304 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32305
32306 * ipa-inline-analysis.c (check_callers): Check
32307 node->can_remove_if_no_direct_calls_and_refs_p.
32308 (growth_likely_positive): Reorganize to call
32309 can_remove_if_no_direct_calls_p later.
32310 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32311 will_be_removed_from_program_if_no_direct_calls_p): Add
32312 will_inline parameter.
32313 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32314 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32315 Handle inliner case correctly.
32316
32317 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32318
32319 PR tree-optimization/63743
32320 * cfgexpand.c (reorder_operands): Also reorder if only second operand
32321 had its definition forwarded by TER.
32322
32323 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32324
32325 PR lto/65316
32326 * ipa-utils.h (types_odr_comparable): Add strict argument.
32327 * ipa-devirt.c: Fix whitespace;
32328 (odr_hasher): Remove.
32329 (odr_name_hasher, odr_vtable_hasher): New hashers.
32330 (can_be_name_hashed_p): New predicate.
32331 (hash_type_name): remove.
32332 (hash_odr_name): New.
32333 (odr_name_hasher::hash): new.
32334 (can_be_vtable_hashed_p): New.
32335 (hash_odr_vtable): New.
32336 (odr_vtable_hasher::hash): New.
32337 (types_same_for_odr): Add strict parameter.
32338 (types_odr_comparable): Likewise.
32339 (odr_name_hasher::equal): New.
32340 (odr_vtable_hasher::equal): New.
32341 (odr_name_hasher::remove): New.
32342 (odr_hash_type): Change to hash_table<odr_name_hasher>.
32343 (odr_vtable_hash_type): New.
32344 (odr_vtable_hash): New.
32345 (odr_subtypes_equivalent_p): Do strict comparsion.
32346 (add_type_duplicate): Merge type names; cleanup; avoid type
32347 duplicates.
32348 (register_odr_type): Initialize vtable hash.
32349 (build_type_inheritance_graph): Likewise
32350 (get_odr_type): Reorg to use two hashes.
32351 (dump_possible_polymorphic_call_targets): Move sanity check after debug
32352 output.
32353 (ipa_devirt): Dump type_inheritance_graph.
32354 (types_same_for_odr): Add strict mode.
32355
32356 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32357
32358 PR ipa/65334
32359 * cgraph.h (symtab_node): Add definition_alignment,
32360 can_increase_alignment_p and increase_alignment.
32361 * symtab.c (symtab_node::can_increase_alignment_p,
32362 increase_alignment_1, symtab_node::increase_alignment,
32363 symtab_node::definition_alignment): New.
32364 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32365 can_increase_alignment_p.
32366 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32367 * tree-vect-stmts.c (ensure_base_align): Likewise.
32368 * varasm.c (function_section_1): Use definition_alignment.
32369 (assemble_start_function): Likewise.
32370 (emit_local): likewise.
32371 (build_constant_desc): Likewsie.
32372 (output_constant_def_contents): Likewise.
32373 (place_block_symbol): Likewise.
32374 (output_object_block): Likewise.
32375
32376 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32377
32378 PR ipa/65316
32379 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32380 when outputting debug.
32381
32382 2015-03-07 Marek Polacek <polacek@redhat.com>
32383 Martin Uecker <uecker@eecs.berkeley.edu>
32384
32385 PR sanitizer/65280
32386 * doc/invoke.texi: Update description of -fsanitize=bounds.
32387
32388 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
32389
32390 * tree-ssa-phiopt.c (neg_replacement): Remove.
32391 (tree_ssa_phiopt_worker): Remove negate optimization.
32392
32393 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32394
32395 PR ipa/65302
32396 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32397
32398 2015-03-06 Richard Biener <rguenther@suse.de>
32399
32400 PR middle-end/64928
32401 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32402 and liveout_obstack members.
32403 (calculate_live_on_exit): Remove.
32404 (calculate_live_ranges): Change declaration.
32405 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32406 (new_tree_live_info): Adjust.
32407 (calculate_live_ranges): Delete livein when not wanted.
32408 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32409 Deal with partly deleted live info.
32410 (loe_visit_block): Remove temporary bitmap by using
32411 bitmap_ior_and_compl_into.
32412 (live_worklist): Adjust accordingly.
32413 (calculate_live_on_exit): Make static.
32414 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32415 we do not need livein.
32416
32417 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
32418
32419 * real.c (real_from_string): Fix typo in assertion.
32420
32421 2015-03-06 Alex Velenko <alex.velenko@arm.com>
32422
32423 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32424 the patch.
32425
32426 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32427
32428 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32429
32430 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
32431
32432 PR target/64342
32433 * lra-assigns.c (find_hard_regno_for): Rename to
32434 find_hard_regno_for_1. Add a new parameter.
32435 (find_hard_regno_for): New function using find_hard_regno_for_1.
32436
32437 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32438
32439 PR rtl-optimization/65067
32440 * expmed.c (store_bit_field, extract_bit_field): Reworked the
32441 strict volatile bitfield handling.
32442
32443 2015-03-05 Martin Liska <mliska@suse.cz>
32444
32445 PR ipa/65318
32446 * ipa-icf.c (sem_variable::equals): Compare variables types.
32447
32448 2015-03-05 Richard Henderson <rth@redhat.com>
32449
32450 PR target/65121
32451 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32452 correctly check weak symbol binding.
32453
32454 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
32455
32456 PR middle-end/65315
32457 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32458 needed alignment.
32459
32460 2015-03-05 Martin Liska <mliska@suse.cz>
32461
32462 * ipa-inline.c (inline_small_functions): Set default value to
32463 prevent warning during bootstrap.
32464 * tree.h: Add pragma guard that ignores false positives during
32465 bootstrap.
32466
32467 2015-03-05 Richard Biener <rguenther@suse.de>
32468
32469 PR tree-optimization/65310
32470 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32471 Properly preserve alignment of the base of the access.
32472
32473 2015-03-05 Richard Biener <rguenther@suse.de>
32474
32475 PR ipa/65270
32476 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32477 Compare dependence info.
32478
32479 2015-03-05 Richard Biener <rguenther@suse.de>
32480
32481 PR middle-end/65233
32482 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32483 tree-into-ssa.h.
32484 (walk_ssa_copies): Revert last chage. Instead do not walk
32485 SSA names registered for SSA update.
32486
32487 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32488
32489 PR ipa/65270
32490 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32491 vtable references for their containing type.
32492 (sem_function::equals_wpa): Compare TYPE_RESTRICT
32493 and type attributes.
32494
32495 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
32496
32497 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32498 before negating it.
32499 * stor-layout.c (finalize_record_size): Revert latest change.
32500
32501 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
32502
32503 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32504
32505 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32506
32507 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32508 for correct comdat handling.
32509 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32510 Likewise.
32511 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32512 (used_from_object_file_p_worker): Remove.
32513 (cgraph_node::only_called_directly_or_alised): Add
32514 used_from_object_file_p.
32515 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32516 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32517 can_remove_if_no_direct_calls_and_refs_p.
32518
32519 2015-03-04 Nick Clifton <nickc@redhat.com>
32520
32521 * config/rl78/rl78.h (enum reg_class): Remove real registers from
32522 General register class.
32523 * config/rl78/rl78-real.md: Replace general register constraints
32524 with real+virtual register constraints.
32525
32526 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32527
32528 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32529 from checking for -mhtm option.
32530
32531 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32532
32533 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32534 (struct ipa_sra_check_caller_data): Add has_thunk field.
32535 (ipa_sra_check_caller): Check for thunk.
32536 (ipa_sra_preliminary_function_checks): Give up on function with
32537 thunks.
32538 (ipa_early_sra): Use call_for_symbol_and_aliases.
32539
32540 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
32541
32542 PR target/65249
32543 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32544 called for __stack_chk_guard symbol.
32545
32546 2015-03-03 DJ Delorie <dj@redhat.com>
32547
32548 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32549 inc/dec.
32550 (*addhi3_real): Likewise.
32551 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32552 pattern to match incrementing memory.
32553 * config/rl78/predicates.md (rl78_1_2_operand): New.
32554 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32555 it's the same and only mem.
32556 (rl78_alloc_physical_registers_op2): If there's effectively only
32557 one MEM, transcode it into HL.
32558 (rl78_far_p): Reject addresses that aren't legitimate.
32559
32560 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32561
32562 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32563 negating it.
32564
32565 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32566
32567 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32568
32569 Implement call0 ABI for xtensa
32570 * config/xtensa/constraints.md ("a" constraint): Include stack
32571 pointer in case of call0 ABI.
32572 ("q" constraint): Make empty in case of call0 ABI.
32573 ("D" constraint): Include stack pointer in case of call0 ABI.
32574 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32575 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32576 prototypes.
32577 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32578 variable.
32579 (xtensa_regno_to_class): Make it a local variable in the
32580 function xtensa_regno_to_class.
32581 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32582 macro, function prototype and implementation.
32583 (reg_nonleaf_alloc_order): Make it a local variable in the
32584 function order_regs_for_local_alloc.
32585 (xtensa_conditional_register_usage): New function.
32586 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32587 (xtensa_valid_move): Allow direct moves to stack pointer
32588 register in call0 ABI.
32589 (xtensa_setup_frame_addresses): Only spill register windows in
32590 windowed ABI.
32591 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32592 call0 ABI respectively.
32593 (xtensa_function_arg_1): Only mark a7 register for copying in
32594 windowed ABI.
32595 (xtensa_call_save_reg): New function.
32596 (compute_frame_size): Add space for callee saved register
32597 storage to the frame size in call0 ABI.
32598 (xtensa_expand_prologue): Generate code to set up stack frame
32599 and save callee-saved registers in call0 ABI.
32600 (xtensa_expand_epilogue): New function.
32601 (xtensa_set_return_address): New function.
32602 (xtensa_return_addr): Calculate return address in call0 ABI.
32603 (xtensa_builtin_saveregs): Only mark a7 register for copying and
32604 emit copying code in windowed ABI.
32605 (order_regs_for_local_alloc): Add preferred register allocation
32606 order for non-leaf function in call0 ABI.
32607 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32608 (xtensa_asm_trampoline_template): Add trampoline generation for
32609 call0 ABI.
32610 (xtensa_trampoline_init): Add trampoline initialization for
32611 call0 ABI.
32612 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32613 functions.
32614 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32615 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32616 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32617 ABI call-used registers.
32618 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32619 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32620 call0 ABI.
32621 (REG_CLASS_CONTENTS): Include all registers into the preferred
32622 reload registers set, adjust the set in the
32623 xtensa_conditional_register_usage.
32624 (xtensa_regno_to_class): Drop variable declaration.
32625 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32626 function.
32627 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32628 respectively.
32629 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32630 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32631 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32632 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32633 location in call0 ABI.
32634 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32635 stack adjustment size when handling exception.
32636 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32637 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32638 definitions.
32639 ("return" pattern): Generate ret.n/ret in call0 ABI.
32640 ("epilogue" pattern): Expand epilogue.
32641 ("nonlocal_goto" pattern): Use default in call0 ABI.
32642 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32643 emit eh_set_a0_* depending on ABI.
32644 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32645 ("eh_set_a0_call0", "blockage"): New patterns.
32646
32647 2015-03-03 Martin Liska <mliska@suse.cz>
32648
32649 PR ipa/65287
32650 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32651
32652 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32653
32654 PR 65138/target
32655 * config/rs6000/rs6000-tables.opt: Regenerate table.
32656
32657 2015-03-03 Renlin Li <renlin.li@arm.com>
32658
32659 * doc/md.texi (@item ^): Change ? into ^.
32660
32661 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
32662
32663 * doc/tm.texi: Regenerated.
32664
32665 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32666
32667 * builtins.c (expand_builtin_return_addr): Add
32668 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32669 surrounding #ifdef.
32670 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32671 definition to 1.
32672 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32673 Likewise.
32674 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32675 undefined.
32676 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32677 paragraph.
32678
32679 2015-03-03 Martin Jambor <mjambor@suse.cz>
32680 Eric Botcazou <ebotcazou@adacore.com>
32681
32682 * tree-sra.c (ipa_sra_check_caller_data): New type.
32683 (has_caller_p): Removed.
32684 (ipa_sra_check_caller): New function.
32685 (ipa_sra_preliminary_function_checks): Use it.
32686
32687 2015-03-03 Martin Liska <mliska@suse.cz>
32688
32689 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32690 instead of if branch.
32691
32692 2015-03-03 Martin Liska <mliska@suse.cz>
32693
32694 PR ipa/65282
32695 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32696
32697 2015-03-23 Jeff Law <law@redhat.com>
32698
32699 PR tree-optimization/65241
32700 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32701 hash table if INSERT is true.
32702
32703 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32704
32705 PR target/65296
32706 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32707
32708 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32709
32710 PR target/64331
32711 * config/avr/avr.c (context.h, tree-pass.h): Include them.
32712 (avr_pass_data_recompute_notes): New static variable.
32713 (avr_pass_recompute_notes): New class.
32714 (avr_register_passes): New static function.
32715 (avr_option_override): Call it.
32716
32717 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32718
32719 Fix various problems with specs file generation.
32720
32721 PR target/65296
32722 * config.gcc (extra_gcc_objs) [avr]: Remove.
32723 * config/avr/driver-avr.c: Remove file.
32724 * config/avr/t-avr (driver-avr.o): Remove rule.
32725 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32726 INCLUDES to build. Depend on TM_H.
32727 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
32728 build warnings. Fix non-matching types and non-existing %-codes.
32729 (tm.h): Include.
32730 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
32731 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
32732 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
32733 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
32734 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
32735 (LIBGCC_SPEC): Remove definitions.
32736
32737 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32738
32739 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
32740 to create a register in testing mode.
32741
32742 2015-03-03 Martin Liska <mliska@suse.cz>
32743 Jan Hubicka <hubicka@ucw.cz>
32744
32745 PR ipa/65263
32746 * cgraph.c (cgraph_node::has_thunk_p): New function.
32747 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
32748 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
32749 (sem_function::merge): Assert is changed.
32750
32751 2015-03-03 Martin Liska <mliska@suse.cz>
32752 Martin Jambor <mjambor@suse.cz>
32753
32754 PR ipa/65087
32755 * ipa-icf.c (sem_item_optimizer::execute): Change function
32756 return value to boolean.
32757 (sem_item_optimizer::merge_classes): Likewise.
32758 (ipa_icf_driver): Return TODO_remove_functions in case there's
32759 a merge operation processed.
32760 * ipa-icf.h: Change function return value to boolean.
32761
32762 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
32763
32764 PR 65138/target
32765 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
32766 processor type for 64-bit little endian PowerPC.
32767
32768 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
32769 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
32770 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
32771 printing built-in mask so it does not pass NULL pointers.
32772
32773 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
32774 -mcpu=powerpc64le.
32775
32776 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
32777
32778 PR target/58158
32779 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
32780 !ISA_HAS_FP_CONDMOVE.
32781
32782 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
32783
32784 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
32785 reload_completed.
32786
32787 2015-03-02 Ulrich Drepper <drepper@gmail.com>
32788
32789 * doc/invoke.texi (Options for Code Generation Conventions):
32790 Fix URL of DSO paper.
32791
32792 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32793
32794 PR ipa/65130
32795 * ipa-inline.c (check_callers): Looks for recursion.
32796 (inline_to_all_callers): Give up on uninlinable or recursive edges.
32797 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
32798 summary of inline clones.
32799 (do_estimate_growth_1): Fix recursion check.
32800
32801 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32802
32803 PR ipa/64988
32804 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
32805 comdat groups.
32806
32807 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
32808 Aldy Hernandez <aldyh@redhat.com>
32809
32810 PR lto/65276
32811 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
32812 when checking TYPE_BINFO.
32813
32814 2015-03-02 Richard Biener <rguenther@suse.de>
32815
32816 PR ipa/65270
32817 * ipa-icf-gimple.c: Include builtins.h.
32818 (func_checker::compare_memory_operand): Compare base alignment.
32819
32820 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32821
32822 PR target/65184
32823 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
32824 passed by reference.
32825
32826 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
32827
32828 PR target/65183
32829 * tree-chkp.c (chkp_check_lower): Don't check against
32830 zero bounds for already instrumented functions.
32831 (chkp_check_upper): Likewise.
32832 (chkp_fini): Clean pass local data to avoid wrong reusage.
32833
32834 2015-02-28 Martin Liska <mliska@suse.cz>
32835 Jan Hubicka <hubicka@ucw.cz>
32836
32837 * ipa-icf.c (sem_variable::equals): Improve debug output;
32838 get variable constructor.
32839 (sem_variable::parse): Do not filter out too early; give up on
32840 volatile and register vars.
32841 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
32842 variables.
32843 * ipa-icf.h (sem_variable::init): Do not set ctor.
32844 (sem_variable::ctor): Remove.
32845
32846 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
32847
32848 PR middle-end/65233
32849 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
32850
32851 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32852
32853 * ipa-icf.c: Include stor-layout.h
32854 (sem_function::compare_cgraph_references): Rename to ...
32855 (sem_item::compare_cgraph_references): ... this one.
32856 (sem_variable::equals_wpa): New function
32857 (sem_variable::equals): Do not check stuff already verified by
32858 equals_wpa.
32859 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
32860 * ipa-icf.h (sem_item): Add compare_cgraph_references.
32861 (sem_function): Remove compare_cgraph_references.
32862 (sem_variable): Turns equals_wpa into non-inline.
32863
32864 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32865
32866 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
32867 (sem_item::add_expr): New function.
32868 (sem_function::hash_stmt): Handle operands of most statements.
32869 (sem_variable::get_hash): Hash the actual constructor.
32870 * ipa-icf.h (sem_item): Add add_expr.
32871 (sem_function): Update prototype of hash_stmt
32872
32873 2015-02-28 Martin Liska <mliska@suse.cz>
32874 Jan Hubicka <hubicka@ucw.cz>
32875
32876 PR ipa/65245
32877 * ipa-icf-gimple.c (func_checker::compare_function_decl):
32878 Remove.
32879 (func_checker::compare_variable_decl): Skip symtab vars.
32880 (func_checker::compare_cst_or_decl): Update.
32881 * ipa-icf.c (sem_function::parse): Do not consider aliases.
32882 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
32883 use correct symtab predicates.
32884 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
32885 (sem_variable::parse): Update comment.
32886 (sem_item_optimizer::build_graph): Consider ultimate aliases
32887 for references.
32888
32889 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32890
32891 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
32892 of OBJ_TYPE_REF.
32893
32894 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32895
32896 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
32897 (sem_variable::merge) Likewise.
32898
32899 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32900
32901 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
32902 target; also match flag_ipa_devirt.
32903
32904 2015-03-01 Martin Liska <mliska@suse.cz>
32905 Jan Hubicka <hubicka@ucw.cz>
32906
32907 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
32908 Validate variable alignment.
32909 * ipa-icf.c (sem_function::equals_private): Be more precise
32910 about non-common function attributes.
32911 (sem_variable::equals): Likewise.
32912
32913 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32914
32915 PR ipa/65237
32916 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
32917 across COMDAT group boundary.
32918
32919 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32920
32921 PR ipa/65232
32922 * ipa-icf.c (clear_decl_rtl): New function.
32923 (sem_function::merge): Clear RTL before forming alias.
32924 (sem_variable::merge): Clear RTL before forming alias.
32925
32926 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
32927
32928 PR ipa/65236
32929 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
32930
32931 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
32932
32933 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
32934 to neon_to_gp<q>.
32935
32936 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32937
32938 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
32939 a typo in the description.
32940
32941 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32942
32943 PR target/64317
32944 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32945 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
32946 * lra-constraints.c: Include "params.h".
32947 (EBB_PROBABILITY_CUTOFF): Use
32948 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
32949 (lra_inheritance): Use '<' instead of '<=' for
32950 EBB_PROBABILITY_CUTOFF.
32951 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
32952 Document change.
32953
32954 2015-02-27 Martin Liska <mliska@suse.cz>
32955
32956 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
32957 vector length condition.
32958
32959 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
32960
32961 * doc/extend.texi (x86 transactional memory intrinsics):
32962 Reorganize discussion of _xbegin. Clarify that the return
32963 value is a bit mask. Expand example and move to end of section.
32964
32965 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32966 Aldy Hernandez <aldyh@redhat.com>
32967
32968 PR rtl-optimization/65220
32969 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
32970
32971 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
32972
32973 PR target/65032
32974 * lra-remat.c (update_scratch_ops): New.
32975 (do_remat): Call it.
32976 * lra.c (lra_register_new_scratch_op): New. Take code from ...
32977 (remove_scratches): ... here.
32978 * lra-int.h (lra_register_new_scratch_op): New prototype.
32979
32980 2015-02-27 Marek Polacek <polacek@redhat.com>
32981
32982 PR c/65040
32983 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
32984 -Wformat-signedness anymore.
32985
32986 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32987
32988 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
32989 function.
32990 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
32991
32992 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32993
32994 * config/s390/s390.c (enum s390_builtin):
32995 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
32996 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
32997 (s390_init_builtins): Generate new builtin functions.
32998 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
32999 (s390_sfpc, s390_efpc): New pattern definitions.
33000
33001 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33002
33003 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
33004 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
33005 (s390_builtin_decls): New array.
33006 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
33007 (s390_builtin_decl): New function.
33008 (TARGET_BUILTIN_DECL): Define macro.
33009
33010 2015-02-27 Richard Biener <rguenther@suse.de>
33011
33012 PR middle-end/63175
33013 * builtins.c (get_object_alignment_2): Make sure to re-apply
33014 the ANDed mask after recursing to its operand gets us a new
33015 misalignment bit position.
33016
33017 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
33018 Martin Liska <mliska@suse.cz>
33019
33020 PR bootstrap/65150
33021 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
33022 Use address_matters_p.
33023 (redirect_all_callers, set_addressable): New functions.
33024 (sem_function::merge): Reorganize and fix merging issues.
33025 (sem_variable::merge): Likewise.
33026 (sem_variable::compare_sections): Remove.
33027 * common.opt (fmerge-all-constants, fmerge-constants): Remove
33028 Optimization flag.
33029 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
33030 redirect them.
33031 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
33032 decl is used.
33033 (address_matters_1): New function.
33034 (symtab_node::address_matters_p): New function.
33035 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
33036 check for merged flag.
33037 * cgraph.h (address_matters_p): Declare.
33038 (symtab_node::address_taken_from_non_vtable_p): Remove.
33039 (symtab_node::address_can_be_compared_p): New method.
33040 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
33041 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
33042 Remove.
33043 (comdat_can_be_unshared_p_1) Use address_matters_p.
33044 (update_vtable_references): Fix formating.
33045 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
33046 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
33047 * cgraphclones.c: Preserve merged and icf_merged flags.
33048
33049 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
33050
33051 * doc/extend.texi (Function Attributes): Fix spelling and typos.
33052 (Label Attributes): Likewise.
33053 (Cilk Plus Builtins): Likewise.
33054 (ARC SIMD Built-in Functions): Likewise.
33055 (ARM C Language Extensions (ACLE)): Likewise.
33056 (PowerPC Built-in Functions): Likewise.
33057 (PowerPC Hardware Transactional Memory Built-in Functions):
33058 Likewise.
33059
33060 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33061
33062 PR tree-optimization/65216
33063 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
33064 new stmt and new SSA_NAME for lhs whenever the arguments have
33065 changed and weren't just swapped. Fix comment typo.
33066
33067 PR tree-optimization/65215
33068 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
33069 for PDP endian targets.
33070 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
33071 Fix up formatting issues.
33072 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
33073 size is smaller than the original, adjust MEM_REF offset by the
33074 difference of sizes. Use is_gimple_mem_ref_addr instead of
33075 is_gimple_min_invariant test to avoid adding address temporaries.
33076
33077 2015-02-26 Martin Liska <mliska@suse.cz>
33078 Jan Hubicka <hubicka@ucw.cz>
33079
33080 PR ipa/64693
33081 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
33082 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
33083 (sem_item_optimizer::process_cong_reduction): Include division by
33084 sensitive references.
33085 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
33086 * ipa-ref.c (ipa_ref::address_matters_p): New function.
33087 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
33088
33089 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
33090
33091 PR target/65192
33092 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
33093 Remove.
33094 * config/avr/avr.c: Same.
33095 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
33096 Refuse any constant address not in 0..0xbf.
33097 * config/avr/avr.md (*mov<mode>, *movsf): Remove
33098 tiny_valid_direct_memory_access_range from insn conditions.
33099 (mov<mode>): Don't special-case expansion of avrtiny addresses.
33100
33101 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
33102
33103 PR target/61142
33104 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
33105 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
33106 * config/sh/predicates.md (const_logical_operand): New predicate.
33107 * config/sh/sh.md: Add new peephole2 patterns.
33108
33109 2015-02-26 Marek Polacek <polacek@redhat.com>
33110
33111 PR ipa/65008
33112 * ipa-inline.c (early_inliner): Recompute inline parameters.
33113
33114 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33115
33116 PR target/65171
33117 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
33118 instructions with TImode operands are included in the analysis.
33119
33120 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33121
33122 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
33123 of an EDGE_FSM_THREAD.
33124
33125 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
33126
33127 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
33128
33129 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
33130
33131 PR debug/46102
33132 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
33133
33134 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33135
33136 PR tree-optimization/65048
33137 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33138 (thread_through_all_blocks): Call valid_jump_thread_path.
33139 Remove invalid FSM jump-thread paths.
33140
33141 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33142
33143 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33144 (ipa_write_optimization_summaries): Likewise.
33145 * tree-streamer.h: Include data-streamer.h.
33146 (streamer_mode_table): Declare extern variable.
33147 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33148 * lto-streamer-out.c (lto_output_init_mode_table,
33149 lto_write_mode_table): New functions.
33150 (produce_asm_for_decls): Call lto_write_mode_table when streaming
33151 offloading LTO.
33152 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33153 (lto_create_simple_input_block): Add mode_table argument to the
33154 lto_input_block constructors.
33155 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33156 Likewise.
33157 * data-streamer-in.c (string_for_index): Likewise.
33158 * ipa-inline-analysis.c (inline_read_section): Likewise.
33159 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33160 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33161 * lto-streamer-in.c (lto_read_body_or_constructor,
33162 lto_input_toplevel_asms): Likewise.
33163 (lto_input_mode_table): New function.
33164 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33165 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33166 Use bp_pack_machine_mode.
33167 * real.h (struct real_format): Add name field.
33168 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33169 (class lto_input_block): Add mode_table member.
33170 (lto_input_block::lto_input_block): Add mode_table_ argument,
33171 initialize mode_table.
33172 (struct lto_file_decl_data): Add mode_table field.
33173 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33174 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33175 unpack_ts_decl_common_value_fields,
33176 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33177 * tree-streamer.c (streamer_mode_table): New variable.
33178 * real.c (ieee_single_format, mips_single_format,
33179 motorola_single_format, spu_single_format, ieee_double_format,
33180 mips_double_format, motorola_double_format,
33181 ieee_extended_motorola_format, ieee_extended_intel_96_format,
33182 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33183 ibm_extended_format, mips_extended_format, ieee_quad_format,
33184 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33185 decimal_single_format, decimal_double_format, decimal_quad_format,
33186 ieee_half_format, arm_half_format, real_internal_format): Add name
33187 field.
33188 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33189
33190 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
33191
33192 PR target/65161
33193 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33194 reordering for selective scheduling.
33195
33196 2015-02-26 Terry Guo <terry.guo@arm.com>
33197
33198 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33199 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33200 (arm_arch_no_volatile_ce): Declare new global variable.
33201 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33202 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33203 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33204 (TARGET_NO_VOLATILE_CE): New macro.
33205 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33206 volatile memory access in IT block
33207
33208 2015-02-25 Kai Tietz <ktietz@redhat.com>
33209
33210 PR tree-optimization/61917
33211 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33212 that reduc_def_stmt is null.
33213
33214 2015-02-25 Martin Liska <mliska@suse.cz>
33215
33216 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33217 hard register variables.
33218
33219 2015-02-25 Kai Tietz <ktietz@redhat.com>
33220
33221 PR target/64212
33222 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33223 (symtab::noninterposable_alias): Likewise.
33224
33225 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
33226
33227 PR target/65167
33228 * config/i386/i386.c (ix86_function_arg_regno_p): Support
33229 bounds registers.
33230 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33231
33232 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
33233
33234 PR target/64997
33235 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33236 as split condition; force split via '#' in output pattern.
33237
33238 2015-02-25 Richard Biener <rguenther@suse.de>
33239 Kai Tietz <ktietz@redhat.com>
33240
33241 PR tree-optimization/61917
33242 * tree-vect-loop.c (vectorizable_reduction): Allow
33243 vect_internal_def without reduction to exit graceful.
33244
33245 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33246
33247 PR target/65196
33248 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33249 only with NONDEBUG_INSN_P.
33250
33251 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33252
33253 Use variadic macros with avr-log.c.
33254
33255 * config/avr/avr-protos.h (avr_vdump): New prototype.
33256 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33257 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33258 * config/avr/avr-log.c: Adjust comments.
33259 (avr_vdump): New function.
33260 (avr_vadump): Pass caller as 2nd argument instead of format string.
33261 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33262 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33263
33264 2015-02-25 Jakub Jelinek <jakub@redhat.com>
33265
33266 PR lto/64374
33267 * target.def (target_option_stream_in): New target hook.
33268 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33269 targetm.target_option.post_stream_in if non-NULL.
33270 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33271 * doc/tm.texi: Updated.
33272 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33273 function.
33274 (TARGET_OPTION_POST_STREAM_IN): Redefine.
33275
33276 2015-02-24 Jeff Law <law@redhat.com>
33277
33278 PR target/65117
33279 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33280 of operand 0 and operand 2.
33281 (zero_cost_loop_end, loop_end): Similarly.
33282
33283 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
33284
33285 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33286 CXX_MEM_STAT_INFO.
33287
33288 2015-02-24 DJ Delorie <dj@redhat.com>
33289
33290 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33291 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33292 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33293 instead of hardcoding SImode.
33294
33295 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
33296
33297 * omp-low.c (create_omp_child_function): Tag entrypoint
33298 functions with a special attribute.
33299
33300 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33301
33302 PR target/65058
33303 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33304
33305 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
33306
33307 PR rtl-optimization/65123
33308 * lra-remat.c (operand_to_remat): Check hard regs in insn
33309 definition too.
33310
33311 2015-02-24 Nick Clifton <nickc@redhat.com>
33312
33313 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33314 to the assembler.
33315
33316 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
33317
33318 PR libgomp/64625
33319 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33320 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33321 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33322 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33323 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33324 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33325 (BUILT_IN_GOACC_PARALLEL): Specify as
33326 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33327 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33328 * builtin-types.def
33329 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33330 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33331 Remove function types.
33332 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33333 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33334 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33335 New function types.
33336
33337 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
33338
33339 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33340
33341 2015-02-24 Jakub Jelinek <jakub@redhat.com>
33342
33343 PR tree-optimization/65170
33344 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33345 if val[1] < 0, clear also val[2] and return 3.
33346
33347 2015-02-24 Alan Modra <amodra@gmail.com>
33348
33349 PR target/65172
33350 * config/rs6000/rs6000.c (get_memref_parts): Only return true
33351 when *base is a reg. Handle nested plus addresses. Simplify
33352 pre_modify test.
33353
33354 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
33355
33356 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33357 use natural alignment when optimizing for size.
33358
33359 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
33360
33361 PR target/65153
33362 * config/sh/sh.md (movsicc_true+3): Remove peephole.
33363 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33364 * config/sh/sh.c (replace_n_hard_rtx): Remove.
33365
33366 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
33367
33368 PR fortran/63427
33369 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33370 too big for a wide_int. Implement missing wrapping operation.
33371
33372 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
33373
33374 PR target/65163
33375 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33376 instead of const_int 4294901760.
33377
33378 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
33379
33380 * config/avr/t-avr: Fix typo in comment.
33381
33382 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
33383
33384 * doc/rtl.texi (fma): Clarify documentation.
33385
33386 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
33387
33388 PR debug/58123
33389 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33390 over input_location.
33391
33392 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33393
33394 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33395 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33396 restrict alignments to absolute_biggest_alignment.
33397 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33398 Define.
33399 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33400 * doc/tm.texi: Regenerate.
33401 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33402
33403 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
33404
33405 PR target/64172
33406 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33407
33408 2015-02-20 Richard Biener <rguenther@suse.de>
33409
33410 PR tree-optimization/65136
33411 * tree-ssa-propagate.c: Include cfgloop.h.
33412 (replace_phi_args_in): Avoid replacing loop latch edge PHI
33413 arguments with constants.
33414
33415 2015-02-20 Jakub Jelinek <jakub@redhat.com>
33416 Martin Liska <mliska@suse.cz>
33417
33418 PR target/63892
33419 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33420 don't try to create_thunk if stdarg_p. If
33421 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33422 redirect_callers if possible.
33423 (sem_item_optimizer::execute): Call unregister_hooks here...
33424 (ipa_icf_driver): ... instead of here.
33425
33426 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33427
33428 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33429 Mark operand 0 as earlyclobber in 2nd alternative.
33430 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33431 Write negated shift amount into QI lowpart operand 0 and use it
33432 in the shift step.
33433 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33434
33435 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33436
33437 * cgraph.h (clone_function_name_1): Declare.
33438 * cgraphclones.c (clone_function_name_1): New function.
33439 (clone_function_name): Use it.
33440 * lto-partition.c: Include "stringpool.h".
33441 (must_not_rename, maybe_rewrite_identifier)
33442 (validize_symbol_for_target): New static functions.
33443 (privatize_symbol_name): Use must_not_rename.
33444 (promote_symbol): Call validize_symbol_for_target.
33445 (lto_promote_cross_file_statics): Likewise.
33446 (lto_promote_statics_nonwpa): Likewise.
33447
33448 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
33449
33450 PR target/64452
33451 * config/avr/avr.md (pushhi_insn): New insn.
33452 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33453
33454 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33455 Jakub Jelinek <jakub@redhat.com>
33456
33457 * tree-streamer.c (preload_common_nodes): Don't preload
33458 TI_VA_LIST* for offloading.
33459 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33460 in_lto_p.
33461
33462 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
33463
33464 * config/pa/pa.c (pa_emit_move_sequence): Always force
33465 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
33466 note on insn.
33467
33468 * config/pa/pa.c (pa_reloc_rw_mask): New function.
33469 (TARGET_ASM_RELOC_RW_MASK): Define.
33470 (pa_cannot_force_const_mem): Revert previous change.
33471
33472 2015-02-19 Martin Jambor <mjmabor@suse.cz>
33473 Jan Hubicka <hubicka@ucw.cz>
33474
33475 PR ipa/65028
33476 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33477 across jump functions.
33478
33479 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
33480
33481 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33482
33483 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
33484
33485 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33486
33487 2015-02-19 Richard Henderson <rth@redhat.com>
33488
33489 PR middle-end/65074
33490 * varasm.c (default_binds_local_p_2): Don't test node->definition;
33491 test DECL_EXTERNAL independent of symtab_node.
33492
33493 2015-02-19 Jakub Jelinek <jakub@redhat.com>
33494
33495 PR lto/65012
33496 * varpool.c (varpool_node::get_constructor): Return early
33497 if this->lto_file_data is NULL.
33498
33499 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33500
33501 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33502 (rank_for_schedule_debug): Update.
33503 (ready_sort): Make static. Move sorting logic to ...
33504 (ready_sort_debug, ready_sort_real): New static functions.
33505 (schedule_block): Sort both debug insns and real insns in preparation
33506 for ready list trimming. Improve debug output.
33507 * sched-int.h (ready_sort): Remove global declaration.
33508
33509 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
33510
33511 * ipa-icf.c (sem_function::equals_private): Adjust.
33512 (sem_function::bb_dict_test): Take a vec<int> * instead of
33513 auto_vec<int>.
33514 * ipa-icf.h (bb_dict_test): Likewise.
33515
33516 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33517
33518 PR gcov-profile/64634
33519 * tree-eh.c (frob_into_branch_around): Fix up typos
33520 in function comment.
33521 (lower_catch): Put eh_seq resulting from EH lowering of
33522 the cleanup sequence after the cleanup rather than before it.
33523
33524 2015-02-18 Tom de Vries <tom@codesourcery.com>
33525
33526 * common.opt (fstdarg-opt): New option.
33527 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33528 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33529 (@item -fstdarg-opt): New item.
33530
33531 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
33532
33533 PR target/65064
33534 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33535 for common symbols.
33536
33537 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33538
33539 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33540 insn-modes.h.
33541 (ALL_HOST_OBJS): Add mkoffload.o.
33542 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33543
33544 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
33545
33546 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33547 (compare_virtual_tables): Be smarter about skipping typeinfos;
33548 do sane output on virtual table table mismatch.
33549 (warn_odr): Be ready for forward declarations of enums;
33550 output sane info on base mismatch and virtual table mismatch.
33551 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33552 when only one type is polymorphic.
33553 (get_odr_type): Fix hashtable corruption.
33554 (dump_odr_type): Dump mangled names.
33555
33556 2015-02-18 Richard Biener <rguenther@suse.de>
33557
33558 PR tree-optimization/65063
33559 * tree-predcom.c (determine_unroll_factor): Return 1 if we
33560 have replaced looparound PHIs.
33561
33562 2015-02-18 Martin Liska <mliska@suse.cz>
33563
33564 * lto-streamer.c (lto_streamer_init): Encapsulate
33565 streamer_check_handled_ts_structures with checking macro.
33566
33567 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33568
33569 PR ipa/65087
33570 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33571 section if !implicit_section.
33572 (cgraph_node::create_version_clone_with_body): Likewise.
33573 * trans-mem.c (ipa_tm_create_version): Likewise.
33574
33575 2015-02-18 Richard Biener <rguenther@suse.de>
33576
33577 PR tree-optimization/62217
33578 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33579 into BIVs.
33580
33581 2015-02-18 Marek Polacek <polacek@redhat.com>
33582
33583 PR sanitizer/65081
33584 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33585 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33586 is in range [-16K, -1]. Don't issue run-time error if
33587 (ptr > ptr + offset).
33588
33589 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
33590
33591 * doc/install.texi (nvptx-*-none): New section.
33592 * doc/invoke.texi (Nvidia PTX Options): Likewise.
33593 * config/nvptx/nvptx.opt: Update.
33594
33595 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33596 (access_check): New functions, copied from
33597 config/i386/intelmic-mkoffload.c.
33598 (main): For non-installed testing, look in all COMPILER_PATHs for
33599 GCC_INSTALL_NAME.
33600
33601 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33602
33603 2015-02-18 Andrew Pinski <apinski@cavium.com>
33604 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33605
33606 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33607 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33608
33609 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33610
33611 * ipa-visibility.c (function_and_variable_visibility): Only
33612 check locality if node is not already local.
33613 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33614 call_for_symbol_and_aliases instead of
33615 call_for_symbol_thunks_and_aliases.
33616 (ipa_inline): Likewise.
33617 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33618 first walk aliases.
33619 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33620 call_for_symbol_and_aliases.
33621 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33622 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33623 (ipa_propagate_frequency): Update.
33624 (ipa_profile): Add opt_for_fn gueards.
33625
33626 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33627
33628 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33629 * doc/invoke.texi (SH options): Document it.
33630 * config/sh/sh.c (sh_insn_length_adjustment): Check
33631 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33632
33633 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
33634
33635 * common.opt (fipa-cp-alignment): New.
33636 * ipa-cp.c (ipcp_store_alignment_results): Check
33637 flag_ipa_cp_alignment.
33638 * opts.c (default_options_table): Enable -fipa-cp-alignment for
33639 -O2.
33640 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33641 * doc/invoke.texi: Document -fipa-cp-alignment.
33642
33643 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33644
33645 PR target/64793
33646 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33647 to nil. Adjust comments.
33648
33649 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33650
33651 * ipa-visibility.c (function_and_variable_visibility): Only
33652 check locality if node is not already local.
33653 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33654 call_for_symbol_and_aliases instead of
33655 call_for_symbol_thunks_and_aliases.
33656 (ipa_inline): Likewise.
33657 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33658 first walk aliases.
33659 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33660 call_for_symbol_and_aliases.
33661 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33662 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33663 (ipa_propagate_frequency): Update.
33664 (ipa_profile): Add opt_for_fn guards.
33665
33666 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
33667
33668 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33669 skipping of "strange" tokens.
33670
33671 2015-02-17 Jeff Law <law@redhat.com>
33672
33673 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
33674 obsolete comment.
33675
33676 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
33677
33678 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33679 as forcing a HARD_DEP between instructions, thereby
33680 disallowing rewriting to break dependencies.
33681
33682 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33683
33684 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33685 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33686 variables in boundary that have no inlitalizer encoded and are
33687 not aliases.
33688 * varasm.c (default_binds_local_p_2): External definitions do not
33689 count as definitions here.
33690
33691 2015-02-16 Jeff Law <law@redhat.com>
33692
33693 PR tree-optimization/64823
33694 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33695 statements.
33696 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33697 threading through blocks with PHIs, but no statements.
33698 (thread_through_normal_block): Distinguish between blocks where
33699 we did not process all the statements and blocks with no statements.
33700
33701 2015-02-16 Jakub Jelinek <jakub@redhat.com>
33702 James Greenhalgh <james.greenhalgh@arm.com>
33703
33704 PR ipa/64963
33705 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33706 section if not linkonce. Fix up formatting.
33707 (cgraph_node::create_version_clone_with_body): Copy section.
33708 * trans-mem.c (ipa_tm_create_version): Likewise.
33709
33710 2015-02-16 Richard Biener <rguenther@suse.de>
33711
33712 PR tree-optimization/65077
33713 * tree-ssa-structalias.c (get_constraint_for_1): Handle
33714 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33715 (find_func_aliases): Allow float values to carry pointers again.
33716
33717 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
33718
33719 * doc/install.texi (Specific): Reorder targets list to put
33720 aarch64 in alphabetical order. Add a link to aarch64*-*-*
33721 from the top menu.
33722
33723 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33724 David Edelsohn <dje.gcc@gmail.com>
33725
33726 PR target/65058
33727 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33728 mapping class to external variable or function reference.
33729 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
33730 mapping class.
33731
33732 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
33733
33734 PR target/53348
33735 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
33736 ASM_WEAKEN_DECL if defined.
33737
33738 2015-02-16 Richard Biener <rguenther@suse.de>
33739
33740 PR lto/65015
33741 * varasm.c (default_file_start): For LTO produced units
33742 emit <artificial> as file directive.
33743
33744 2015-02-16 Richard Biener <rguenther@suse.de>
33745
33746 PR tree-optimization/63593
33747 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
33748 stmts and releasing SSA names until...
33749 (execute_pred_commoning): ... after processing all chains.
33750
33751 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33752
33753 PR ipa/65059
33754 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
33755 external functions.
33756
33757 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
33758
33759 * doc/bugreport.texi: Adjust section titles throughout the file
33760 to use "Title Case".
33761 * doc/extend.texi: Likewise.
33762 * doc/gcov.texi: Likewise.
33763 * doc/implement-c.texi: Likewise.
33764 * doc/implement-cxx.texi: Likewise.
33765 * doc/invoke.texi: Likewise.
33766 * doc/objc.texi: Likewise.
33767 * doc/standards.texi: Likewise.
33768 * doc/trouble.texi: Likewise.
33769
33770 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
33771
33772 * cgraph.h (symtab_node::has_aliases_p): Simplify.
33773 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
33774 * tree.c (lookup_binfo_at_offset): Make static.
33775 (get_binfo_at_offset): Do not shadow offset; add explanatory
33776 comment.
33777
33778 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
33779
33780 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
33781 for all floading point loads and stores except those using a register
33782 index address.
33783 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
33784 to a register.
33785
33786 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33787
33788 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
33789 (do_estimate_growth_1): Record if any uninlinable edge was seen.
33790 (estimate_growth): Handle uninlinable edges correctly.
33791 (check_callers): New.
33792 (growth_likely_positive): Handle aliases correctly.
33793
33794 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
33795
33796 * ipa-chkp.c: Use iterate_direct_aliases.
33797 * symtab.c (resolution_used_from_other_file_p): Move inline.
33798 (symtab_node::create_reference): Fix formating.
33799 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33800 (symtab_node::iterate_reference): Move inline.
33801 (symtab_node::iterate_referring): Move inline.
33802 (symtab_node::iterate_direct_aliases): Move inline.
33803 (symtab_node::used_from_object_file_p_worker): Inline into ...
33804 (symtab_node::used_from_object_file_p): ... this one; move inline.
33805 (symtab_node::call_for_symbol_and_aliases): Move inline;
33806 use iterate_direct_aliases.
33807 (symtab_node::call_for_symbol_and_aliases_1): New method.
33808 (cgraph_node::call_for_symbol_and_aliases): Move inline;
33809 use iterate_direct_aliases.
33810 (cgraph_node::call_for_symbol_and_aliases_1): New method.
33811 (varpool_node::call_for_node_and_aliases): Rename to ...
33812 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
33813 use iterate_direct_aliases.
33814 (varpool_node::call_for_symbol_and_aliases_1): New method.
33815 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
33816 (ipa_discover_readonly_nonaddressable_var): Update.
33817 * ipa-devirt.c: Fix formating.
33818 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
33819 Move inline.
33820 (cgraph_node::call_for_symbol_and_aliases): Move inline.
33821 (cgraph_node::call_for_symbol_and_aliases_1): New function..
33822 * cgraph.h (used_from_object_file_p_worker): Remove.
33823 (resolution_used_from_other_file_p): Move inline.
33824 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
33825 (symtab_node::iterate_reference): Move inline.
33826 (symtab_node::iterate_referring): Move inline.
33827 (symtab_node::iterate_direct_aliases): Move inline.
33828 (symtab_node::used_from_object_file_p_worker): Inline into ...
33829 (symtab_node::used_from_object_file_p): Move inline.
33830 * tree-emutls.c (ipa_lower_emutls): Update.
33831 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
33832 (varpool_node::call_for_node_and_aliases): Remove.
33833
33834 2015-02-14 Jakub Jelinek <jakub@redhat.com>
33835
33836 PR tree-optimization/62209
33837 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
33838 op == range->exp, insert seq and gimplified code after labels
33839 instead of after the phi.
33840
33841 2015-02-13 Jeff Law <law@redhat.com>
33842
33843 PR bootstrap/65060
33844 Revert my change for tree-optimization/64823.
33845
33846 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33847
33848 PR tree-optimization/65053
33849 * tree-ssa-phiopt.c (value_replacement): When moving assign before
33850 cond, either reset VR on lhs or set it to phi result VR.
33851
33852 2015-02-13 Jeff Law <law@redhat.com>
33853
33854 PR tree-optimization/64823
33855 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
33856 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33857 threading through blocks with PHIs, but no statements.
33858 (thread_through_normal_block): Distinguish between blocks where
33859 we did not process all the statements and blocks with no statements.
33860
33861 PR rtl-optimization/47477
33862 * match.pd (convert (plus/minus (convert @0) (convert @1): New
33863 simplifier to narrow arithmetic.
33864
33865 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
33866
33867 PR ipa/65028
33868 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
33869 polymorphic call info when type is not known to be preserved.
33870
33871 2015-02-13 Maritn Jambor <mjambor@suse.cz>
33872
33873 PR ipa/65028
33874 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
33875 (inline_call): Use it.
33876
33877 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
33878
33879 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
33880 GOMP_DEVICE_NVIDIA_PTX.
33881
33882 2015-02-13 Jakub Jelinek <jakub@redhat.com>
33883
33884 PR ipa/65034
33885 * stmt.c (emit_case_nodes): Use void_type_node instead of
33886 NULL_TREE as LABEL_DECL type.
33887
33888 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
33889
33890 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
33891 constraints.
33892 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
33893 symbolic references to data to be forced to constant memory on the
33894 SOM target.
33895
33896 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
33897
33898 PR tree-optimization/65002
33899 * tree-cfg.c (pass_data_fixup_cfg): Don't update
33900 SSA on start.
33901 * tree-sra.c (some_callers_have_no_vuse_p): New.
33902 (ipa_early_sra): Reject functions whose callers
33903 assume function is read only.
33904
33905 2015-02-13 Richard Biener <rguenther@suse.de>
33906
33907 PR lto/65015
33908 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
33909 for LTO produced CUs.
33910
33911 2015-02-13 Bin Cheng <bin.cheng@arm.com>
33912
33913 PR tree-optimization/64705
33914 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
33915 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
33916 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
33917 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
33918 expand_simple_operations.
33919
33920 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
33921 Richard Henderson <rth@redhat.com>
33922
33923 PR rtl/32219
33924 * cgraphunit.c (cgraph_node::finalize_function): Set definition
33925 before notice_global_symbol.
33926 (varpool_node::finalize_decl): Likewise.
33927 * varasm.c (default_binds_local_p_2): Rename from
33928 default_binds_local_p_1, add weak_dominate argument. Use direct
33929 returns instead of assigning to local variable. Unify varpool and
33930 cgraph paths via symtab_node. Reject undef weak variables before
33931 testing visibility. Reorder tests for simplicity.
33932 (default_binds_local_p): Use default_binds_local_p_2.
33933 (default_binds_local_p_1): Likewise.
33934 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
33935 via symtab_node.
33936 (default_elf_asm_output_external): Emit visibility when specified.
33937
33938 2015-02-13 Alan Modra <amodra@gmail.com>
33939
33940 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
33941 code setting up r11 for out-of-line fp restore.
33942
33943 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
33944
33945 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
33946 (muser-mode): Likewise.
33947
33948 2015-02-13 Alan Modra <amodra@gmail.com>
33949
33950 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
33951 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
33952
33953 2015-02-12 David Howells <dhowells@redhat.com>
33954
33955 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
33956 warning.
33957 * tree-ssa-uninit.c (dump_predicates): Likewise.
33958 * opts.c (print_filtered_help): Likewise.
33959
33960 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33961
33962 * dwarf2out.c (output_die): Use "%s", name instead of name to
33963 avoid -Wformat-security warning.
33964
33965 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
33966 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33967 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
33968 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
33969
33970 2015-02-12 Jason Merrill <jason@redhat.com>
33971
33972 * common.opt (-flifetime-dse): New.
33973
33974 2015-02-12 Jakub Jelinek <jakub@redhat.com>
33975
33976 PR sanitizer/65019
33977 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
33978
33979 PR tree-optimization/65014
33980 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
33981 use original second operand of arg0 or arg1 instead of
33982 that adjusted by STRIP_NOPS.
33983
33984 2015-02-11 Jeff Law <law@redhat.com>
33985
33986 PR target/63347
33987 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
33988 that needs to be queued, just queue it for a single cycle.
33989
33990 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
33991
33992 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
33993 bodies of thunks; comment on why.
33994 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
33995 symbols are extern.
33996
33997 2015-02-11 Richard Henderson <rth@redhat.com>
33998
33999 PR sanitize/65000
34000 * tree-eh.c (mark_reachable_handlers): Mark source and destination
34001 regions of __builtin_eh_copy_values.
34002
34003 2015-02-11 Jakub Jelinek <jakub@redhat.com>
34004
34005 PR middle-end/65003
34006 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
34007 ultimate alias is MEM with SYMBOL_REF satisfying
34008 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
34009 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
34010
34011 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
34012
34013 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
34014 "diagnostic-core.h".
34015 (main): Initialize progname, and call diagnostic_initialize.
34016
34017 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
34018 instead of __OPENMP_TARGET__.
34019
34020 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
34021 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
34022 hard-coding PTX_ID.
34023
34024 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
34025
34026 * doc/sourcebuild.texi (pie_enabled): Document.
34027
34028 2015-02-11 Martin Liska <mliska@suse.cz>
34029
34030 PR ipa/64813
34031 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
34032 a return value for call to a function that is noreturn.
34033
34034 2015-02-11 Richard Biener <rguenther@suse.de>
34035
34036 PR lto/65015
34037 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
34038 and -fresolution.
34039
34040 2015-02-11 Andrew Pinski <apinski@cavium.com>
34041
34042 PR target/64893
34043 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
34044 Change the first argument type to size_type_node and add another
34045 size_type_node.
34046 (aarch64_simd_expand_builtin): Handle the new argument to
34047 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
34048 print an out when the first two arguments are not
34049 nonzero integer constants.
34050 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
34051 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
34052
34053 2015-02-11 Jakub Jelinek <jakub@redhat.com>
34054
34055 PR target/61925
34056 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
34057 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
34058 (ix86_set_current_function): Rewritten.
34059 (ix86_add_new_builtins): Temporarily clear current_target_pragma
34060 when creating builtin fndecls.
34061
34062 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34063
34064 PR ipa/65005
34065 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
34066 function.
34067 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
34068 have no comdat group.
34069 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
34070 (lto_output_varpool_node): Always output alias info.
34071 (output_refs): Output refs of boundary aliases, too.
34072 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
34073 (output_symtab): Output call eges in thunks in boundary.
34074 (get_alias_symbol): Remove.
34075 (input_node, input_varpool_node): Do not special case weakrefs.
34076 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
34077 alias and thunks targets in the boundary; do not take removed symbols
34078 from their comdat groups.
34079 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
34080 (cgraph_node::global_info): Remove.
34081 (cgraph_node::rtl_info): Look through aliases and thunks.
34082 * cgrpah.h (global_info): Remove.
34083 (non_local_p): Remove.
34084
34085 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34086 Sandra Loosemore <sandra@codesourcery.com>
34087
34088 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
34089 to inline asm. List dialects in proper order.
34090
34091 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34092 Sandra Loosemore <sandra@codesourcery.com>
34093
34094 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
34095
34096 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34097
34098 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
34099 modified) reference to Solaris.
34100
34101 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
34102
34103 * doc/extend.texi (Extended Asm): Fix typos.
34104
34105 2015-02-10 Jakub Jelinek <jakub@redhat.com>
34106
34107 PR sanitizer/65004
34108 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
34109
34110 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
34111
34112 PR target/64661
34113 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
34114 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
34115 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
34116 * config/sh/constraints.md (Ara, Add): New constraints.
34117 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
34118 predicates.
34119 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
34120 atomic_mem_operand_0. Don't use force_reg on the memory address.
34121 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
34122 Sra constraint. Convert to insn_and_split. Add workaround for
34123 PR 64974.
34124 (atomic_compare_and_swap<mode>_hard): Copy to
34125 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
34126 Use atomic_mem_operand_0 predicate.
34127 (atomic_compare_and_swap<mode>_soft_gusa,
34128 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
34129 AraAdd constraints.
34130 (atomic_compare_and_swap<mode>_soft_tcb,
34131 atomic_compare_and_swap<mode>_soft_imask,
34132 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
34133 atomic_mem_operand_0 predicate and SraSdd constraints.
34134 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34135 constraint.
34136 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34137 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
34138 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34139 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
34140 force_reg on the memory address.
34141 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34142 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34143 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34144 atomic_mem_operand_1 predicate and Sra constraint.
34145 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34146 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34147 Use atomic_mem_operand_1 predicate.
34148 (atomic_<fetchop_name><mode>_hard): Copy to
34149 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34150 Use atomic_mem_operand_1 predicate.
34151 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34152 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34153 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
34154 insn_and_split. Use atomic_mem_operand_1 predicate.
34155 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34156 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
34157 Use atomic_mem_operand_1 predicate.
34158 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34159 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34160 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34161 in generated insn with original mem operand before emitting the insn.
34162 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34163 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34164 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34165 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34166 Use atomic_mem_operand_1 predicate and AraAdd constraints.
34167 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34168 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34169 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34170 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34171 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34172 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34173 atomic_not_fetch<mode>_soft_tcb,
34174 atomic_<fetchop_name>_fetch<mode>_soft_imask,
34175 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34176 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34177 Use atomic_mem_operand_1 predicate and SraSdd constraints.
34178
34179 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
34180
34181 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34182 and 3 earlyclobber operands.
34183
34184 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34185
34186 * common.opt (fstack-reuse): Mark as optimization.
34187
34188 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34189
34190 PR ipa/64982
34191 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34192
34193 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
34194
34195 PR tree-optimization/64326
34196 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34197
34198 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
34199
34200 PR gcov-profile/61889
34201 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34202
34203 2015-02-10 Richard Biener <rguenther@suse.de>
34204
34205 PR tree-optimization/64995
34206 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34207 value we use is final.
34208 (visit_reference_op_store): Always valueize op.
34209 (visit_use): Properly valueize vuses.
34210
34211 2015-02-10 Richard Biener <rguenther@suse.de>
34212
34213 PR tree-optimization/64909
34214 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34215 pass a scalar-stmt count estimate to the cost model.
34216 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34217
34218 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
34219
34220 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34221 enabled by default together with var-tracking.
34222
34223 2015-02-10 Nick Clifton <nickc@redhat.com>
34224
34225 * config/rl78/rl78.c: Remove DIV attribute code accidentally
34226 included in previous rl78 commit.
34227
34228 2015-02-10 Richard Biener <rguenther@suse.de>
34229
34230 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34231 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34232 return the bitpack.
34233
34234 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34235
34236 PR gcov-profile/61889
34237 * config.in: regenerate.
34238 * configure.in: Likewise.
34239 * configure.ac: Check for ftw.h.
34240 * gcov-tool.c: Check for ftw.h before using nftw.
34241
34242 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34243
34244 PR lto/64076
34245 * ipa-visibility.c (update_visibility_by_resolution_info): Only
34246 assert when not in lto mode.
34247
34248 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34249
34250 * ira-color.c (setup_left_conflict_sizes_p): Simplify
34251 initialization/assignment of conflict_size.
34252
34253 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
34254
34255 PR ipa/64978
34256 * ipa-cp.c (gather_caller_stats): Skip thunks.
34257 (propagate_constants_topo): Skip aliases.
34258
34259 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
34260
34261 PR target/64761
34262 * config/sh/sh.c (sh_option_override): Don't change
34263 -freorder-blocks-and-partition to -freorder-blocks even when
34264 unwinding is enabled.
34265 (sh_can_follow_jump): Return false if the followee jump is
34266 a crossing jump when -freorder-blocks-and-partition is specified.
34267 * config/sh/sh.md (*jump_compact_crossing): New insn.
34268
34269 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
34270 Kaz Kojima <kkojima@gcc.gnu.org>
34271
34272 PR target/64761
34273 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34274 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34275 (sh_can_redirect_branch): Rename to ...
34276 (sh_can_follow_jump): ... this. Constify argument types.
34277 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34278 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34279 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34280 * doc/tm.texi: Regenerate.
34281
34282 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34283
34284 PR sanitizer/64981
34285 * builtins.c (expand_builtin): Call targetm.expand_builtin
34286 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34287
34288 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34289
34290 PR ipa/61548
34291 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34292
34293 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34294
34295 PR ipa/63566
34296 * ipa-icf.c (set_local): New function.
34297 (sem_function::merge): Use it.
34298
34299 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34300
34301 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34302 (add_type_duplicate): Fix comparison of BINFOs.
34303
34304 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34305
34306 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34307 on getting VOID pointer.
34308
34309 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34310
34311 PR target/64979
34312 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34313 va_list escapes.
34314
34315 2015-02-09 Richard Biener <rguenther@suse.de>
34316
34317 * genmatch.c (replace_id): Copy expr_type.
34318
34319 2015-02-09 Richard Biener <rguenther@suse.de>
34320
34321 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34322 (streamer_write_tree_bitfields): Declare.
34323 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34324 properly unpack padding.
34325 (unpack_value_fields): Inline ...
34326 (streamer_read_tree_bitfields): ... here.
34327 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34328 and properly add padding bits.
34329 (streamer_pack_tree_bitfields): Fold into ...
34330 (streamer_write_tree_bitfields): ... this new function,
34331 exposing the bitpack object.
34332 * lto-streamer-out.c (lto_write_tree_1): Call
34333 streamer_write_tree_bitfields.
34334
34335 2015-02-09 Richard Biener <rguenther@suse.de>
34336
34337 PR tree-optimization/54000
34338 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34339 (struct ivopts_data): Add loop_loc member.
34340 (tree_ssa_iv_optimize_loop): Dump loop location.
34341 (create_new_ivs): Likewise, also dump number of IVs generated.
34342
34343 2015-02-09 Martin Liska <mliska@suse.cz>
34344
34345 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34346 just if not yet registered.
34347 (ipa_icf_generate_summary): Register callgraph hooks.
34348
34349 2015-02-08 Andrew Pinski <apinski@cavium.com>
34350
34351 * config/aarch64/aarch64.c (gty_dummy): Delete.
34352
34353 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34354
34355 PR ipa/63566
34356 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34357 (cgraph_node::local_p): Remove thunk related FIXME.
34358
34359 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34360
34361 PR ipa/63566
34362 * i386.c (ix86_function_regparm): Look through aliases to see if callee
34363 is local and optimized.
34364 (ix86_function_sseregparm): Likewise; also use target's SSE math
34365 settings; error out instead of silently generating wrong code
34366 on mismatches.
34367 (init_cumulative_args): Look through aliases.
34368
34369 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34370
34371 PR ipa/63566
34372 * ipa-split.c (execute_split_functions): Split if function has aliases.
34373
34374 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34375
34376 PR ipa/63566
34377 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34378 aliases before trying to expand it.
34379 (cgraph_node::expand_thunk): Fix formating.
34380
34381 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
34382
34383 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34384 (Using Assembly Language with C): Expand introduction.
34385 (Basic Asm): Copy-edit. Add more information about uses of
34386 basic asm.
34387 (Extended Asm): Copy-edit. Document new escape syntax and
34388 %l[label] syntax.
34389 (Global Reg Vars): Copy-edit.
34390 (Local Reg Vars): Likewise.
34391
34392 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
34393
34394 PR debug/2714
34395 PR bootstrap/64256
34396 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34397 (DBX_CONTIN_CHAR): Define.
34398
34399 2015-02-06 Sebastian Pop <s.pop@samsung.com>
34400 Brian Rzycki <b.rzycki@samsung.com>
34401
34402 PR tree-optimization/64878
34403 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34404 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34405 Stop recursion at loop phi nodes after having visited a loop phi node.
34406
34407 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34408
34409 * toplev.c (process_options): Change flag_ipa_ra before creating
34410 optimization_{default,current}_node.
34411
34412 PR ipa/64896
34413 * cgraphunit.c (cgraph_node::expand_thunk): If
34414 restype is not is_gimple_reg_type nor the thunk_fndecl
34415 returns aggregate_value_p, set restmp to a temporary variable
34416 instead of resdecl.
34417
34418 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
34419
34420 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34421
34422 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34423
34424 PR target/64205
34425 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34426 add a general secondary reload handler for SDmode, unless we have
34427 both read/write support for SDmode.
34428
34429 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34430
34431 PR middle-end/64937
34432 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34433 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34434 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34435 1 before, push it to abstract_vec.
34436 (dwarf2out_abstract_function): Adjust caller. Don't call
34437 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34438 DECL_ABSTRACT_P flags for all abstract_vec elts.
34439
34440 2015-02-06 Renlin Li <renlin.li@arm.com>
34441
34442 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34443 complex gimple.
34444 * tree-ssa.c (execute_update_addresses_taken): Likewise.
34445
34446 2015-02-06 Jeff Law <law@redhat.com>
34447
34448 PR target/64889
34449 * config/h8300/h8300.c (push): New argument "in_prologue".
34450 Pass "in_prologue" along to "F".
34451 (h8300_push_pop): Corresponding changes.
34452 (h8300_expand_prologue): Likewise.
34453 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
34454
34455 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34456
34457 PR rtl-optimization/64957
34458 PR debug/64817
34459 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34460 IOR rather than for AND.
34461
34462 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
34463
34464 PR target/62631
34465 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34466 of shift-add and (add + shift) operations. Rename local variable.
34467
34468 2015-02-05 Jeff Law <law@redhat.com>
34469
34470 PR target/17306
34471 * config/h8300/constraints.md (U): Correctly dectect
34472 "eightbit_data" memory addresses.
34473 * config/h8300/h8300.c (eightbit_constant_address_p): Also
34474 handle (const (plus (symbol_ref (x)))) where x is declared
34475 as an 8-bit data memory address.
34476 * config/h8300/h8300.md (call, call_value): Correctly detect
34477 "funcvec" functions.
34478
34479 PR target/43264
34480 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34481 24 to 28 bits for the H8/300.
34482
34483 2015-02-06 Alan Modra <amodra@gmail.com>
34484
34485 PR target/64876
34486 * config/rs6000/rs6000.c (chain_already_loaded): New function.
34487 (rs6000_call_aix): Use it.
34488
34489 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
34490
34491 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34492 check.
34493
34494 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
34495
34496 * config/h8300/constraints.md ("U" constraint): Use strict
34497 variant of REG_OK_FOR_BASE_P after reload has started.
34498
34499 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
34500
34501 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34502 define to zero if !TARGET_NEON.
34503 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34504
34505 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34506 Trevor Saunders <tsaunders@mozilla.com>
34507
34508 PR ipa/61548
34509 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34510
34511 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34512
34513 PR ipa/61548
34514 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34515 when removing varpool nodes.
34516
34517 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34518
34519 PR ipa/61548
34520 * varpool.c (varpool_node::remove): Fix order of variables.
34521
34522 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34523
34524 PR ipa/64686
34525 * ipa-inline.c (inline_small_functions): Fix ordering issue between
34526 speculation resolution and key updates.
34527
34528 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34529
34530 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34531 about not letting any speculative edges unupdated.
34532
34533 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34534
34535 PR gcov/64123
34536 * gcov-io.c (gcov_var): Export.
34537
34538 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34539
34540 PR middle-end/64922
34541 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34542 edges that become speculative.
34543
34544 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34545
34546 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34547 or DW_LANG_Fortran08.
34548 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34549 DW_LANG_Fortran08.
34550 (gen_compile_unit_die): Handle "GNU Fortran2003" and
34551 "GNU Fortran2008" language strings.
34552 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34553 * langhooks.h (lang_GNU_Fortran): New prototype.
34554 * langhooks.c (lang_GNU_Fortran): New function.
34555 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34556 lang_GNU_Fortran.
34557
34558 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34559
34560 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34561 (RTX_OK_FOR_OLO10_P): Likewise.
34562
34563 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34564
34565 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34566
34567 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34568
34569 PR middle-end/64922
34570 * gimple.c: Include gimple-ssa.h.
34571 (maybe_remove_unused_call_args): New function.
34572 * gimple.h (maybe_remove_unused_call_args): Declare.
34573 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34574 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34575 * gimple-fold.c (gimple_fold_call): Likewise.
34576
34577 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
34578
34579 PR rtl-optimization/64905
34580 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34581 pointer alignment if it isn't needed.
34582
34583 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34584
34585 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34586 cortex-a72.cortex-a53.
34587 * config/aarch64/aarch64-tune.md: Regenerate.
34588 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34589
34590 2015-02-04 Nick Clifton <nickc@redhat.com>
34591
34592 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34593 inside a MEM.
34594
34595 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34596
34597 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34598 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34599 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34600 of DEF_BUILTIN.
34601 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34602 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34603 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34604 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34605 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34606 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34607 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34608 * tree-core.h (enum built_in_function): In between
34609 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34610 for builtins that use DEF_BUILTIN_CHKP macro.
34611
34612 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
34613
34614 PR debug/64817
34615 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34616 operands for tcc_comparison exprs. Fix typos.
34617
34618 PR debug/64817
34619 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34620 of two XORs that have an intervening AND or IOR.
34621
34622 PR debug/64817
34623 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34624 simplification of XOR of AND to not allocate new rtx before
34625 committing to a simplification.
34626
34627 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34628
34629 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34630 manual swaps in all peepholes.
34631
34632 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34633
34634 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34635 of manual swapping implementation.
34636 (aarch64_expand_vec_perm_const_1): Likewise.
34637
34638 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
34639
34640 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34641 (generic_addrcost_table): Remove NAMED_PARAM.
34642 (cortexa57_addrcost_table): Likewise.
34643 (xgene1_addrcost_table): Likewise.
34644 (generic_regmove_table): Likewise.
34645 (cortexa53_regmove_table): Likewise.
34646 (xgene1_regmove_table): Likewise.
34647 (generic_vector_table): Likewise.
34648 (cortexa57_vector_table): Likewise.
34649 (xgene1_vector_table): Likewise.
34650 (generic_tunings): Likewise.
34651 (cortexa53_tunings): Likewise.
34652 (cortexa57_tunings): Likewise.
34653 (xgene1_tunings): Likewise.
34654
34655 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34656
34657 * config/arm/arm-cores.def: Add cortex-a72 and
34658 cortex-a72.cortex-a53.
34659 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34660 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34661 * config/arm/arm-tune.md: Regenerate.
34662 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34663 "cortex-a72.cortex-a53".
34664 * doc/invoke.texi (ARM Options/-mtune): Likewise.
34665
34666 2015-02-04 Nick Clifton <nickc@redhat.com>
34667
34668 PR target/64408
34669 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34670 of accepted codes.
34671 (nonimmediate_di_operand): Likewise.
34672
34673 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34674 prefixes of known F5 using MSP430 MCUs.
34675
34676 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34677
34678 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34679 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34680 instead of __builtin_sqrt.
34681
34682 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
34683
34684 * varasm.c (do_assemble_alias): Follow transparent alias
34685 chain for target.
34686 (default_assemble_visibility): Follow transparent alias
34687 chain for decl name.
34688
34689 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34690
34691 PR middle-end/62103
34692 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34693 to compute size of referenced value in the constant case.
34694
34695 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34696
34697 PR rtl-optimization/64756
34698 * cse.c (invalidate_dest): New function.
34699 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
34700 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34701 invalidate and do not record it.
34702
34703 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34704
34705 PR target/64660
34706 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34707 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34708 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34709 atomic_nand<mode>_soft_tcb): New insns.
34710 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34711 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34712 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34713 Split into atomic_not_fetchsi_hard if operands[0] is unused.
34714 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34715 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34716 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
34717 atomic_not<mode>_hard if operands[0] is unused.
34718 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34719 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34720 if operands[0] is unused.
34721 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
34722 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34723 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34724 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34725 unused.
34726 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
34727 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34728 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
34729 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
34730 if operands[0] is unused.
34731 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
34732 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
34733 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
34734 atomic_nand_fetchsi_hard if operands[0] is unused.
34735 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
34736 atomic_nand<mode>_hard if operands[0] is unused.
34737 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
34738 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
34739 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
34740 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34741 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
34742 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
34743 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
34744 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34745 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
34746 atomic_not<mode>_hard if operands[0] is unused.
34747 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
34748 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34749 unused.
34750 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34751 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34752 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
34753 atomic_nand<mode>_hard if operands[0] is unused.
34754 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
34755 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
34756
34757 2015-02-03 David Malcolm <dmalcolm@redhat.com>
34758
34759 PR jit/64810
34760 * Makefile.in (GCC_OBJS): Add gcc-main.o.
34761 * gcc-main.c: New file, containing "main" taken from gcc.c.
34762 * gcc.c (do_self_spec): Free decoded_options.
34763 (class driver): Move declaration to gcc.h.
34764 (main): Move declaration and implementation to new file
34765 gcc-main.c.
34766 (driver_get_configure_time_options): New function.
34767 * gcc.h (class driver): Move this declaration here, from
34768 gcc.c.
34769 (driver_get_configure_time_options): New declaration.
34770
34771 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
34772
34773 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
34774 cross-module inlining.
34775 * cgraph.h (cgraph_node): Add flag merged.
34776 * ipa-icf.c (sem_function::merge): Maintain it.
34777
34778 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
34779
34780 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
34781 instead of OBJECT_P.
34782
34783 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
34784
34785 PR target/62631
34786 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
34787 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
34788 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
34789 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
34790
34791 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34792
34793 PR other/63504
34794 * combine.c (reg_n_sets_max): New variable.
34795 (can_change_dest_mode, reg_nonzero_bits_for_combine,
34796 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
34797 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
34798 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
34799 (rest_of_handle_combine): Initialize reg_n_sets_max.
34800
34801 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
34802
34803 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
34804 if some always_inline was inlined, apply changes before inlining
34805 heuristically.
34806
34807 2015-02-02 David Malcolm <dmalcolm@redhat.com>
34808
34809 PR jit/64810
34810 * config/arm/arm.c (arm_option_override): Set
34811 arm_selected_arch/cpu/tune to NULL on entry.
34812
34813 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
34814 Andrew Pinski <pinskia@gcc.gnu.org>
34815 Jakub Jelinek <jakub@gcc.gnu.org>
34816
34817 PR target/64231
34818 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
34819 integer typing for small model. Use IN_RANGE.
34820
34821 2015-02-02 Richard Biener <rguenther@suse.de>
34822
34823 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
34824 * tree-vrp.c (vrp_valueize_1): Likewise.
34825
34826 2015-02-02 Alan Modra <amodra@gmail.com>
34827
34828 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
34829 than mem for toc_restore.
34830 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
34831 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
34832 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
34833
34834 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
34835
34836 PR target/64047
34837 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
34838 explicit default options.
34839
34840 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
34841
34842 PR ipa/64872
34843 * ipa-utils.c (ipa_merge_profiles): Add release argument.
34844 * ipa-icf.c (sem_function::merge): Do not release body when merging.
34845 * ipa-utils.h (ipa_merge_profiles): Update prototype.
34846
34847 2015-02-01 Jakub Jelinek <jakub@redhat.com>
34848
34849 PR debug/64817
34850 * cfgexpand.c (deep_ter_debug_map): New variable.
34851 (avoid_deep_ter_for_debug): New function.
34852 (expand_debug_expr): If TERed SSA_NAME is in
34853 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
34854 instead of trying to expand SSA_NAME's def stmt.
34855 (expand_debug_locations): When expanding debug bind
34856 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
34857 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
34858 value.
34859 (pass_expand::execute): Call avoid_deep_ter_for_debug on
34860 all debug bind stmts. Delete deep_ter_debug_map after
34861 expand_debug_location if non-NULL and clear it.
34862
34863 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
34864
34865 PR target/64851
34866 * config/sh/sync.md (atomic_fetch_notsi_hard,
34867 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
34868 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
34869 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
34870 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
34871 atomic_not_fetch<mode>_soft_imask): New insns.
34872
34873 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34874
34875 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
34876 (rank_for_schedule_debug): Split from ...
34877 (rank_for_schedule): ... this.
34878 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
34879 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
34880
34881 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34882
34883 * doc/md.texi (Machine Constraints): Alphabetize table by target.
34884 * doc/extend.texi (x86 Variable Attributes): Move section to
34885 correct alphabetization after renaming.
34886 (x86 Type Attributes): Likewise.
34887 (Target Builtins): Re-alphabetize menu.
34888 (x86 Built-in Functions): Move section to correct alphabetization
34889 after renaming.
34890 (x86 transactional memory intrinsics): Likewise.
34891 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
34892 and x86 Windows Options in table and menu.
34893 (x86 Options): Move section to correct alphabetization after
34894 renaming.
34895 (x86 Windows Options): Likewise.
34896
34897 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
34898
34899 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
34900 preferred names of the architecture and its 32- and 64-bit
34901 variants.
34902 * doc/invoke.texi: Likewise.
34903 * doc/md.texi: Likewise.
34904
34905 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34906
34907 PR target/64882
34908 * config/i386/predicates.md (address_no_seg_operand): Reject
34909 non-CONST_INT_P operands in invalid mode.
34910
34911 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
34912
34913 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
34914 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
34915 * config/i386/predicates.md (address_no_seg_operand): Call
34916 address_operand with VOIDmode.
34917 (vsib_address_operand): Ditto.
34918 (address_mpx_no_base_operand): Ditto.
34919 (address_mpx_no_index_operand): Ditto.
34920
34921 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34922
34923 PR target/64688
34924 * lra-constraints.c (original_subreg_reg_mode): New.
34925 (simplify_operand_subreg): Try to simplify subreg of const. Use
34926 original_subreg_reg_mode for it.
34927 (swap_operands): Update original_subreg_reg_mode.
34928 (curr_insn_transform): Set up original_subreg_reg_mode.
34929
34930 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
34931
34932 PR target/64617
34933 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
34934 function.
34935 (process_alt_operands): Use it.
34936 (curr_insn_transform): Check the optional reload pseudo class is
34937 ok for the mode.
34938
34939 2015-01-30 Joseph Myers <joseph@codesourcery.com>
34940
34941 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
34942 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
34943 prototype.
34944 * toplev.h (init_asm_output): Update comment on use of
34945 UNKNOWN_LOCATION with fatal_error.
34946 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
34947 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
34948 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
34949 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
34950 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
34951 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
34952 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
34953 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
34954 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
34955 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
34956 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
34957 fatal_error changed to pass input_location as first argument.
34958
34959 2015-01-30 Martin Liska <mliska@suse.cz>
34960
34961 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
34962 in #pragma GCC diagnostic guards.
34963
34964 2015-01-30 Richard Biener <rguenther@suse.de>
34965
34966 PR tree-optimization/64829
34967 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
34968 not add a widening conversion pattern but hand off extra
34969 widenings to callers.
34970 (vect_recog_widen_mult_pattern): Handle extra widening produced
34971 by vect_handle_widen_op_by_const.
34972 (vect_recog_widen_shift_pattern): Likewise.
34973 (vect_pattern_recog_1): Remove excess vertical space in dumping.
34974 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
34975 (vect_init_vector_1): Likewise.
34976 (vect_get_vec_def_for_operand): Likewise.
34977 (vect_finish_stmt_generation): Likewise.
34978 (vectorizable_load): Likewise.
34979 (vect_analyze_stmt): Likewise.
34980 (vect_is_simple_use): Likewise.
34981
34982 2015-01-29 Jeff Law <law@redhat.com>
34983
34984 * combine.c (try_combine): Fix typo in comment.
34985
34986 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
34987
34988 PR target/64580
34989 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
34990 (rs6000_stack_info): Add assert.
34991 (rs6000_output_savres_externs): New function, split off from...
34992 (rs6000_output_function_prologue): ... here. Do not call it for
34993 thunks.
34994
34995 2015-01-29 Jeff Law <law@redhat.com>
34996
34997 PR target/15184
34998 * combine.c (try_combine): If I0 is a memory load and I3 a store
34999 to a related address, increase the "goodness" of doing a 4-insn
35000 combination with I0-I3.
35001 (make_field_assignment): Handle SUBREGs in the ior+and case.
35002
35003 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
35004
35005 PR tree-optimization/64746
35006 * tree-if-conv.c (mask_exists): New function.
35007 (predicate_mem_writes): Save created mask with given size for further
35008 use.
35009 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
35010 (ifcvt_repair_bool_pattern): Collect all statements that are root
35011 of bool pattern and use iterative algorithm to remove multiple uses
35012 of predicates, display number of required iterations.
35013
35014 2015-01-29 Richard Biener <rguenther@suse.de>
35015
35016 PR tree-optimization/64853
35017 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
35018 stmt will get simulated again.
35019 * tree-ssa-ccp.c (valueize_op_1): Likewise.
35020
35021 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35022
35023 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
35024 return_in_pc. Remove redundant assignments.
35025 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
35026 (arm_expand_epilogue): Don't compare boolean with true in if condition.
35027
35028 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
35029
35030 * config/i386/i386.c (ix86_mode_after): Make static.
35031
35032 2015-01-29 Richard Biener <rguenther@suse.de>
35033
35034 PR tree-optimization/64844
35035 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
35036 dump cost model analysis.
35037 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35038 Do not register adjusted load/store costs here.
35039
35040 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
35041 Uros Bizjak <ubizjak@gmail.com>
35042
35043 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
35044 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
35045 using x86_use_pseudo_pic_reg.
35046 * config/i386/i386.c (ix86_conditional_register_usage): Remove
35047 support for fixed PIC register.
35048 (ix86_use_pseudo_pic_reg): Not static any more.
35049
35050 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
35051
35052 PR middle-end/64805
35053 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
35054 to avoid error in cgraph node verification.
35055
35056 2015-01-29 Marek Polacek <polacek@redhat.com>
35057
35058 * doc/standards.texi: Reflect that the default for C is gnu11.
35059
35060 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
35061
35062 PR target/64761
35063 * reorg.c (switch_text_sections_between_p): New function.
35064 (relax_delay_slots): Call it when testing if the jump insn
35065 is removable. Use targetm.can_follow_jump when testing if
35066 the conditional branch can follow an unconditional jump.
35067
35068 2015-01-27 Caroline Tice <cmtice@google.com>
35069
35070 Committing VTV Cywin/Ming patch for Patrick Wollgast
35071 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
35072 if -fvtable-verify=preinit/std is used.
35073 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
35074 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
35075 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
35076 if -fvtable-verify=preinit/std is used.
35077 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
35078 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
35079 if -fvtable-verify=preinit/std is used.
35080 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
35081 * config/i386/mingw32.h (LIB_SPEC): Likewise.
35082 * varasm.c (assemble_variable): Add code to properly set the comdat
35083 section and name for the .vtable_map_vars section in case the
35084 target is PE or COFF.
35085
35086 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
35087
35088 PR ipa/64801
35089 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
35090 make sane BB profile.
35091 (cgraph_node::expand_thunk): Make sane BB profile.
35092 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
35093 * cgraph.h (init_lowered_empty_function): Update prototype.
35094 * config/i386/i386.c (make_resolver_func): Update call.
35095 * predict.c (gate): Disable branch prediction pass if
35096 profile is already there.
35097
35098 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
35099
35100 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
35101 * opth-gen.awk: Likewise.
35102 * common.opt: Mark flag_fp_contract_mode as Optimization.
35103
35104 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
35105
35106 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
35107 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
35108
35109 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
35110
35111 PR target/64659
35112 * config/sh/predicates.md (atomic_arith_operand,
35113 atomic_logical_operand): Remove.
35114 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
35115 (atomic_arith_operand_0): New predicate.
35116 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
35117 Use atomic_arith_operand_0 for input values.
35118 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
35119 atomic_compare_and_swap<mode>_soft_gusa,
35120 atomic_compare_and_swap<mode>_soft_tcb,
35121 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
35122 arith_reg_operand instead of register_operand.
35123 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
35124 atomic_arith_operand_0 for newval input.
35125 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
35126 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
35127 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
35128 arith_reg_operand instead of register_operand.
35129 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
35130 fetchop_predicate_1, fetchop_constraint_1_llcs,
35131 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
35132 fetchop_constraint_1_imask): New code iterator attributes.
35133 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
35134 register_operand. Use fetchop_predicate_1.
35135 (atomic_fetch_<fetchop_name>si_hard,
35136 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35137 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35138 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35139 and arith_reg_operand instead of register_operand. Use
35140 fetchop_predicate_1, fetchop_constraint_1_gusa.
35141 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35142 and arith_reg_operand instead of register_operand. Use
35143 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
35144 to allow R0 usage.
35145 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35146 and arith_reg_operand instead of register_operand. Use
35147 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
35148 to allow R0 usage.
35149 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35150 register_operand. Use atomic_logical_operand_1.
35151 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35152 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35153 arith_reg_operand instead of register_operand.
35154 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35155 Use arith_reg_dest and arith_reg_operand instead of register_operand.
35156 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
35157 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35158 register_operand. Use fetchop_predicate_1.
35159 (atomic_<fetchop_name>_fetchsi_hard,
35160 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35161 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35162 fetchop_constraint_1_llcs.
35163 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35164 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35165 fetchop_constraint_1_gusa.
35166 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35167 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35168 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
35169 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35170 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35171 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
35172 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35173 register_operand. Use atomic_logical_operand_1.
35174 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35175 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35176 arith_reg_operand instead of register_operand.
35177 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35178 arith_reg_operand instead of register_operand. Use logical_operand
35179 and K08. Adjust asm sequence to allow R0 usage.
35180 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35181 arith_reg_operand instead of register_operand. Use logical_operand
35182 and K08.
35183
35184 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35185
35186 PR other/63504
35187 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35188 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35189 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35190 only get_full_len HOST_WIDE_INTs from get_val () array rather than
35191 all bits in *val_wide.
35192
35193 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
35194
35195 * varpool.c (tls_model_names): Fix names.
35196 (varpool_node::dump): Dump tls- prefix for tls models.
35197
35198 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
35199 Bernd Schmidt <bernds@codesourcery.com>
35200 Nathan Sidwell <nathan@codesourcery.com>
35201
35202 * config/nvptx/mkoffload.c: New file.
35203 * config/nvptx/t-nvptx: Add build rules for it.
35204 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35205 (extra_programs): Add mkoffload.
35206 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35207 function.
35208 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35209
35210 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
35211
35212 PR middle-end/64809
35213 * cfgexpand.c (reorder_operands): Skip debug gimples.
35214
35215 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
35216
35217 PR tree-optimization/64277
35218 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35219 range info when possible to refine estimation.
35220
35221 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
35222
35223 PR tree-optimization/64718
35224 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35225 be a 16bit unsigned integer when n->range is 16.
35226 (bswap_replace): Convert src to that type if necessary for all bswap
35227 sizes. Fix rotation right notation in nearby comment. Use bswap_type
35228 set in pass_optimize_bswap::execute ().
35229
35230 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
35231
35232 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35233 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35234 integer and floating point variants.
35235 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35236
35237 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
35238
35239 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35240 for all vector modes.
35241
35242 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35243
35244 PR bootstrap/64612
35245 * doc/sourcebuild.texi (comdat_group): Document.
35246
35247 2015-01-28 Terry Guo <terry.guo@arm.com>
35248
35249 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35250
35251 2015-01-27 David Malcolm <dmalcolm@redhat.com>
35252
35253 * toplev.c (print_version): Add param "show_global_state", and
35254 only print GGC and plugin information if it is true.
35255 (init_asm_output): Pass in "true" for the new param when calling
35256 print_version.
35257 (process_options): Likewise.
35258 (toplev::main): Likewise.
35259 * toplev.h (print_version): Add new param to decl.
35260
35261 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35262
35263 PR ipa/60871
35264 PR ipa/64139
35265 * tree.c (lookup_binfo_at_offset): New function.
35266 (get_binfo_at_offset): Use it.
35267
35268 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35269
35270 PR ipa/64282
35271 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35272 on vtable being vtable.
35273
35274 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
35275
35276 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35277 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35278 -mhotpatch= option.
35279 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35280 -mno-hotpatch options. Change syntax of -mhotpatch= option.
35281 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35282 Renamed.
35283 (s390_hotpatch_trampoline_halfwords_max): Renamed.
35284 (s390_hotpatch_hw_max): New name.
35285 (s390_hotpatch_trampoline_halfwords): Renamed.
35286 (s390_hotpatch_hw_before_label): New name.
35287 (get_hotpatch_attribute): Removed.
35288 (s390_hotpatch_hw_after_label): New name.
35289 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35290 attribute.
35291 (s390_attribute_table): Ditto.
35292 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35293 (s390_function_num_hotpatch_hw): New name.
35294 Remove special handling of inline functions and hotpatching.
35295 Return number of nops before and after the function label.
35296 (s390_can_inline_p): Removed.
35297 (s390_asm_output_function_label): Emit a configurable number of nops
35298 after the function label.
35299 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35300 (TARGET_CAN_INLINE_P) Removed.
35301 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35302
35303 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35304 Jiong Wang <jiong.wang@arm.com>
35305
35306 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35307 of scratch reg.
35308 (cb<optab><mode>1): Likewise.
35309 * config/aarch64/iterators.md (bcond): New define_code_attr.
35310
35311 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35312
35313 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35314 memory accesses.
35315
35316 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35317
35318 * config/s390/s390.c (s390_register_move_cost): Increase costs for
35319 FPR->GPR moves.
35320
35321 2015-01-27 Richard Biener <rguenther@suse.de>
35322
35323 * tree-vrp.c (update_value_range): Intersect the range with
35324 old recorded SSA name range information.
35325
35326 2015-01-27 Nick Clifton <nickc@redhat.com>
35327
35328 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35329 BC, DE and HL registers directly, not via AX.
35330 When decrementing the stack pointer by a large amount, transfer SP
35331 into AX and perform the subtraction there.
35332 (rl78_expand_epilogue): Perform the inverse of the above
35333 enhancements.
35334
35335 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35336
35337 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35338
35339 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35340 Yury Gribov <y.gribov@samsung.com>
35341
35342 PR ubsan/64741
35343 * ubsan.c (ubsan_source_location): Refactor code.
35344 (ubsan_type_descriptor): Update type size. Refactor code.
35345
35346 2015-01-27 Richard Biener <rguenther@suse.de>
35347
35348 PR tree-optimization/56273
35349 PR tree-optimization/59124
35350 PR tree-optimization/64277
35351 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35352 from the first VRP pass.
35353
35354 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35355
35356 PR ipa/64776
35357 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35358 handle the first argument in the same loop as all the other arguments.
35359
35360 PR rtl-optimization/61058
35361 * jump.c (cleanup_barriers): Update basic block boundaries
35362 if BLOCK_FOR_INSN is non-NULL on PREV.
35363
35364 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
35365
35366 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35367 bounds narrowing, already instrumented calls and calls to
35368 not instrumentable functions.
35369
35370 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35371
35372 PR tree-optimization/64807
35373 * wide-int.cc (wi::divmod_internal): Clear
35374 b_dividend[dividend_blocks_needed].
35375
35376 2015-01-26 DJ Delorie <dj@redhat.com>
35377
35378 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35379 volatile memory references.
35380
35381 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
35382
35383 PR target/49263
35384 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35385 remove_insn.
35386 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35387 shifts if it already fits into K08.
35388
35389 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35390
35391 PR ipa/64730
35392 * ipa-inline.c (inline_small_functions): Print "unknown" even
35393 if edge->call_stmt is non-NULL, but has builtins or unknown
35394 location.
35395
35396 PR middle-end/64421
35397 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35398 with asterisk, skip the first character.
35399
35400 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35401
35402 PR target/64806
35403 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35404 order change.
35405
35406 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
35407
35408 PR target/64795
35409 * config/i386/i386.md (*movdi_internal): Also check operand 0
35410 to determine TYPE_LEA operand.
35411 (*movsi_internal): Ditto.
35412
35413 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35414
35415 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35416 OPTION_MASK_QUAD_MEMORY_ATOMIC.
35417
35418 2015-01-26 Renlin Li <renlin.li@arm.com>
35419
35420 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35421 the comment.
35422 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35423 for higher part.
35424
35425 2015-01-26 Richard Biener <rguenther@suse.de>
35426
35427 PR middle-end/64764
35428 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35429 combining two BIT_AND_EXPR predicates.
35430
35431 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35432
35433 PR bootstrap/64754
35434 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35435
35436 2015-01-26 Terry Guo <terry.guo@arm.com>
35437
35438 * config/arm/arm.c (arm_file_start): Update the assignment of
35439 Tag_ABI_HardFP_use.
35440
35441 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
35442
35443 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35444 pipeline model.
35445 config/arm/arm.md: Include the new Cortex-A57 model.
35446 (generic_sched): Don't use generic_sched when tuning for
35447 Cortex-A57.
35448
35449 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
35450 Uros Bizjak <ubizjak@gmail.com>
35451
35452 * config/i386/i386.c (get_builtin_code_for_version): Add
35453 support for BMI and BMI2 multiversion functions.
35454
35455 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35456
35457 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35458 (extract_bit_field): Likewise.
35459 (extract_low_bits): Likewise.
35460 (expand_mult): Likewise.
35461 (expand_mult_highpart_adjust): Likewise.
35462
35463 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
35464
35465 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35466 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35467 * config/i386/i386.c (processor_model): Add
35468 M_INTEL_COREI7_BROADWELL.
35469 (arch_names_table): Add "broadwell".
35470
35471 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
35472
35473 PR target/49263
35474 PR target/53987
35475 PR target/64345
35476 PR target/59533
35477 PR target/52933
35478 PR target/54236
35479 PR target/51244
35480 * config/sh/sh-protos.h
35481 (sh_extending_set_of_reg::can_use_as_unextended_reg,
35482 sh_extending_set_of_reg::use_as_unextended_reg,
35483 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35484 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35485 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35486 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35487 (sh_treg_insns): New class.
35488 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35489 (scope_counter): New class.
35490 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35491 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35492 sh_extending_set_of_reg::can_use_as_unextended_reg,
35493 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35494 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35495 sh_split_treg_set_expr): New functions.
35496 (addsubcosts): Handle treg_set_expr.
35497 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35498 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35499 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35500 (sh_insn_operands_modified_between_p): Make non-static.
35501 * config/sh/predicates.md (zero_extend_movu_operand): Allow
35502 simple_mem_operand in addition to displacement_mem_operand.
35503 (zero_extend_operand): Don't allow zero_extend_movu_operand.
35504 (treg_set_expr, treg_set_expr_not_const01,
35505 arith_reg_or_treg_set_expr): New predicates.
35506 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35507 arith_or_int_operand instead of logical_operand. Convert to
35508 insn_and_split. Try to optimize constant operand in splitter.
35509 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
35510 (*tstqi_t_zero): Delete.
35511 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35512 (tstsi_t_and_not): Delete.
35513 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35514 Convert to insn_and_split.
35515 (unnamed split, tstsi_t_zero_extract_xor,
35516 tstsi_t_zero_extract_subreg_xor_little,
35517 tstsi_t_zero_extract_subreg_xor_big): Delete.
35518 (*tstsi_t_shift_mask): New insn_and_split.
35519 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35520 to recombine with surrounding insns when splitting.
35521 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35522 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35523 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35524 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35525 (*cbranch_div0s: Delete.
35526 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35527 Try to recombine with surrounding insns when splitting. Add operand
35528 order variants.
35529 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35530 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35531 *addc_r_r_msb, *addc_2r_msb): Delete.
35532 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
35533 order variant.
35534 (*addc_negreg_t): New insn_and_split.
35535 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35536 Try to recombine with surrounding insns when splitting.
35537 Add operand order variants.
35538 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35539 insn_and_split patterns.
35540 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
35541 surrounding insns when splitting.
35542 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35543 (*rotcl): Likewise. Add zero_extract variant.
35544 (*ashrsi2_31): New insn_and_split.
35545 (*negc): Convert to insn_and_split. Use treg_set_expr.
35546 (*zero_extend<mode>si2_disp_mem): Update comment.
35547 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35548 condition.
35549 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
35550 with surrounding insns when splitting.
35551 (any_treg_expr_to_reg): New insn_and_split.
35552 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35553 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35554 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35555 *zero_extract_2): New single bit zero extract patterns.
35556 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35557 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35558 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35559 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35560 set destination.
35561 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35562 register_operand for set source.
35563
35564 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
35565
35566 * i386.opt (prefetch_sse): New targetsave.
35567 * i386.c (ix86_function_specific_save): Save prefetch_sse.
35568 (ix86_function_specific_restore): Restore prefetch_sse and initialize
35569 ix86_cost/ix86_tune_cost.
35570
35571 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35572
35573 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35574 Support the JIT by using 0 as the language type.
35575
35576 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
35577
35578 PR target/64317
35579 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
35580 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35581 (mark_regno_live, process_bb_lives): Pass new parameter value to
35582 make_hard_regno_born.
35583
35584 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35585
35586 PR rtl-optimization/63637
35587 PR rtl-optimization/60663
35588 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35589 if elt->cost is MAX_COST for ASM_OPERANDS.
35590 (find_sets_in_insn): Fix up comment typo.
35591 (cse_insn): Don't set src_volatile for all non-volatile
35592 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35593 or with "memory" clobber. Set elt->cost to MAX_COST
35594 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
35595 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35596
35597 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35598
35599 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35600 alternative 1.
35601
35602 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35603
35604 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35605 libgcc/config/i386/elf-lib.h.
35606
35607 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35608
35609 PR driver/64737
35610 * gcc.c (print_configuration): Don't print a blank line at the end
35611 here...
35612 (run_attempt): ... but here unstead.
35613
35614 PR middle-end/64734
35615 * omp-low.c (scan_sharing_clauses): Don't ignore
35616 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35617 on target data/update constructs.
35618
35619 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
35620
35621 PR target/50928
35622 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35623 (DEBUG_RELOAD): Removed define.
35624 (m32c_limit_reload_class): Enable traces with if DEBUG0.
35625 (m32c_function_arg): Added a type cast.
35626 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35627 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35628 * config/m32c/bitops.md (andqi3_16): Likewise.
35629 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35630 (push_a01_l): Likewise.
35631
35632 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35633
35634 PR jit/64721
35635 * main.c (main): Construct toplev instances with init_signals=true.
35636 * toplev.c (general_init): Add param "init_signals", and use it to
35637 conditionalize the calls to signal and host_hooks.extra_signals.
35638 (toplev::toplev): Add param "init_signals".
35639 (toplev::main): When invoking general_init, pass m_init_signals
35640 to control whether signal-handlers are installed.
35641 * toplev.h (toplev::toplev): Add param "init_signals".
35642 (toplev::m_init_signals): New field.
35643
35644 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35645
35646 PR jit/64722
35647 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35648 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35649 latter may be affected by the former (e.g. on i686).
35650
35651 2015-01-23 Martin Liska <mliska@suse.cz>
35652
35653 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35654 false positive during profiledbootstrap.
35655
35656 2015-01-23 Tom de Vries <tom@codesourcery.com>
35657
35658 PR libgomp/64672
35659 * lto-opts.c (lto_write_options): Output non-explicit conservative
35660 -fno-openacc.
35661 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35662 (append_compiler_options): Pass -fopenacc through.
35663
35664 2015-01-23 Tom de Vries <tom@codesourcery.com>
35665
35666 PR libgomp/64707
35667 * lto-opts.c (lto_write_options): Output non-explicit conservative
35668 -fno-openmp.
35669 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35670 (append_compiler_options): Pass -fopenmp through.
35671
35672 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35673
35674 PR debug/64511
35675 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35676 GTY markup.
35677
35678 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35679 * diagnostic.def (DK_ICE_NOBT): New kind.
35680 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35681 like DK_ICE, but never print backtrace.
35682 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35683 (internal_error_no_backtrace): New function.
35684 * gcc.c (execute): Use internal_error_no_backtrace instead of
35685 internal_error.
35686
35687 2015-01-22 Jeff Law <law@redhat.com>
35688
35689 PR target/52076
35690 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35691 improve code density for small immediate to memory case.
35692 (insv): Better handle bitfield assignments when the field is
35693 being set to all ones.
35694 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35695 operand predicate.
35696
35697 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35698 Jakub Jelinek <jakub@redhat.com>
35699
35700 PR middle-end/64729
35701 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35702 for !TARGET_LIBC_PROVIDES_SSP version and
35703 -fstack-protector-{all,strong,explicit} otherwise.
35704 * config/freebsd.h (LINK_SSP_SPEC): Handle
35705 -fstack-protector-{strong,explicit}.
35706
35707 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
35708 H.J. Lu <hongjiu.lu@intel.com>
35709
35710 PR ipa/64694
35711 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35712 heap.
35713
35714 2015-01-22 Wei Mi <wmi@google.com>
35715
35716 PR rtl-optimization/64557
35717 * dse.c (record_store): Call get_addr for mem_addr.
35718 (check_mem_read_rtx): Likewise.
35719
35720 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
35721
35722 * fold-const.c (const_binop): Add early return for non-tcc_binary.
35723
35724 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
35725
35726 * toplev.c (init_local_tick): Process the failure when read
35727 fails for random_seed.
35728
35729 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
35730 'pretty_name' to avoid memory overflow.
35731
35732 2015-01-22 Richard Biener <rguenther@suse.de>
35733
35734 PR middle-end/64728
35735 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
35736 abnormal coalescing on undefined SSA names.
35737
35738 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
35739
35740 PR target/64688
35741 PR target/64477
35742 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
35743 for alternative 3.
35744 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
35745
35746 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
35747
35748 PR middle-end/63325
35749 * fold-const.c (fold_checksum_tree): Don't include value of
35750 expr->decl_with_vis.symtab_node in the checksum.
35751
35752 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35753
35754 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
35755
35756 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
35757
35758 PR driver/64690
35759 * gcc.c (insert_comments): New function.
35760 (try_generate_repro): Call it.
35761 (append_text): Removed.
35762
35763 2015-01-22 Richard Biener <rguenther@suse.de>
35764
35765 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
35766 with IL incompatible options. Properly honor user optimize
35767 attributes.
35768
35769 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
35770
35771 PR rtl-optimization/64682
35772 * combine.c (distribute_notes): When moving a death note for
35773 a register that is set in the new I2, make sure to put it
35774 before that new I2.
35775
35776 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
35777
35778 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
35779 not TARGET_DEFAULT.
35780
35781 2015-01-21 Jakub Jelinek <jakub@redhat.com>
35782
35783 PR debug/64511
35784 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
35785 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
35786 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
35787
35788 PR sanitizer/64706
35789 * doc/invoke.texi (-fsanitize=vptr): Document.
35790
35791 PR rtl-optimization/62078
35792 * dse.c: Include cfgcleanup.h.
35793 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
35794 anything call purge_all_dead_edges and cleanup_cfg at the end
35795 of the pass.
35796
35797 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
35798
35799 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
35800 edges.
35801
35802 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
35803
35804 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
35805 decl attribute.
35806
35807 2015-01-21 David Sherwood <david.sherwood@arm.com>
35808 Tejas Belagod <Tejas.Belagod@arm.com>
35809
35810 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
35811 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
35812 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
35813 Removed.
35814
35815 2015-01-21 David Sherwood <david.sherwood@arm.com>
35816 Tejas Belagod <Tejas.Belagod@arm.com>
35817
35818 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
35819 (aarch64_reverse_mask): New decls.
35820 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
35821 (insn_count): New mode_attr.
35822 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
35823 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
35824 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
35825 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
35826 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
35827 (aarch64_simd_st4): New patterns.
35828 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
35829 (aarch64_reverse_mask): New functions.
35830
35831 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35832
35833 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
35834 Declare.
35835 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
35836 addressing modes for BE.
35837 (aarch64_print_operand): Add 'R' specifier.
35838 (aarch64_simd_disambiguate_copy): Delete.
35839 (aarch64_simd_emit_reg_reg_move): New function.
35840 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
35841 in define_splits for structural moves.
35842 (mov<mode>): Use less restrictive predicates.
35843 (*aarch64_mov<mode>): Simplify and only allow for LE.
35844 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
35845
35846 2015-01-21 Alan Hayward <alan.hayward@arm.com>
35847
35848 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
35849
35850 2015-01-21 Richard Henderson <rth@redhat.com>
35851
35852 PR target/64669
35853 * ccmp.c (used_in_cond_stmt_p): Remove.
35854 (expand_ccmp_expr): Don't use it.
35855
35856 2015-01-21 Nick Clifton <nickc@redhat.com>
35857
35858 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
35859 PARALLELs.
35860
35861 2015-01-21 Richard Biener <rguenther@suse.de>
35862
35863 PR middle-end/64313
35864 * tree-core.h (builtin_info, builtin_info_type): Turn from
35865 an object with two arrays into an array of an object with
35866 decl and two flags, implicit_p and declared_p.
35867 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
35868 set_builtin_decl, set_builtin_decl_implicit_p,
35869 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
35870 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
35871 * builtins.c (builtin_info): Adjust.
35872 * gimplify.c (gimplify_addr_expr): References to builtins
35873 that have been declared by the user makes them eligible for
35874 use by the compiler. Call set_builtin_decl_implicit_p on them.
35875
35876 2015-01-20 Jeff Law <law@redhat.com>
35877
35878 PR target/59946
35879 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
35880 allow pc-relative addresses in operand predicates or constraints.
35881
35882 2015-01-21 Bin Cheng <bin.cheng@arm.com>
35883
35884 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
35885 neon on aarch32 processors for stringops.
35886
35887 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35888
35889 PR ipa/63576
35890 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
35891
35892 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35893
35894 PR lto/45375
35895 * ipa-inline.c: Include lto-streamer.h
35896 (report_inline_failed_reason): Output source file differences and
35897 flags on optimization/target node mismatch.
35898 (can_inline_edge_p): Consider caller to be the outer inline function;
35899 be less restrictive about matching opimize and optimize_size attributes.
35900 (inline_account_function_p): Break out from ...
35901 (inline_small_functions): ... here.
35902 * ipa-inline-transform.c (clone_inlined_nodes): Use
35903 inline_account_function_p.
35904 (inline_call): Use optimize attribution; use inline_account_function_p.
35905 (inline_transform): Use opt_for_fn.
35906 * ipa-inline.h (inline_account_function_p): Declare.
35907
35908 2015-01-20 Jakub Jelinek <jakub@redhat.com>
35909
35910 PR debug/64663
35911 * dwarf2out.c (decl_piece_node): Don't put bitsize into
35912 mode if bitsize <= 0.
35913 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
35914 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
35915 sizes and positions.
35916
35917 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
35918
35919 * config/nios2/nios2.c (nios2_asm_file_end): Implement
35920 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
35921 needed.
35922 (TARGET_ASM_FILE_END): Define.
35923
35924 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35925
35926 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
35927 (struct tune_params): Use the enum.
35928 * arm.c (arm_*_tune): Update.
35929 (arm_option_override): Update.
35930
35931 2015-01-20 Richard Biener <rguenther@suse.de>
35932
35933 PR ipa/64684
35934 * ipa-reference.c (add_static_var): Inline ...
35935 (analyze_function): ... here after splitting out from ...
35936 (is_proper_for_analysis): ... this.
35937
35938 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
35939
35940 PR target/64149
35941 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
35942 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
35943 replace the conditional with it's true branch.
35944 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
35945 (arm_lra_p): Remove.
35946
35947 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
35948
35949 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
35950
35951 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35952
35953 * config/tilegx/mul-tables.c: Move symtab.h include after
35954 coretypes.h include.
35955 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
35956 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
35957 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
35958 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
35959 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35960
35961 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
35962
35963 PR bootstrap/64676
35964 Revert:
35965 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35966
35967 PR rtl-optimization/64081
35968 * loop-iv.c (def_pred_latch_p): New function.
35969 (latch_dominating_def): Allow specific cases with non-single
35970 definitions.
35971 (iv_get_reaching_def): Likewise.
35972 (check_complex_exit_p): New function.
35973 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35974 with exits not executing on any iteration.
35975
35976 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35977
35978 PR lto/45375
35979 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
35980 to set branch cost.
35981
35982 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35983
35984 PR lto/45375
35985 * i386.c (gate): Check flag_expensive_optimizations and
35986 optimize_size.
35987 (ix86_option_override_internal): Drop optimize_size condition
35988 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
35989 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
35990 MASK_PREFER_AVX128.
35991 (ix86_avx256_split_vector_move_misalign,
35992 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
35993 * sse.md (all uses of TARGET_PREFER_AVX128): Add
35994 optimize_insn_for_speed_p check.
35995
35996 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
35997
35998 * config/mips/mips.h (FP_ASM_SPEC): New define.
35999 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
36000 instead.
36001
36002 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
36003
36004 PR target/53988
36005 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
36006 nullptr for insn when reaching the first insn.
36007 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
36008 (sh_insn_operands_modified_between_p): Add nullptr check.
36009 (sh_find_extending_set_of_reg): Fix log message. Don't accept
36010 sign extending mem load if the insn contains any UNSPEC or
36011 UNSPEC_VOLATILE.
36012
36013 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36014
36015 * params.def (inline-unit-growth): Drop to 15%.
36016 * invoke.texi (inline-unit-growth): Document change.
36017
36018 2015-01-19 Martin Liska <mliska@suse.cz>
36019
36020 PR ipa/64668
36021 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
36022 function for second argument of OBJ_TYPE_REF.
36023
36024 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36025
36026 PR ipa/64218
36027 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
36028 whether function is an alias.
36029
36030 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36031
36032 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
36033 cases.
36034
36035 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
36036
36037 PR rtl-optimization/64671
36038 * lra-remat.c (operand_to_remat): Don't consider jump and call
36039 insns.
36040
36041 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
36042
36043 PR target/59828
36044 * config/rs6000/default64.h: Include rs6000-cpus.def.
36045 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
36046 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
36047 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
36048 and POWER8.
36049 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
36050 POWER8.
36051 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
36052 pseudo-op to specify assembler dialect.
36053
36054 2015-01-19 Martin Liska <mliska@suse.cz>
36055
36056 PR ipa/64664
36057 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
36058 Handle safe potentially removed nodes during filtering.
36059
36060 2015-01-19 Martin Liska <mliska@suse.cz>
36061
36062 * doc/extend.texi (no_icf): Add new attribute description.
36063 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
36064 where the pass attempts to merge a function with no_icf attribute.
36065
36066 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36067
36068 PR target/64532
36069 * doc/md.texi (ARM Options): Document register constraints.
36070
36071 2015-01-19 Jiong Wang <jiong.wang@arm.com>
36072 Andrew Pinski <apinski@cavium.com>
36073
36074 PR target/64304
36075 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
36076 (ashl<mode>3): Don't expand if operands[2] is not constant.
36077
36078 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36079
36080 PR target/64448
36081 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
36082 Match xor-and-xor RTL pattern.
36083
36084 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
36085
36086 PR rtl-optimization/64081
36087 * loop-iv.c (def_pred_latch_p): New function.
36088 (latch_dominating_def): Allow specific cases with non-single
36089 definitions.
36090 (iv_get_reaching_def): Likewise.
36091 (check_complex_exit_p): New function.
36092 (check_simple_exit): Use check_complex_exit_p to allow certain cases
36093 with exits not executing on any iteration.
36094
36095 2015-01-19 Jakub Jelinek <jakub@redhat.com>
36096
36097 * common.opt (fgraphite): Fix a typo.
36098
36099 2015-01-19 Felix Yang <felix.yang@huawei.com>
36100
36101 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
36102 pattern.
36103 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
36104 uminp, smax_nanp, smin_nanp): New builtins.
36105 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
36106 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
36107 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
36108 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
36109 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
36110 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
36111 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
36112 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
36113 vpminnms_f32): Rewrite using builtin functions.
36114
36115 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
36116
36117 PR libgomp/64625
36118 * omp-low.c (offload_symbol_decl): Remove variable.
36119 (get_offload_symbol_decl): Remove function.
36120 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
36121 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
36122 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
36123 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
36124 BUILT_IN_GOACC_UPDATE don't pass it at all.
36125
36126 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36127
36128 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
36129 callers.
36130
36131 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36132
36133 * ipa-chkp.c (chkp_produce_thunks): Add early param
36134 to split thunks production into two passes. Keep
36135 'always_inline' function bodies after the first pass.
36136 (pass_data_ipa_chkp_early_produce_thunks): New.
36137 (pass_ipa_chkp_early_produce_thunks): New.
36138 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36139 chkp_produce_thunks signature.
36140 (make_pass_ipa_chkp_early_produce_thunks): New.
36141 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36142 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36143 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36144
36145 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36146
36147 * cgraph.c (cgraph_node::dump): Dump profile flags.
36148
36149 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
36150
36151 PR target/64652
36152 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36153 reg appear first in the parallel.
36154
36155 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36156
36157 * ipa-reference.c (set_reference_optimization_summary,
36158 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36159 disabled.
36160 (ignore_module_statics): New static var.
36161 (propagate_bits): If ipa-reference is disabled, do not look into local
36162 properties.
36163 (analyze_function): Disable analysis when ipa_reference is disabled.
36164 (generate_summary): Do not dump when reference is disabled;
36165 collect vars accessed from functions with ipa-reference disabled.
36166 (get_read_write_all_from_node): When ipa-reference is disabled, use the
36167 node flags.
36168 (gate): Enable for LTO.
36169 (ignore_edge_p): New function.
36170 (propagate): Skip functions w/o ipa-reference analysis.
36171 * optc-save-gen.awk: Handle optimize_debug correctly.
36172 * opth-gen.awk: Likewise.
36173 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36174 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36175 fira-share-save-slots, fira-share-spill-slots,
36176 fmodulo-sched-allow-regmoves, fpartial-inlining,
36177 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36178 ftracer, ftree-parallelize-loops, fassociative-math,
36179 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36180 Optimization
36181 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36182 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36183 Optimization.
36184 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36185 Fix for IPA.
36186
36187 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36188
36189 PR ipa/64378
36190 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36191 flag correctly.
36192 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36193
36194 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
36195
36196 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36197 Remove duplicate option listings.
36198
36199 2015-01-18 Felix Yang <felix.yang@huawei.com>
36200
36201 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36202 (autofdo_source_profile::get_callsite_total_count,
36203 function_instance::get_function_instance_by_decl,
36204 string_table::get_index, string_table::get_index_by_decl,
36205 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36206 Fix comment typos. Reformatting and minor code rearrangement.
36207
36208 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36209
36210 * config/rs6000/rs6000.md (probe_stack): Delete.
36211 (probe_stack_address): New.
36212
36213 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36214
36215 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36216 to test for 32-bit ABIs, not !TARGET_POWERPC64.
36217
36218 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36219
36220 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36221 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
36222 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
36223 snafu.
36224 (rs6000_libcall_value): Use the new function.
36225
36226 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
36227
36228 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36229
36230 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
36231
36232 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36233 implement a more precise life analysis for it during backward scan.
36234
36235 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
36236
36237 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36238
36239 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
36240
36241 PR rtl-optimization/52773
36242 * calls.c (emit_library_call_value): When pushing arguments use
36243 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36244 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
36245 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36246
36247 2015-01-17 Jeff Law <law@redhat.com>
36248
36249 PR rtl-optimization/32790
36250 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36251 not ZERO_EXTEND in SET_DESTs.
36252
36253 2015-01-17 Alan Modra <amodra@gmail.com>
36254
36255 * cprop.c (do_local_cprop): Revert last change.
36256
36257 2015-01-16 DJ Delorie <dj@redhat.com>
36258 Nick Clifton <nickc@redhat.com>
36259
36260 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36261 (addhi3_real): Likewise. Fix [HL+0] syntax.
36262 (subqi3_real): Likewise.
36263 (subhi3_real): Likewise.
36264 (cbranchqi4_real): Likewise. Allow saddr,#imm.
36265 (cbranchhi4_real): Likewise.
36266 (cbranchhi4_real_inverted): Likewise.
36267 (cbranchsi4_real_lt): Likewise.
36268 (cbranchsi4_real_ge): Likewise.
36269 (cbranchsi4_real_ge): Likewise.
36270 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36271 (sub<mode>3_virt): Likewise.
36272 (cbranchqi4_virt): Likewise.
36273 (cbranchhi4_virt): Likewise.
36274 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36275 always use '[reg+imm]' even when imm is zero.
36276 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36277 (rl78_general_operand): New.
36278 (rl78_nonimmediate_operand): New.
36279 (rl78_nonfar_operand): Use them.
36280 (rl78_nonfar_nonimm_operand): Likewise.
36281 (rl78_stack_based_mem): Fix.
36282 * config/rl78/constraints.md (Ibqi): New.
36283 (IBqi): New.
36284 (Wsa): New.
36285 (Wsf): New.
36286 (Cs1): Fix.
36287 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36288 (iorqi3): Likewise.
36289 (xorqi3): Likewise.
36290 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36291
36292 * config/rl78/constrains (Qs8): New constraint.
36293 * config/rl78/rl78.c (rl78_flags_already_set): New function.
36294 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36295 * config/rl78/rl78-real.md (update_Z): New attribute.
36296 Update patterns to set it.
36297 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36298 shorter compare and branch sequence can be used.
36299 (cbranchhi4_real): Likewise.
36300 (cbranchhi4_real_inverted): Likewise.
36301
36302 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36303 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36304 address space.
36305 * config/rl78/rl78.c (rl78_get_name_encoding): New.
36306 (rl78_option_override): Allow -mes0 only if C.
36307 (characterize_address): Support subregs of symbol_refs.
36308 (rl78_addr_space_address_mode): Move. Add __near.
36309 (rl78_far_p): Likewise.
36310 (rl78_addr_space_pointer_mode): Likewise.
36311 (rl78_as_legitimate_address): Likewise.
36312 (rl78_addr_space_subset_p): Likewise.
36313 (rl78_addr_space_convert): Likewise.
36314 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36315 symbols with -mes0.
36316 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
36317 addressing.
36318 (rl78_alloc_physical_registers_op1): Change logic to prefer
36319 symbol[BC] addressing.
36320 (frodata_section): New.
36321 (rl78_asm_init_sections): Initialize it.
36322 (rl78_select_section): Put __far readonly symbols in .frodata.
36323 (rl78_make_type_far): New.
36324 (rl78_insert_attributes): Force all readonly symbols to be
36325 __far when -mes0.
36326 (rl78_asm_out_integer): New.
36327 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36328 * config/rl78/rl78.opt (-mes0): New.
36329
36330 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36331 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36332 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36333 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36334 (rl78_saddr_p): New.
36335 (rl78_output_aligned_common): New.
36336 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36337 (rl78_handle_saddr_attribute): New.
36338 (rl78_handle_naked_attribute): New.
36339 (rl78_attribute_table): Add saddr.
36340 (rl78_print_operand_1): Don't print '!' on saddr operands.
36341 (rl78_print_operand_1): Strip encodings.
36342 (rl78_sfr_p): New.
36343 (rl78_strip_name_encoding): New.
36344 (rl78_attrlist_to_encoding): New.
36345 (rl78_encode_section_info): New.
36346 (rl78_asm_init_sections): New.
36347 (rl78_select_section): New.
36348 (rl78_output_labelref): New.
36349 (rl78_output_aligned_common): New.
36350 (rl78_asm_out_integer): New.
36351 (rl78_asm_ctor_dtor): New.
36352 (rl78_asm_constructor): New.
36353 (rl78_asm_destructor): New.
36354
36355 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36356 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36357 (transcode_memory_rtx): Update.
36358 (rl78_expand_epilogue): Use A_REG instead of 0.
36359
36360 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36361
36362 * config/arm/arm-protos.h (struct tune_params): New field
36363 sched_autopref_queue_depth.
36364 * config/arm/arm.c (sched-int.h): Include header.
36365 (arm_first_cycle_multipass_dfa_lookahead_guard,)
36366 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36367 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36368 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36369 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36370 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36371 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36372 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36373 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
36374 * config/arm/t-arm (arm.o): Update.
36375 * haifa-sched.c (update_insn_after_change): Update.
36376 (rank_for_schedule): Use auto-prefetcher model, if requested.
36377 (autopref_multipass_init): New static function.
36378 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36379 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36380 variable for debug dumps.
36381 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36382 (autopref_multipass_dfa_lookahead_guard): New global function that
36383 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36384 (init_h_i_d): Update.
36385 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36386 * sched-int.h (enum autopref_multipass_data_status): New const enum.
36387 (autopref_multipass_data_): Structure for auto-prefetcher data.
36388 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36389 (struct _haifa_insn_data:autopref_multipass_data): New field.
36390 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36391 (autopref_multipass_dfa_lookahead_guard): Declare.
36392
36393 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36394
36395 * rtlanal.c (get_base_term): Handle SCRATCH.
36396
36397 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36398
36399 * config/aarch64/aarch64.c
36400 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36401 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36402 * config/arm/arm.c
36403 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36404 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36405
36406 2015-01-17 Alan Modra <amodra@gmail.com>
36407
36408 * cprop.c (do_local_cprop): Disallow replacement of fixed
36409 hard registers.
36410
36411 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36412
36413 PR target/62066
36414 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36415 early return 0.
36416
36417 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
36418
36419 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36420 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36421
36422 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36423
36424 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36425 * config/arm/thumb1.md: ... Here.
36426
36427 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36428
36429 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36430 TImode for TARGET_32BIT.
36431
36432 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36433
36434 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36435 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36436 as ...
36437 (rs6000_abi_word_mode): New function.
36438
36439 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36440
36441 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36442 instead of UNITS_PER_WORD to describe the size of stack slots.
36443
36444 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36445
36446 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36447 as rs6000_promote_function_mode. Move comment to there.
36448 (rs6000_promote_function_mode): New function.
36449
36450 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36451
36452 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36453 -mpowerpc64 is active.
36454
36455 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36456
36457 PR middle-end/64353
36458 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36459 virtuals on start.
36460
36461 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36462
36463 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36464 introduced in revision 219724.
36465
36466 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36467 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36468
36469 PR target/64263
36470 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36471 destination is not a GP reg.
36472 (*movdi_aarch64): Likewise.
36473
36474 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
36475
36476 PR target/64623
36477 * config/rs6000/default64.h: Revert ISA change.
36478
36479 2015-01-16 Richard Biener <rguenther@suse.de>
36480
36481 PR middle-end/64614
36482 * tree-ssa-uninit.c: Include tree-cfg.h.
36483 (MAX_SWITCH_CASES): New define.
36484 (convert_control_dep_chain_into_preds): Handle switch statements.
36485 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36486 (normalize_one_pred_1): Do not split bit-manipulations.
36487 Record (x & CST).
36488
36489 2015-01-16 Richard Biener <rguenther@suse.de>
36490
36491 PR tree-optimization/64568
36492 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36493 complex load rewriting for TARGET_MEM_REFs.
36494
36495 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
36496
36497 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36498
36499 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
36500
36501 PR target/64149
36502 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36503 variable.
36504 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36505 (aarch64_lra_p): Remove.
36506
36507 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36508
36509 PR target/64363
36510 * ipa-chkp.h (chkp_instrumentable_p): New.
36511 * ipa-chkp.c: Include tree-inline.h.
36512 (chkp_instrumentable_p): New.
36513 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36514 Fix processing of not instrumentable functions.
36515 (chkp_versioning): Use chkp_instrumentable_p. Warn about
36516 not instrumentable functions.
36517 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36518 chkp_instrumentable_p.
36519 * tree-inline.h (copy_forbidden): New.
36520 * tree-inline.c (copy_forbidden): Not static anymore.
36521
36522 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36523
36524 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36525 ptr1, ptr2 unused.
36526
36527 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36528
36529 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36530 type OP_OUT to OP_INOUT.
36531
36532 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36533
36534 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36535 (high x) y) to y if x and y have the same base.
36536
36537 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36538
36539 * config/arm/cortex-a57.md: New.
36540 * config/aarch64/aarch64.md: Include it.
36541 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36542 * config/aarch64/aarch64-tune.md: Regenerate.
36543
36544 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
36545
36546 PR target/64015
36547 * ccmp.c (expand_ccmp_next): New function.
36548 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36549 and compare insn sequence.
36550 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36551 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36552 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36553 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36554 (*ccmp_ior): Changed to ccmp_ior<mode>.
36555 (cmp<mode>): New pattern.
36556 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36557 parameters.
36558 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36559
36560 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
36561
36562 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36563 _mm256_bsrli_epi128): New.
36564 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36565
36566 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36567
36568 * expmed.c (store_bit_field_using_insv): Improve warning message.
36569 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36570
36571 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36572
36573 PR rtl-optimization/64011
36574 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36575 there is partial overflow.
36576
36577 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36578
36579 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36580 prototype.
36581 (nds32_expand_epilogue_v3pop): Likewise.
36582 * config/nds32/nds32.md (sibcall): Define this for sibling call
36583 optimization.
36584 (sibcall_register): Likewise.
36585 (sibcall_immediate): Likewise.
36586 (sibcall_value): Likewise.
36587 (sibcall_value_register): Likewise.
36588 (sibcall_value_immediate): Likewise.
36589 (sibcall_epilogue): Likewise.
36590 (epilogue): Pass false to indicate this is not a sibcall epilogue.
36591 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36592 (nds32_expand_epilogue_v3pop): Likewise.
36593
36594 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36595
36596 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36597 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36598 (return_internal): New.
36599 (return): Define this named pattern.
36600 (simple_return): Define this named pattern.
36601 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36602 pattern instead of unspec_volatile_func_return.
36603 (nds32_expand_epilogue_v3pop): Likewise.
36604 (nds32_can_use_return_insn): New function.
36605
36606 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36607
36608 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36609 * config/nds32/nds32.md (pop25return): New.
36610 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36611 pop25return pattern.
36612
36613 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36614
36615 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36616 -mforbid-fp-as-gp, and -mex9 options.
36617
36618 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36619
36620 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36621 remove -mgp-direct option.
36622
36623 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36624
36625 * doc/invoke.texi (--param early-inlining-insns): Update default value.
36626 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36627
36628 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36629
36630 * ipa-inline.c (inline_small_functions): Work around hints
36631 cache issue.
36632
36633 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
36634
36635 PR target/59710
36636 * doc/invoke.texi (Option Summary): Document new Nios II
36637 -mgpopt= syntax.
36638 (Nios II Options): Likewise.
36639 * config/nios2/nios2.opt: Add -mgpopt= option support.
36640 Modify existing -mgpopt and -mno-gpopt options to be aliases.
36641 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36642 * config/nios2/nios2.c (nios2_option_override): Adjust
36643 -mgpopt defaulting.
36644 (nios2_in_small_data_p): Return true for explicit small data
36645 sections even with -G0.
36646 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36647 option choices.
36648
36649 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36650
36651 PR ipa/64612
36652 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36653 of comdat locals.
36654 (inline_call): Fix removal of aliases.
36655
36656 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36657
36658 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36659 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36660 * opts.c (common_handle_option): Add -fsanitize=vptr.
36661 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36662 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36663 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36664 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36665 (ubsan_expand_vptr_ifn): New prototype.
36666 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36667 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36668 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36669 expand_LOOP_VECTORIZED): Make argument nameless, remove
36670 ATTRIBUTE_UNUSED.
36671 (expand_UBSAN_VPTR): New function.
36672 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36673 in fn spec.
36674 (UBSAN_VPTR): New internal function.
36675 * sanopt.c (tree_map_traits): Renamed to ...
36676 (sanopt_tree_map_traits): ... this.
36677 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36678 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36679 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
36680 (maybe_optimize_ubsan_vptr_ifn): New function.
36681 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36682 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
36683 -fsanitize=vptr.
36684 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36685 internal calls like pure functions for aliasing, even when they
36686 have other side-effects that prevent making them ECF_PURE.
36687 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36688 (ubsan_expand_vptr_ifn): New function.
36689
36690 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
36691
36692 PR rtl-optimization/64110
36693 * stmt.c (parse_output_constraint): Process '^' and '$'.
36694 (parse_input_constraint): Ditto.
36695 * lra-constraints.c (process_alt_operands): Process the new
36696 constraints.
36697 * ira-costs.c (record_reg_classes): Process the new constraint
36698 '^'.
36699 * genoutput.c (indep_constraints): Add '^' and '$'.
36700 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36701 * doc/md.texi: Add description of the new constraints.
36702
36703 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
36704 Bernd Schmidt <bernds@codesourcery.com>
36705 Cesar Philippidis <cesar@codesourcery.com>
36706 James Norris <jnorris@codesourcery.com>
36707 Tom de Vries <tom@codesourcery.com>
36708 Ilmir Usmanov <i.usmanov@samsung.com>
36709 Dmitry Bocharnikov <dmitry.b@samsung.com>
36710 Evgeny Gavrin <e.gavrin@samsung.com>
36711 Jakub Jelinek <jakub@redhat.com>
36712
36713 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36714 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36715 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36716 New function types.
36717 * builtins.c: Include "gomp-constants.h".
36718 (expand_builtin_acc_on_device): New function.
36719 (expand_builtin, is_inexpensive_builtin): Handle
36720 BUILT_IN_ACC_ON_DEVICE.
36721 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36722 New macros.
36723 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36724 flag_openmp.
36725 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36726 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36727 i386/intelmic-offload.h.
36728 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
36729 to libgomp and its dependencies.
36730 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
36731 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
36732 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
36733 * config/ia64/hpux.h (LIB_SPEC): Likewise.
36734 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36735 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
36736 * doc/generic.texi: Update for OpenACC changes.
36737 * doc/gimple.texi: Likewise.
36738 * doc/invoke.texi: Likewise.
36739 * doc/sourcebuild.texi: Likewise.
36740 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
36741 GF_OMP_FOR_KIND_OACC_LOOP.
36742 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
36743 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
36744 GF_OMP_TARGET_KIND_OACC_UPDATE,
36745 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36746 Dump more data.
36747 * gimple.c: Update comments for OpenACC changes.
36748 * gimple.def: Likewise.
36749 * gimple.h: Likewise.
36750 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
36751 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36752 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
36753 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
36754 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
36755 appropriate place.
36756 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
36757 * gimplify.c: Include "gomp-constants.h".
36758 Update comments for OpenACC changes.
36759 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
36760 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
36761 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36762 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
36763 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36764 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36765 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
36766 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36767 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
36768 OMP_CLAUSE_SEQ.
36769 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
36770 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36771 OMP_CLAUSE_SET_MAP_KIND.
36772 (gimplify_oacc_cache): New function.
36773 (gimplify_omp_for): Handle OACC_LOOP.
36774 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
36775 OACC_DATA.
36776 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
36777 OACC_EXIT_DATA, OACC_UPDATE.
36778 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
36779 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
36780 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
36781 (gimplify_body): Consider flag_openacc next to flag_openmp.
36782 * lto-streamer-out.c: Include "gomp-constants.h".
36783 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
36784 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
36785 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
36786 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
36787 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
36788 (BUILT_IN_ACC_ON_DEVICE): New builtins.
36789 * omp-low.c: Include "gomp-constants.h".
36790 Update comments for OpenACC changes.
36791 (struct omp_context): Add reduction_map, gwv_below, gwv_this
36792 members.
36793 (extract_omp_for_data, use_pointer_for_field, install_var_field)
36794 (new_omp_context, delete_omp_context, scan_sharing_clauses)
36795 (create_omp_child_function, scan_omp_for, scan_omp_target)
36796 (check_omp_nesting_restrictions, lower_reduction_clauses)
36797 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
36798 Update for OpenACC changes.
36799 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
36800 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
36801 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
36802 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
36803 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
36804 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
36805 OMP_CLAUSE_MAP_*.
36806 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
36807 Handle GF_OMP_FOR_KIND_OACC_LOOP.
36808 (expand_omp_target, lower_omp_target): Handle
36809 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
36810 GF_OMP_TARGET_KIND_OACC_UPDATE,
36811 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
36812 GF_OMP_TARGET_KIND_OACC_DATA.
36813 (pass_expand_omp::execute, execute_lower_omp)
36814 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
36815 flag_openmp.
36816 (offload_symbol_decl): New variable.
36817 (oacc_get_reduction_array_id, oacc_max_threads)
36818 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
36819 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
36820 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
36821 (oacc_gimple_assign, oacc_initialize_reduction_data)
36822 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
36823 functions.
36824 (is_targetreg_ctx): Remove function.
36825 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
36826 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
36827 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
36828 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
36829 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
36830 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
36831 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
36832 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
36833 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
36834 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
36835 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
36836 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
36837 * tree-core.h: Update comments for OpenACC changes.
36838 (enum omp_clause_map_kind): Remove.
36839 (struct tree_omp_clause): Change type of map_kind member from enum
36840 omp_clause_map_kind to unsigned char.
36841 * tree-inline.c: Update comments for OpenACC changes.
36842 * tree-nested.c: Likewise. Include "gomp-constants.h".
36843 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
36844 (convert_tramp_reference_stmt, convert_gimple_call): Update for
36845 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
36846 OMP_CLAUSE_SET_MAP_KIND.
36847 * tree-pretty-print.c: Include "gomp-constants.h".
36848 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
36849 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
36850 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
36851 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
36852 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
36853 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
36854 instead of OMP_CLAUSE_MAP_*.
36855 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
36856 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
36857 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
36858 * tree-streamer-in.c: Include "gomp-constants.h".
36859 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
36860 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
36861 * tree-streamer-out.c: Include "gomp-constants.h".
36862 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
36863 OMP_CLAUSE_MAP_*.
36864 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
36865 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
36866 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
36867 * tree.c (omp_clause_num_ops): Update accordingly.
36868 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
36869 Likewise.
36870 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
36871 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
36872 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
36873 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
36874 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
36875 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
36876 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
36877 (OMP_CLAUSE_SET_MAP_KIND): New macro.
36878 * varpool.c (varpool_node::get_create): Consider flag_openacc next
36879 to flag_openmp.
36880 * config/i386/intelmic-offload.h: New file.
36881 * config/nvptx/offload.h: Likewise.
36882
36883 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36884
36885 * explow.h: Remove duplicate contents.
36886 * dojump.h: Likewise.
36887
36888 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
36889
36890 * arm.c (arm_xgene_tune): Add default initializer for instruction
36891 fusion.
36892
36893 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36894
36895 PR ipa/64068
36896 PR ipa/64559
36897 * ipa.c (symbol_table::remove_unreachable_nodes):
36898 Do not put abstract origins into boundary.
36899
36900 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
36901
36902 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
36903 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
36904
36905 2015-01-15 Steve Ellcey <sellcey@mips.com>
36906
36907 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
36908 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
36909 builtins.def, and chkp-builtins.def.
36910
36911 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
36912
36913 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
36914 ISA 2.7 (POWER8).
36915
36916 2015-01-15 Richard Biener <rguenther@suse.de>
36917
36918 PR tree-optimization/61743
36919 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
36920 information on PHIs for some simple cases.
36921
36922 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36923
36924 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
36925 Include xgene1.md.
36926 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
36927 * config/arm/arm-cores.def (xgene1): New entry.
36928 * config/arm/arm-tables.opt: Regenerate.
36929 * config/arm/arm-tune.md: Regenerate.
36930 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
36931
36932 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36933
36934 * tree-if-conv.c: Include hash-map.h.
36935 (aggressive_if_conv): New variable.
36936 (fold_build_cond_expr): Add simplification of non-zero condition.
36937 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
36938 destination block is not always executed.
36939 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
36940 than two predecessors if AGGRESSIVE_IF_CONV is true.
36941 (if_convertible_stmt_p): Fix commentary.
36942 (all_preds_critical_p): New function.
36943 (has_pred_critical_p): New function.
36944 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
36945 BB can have more than two predecessors and all incoming edges can be
36946 critical.
36947 (predicate_bbs): Skip predication for loop exit block, use build2_loc
36948 to compute predicate for true edge.
36949 (find_phi_replacement_condition): Delete this function.
36950 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
36951 Allow interchange PHI arguments if EXTENDED is false.
36952 Change check that block containing reduction statement candidate
36953 is predecessor of phi-block since phi may have more than two arguments.
36954 (phi_args_hash_traits): New helper structure.
36955 (struct phi_args_hash_traits): New type.
36956 (phi_args_hash_traits::hash): New function.
36957 (phi_args_hash_traits::equal_keys): New function.
36958 (gen_phi_arg_condition): New function.
36959 (predicate_scalar_phi): Add handling of phi nodes with more than two
36960 arguments, delete COND and TRUE_BB arguments, insert body of
36961 find_phi_replacement_condition to predicate ordinary phi nodes.
36962 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
36963 delete call of find_phi_replacement_condition and invoke
36964 predicate_scalar_phi with two arguments.
36965 (insert_gimplified_predicates): Add assert that non-predicated block
36966 don't have statements to insert.
36967 (ifcvt_split_critical_edges): New function.
36968 (ifcvt_split_def_stmt): Likewise.
36969 (ifcvt_walk_pattern_tree): Likewise.
36970 (stmt_is_root_of_bool_pattern): Likewise.
36971 (ifcvt_repair_bool_pattern): Likewise.
36972 (ifcvt_local_dce): Likewise.
36973 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
36974 is copy of inner or outer loop force_vectorize field, invoke
36975 ifcvt_split_critical_edges, ifcvt_local_dce and
36976 ifcvt_repair_bool_pattern for aggressive if-conversion.
36977
36978 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
36979
36980 * config/aarch64/aarch64.md: Include xgene1.md.
36981 * config/aarch64/xgene1.md: New file.
36982
36983 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
36984
36985 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
36986 xgene1 (APM XGene-1) core definition.
36987 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
36988 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
36989 * doc/invoke.texi: Document -mcpu=xgene1.
36990
36991 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36992
36993 * dojump.h: New header file.
36994 * explow.h: Likewise.
36995 * expr.h: Remove includes.
36996 Move expmed.c prototypes to expmed.h.
36997 Move dojump.c prototypes to dojump.h.
36998 Move alias.c prototypes to alias.h.
36999 Move explow.c prototypes to explow.h.
37000 Move calls.c prototypes to calls.h.
37001 Move emit-rtl.c prototypes to emit-rtl.h.
37002 Move varasm.c prototypes to varasm.h.
37003 Move stmt.c prototypes to stmt.h.
37004 (saved_pending_stack_adjust): Move to dojump.h.
37005 (adjust_address): Move to explow.h.
37006 (adjust_address_nv): Move to emit-rtl.h.
37007 (adjust_bitfield_address): Likewise.
37008 (adjust_bitfield_address_size): Likewise.
37009 (adjust_bitfield_address_nv): Likewise.
37010 (adjust_automodify_address_nv): Likewise.
37011 * explow.c (expr_size): Move to expr.c.
37012 (int_expr_size): Likewise.
37013 (tree_expr_size): Likewise.
37014 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37015 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37016 * genemit.c (main): Generate includes statistics.h, real.h,
37017 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
37018 stmt.h.
37019 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
37020 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
37021 explow.h, emit-rtl.h, stmt.h.
37022 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
37023 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
37024 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
37025 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
37026 emit-rtl.h, varasm.h, stmt.h.
37027 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
37028 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
37029 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
37030 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
37031 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37032 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
37033 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
37034 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
37035 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
37036 tm.h tree.h varasm.h vec.h wide-int.h.
37037 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37038 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37039 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
37040 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
37041 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
37042 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
37043 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
37044 * loop-iv.c: Likewise.
37045 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
37046 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
37047 statistics.h stmt.h tree.h varasm.h wide-int.h.
37048 * lra-constraints.c: Likewise.
37049 * lra-eliminations.c: Likewise.
37050 * lra-lives.c: Likewise.
37051 * lra-remat.c: Likewise.
37052 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37053 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
37054 statistics.h stmt.h tree.h varasm.h wide-int.h.
37055 * hw-doloop.c: Likewise.
37056 * ira-color.c: Likewise.
37057 * ira-emit.c: Likewise.
37058 * loop-doloop.c: Likewise.
37059 * loop-invariant.c: Likewise.
37060 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37061 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
37062 statistics.h stmt.h tree.h varasm.h wide-int.h.
37063 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
37064 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
37065 statistics.h stmt.h tree.h varasm.h wide-int.h.
37066 * combine-stack-adj.c: Likewise.
37067 * cse.c: Likewise.
37068 * ddg.c: Likewise.
37069 * ifcvt.c: Likewise.
37070 * ira-costs.c: Likewise.
37071 * jump.c: Likewise.
37072 * lra-coalesce.c: Likewise.
37073 * lra-spills.c: Likewise.
37074 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37075 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
37076 stmt.h varasm.h wide-int.h.
37077 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37078 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37079 varasm.h.
37080 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
37081 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
37082 statistics.h stmt.h varasm.h wide-int.h.
37083 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
37084 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
37085 varasm.h wide-int.h.
37086 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
37087 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37088 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
37089 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
37090 statistics.h stmt.h.
37091 * config/tilepro/tilepro.c: Likewise.
37092 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
37093 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
37094 * config/pdp11/pdp11.c: Likewise.
37095 * config/xtensa/xtensa.c: Likewise.
37096 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
37097 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37098 varasm.h.
37099 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37100 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37101 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
37102 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37103 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37104 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
37105 * rtl-chkp.c: Likewise.
37106 * tree-chkp-opt.c: Likewise.
37107 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
37108 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37109 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
37110 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37111 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37112 statistics.h stmt.h.
37113 * tree-vect-data-refs.c: Likewise.
37114 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
37115 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37116 rtl.h statistics.h stmt.h varasm.h.
37117 * internal-fn.c: Likewise.
37118 * ipa-icf-gimple.c: Likewise.
37119 * lto-section-out.c: Likewise.
37120 * tree-data-ref.c: Likewise.
37121 * tree-nested.c: Likewise.
37122 * tree-outof-ssa.c: Likewise.
37123 * tree-predcom.c: Likewise.
37124 * tree-pretty-print.c: Likewise.
37125 * tree-scalar-evolution.c: Likewise.
37126 * tree-ssa-strlen.c: Likewise.
37127 * tree-vect-loop.c: Likewise.
37128 * tree-vect-patterns.c: Likewise.
37129 * tree-vect-slp.c: Likewise.
37130 * tree-vect-stmts.c: Likewise.
37131 * tsan.c: Likewise.
37132 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37133 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
37134 stmt.h.
37135 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37136 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37137 statistics.h stmt.h varasm.h.
37138 * loop-unroll.c: Likewise.
37139 * ubsan.c: Likewise.
37140 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37141 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37142 stmt.h varasm.h.
37143 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37144 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37145 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37146 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37147 statistics.h stmt.h.
37148 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37149 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37150 statistics.h stmt.h varasm.h.
37151 * gimple-match-head.c: Likewise.
37152 * lto-cgraph.c: Likewise.
37153 * lto-section-in.c: Likewise.
37154 * lto-streamer-in.c: Likewise.
37155 * lto-streamer-out.c: Likewise.
37156 * tree-affine.c: Likewise.
37157 * tree-cfg.c: Likewise.
37158 * tree-cfgcleanup.c: Likewise.
37159 * tree-if-conv.c: Likewise.
37160 * tree-into-ssa.c: Likewise.
37161 * tree-ssa-alias.c: Likewise.
37162 * tree-ssa-copyrename.c: Likewise.
37163 * tree-ssa-dse.c: Likewise.
37164 * tree-ssa-forwprop.c: Likewise.
37165 * tree-ssa-live.c: Likewise.
37166 * tree-ssa-math-opts.c: Likewise.
37167 * tree-ssa-pre.c: Likewise.
37168 * tree-ssa-sccvn.c: Likewise.
37169 * tree-tailcall.c: Likewise.
37170 * tree-vect-generic.c: Likewise.
37171 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37172 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37173 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37174 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37175 * varasm.c: Likewise.
37176 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37177 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37178 varasm.h.
37179 * init-regs.c: Likewise.
37180 * ira.c: Likewise.
37181 * omp-low.c: Likewise.
37182 * stack-ptr-mod.c: Likewise.
37183 * tree-ssa-reassoc.c: Likewise.
37184 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37185 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37186 varasm.h.
37187 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37188 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37189 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37190 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37191 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37192 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37193 * tree-ssa-phiopt.c: Likewise.
37194 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37195 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37196 * config/fr30/fr30.c: Likewise.
37197 * config/frv/frv.c: Likewise.
37198 * expr.c: Likewise.
37199 * final.c: Likewise.
37200 * optabs.c: Likewise.
37201 * passes.c: Likewise.
37202 * simplify-rtx.c: Likewise.
37203 * stmt.c: Likewise.
37204 * toplev.c: Likewise.
37205 * var-tracking.c: Likewise.
37206 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37207 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37208 * lower-subreg.c: Likewise.
37209 * postreload-gcse.c: Likewise.
37210 * ree.c: Likewise.
37211 * reginfo.c: Likewise.
37212 * store-motion.c: Likewise.
37213 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37214 fixed-value.h hashtab.h real.h stmt.h varasm.h.
37215 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37216 fixed-value.h hashtab.h statistics.h stmt.h.
37217 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37218 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37219 * except.c: Likewise.
37220 * explow.c: Likewise.
37221 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37222 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37223 varasm.h.
37224 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37225 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37226 * tree-ssa-structalias.c: Likewise.
37227 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37228 fixed-value.h insn-config.h real.h statistics.h.
37229 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37230 fixed-value.h insn-config.h real.h statistics.h stmt.h.
37231 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37232 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37233 * cfgbuild.c: Likewise.
37234 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37235 fixed-value.h real.h rtl.h statistics.h stmt.h.
37236 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37237 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37238 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37239 fixed-value.h real.h statistics.h stmt.h.
37240 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37241 fixed-value.h real.h statistics.h stmt.h varasm.h.
37242 * cprop.c: Likewise.
37243 * modulo-sched.c: Likewise.
37244 * postreload.c: Likewise.
37245 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37246 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37247 statistics.h stmt.h varasm.h.
37248 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37249 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37250 rtl.h statistics.h stmt.h varasm.h.
37251 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37252 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37253 varasm.h.
37254 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37255 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37256 varasm.h.
37257 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37258 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37259 varasm.h.
37260 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37261 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37262 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37263 function.h real.h statistics.h stmt.h varasm.h.
37264 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37265 insn-config.h real.h statistics.h stmt.h.
37266 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37267 statistics.h stmt.h.
37268 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37269 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37270 statistics.h stmt.h varasm.h.
37271 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37272 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37273 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37274 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37275 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37276 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37277 statistics.h stmt.h varasm.h.
37278 * ipa-polymorphic-call.c: Likewise.
37279 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37280 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37281 statistics.h stmt.h.
37282 * config/c6x/c6x.c: Likewise.
37283 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37284 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37285 statistics.h stmt.h varasm.h.
37286 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37287 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37288 stmt.h varasm.h.
37289 * ipa-split.c: Likewise.
37290 * tree-eh.c: Likewise.
37291 * tree-ssa-dce.c: Likewise.
37292 * tree-ssa-loop-niter.c: Likewise.
37293 * tree-vrp.c: Likewise.
37294 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37295 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37296 stmt.h.
37297 * config/nds32/nds32-fp-as-gp.c: Likewise.
37298 * config/nds32/nds32-intrinsic.c: Likewise.
37299 * config/nds32/nds32-isr.c: Likewise.
37300 * config/nds32/nds32-md-auxiliary.c: Likewise.
37301 * config/nds32/nds32-memory-manipulation.c: Likewise.
37302 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37303 * config/nds32/nds32-predicates.c: Likewise.
37304 * config/nds32/nds32.c: Likewise.
37305 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37306 fixed-value.h hashtab.h real.h statistics.h.
37307 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37308 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37309 * config/arm/arm.c: Likewise.
37310 * config/avr/avr.c: Likewise.
37311 * config/bfin/bfin.c: Likewise.
37312 * config/h8300/h8300.c: Likewise.
37313 * config/i386/i386.c: Likewise.
37314 * config/ia64/ia64.c: Likewise.
37315 * config/iq2000/iq2000.c: Likewise.
37316 * config/m32c/m32c.c: Likewise.
37317 * config/m32r/m32r.c: Likewise.
37318 * config/m68k/m68k.c: Likewise.
37319 * config/mcore/mcore.c: Likewise.
37320 * config/mep/mep.c: Likewise.
37321 * config/mips/mips.c: Likewise.
37322 * config/mn10300/mn10300.c: Likewise.
37323 * config/moxie/moxie.c: Likewise.
37324 * config/pa/pa.c: Likewise.
37325 * config/rl78/rl78.c: Likewise.
37326 * config/rx/rx.c: Likewise.
37327 * config/s390/s390.c: Likewise.
37328 * config/sh/sh.c: Likewise.
37329 * config/sparc/sparc.c: Likewise.
37330 * config/spu/spu.c: Likewise.
37331 * config/stormy16/stormy16.c: Likewise.
37332 * config/v850/v850.c: Likewise.
37333 * config/vax/vax.c: Likewise.
37334 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37335 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37336 * config/msp430/msp430.c: Likewise.
37337 * predict.c: Likewise.
37338 * value-prof.c: Likewise.
37339 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37340 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37341 * config/microblaze/microblaze.c: Likewise.
37342 * config/nios2/nios2.c: Likewise.
37343 * config/rs6000/rs6000.c: Likewise.
37344 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37345 insn-config.h real.h rtl.h statistics.h stmt.h.
37346 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37347 insn-config.h real.h statistics.h stmt.h.
37348 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37349 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37350 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37351 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37352 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37353 fixed-value.h real.h statistics.h stmt.h.
37354 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37355 fixed-value.h statistics.h stmt.h.
37356 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37357 stmt.h.
37358
37359 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37360
37361 * gengtype.c (create_user_defined_type): Workaround
37362 -Wmaybe-uninitialized false positives.
37363 * cse.c (fold_rtx): Likewise.
37364 * loop-invariant.c (gain_for_invariant): Likewise.
37365
37366 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
37367
37368 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37369 set the memory attributes in all cases but clear MEM_EXPR if need be.
37370
37371 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37372
37373 PR tree-optimization/64434
37374 * cfgexpand.c (reorder_operands): New function.
37375 (expand_gimple_basic_block): Insert call of reorder_operands if
37376 optimized is true.
37377
37378 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
37379
37380 * config/mips/micromips.md (*swp): Remove explicit parallel.
37381 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37382 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37383 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37384 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37385 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37386 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37387 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37388 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37389 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37390 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37391 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37392 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37393 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37394 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37395 (mips_wrdsp): Likewise.
37396 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37397 parallel.
37398 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37399 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37400 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37401 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37402 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37403 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37404 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37405 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37406 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37407
37408 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37409
37410 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37411 (mips_print_operand): Support 'y' to print exact log2 in decimal
37412 of a const_int.
37413 * config/mips/mips.h (ISA_HAS_LSA): New define.
37414 (ISA_HAS_DLSA): Likewise.
37415 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37416 * config/mips/predicates.md (const_immlsa_operand): New predicate.
37417
37418 2015-01-15 Martin Liska <mliska@suse.cz>
37419
37420 PR target/64377
37421 * optc-save-gen.awk: Add support for array types.
37422
37423 2015-01-15 Richard Biener <rguenther@suse.de>
37424
37425 PR middle-end/64365
37426 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37427 for MEM_REF access functions with the same base can never partially
37428 overlap.
37429
37430 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
37431
37432 * common.opt: New option -fstack-protector-explicit.
37433 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37434 (stack_protect_decl_phase): Handle stack_protect attribute for
37435 explicit stack protection requests.
37436 (expand_used_vars): Similarly.
37437 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37438 * doc/extend.texi: Add documentation for "stack_protect" attribute.
37439 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37440
37441 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
37442
37443 PR target/53988
37444 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37445 reg-reg copies.
37446 (sh_extending_set_of_reg): New struct.
37447 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37448 sh_remove_reg_dead_or_unused_notes): New Declarations.
37449 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37450 sh_find_extending_set_of_reg, sh_split_tst_subregs,
37451 sh_extending_set_of_reg::use_as_extended_reg): New functions.
37452 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37453 convert to insn_and_split and use new function sh_split_tst_subregs.
37454
37455 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
37456
37457 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37458 option.
37459 (Optimization Options): Move -fuse-ld documentation to...
37460 (Link Options): ...here.
37461
37462 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37463
37464 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37465 offsets.
37466 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37467 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37468 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37469 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37470 instead of ZR for the memory operand of LL/SC.
37471 (compare_and_swap_12, sync_add<mode>): Likewise.
37472 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37473 (sync_new_<optab>_12, sync_nand_12): Likewise.
37474 (sync_old_nand_12, sync_new_nand_12): Likewise.
37475 (sync_sub<mode>, sync_old_add<mode>): Likewise.
37476 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37477 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37478 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37479 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37480 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37481 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37482 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37483 * doc/md.texi (ZC): Update description.
37484
37485 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37486
37487 * builtins.c (expand_builtin_atomic_exchange): Remove error when
37488 memory model is CONSUME.
37489 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37490 expand_builtin_atomic_store): Change invalid memory model errors to
37491 warnings.
37492 (expand_builtin_atomic_clear): Change invalid model errors to warnings
37493 and issue warning for CONSUME.
37494
37495 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
37496
37497 * lto-cgraph: Update function comments for
37498 lto_symtab_encoder_encode_*.
37499
37500 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37501
37502 * Makefile.in (site.exp): Do not set ENABLE_LTO.
37503
37504 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37505
37506 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37507 * lto-cgraph.c (select_what_to_stream): Remove argument, use
37508 lto_stream_offload_p instead.
37509 * lto-streamer.h (select_what_to_stream): Remove argument.
37510 * passes.c (ipa_write_summaries): Likewise.
37511 * tree-pass.h (ipa_write_summaries): Likewise.
37512
37513 2015-01-14 Richard Biener <rguenther@suse.de>
37514
37515 PR tree-optimization/59354
37516 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37517 groups larger than the slp group size as having gaps.
37518
37519 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37520
37521 PR middle-end/59448
37522 * builtins.c (get_memmodel): Promote consume to acquire always.
37523
37524 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37525
37526 PR target/64386
37527 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37528 V32HImode.
37529
37530 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37531
37532 PR target/64393
37533 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37534 Enable AVX512BW.
37535 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37536 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37537 AVX512VBMI, as it implies AVX512BW.
37538
37539 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37540
37541 PR target/64387
37542 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37543 (vec_unpacks_hi_v16sf): Ditto.
37544
37545 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37546
37547 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37548 is not available.
37549
37550 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37551
37552 * doc/invoke.texi (mapcs): Mention deprecation.
37553 (mapcs-frame): Likewise.
37554
37555 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
37556
37557 PR target/64453
37558 * config/arm/arm.c (callee_saved_reg_p): Define.
37559 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37560 register is callee saved instead of !call_used_regs[reg].
37561 (thumb1_compute_save_reg_mask): Likewise.
37562
37563 2015-01-14 Hale Wang <hale.wang@arm.com>
37564
37565 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37566 Cortex-M7.
37567
37568 2015-01-14 Richard Biener <rguenther@suse.de>
37569
37570 PR lto/64415
37571 * tree-inline.c (insert_debug_decl_map): Check destination
37572 function MAY_HAVE_DEBUG_STMTS.
37573 (insert_init_debug_bind): Likewise.
37574 (insert_init_stmt): Remove redundant check.
37575 (remap_gimple_stmt): Drop debug stmts if the destination
37576 function has var-tracking assignments disabled.
37577
37578 2015-01-14 Martin Liska <mliska@suse.cz>
37579
37580 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37581 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37582
37583 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37584
37585 PR target/64460
37586 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37587 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37588
37589 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37590
37591 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37592 level from an ARCH; do not inject the default.
37593 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37594 MIPS_ISA_LEVEL_SPEC.
37595 (MIPS_ISA_NAN2008_SPEC): Update comment.
37596 (BASE_DRIVER_SELF_SPECS): Likewise.
37597 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37598 MIPS_DEFAULT_ISA_LEVEL_SPEC.
37599 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37600 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37601 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37602
37603 2015-01-14 Richard Biener <rguenther@suse.de>
37604
37605 PR tree-optimization/64493
37606 PR tree-optimization/64495
37607 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37608 assign the proper vectorized PHI to the inner loop exit PHIs.
37609
37610 2015-01-14 Joey Ye <joey.ye@arm.com>
37611
37612 * config/arm/arm.c (arm_compute_save_reg_mask):
37613 Do not save lr in case of tail call.
37614 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37615
37616 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
37617
37618 * tree-vrp.c (check_array_ref): Emit more warnings
37619 for warn_array_bounds >= 2.
37620 * common.opt: New option -Warray-bounds=.
37621 * doc/invoke.texi: Document -Warray-bounds=.
37622
37623 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
37624
37625 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37626 (mforbid-fp-as-gp): Remove.
37627 (mex9): Remove.
37628 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37629 (nds32_symbol_load_store_p): Remove.
37630 (nds32_fp_as_gp_check_available): Clean up implementation.
37631 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37632 cases.
37633 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37634 fp-as-gp and ex9 cases.
37635
37636 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37637
37638 * tree-profile.c (init_ic_make_global_vars): Drop workaround
37639 for bintuils bug 14342.
37640 (init_ic_make_global_vars): Likewise.
37641 (gimple_init_edge_profiler): Likewise.
37642 (gimple_gen_ic_func_profiler): Likewise.
37643
37644 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37645
37646 * ipa-inline.c (inline_small_functions): Swap the operands in
37647 enum.
37648
37649 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37650
37651 PR ipa/64481
37652 * ipa-inline-analysis.c (node_growth_cache): Remove.
37653 (initialize_growth_caches): Do not initialize it.
37654 (free_growth_caches): Do not free it.
37655 (do_estimate_growth): Rename to ...
37656 (estimate_growth): ... this one; drop growth cache code.
37657 (growth_likely_positive): Always go the heuristics way.
37658 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37659 (reset_edge_caches): Do not reset node growth.
37660 (heap_edge_removal_hook): Do not maintain cache.
37661 (inline_small_functions): Likewise; strenghten sanity check.
37662 (ipa_inline): Do not maintain caches.
37663 * ipa-inline.h (node_growth_cache): Remove.
37664 (do_estimate_growth): Remove to ...
37665 (estimate_growth): this one; remove inline version.
37666 (reset_node_growth_cache): Remove.
37667
37668 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37669
37670 PR ipa/64565
37671 * ipa-inline.c (inline_small_functions): Update callee keys after
37672 resolving speculation
37673 (inline_small_functions): Always check monotonicity of the queue.
37674
37675 2015-01-13 Marek Polacek <polacek@redhat.com>
37676
37677 PR middle-end/64391
37678 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37679
37680 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37681
37682 PR rtl-optimization/64286
37683 * ree.c (combine_reaching_defs): Move part of comment earlier,
37684 remove !SCALAR_INT_MODE_P check.
37685 (add_removable_extension): Don't add vector mode
37686 extensions if all uses of the source register aren't the same
37687 vector extensions.
37688
37689 2015-01-13 Renlin Li <renlin.li@arm.com>
37690
37691 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37692 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37693
37694 2015-01-13 Martin Liska <mliska@suse.cz>
37695
37696 * ipa-icf.c (sem_function::equals_private): Call new functions
37697 cl_target_option_print_diff and cl_optimization_print_diff.
37698 * optc-save-gen.awk (cl_target_option_print_diff): New function.
37699 (cl_optimization_print_diff): Likewise.
37700 * opth-gen.awk: Likewise.
37701
37702 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
37703
37704 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37705 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37706 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37707 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37708 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37709 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37710
37711 2015-01-13 Andrew Pinski <apinski@cavium.com>
37712
37713 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37714 instead of src mode.
37715
37716 2015-01-13 Richard Biener <rguenther@suse.de>
37717
37718 PR lto/64373
37719 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37720 DECL_CONTEXT.
37721
37722 2015-01-13 Andrew Pinski <apinski@cavium.com>
37723
37724 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37725 volatile mems.
37726 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37727
37728 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37729
37730 PR middle-end/63974
37731 * cfgexpand.c (expand_computed_goto): Don't call
37732 convert_memory_address here.
37733
37734 2015-01-13 Richard Biener <rguenther@suse.de>
37735
37736 PR tree-optimization/64406
37737 * tree-loop-distibution.c (pass_loop_distribution::execute):
37738 Reset the SCEV hashtable if we distributed anything.
37739
37740 2015-01-13 Richard Biener <rguenther@suse.de>
37741
37742 PR tree-optimization/64404
37743 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
37744 SLP types for CSEd loads.
37745
37746 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37747
37748 PR tree-optimization/64436
37749 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
37750 merge of two symbolic numbers for a bitwise OR to ...
37751 (perform_symbolic_merge): This. Also fix computation of the range and
37752 end of the symbolic number corresponding to the result of a bitwise OR.
37753
37754 2015-01-13 Richard Biener <rguenther@suse.de>
37755
37756 PR tree-optimization/64568
37757 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
37758 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
37759
37760 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37761
37762 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
37763 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
37764
37765 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37766
37767 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
37768 target-specific symbol_ref flag.
37769 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
37770 resides in rodata section.
37771 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
37772 (nds32_encode_section_info): New function.
37773
37774 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37775
37776 * config/nds32/nds32.md (call): Use pseudo instruction bal which
37777 clobbers TA_REGNUM if large code model is specified.
37778 (call_register): Likewise.
37779 (call_immediate): Likewise.
37780 (call_value): Likewise.
37781 (call_value_register): Likewise.
37782 (call_value_immediate): Likewise.
37783
37784 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37785
37786 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
37787 (TARGET_CMODEL_MEDIUM): New macro.
37788 (TARGET_CMODEL_LARGE): New macro.
37789 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
37790 code model setting in assembly code.
37791
37792 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37793
37794 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37795 Remove MASK_GP_DIRECT flag.
37796 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
37797 one of the multilib default options.
37798 * config/nds32/nds32.opt (mgp-direct): Remove.
37799 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
37800 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
37801
37802 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
37803
37804 * config/nds32/nds32.opt (mcmodel): Add new option.
37805 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
37806 to describe code model.
37807
37808 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
37809
37810 PR target/64479
37811 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
37812
37813 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
37814
37815 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
37816 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37817 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
37818 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
37819 __builtin_sh_set_fpscr.
37820
37821 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37822
37823 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
37824 after a funtion name just to indicate it is a function.
37825 ([-fsanitize-undefined-trap-on-error]): Likewise.
37826 ([-fdbg-cnt=]): Likewise.
37827 ([-mmemcpy]): Likewise.
37828 ([-mflush-func]): Likewise.
37829 ([-msynci]): Likewise.
37830
37831 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
37832
37833 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
37834 example.
37835
37836 2015-01-12 Jakub Jelinek <jakub@redhat.com>
37837
37838 PR tree-optimization/64563
37839 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
37840 instead of != VR_VARYING.
37841
37842 PR target/64513
37843 * config/i386/i386.c (ix86_expand_prologue): Add
37844 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
37845
37846 PR tree-optimization/64454
37847 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
37848 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
37849 for signed or [0, op1 - 1] for unsigned modulo.
37850 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
37851 even if op1 does not satisfy integer_pow2p.
37852
37853 PR other/64370
37854 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
37855
37856 2015-01-12 Jeff Law <law@redhat.com>
37857
37858 PR target/64461
37859 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
37860 (trunchiqi2, truncsihi2): Similarly.
37861
37862 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
37863 rather than calling F.
37864
37865 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
37866
37867 * tsan.c (instrument_expr): Use force_gimple_operand.
37868 Use may_be_nonaddressable_p instead of is_gimple_addressable.
37869
37870 2015-01-12 Richard Biener <rguenther@suse.de>
37871
37872 PR tree-optimization/64530
37873 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
37874 back dr1.
37875
37876 2015-01-12 Richard Biener <rguenther@suse.de>
37877
37878 PR middle-end/64357
37879 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
37880 latches properly.
37881
37882 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37883
37884 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
37885 Cortex-A17 tuning parameters.
37886 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
37887
37888 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37889
37890 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
37891 * config/arm/arm.c (arm_macro_fusion_p): New function.
37892 (arm_macro_fusion_pair_p): Likewise.
37893 (TARGET_SCHED_MACRO_FUSION_P): Define.
37894 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
37895 (ARM_FUSE_NOTHING): Likewise.
37896 (ARM_FUSE_MOVW_MOVT): Likewise.
37897 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
37898 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
37899 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
37900 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
37901 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
37902 arm_cortex_a5_tune): Specify fuseable_ops value.
37903
37904 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
37905
37906 PR bootstrap/64561
37907 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
37908 test for PIE with copy reloc.
37909 * configure: Regenerated.
37910
37911 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37912
37913 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
37914 in gen_rtx_REG.
37915 (arm_tls_descseq_addr): Likewise.
37916 (arm_gen_movmemqi): Likewise.
37917 (arm_expand_epilogue_apcs_frame): Likewise.
37918 (arm_expand_epilogue): Likewise.
37919 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
37920 in gen_rtx_REG.
37921
37922 2015-01-12 Martin Liska <mliska@suse.cz>
37923
37924 PR ipa/64550
37925 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
37926 volatility for correct operands.
37927
37928 2015-01-12 Martin Liska <mliska@suse.cz>
37929
37930 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
37931 indication that a function is not leaf.
37932 (sem_function::compare_polymorphic_p): Likewise.
37933
37934 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37935
37936 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
37937 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
37938 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
37939 fold-const.h, tree-check.h.
37940
37941 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37942
37943 PR ipa/63967
37944 PR ipa/64425
37945 * ipa-inline.c (compute_uninlined_call_time,
37946 compute_inlined_call_time): Use counts for extra precision when
37947 needed possible.
37948 (big_speedup_p): Fix formating.
37949 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
37950 (relative_time_benefit): Remove.
37951 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
37952 merge guessed and read profile paths.
37953 (inline_small_functions): Count only !optimize_size functions into
37954 initial size; be more lax about sanity check when profile is used;
37955 be sure to update inlined function profile when profile is read.
37956
37957 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
37958
37959 PR ipa/63470
37960 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
37961 cost when edge becomes direct.
37962 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
37963 is resolved or when introducing new speculation.
37964
37965 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
37966
37967 PR ipa/64551
37968 PR ipa/64552
37969 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
37970 '||' to fix typo issue.
37971
37972 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
37973 accept and return NULL.
37974
37975 2015-01-12 Martin Liska <mliska@suse.cz>
37976
37977 * cgraph.c (cgraph_edge::remove_callee): Move function to header
37978 file for being inlined.
37979 (cgraph_set_edge_callee): Delete.
37980 (cgraph_edge::redirect_callee): Move function to header file
37981 for being inlined.
37982 (cgraph_edge::make_direct): Use new function.
37983 (cgraph_edge::dump_edge_flags): New function created from
37984 static dump_edge_flags function.
37985 (cgraph_node::dump): Use new function.
37986 (cgraph_edge::verify_count_and_frequency): New function created
37987 from verify_edge_count_and_frequency.
37988 (cgraph_edge::verify_corresponds_to_fndecl): New function created
37989 from verify_edge_corresponds_to_fndecl.
37990 (verify_edge_corresponds_to_fndecl): Delete.
37991 (cgraph_node::verify_node): Use new function.
37992 * cgraph.h (cgraph_edge::set_callee): New function.
37993 (cgraph_edge::dump_edge_flags): Likewise.
37994 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
37995
37996 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
37997
37998 * ipa-utils.c (estimate_function_body_sizes): Do not
37999 free node params when called late with early=true.
38000
38001 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
38002
38003 * doc/md.texi (Instruction Patterns): Rewrite text for
38004 clarity.
38005 (Example): Likewise.
38006
38007 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
38008
38009 * doc/invoke.texi (Option Summary): Break long lines.
38010 [(-fdiagnostics-color)]: Put long literal in @smallexample
38011 instead of inline.
38012 [(-fsanitize-recover)]: Likewise.
38013 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
38014 [(-ffast-math)]: Likewise.
38015 [(--param max-inline-insns-recursive)]: Likewise.
38016 [(--param max-inline-recursive-depth)]: Likewise.
38017 [(-mno-text-section-literals)]: Likewise.
38018
38019 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
38020
38021 * doc/install.texi: Update for libgomp being renamed from "GNU
38022 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
38023 Runtime Library".
38024 * doc/sourcebuild.texi: Likewise.
38025
38026 2015-01-10 Anthony Green <green@moxielogic.com>
38027
38028 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
38029 mul.x availability for moxiebox configuration.
38030
38031 2015-01-09 Anthony Green <green@moxielogic.com>
38032
38033 * config/moxie/moxie.md: Tabify assembly output.
38034
38035 2015-01-09 Anthony Green <green@moxielogic.com>
38036
38037 * config/moxie/moxie.md (CC_REG): Correct register definition.
38038
38039 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
38040
38041 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
38042 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
38043 of log files.
38044
38045 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38046
38047 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
38048
38049 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
38050 Jakub Jelinek <jakub@redhat.com>
38051
38052 PR middle-end/64412
38053 * lto-streamer.h (lto_stream_offload_p): New declaration.
38054 * lto-streamer.c (lto_stream_offload_p): New variable.
38055 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
38056 at the same time as section_name_prefix.
38057 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
38058 if lto_stream_offload_p.
38059 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
38060 stream TREE_TARGET_OPTION if lto_stream_offload_p.
38061 (write_ts_function_decl_tree_pointers): Don't
38062 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
38063 * tree-streamer-in.c (unpack_value_fields): Don't stream
38064 TREE_TARGET_OPTION in if ACCEL_COMPILER.
38065 (lto_input_ts_function_decl_tree_pointers): Don't stream
38066 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
38067 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
38068 instead of section_name_prefix string comparisons.
38069
38070 2015-01-09 Jakub Jelinek <jakub@redhat.com>
38071
38072 PR rtl-optimization/64536
38073 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
38074 tablejumps.
38075
38076 2015-01-09 Michael Collison <michael.collison@linaro.org>
38077
38078 PR tree-optimization/64322
38079 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
38080 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
38081
38082 2015-01-09 Tom de Vries <tom@codesourcery.com>
38083
38084 PR rtl-optimization/64539
38085 * regcprop.c (kill_clobbered_values): Factor out of ...
38086 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
38087 instead of note_stores with kill_clobbered_value.
38088
38089 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38090
38091 * ginclude/unwind-arm-common.h: Revert previous commit.
38092
38093 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38094
38095 * config.gcc (arm*-*-freebsd*): New configuration.
38096 * config/arm/freebsd.h: New file.
38097 * config.host: Add extra components for arm*-*-freebsd*.
38098 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
38099 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
38100
38101 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38102
38103 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
38104 for -mcpu=e6500.
38105 * config/rs6000/t-rtems: Add e6500 multilibs.
38106
38107 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38108
38109 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
38110 MPC8540.
38111
38112 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38113
38114 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
38115 MULTILIB_EXCEPTIONS.
38116
38117 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38118
38119 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
38120 MULTILIB_EXCEPTIONS.
38121
38122 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38123
38124 * config/arm/t-rtems-eabi: Rename to...
38125 * config/arm/t-rtems: ...this.
38126 * config/arm/rtems-eabi.h: Rename to...
38127 * config/arm/rtems.h: ...this.
38128 * config.gcc (arm*-*-rtems*): Reflect changes above.
38129
38130 2015-01-09 Richard Biener <rguenther@suse.de>
38131
38132 PR tree-optimization/64410
38133 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
38134 on the LHS.
38135 (execute_update_addresses_taken): Deal with that.
38136 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38137 loads/stores for complex variables.
38138
38139 2015-01-09 Martin Liska <mliska@suse.cz>
38140
38141 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38142 name comparison.
38143 (func_checker::compare_memory_operand): New function.
38144 (func_checker::compare_operand): Split case to newly
38145 added functions.
38146 (func_checker::compare_cst_or_decl): New function.
38147 (func_checker::compare_gimple_call): Identify
38148 memory operands.
38149 (func_checker::compare_gimple_assign): Likewise.
38150 * ipa-icf-gimple.h: New function.
38151
38152 2015-01-09 Martin Liska <mliska@suse.cz>
38153
38154 PR ipa/64503
38155 * sreal.c (sreal::dump): Change unsigned format to signed for
38156 m_exp value.
38157 (sreal::to_double): Replace exp2 with scalbln.
38158
38159 2015-01-09 Martin Liska <mliska@suse.cz>
38160
38161 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38162 * ipa-icf.c (sem_function::equals_private): Add support for target and
38163 (sem_item_optimizer::merge_classes): Remove redundant function
38164 optimization flags comparison.
38165 * tree.h (target_opts_for_fn): New function.
38166
38167 2015-01-09 Tom de Vries <tom@codesourcery.com>
38168
38169 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38170
38171 2015-01-09 Kito Cheng <kito@0xlab.org>
38172
38173 PR rtl-optimization/64348
38174 * lra-constraints.c (split_reg): Fix caller-save store/restore
38175 instruction generation.
38176
38177 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
38178
38179 PR gcov-profile/61790
38180 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38181 long long. Fallback to int64_t if host doesn't have long long and
38182 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
38183
38184 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38185
38186 PR tree-optimization/63989
38187 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38188 from 1000 to 10000.
38189 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38190 (get_stridx): If we don't have a record for certain SSA_NAME,
38191 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38192 constant offset, call get_stridx_plus_constant.
38193 (get_stridx_plus_constant): New function.
38194 (zero_length_string): Don't use get_stridx here.
38195
38196 PR target/55023
38197 PR middle-end/64388
38198 * dse.c (struct insn_info): Mention frame_read set also
38199 before reload for tail calls on some targets.
38200 (scan_insn): Revert 2014-12-22 change. Set frame_read
38201 also before reload for tail calls if
38202 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
38203 instead of add_non_frame_wild_read for non-const/memset
38204 tail calls after reload.
38205
38206 2015-01-08 Jason Merrill <jason@redhat.com>
38207
38208 * ubsan.c (do_ubsan_in_current_function): New.
38209 (pass_ubsan::gate): Use it.
38210 * ubsan.h: Declare it.
38211 * convert.c (convert_to_integer): Use it.
38212
38213 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38214
38215 PR target/64338
38216 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38217 compare_code when it is unconditionally overwritten afterwards.
38218 Use ix86_reverse_condition instead of reverse_condition. Don't
38219 change code if *reverse_condition* returned UNKNOWN and don't
38220 swap ct/cf and negate diff in that case.
38221
38222 2015-01-08 Mike Stump <mikestump@comcast.net>
38223
38224 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38225 (pass_tsan_O0::gate): Likewise.
38226 * extend.texi (Function Attributes): Add no_sanitize_thread
38227 documentation.
38228
38229 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
38230
38231 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38232 for registering builtins.
38233 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38234 add -fopenmp to the argv_obstack used when invoking
38235 compile_for_target.
38236
38237 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38238 add "-m32" or "-m64" to argv_obstack.
38239 (generate_host_descr_file): Likewise, when invoking host_compiler.
38240 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38241 ld.
38242
38243 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38244
38245 * config/sh/sh-mem.cc: Use constant as second operand when emitting
38246 tstsi_t insns.
38247
38248 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38249
38250 PR target/55212
38251 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38252 constant load if constant operand fits into I08.
38253
38254 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38255
38256 PR sanitizer/64336
38257 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38258 and TREE_THIS_VOLATILE for MEM_REFs.
38259 (build5_stat): Fix up initialization of TREE_READONLY and
38260 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38261
38262 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
38263
38264 PR target/64533
38265 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38266 of r for the second alternative of the destination operand.
38267
38268 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
38269
38270 PR target/36557
38271 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38272
38273 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38274
38275 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38276 keywords.
38277 ([-fivar-visibility], [-fvisibility]): Likewise.
38278
38279 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38280
38281 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38282 the file where @code, @command, etc is more appropriate.
38283
38284 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
38285
38286 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38287 of -mrecip= documentation.
38288
38289 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38290
38291 PR target/64505
38292 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38293 correct reload handler if -m32 -mpowerpc64 is used.
38294
38295 2015-01-06 Tom de Vries <tom@codesourcery.com>
38296
38297 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38298
38299 2015-01-08 Christian Bruel <christian.bruel@st.com>
38300
38301 PR target/64507
38302 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38303
38304 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
38305
38306 PR tree-optimization/63259
38307 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38308 if optab exists for 16bit byteswap.
38309
38310 2015-01-06 Jakub Jelinek <jakub@redhat.com>
38311
38312 * opts.c (common_handle_option): Add support for
38313 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38314 * doc/invoke.texi: Document -fno-sanitize=all,
38315 -f{,no-}sanitize-recover=all. Document that
38316 -fsanitize=float-cast-overflow is not enabled
38317 by -fsanitize=undefined. Fix up documentation
38318 of -f{,no-}sanitize-recover.
38319
38320 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
38321
38322 * config.gcc: Add Visium support.
38323 * configure.ac: Likewise.
38324 * configure: Regenerate.
38325 * doc/extend.texi (interrupt attribute): Add Visium.
38326 * doc/invoke.texi: Document Visium options.
38327 * doc/install.texi: Document Visium target.
38328 * doc/md.texi: Document Visium constraints.
38329 * common/config/visium: New directory.
38330 * config/visium: Likewise.
38331
38332 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38333
38334 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38335 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38336
38337 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38338
38339 * combine.c (combine_validate_cost): Do not count the cost of a
38340 split I2 twice. Do not display it twice in the dump, either.
38341
38342 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38343
38344 Revert parts of r219199.
38345 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38346 <inttypes.h>.
38347 ([-Wtraditional]): Restore markup on <limits.h>.
38348
38349 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
38350
38351 PR c++/31397
38352 * doc/invoke.texi: Document -Wsuggest-override.
38353
38354 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
38355
38356 PR rtl-optimization/64287
38357 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38358 (process_options): Disable flag_ipa_ra if profiling.
38359
38360 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
38361
38362 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38363
38364 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
38365
38366 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38367 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38368 put under #if TARGET_LOOPS guard.
38369
38370 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
38371
38372 * config/i386/i386.c (output_387_binary_op): Use std::swap.
38373
38374 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
38375
38376 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38377 * rtl.h (refers_to_regno_p): Add overload.
38378 * cse.c: Use it.
38379 * bt-load.c: Likewise.
38380 * combine.c: Likewise.
38381 * df-scan.c: Likewise.
38382 * sched-deps.c: Likewise.
38383 * config/s390/s390.c: Likewise.
38384 * config/m32r/m32r.c: Likewise.
38385 * config/rs6000/spe.md: Likewise.
38386 * config/rs6000/rs6000.c: Likewise.
38387 * config/pa/pa.c: Likewise.
38388 * config/stormy16/stormy16.c: Likewise.
38389 * config/cris/cris.c: Likewise.
38390 * config/arc/arc.md: Likewise.
38391 * config/arc/arc.c: Likewise.
38392 * config/sh/sh.md: Likewise.
38393 * config/sh/sh.c: Likewise.
38394 * config/frv/frv.c: Likewise.
38395
38396 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38397
38398 PR sanitizer/64265
38399 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38400 call as cleanup of the whole body.
38401 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38402 * tsan.c (replace_func_exit): New function.
38403 (instrument_func_exit): Moved earlier.
38404 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38405 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38406 been found.
38407 (tsan_pass): Don't call instrument_func_exit.
38408 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38409 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38410 inlining.
38411
38412 PR sanitizer/64344
38413 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38414 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38415 it to libubsan handler instead of EXPR. Fold comparisons earlier,
38416 if the result is integer_zerop, return NULL_TREE.
38417 * convert.c (convert_to_integer): Pass expr as ARG.
38418
38419 PR tree-optimization/64465
38420 * tree-inline.c (redirect_all_calls): During inlining
38421 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38422 changed the stmt to a non-throwing call.
38423
38424 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38425
38426 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38427 etc markup throughout the file.
38428
38429 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38430
38431 Enable experimental TSAN support for Ada.
38432 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38433
38434 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38435
38436 PR tree-optimization/64494
38437 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38438 clear SSA_NAME_ANTI_RANGE_P flag.
38439
38440 2015-01-05 Marek Polacek <polacek@redhat.com>
38441
38442 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38443
38444 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38445
38446 Update copyright years.
38447
38448 * gcc.c (process_command): Update copyright notice dates.
38449 * gcov-dump.c: Ditto.
38450 * gcov.c: Ditto.
38451 * doc/cpp.texi: Bump @copying's copyright year.
38452 * doc/cppinternals.texi: Ditto.
38453 * doc/gcc.texi: Ditto.
38454 * doc/gccint.texi: Ditto.
38455 * doc/gcov.texi: Ditto.
38456 * doc/install.texi: Ditto.
38457 * doc/invoke.texi: Ditto.
38458
38459 * auto-profile.c, auto-profile.h: Fix up Copyright line.
38460
38461 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
38462
38463 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38464 verb tense, etc.
38465 ([-fvtable-verify], [-fvtv-debug]): Likewise.
38466 ([-Wabi]): Likewise.
38467 ([-fmessage-length]): Likewise.
38468 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38469 ([-Wno-discarded-qualifiers]): Likewise.
38470 ([-Wnodiscarded-array-qualifiers]): Likewise.
38471 ([-Wno-virtual-move-assign]): Likewise.
38472 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38473 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38474 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38475 ([-fsanitize-undefined-trap-on-error]): Likewise.
38476 ([-floop-interchange]): Likewise.
38477 ([-ftree-coalesce-inlined-vars]): Likewise.
38478 ([-fvect-cost-model]): Likewise.
38479 ([-flto]): Likewise.
38480 ([--param]): Likewise.
38481 (Spec Files): Likewise.
38482 ([-mstrict-align]): Likewise.
38483 ([-mfix-cortex-a53-835769]): Likewise.
38484 ([-march], [-mtune]): Likewise.
38485 ([-mpic-register]): Likewise.
38486 ([-munaligned-access]): Likewise.
38487 ([-msp8]): Likewise.
38488 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38489 (AVR Built-in Macros): Likewise.
38490 ([-mpreferred-stack-boundary]): Likewise.
38491 ([-mtune-crtl]): Likewise.
38492 ([-mashf]): Likewise.
38493 ([-mmcu=]): Likewise.
38494 ([-minrt]): Likewise.
38495 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38496 ([-mupper-regs]): Likewise.
38497 ([-matomic-model]): Likewise.
38498 ([-mdiv]): Likewise.
38499 ([-mzdcbranch]): Likewise.
38500 ([-mdisable-callt]): Likewise.
38501 ([-msoft-float]): Likewise.
38502 ([-m8byte-align]): Likewise.
38503 ([-fstack-reuse]): Likewise.
38504
38505 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38506
38507 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38508 Fix markup, light copy-editing.
38509 ([-fauto-profile]): Rewrite to fix formatting and content
38510 problems.
38511
38512 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38513
38514 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38515 Copy-edit description.
38516 ([-fisolate-erroneous-paths-attribute]): Likewise.
38517 * common.opt (fisolate-erroneous-paths-dereference):
38518 Copy-edit description.
38519 (fisolate-erroneous-paths-attribute): Likewise.
38520
38521 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38522
38523 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38524 tidy grammar.
38525
38526 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38527
38528 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38529 ([-fvtv-debug]): Likewise.
38530 ([-Wc++-compat]): Likewise.
38531 ([-Wc++11-compat]): Likewise.
38532 ([-Wc++14-compat]): Likewise.
38533 ([-Wno-sized-deallocation]): Likewise.
38534 ([-femit-class-debug-always]): Likewise.
38535 ([-femit-struct-debug-detailed]): Likewise.
38536 ([-fno-keep-inline-dllexport]): Likewise.
38537 ([-fira-algorithm]): Likewise.
38538 ([-fira-region]): Likewise.
38539 ([-flra-remat]): Likewise.
38540 ([-fipa-ra]): Likewise.
38541 ([-fhoist-adjacent-loads]): Likewise.
38542 ([-fisolate-erroneous-paths-dereference]): Likewise.
38543 ([-fisolate-erroneous-paths-attribute]): Likewise.
38544 ([-ftree-switch-conversion]): Likewise.
38545 ([-ftree-tail-merge]): Likewise.
38546 ([-ftree-loop-if-convert]): Likewise.
38547 ([-ftree-loop-if-convert-stores]): Likewise.
38548 ([-ftree-loop-distribution]): Likewise.
38549 ([-ftree-loop-distribute-patterns]): Likewise.
38550 ([-flto-compression-level]): Likewise.
38551 ([-flto-report]): Likewise.
38552 ([-flto-report-wpa]): Likewise.
38553 ([-fuse-linker-plugin]): Likewise.
38554 ([-mfix-cortex-a53-835769]): Likewise.
38555 ([-mno-fix-cortex-a53-835769]): Likewise.
38556 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38557 explicit listing; add a note to the discussion indicating they
38558 exist. Reorder table to group similar options. Add missing
38559 @opindex entries. Add @need commands throughout the table to
38560 allow it to be split across multiple pages.
38561 ([-m8bit-idiv]): Fix @opindex.
38562 ([-mavx256-split-unaligned-load]): Likewise.
38563 ([-mavx256-split-unaligned-store]): Likewise.
38564 ([-mstack-protector-guard]): Likewise.
38565 ([-mcpu=]): Likewise.
38566 ([-mcpu]): Likewise.
38567 ([-mpointer-size=]): Likewise.
38568
38569 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
38570
38571 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38572 instead of `m' constraint. Likewise for unnamed movb comparison
38573 patterns using reg_before_reload_operand predicate.
38574 * config/pa/predicates.md (reg_before_reload_operand): Tighten
38575 predicate to reject register index and LO_SUM DLT memory forms
38576 after reload.
38577
38578 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38579
38580 * doc/invoke.texi (Option Summary): Fix spelling of
38581 -fdevirtualize-at-ltrans.
38582 ([-fdevirtualize]): Fix markup.
38583 ([-fdevirtualize-speculatively]): Fix typo.
38584 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
38585 implementor-speaky.
38586 * common.opt (fdevirtualize-at-ltrans): Likewise.
38587 * ipa-devirt.c: Fix typos in comments throughout the file.
38588 (ipa_devirt): Fix typos in format strings for dump output.
38589
38590 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38591
38592 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38593 discussion of defaults, light copy-editing.
38594
38595 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38596
38597 * tsan.c (instrument_expr): corrected previous checkin.
38598
38599 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38600
38601 Instrument bit field and unaligned accesses for TSAN.
38602 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38603 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38604 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38605 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38606 unaligned memory regions.
38607
38608 2015-01-01 Anthony Green <green@moxielogic.com>
38609
38610 * config/moxie/predicates.md (moxie_general_movsrc_operand):
38611 Restrict move source register offsets to 16 bits.
38612 \f
38613 Copyright (C) 2015 Free Software Foundation, Inc.
38614
38615 Copying and distribution of this file, with or without modification,
38616 are permitted in any medium without royalty provided the copyright
38617 notice and this notice are preserved.